/* ── Task app (private). Mobile-first. Assumes theme.css loaded first. ── */
.app {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(1.4rem, 6vw, 2.4rem) clamp(1rem, 5vw, 1.5rem) 5rem;
}

/* ── top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.topbar h1 {
  font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  letter-spacing: -.02em;
  margin: 0;
}
.topbar h1 em {
  font-style: normal;
  color: var(--brand);
}
.linkish {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: .82rem;
  padding: .3rem .1rem; text-decoration: none;
}
.linkish:hover { color: var(--brand); }
.whoami { display: flex; align-items: center; gap: .7rem; }
.whoami__name {
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}

/* Topbar icon button: circular, bordered, hover-to-brand. Shared by the
   notification toggle and sign-out. The notification toggle layers on state
   classes: outline = off, filled brand = on (is-on), muted+struck =
   blocked/unsupported (disabled). */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.icon-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { color: var(--brand); border-color: var(--hover-line); }
.icon-btn.is-on { color: #fff; background: var(--brand); border-color: var(--brand); }
.icon-btn.is-on svg { fill: #fff; }
.icon-btn:disabled { opacity: .5; cursor: default; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em;
  border-radius: var(--btn-radius); padding: .82rem 1.35rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .16s, background .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 16px 30px -18px rgba(197, 37, 143, .8); }
.btn--brand:hover { background: var(--brand-deep); }
.btn--ghost { background: var(--card); color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--soft { background: var(--paper-2); color: var(--ink-soft); border-color: var(--line); }
.btn--soft:hover { color: var(--brand); border-color: var(--brand); }
.btn--danger { background: transparent; color: var(--warn); border-color: transparent; }
.btn--danger:hover { text-decoration: underline; }
.btn--block { display: flex; width: 100%; }
.btn--sm { font-size: .72rem; padding: .52rem .9rem; }

/* ── tabs ── */
.tabs {
  display: flex; gap: .4rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.tab {
  appearance: none; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .3rem .7rem; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tab__count {
  font-size: .72rem; font-weight: 700; letter-spacing: 0;
  width: 1.8em; padding: 0; border-radius: var(--btn-radius);
  background: var(--line); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
/* Desktop: no reserved slot — the empty placeholders collapse entirely. */
.tab__count:empty { display: none; }
/* Mobile: drop the labels, keep icon-only. Every primary tab reserves an equal
   count slot (via the empty .tab__count placeholders) so the icons stay on a
   uniform pitch whether or not a badge is present. visibility:hidden keeps the
   reserved width but hides everything — including the active-state background —
   so a selected Completed/Calendar tab never shows a stray empty pill. (This
   block sits after the :empty display:none so it wins at mobile widths.) */
@media (max-width: 560px) {
  .tab__label { display: none; }
  .tab__count:empty { display: inline-flex; visibility: hidden; }
}
.tab.is-active .tab__count {
  background: rgba(197, 37, 143, .14); color: var(--brand);
}
/* Admin-only page link riding in the tabs row (not a JS tabpanel button). */
.tab--aux { margin-left: auto; text-decoration: none; text-transform: none; letter-spacing: normal; }

/* ── templates library ── */
.tmplhead { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.tmplhead .detail__title { margin: 0; }
.tmpllist { display: flex; flex-direction: column; gap: .9rem; padding-bottom: 5.5rem; }
.tmplcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--btn-radius); box-shadow: var(--shadow-sm); padding: .95rem;
}
.tmplcard__title { margin: 0; font-weight: 600; }
.tmplcard__desc { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.tmplcard__rule { margin: .4rem 0 0; color: var(--muted); font-size: .8rem; font-weight: 500; }
.tmplcard__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }

/* ── sort control (per-panel, above each task list) ── */
.sortbar { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-bottom: .9rem; }
.sortbar__lbl {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.sortbar__select {
  font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .4rem 2rem .4rem .7rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23938cb1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.sortbar__select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 37, 143, .14); }
.sortbar__dir {
  font-family: inherit; font-size: 1rem; line-height: 1; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  width: 2.1rem; height: 2.1rem; cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s, color .2s;
}
.sortbar__dir:hover { color: var(--brand); border-color: var(--brand); }

/* ── task cards ── */
.tasklist { display: flex; flex-direction: column; gap: .9rem; padding-bottom: 5.5rem; }

.taskcard {
  display: flex; gap: .95rem; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--btn-radius); box-shadow: var(--shadow-sm);
  padding: .85rem; text-decoration: none; color: inherit;
  transition: transform .16s, box-shadow .2s, border-color .2s;
  animation: cardin .5s cubic-bezier(.2, .7, .2, 1) both;
}
.taskcard:hover { transform: translateY(-2px); border-color: var(--hover-line); }
@keyframes cardin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── media-crop ── single source of truth for how a photo/video is framed.
   Square, centered cover-crop. Used by every thumbnail/attachment so the
   visible crop is identical everywhere, regardless of rendered size. Relies on
   aspect-ratio alone (no height) so grid/flex parents can't skew it off-square. */
.media-crop { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Failed-media placeholder (static/media.js swaps a transparent pixel in and adds
   this class after retries + a variant fallback both fail). A calm tinted tile with
   a muted "image" glyph, so a transient bucket blip reads as "not loaded" rather
   than a jarring broken-image icon. Theme-aware via existing tokens. The tile is a
   1x1 transparent pixel, so the element's own object-fit is irrelevant here — the
   glyph + fill come from the background, and the class is cleared on a later good
   load (media.js), so it never lingers to skew a valid photo's fit. */
.media-broken {
  background-color: var(--paper-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23938cb1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

.taskcard__thumb {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: var(--btn-radius); background: var(--paper-2);
  display: grid; place-items: center; color: var(--muted);
  overflow: hidden;
}
.taskcard__thumb svg { width: 24px; height: 24px; }
.taskcard__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.taskcard__title {
  font-weight: 600; font-size: 1.06rem; line-height: 1.25; letter-spacing: -.01em;
  margin: 0; word-break: break-word;
}
.taskcard.done .taskcard__title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }

.metrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .1rem; }
.metrow .met { display: inline-flex; align-items: center; gap: .3em; color: var(--muted); font-size: .82rem; }
.metrow .met svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* due badge */
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  padding: .24rem .66rem; border-radius: var(--btn-radius);
  background: var(--paper-2); color: var(--ink-soft);
  border: 1px solid var(--line); white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.badge--overdue { background: var(--tint-warn-bg); color: var(--warn); border-color: var(--tint-warn-line); }
.badge--later   { background: var(--paper-2); color: var(--ink-soft); }

.empty { text-align: center; color: var(--ink-soft); padding: 2.4rem 1rem; }
.empty .big { font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; color: var(--ink); }

/* ── "something now" pull (Sarah's always-on moment button) ── */
.moment { display: flex; justify-content: center; margin: 1.4rem 0 .4rem; }
/* Sentence-case, not the shared .btn all-caps: the label is her voice, and
   uppercase + wide tracking reads shouty against it. */
.moment__btn {
  border: 0; cursor: pointer; font-size: 1.02rem; padding: .85rem 1.6rem;
  text-transform: none; letter-spacing: normal;
}

/* checkbox + label row (template form's moment-pool toggle) */
.checkline { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.checkline input { width: 1.05rem; height: 1.05rem; }

/* "moment" pill on a flagged template card */
.tmplcard__moment {
  display: inline-block; margin-left: .4rem; padding: .05rem .45rem;
  font-size: .72rem; font-weight: 600; vertical-align: middle;
  color: var(--brand); border: 1px solid var(--brand); border-radius: 999px;
}

/* ── floating action button ── */
.fab {
  position: fixed;
  right: calc(1.1rem + env(safe-area-inset-right));
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: var(--btn-radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; text-decoration: none;
  font-size: 1.9rem; line-height: 1; font-weight: 400;
  box-shadow: 0 6px 18px rgba(197, 37, 143, .35);
  transition: transform .15s, box-shadow .15s;
  z-index: 20;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(197, 37, 143, .42); }
.fab:active { transform: translateY(0); }

/* The dice sits one FAB-height + a gap above the ＋ button, admin-only. Secondary
   to the solid-brand ＋, but ringed in brand so it stays visible on both themes.
   NB: selectors use `.fab.fab--dice` (0,3,0) on purpose; the plain `.fab--dice`
   (0,2,0) ties with `.has-tabbar .fab` further down the file, and equal specificity
   would let that later rule override `bottom`, stacking the dice under the ＋. */
.fab.fab--dice {
  bottom: calc(1.1rem + 56px + .75rem + env(safe-area-inset-bottom));
  background: var(--card); color: var(--brand);
  border: 1.5px solid var(--brand);
  box-shadow: 0 6px 18px rgba(197, 37, 143, .28);
  cursor: pointer;
}
.fab.fab--dice:hover { box-shadow: 0 9px 22px rgba(197, 37, 143, .38); }
.has-tabbar .fab.fab--dice { bottom: calc(1.1rem + 4rem + 56px + .75rem + env(safe-area-inset-bottom)); }

/* ── "roll the dice" review modal — mirrors the lightbox overlay approach
   (document-root overlays block, z-index above chrome), but holds an editable
   task draft instead of a photo. ── */
.dice-modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 1.5rem;
  background: var(--overlay);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .2s ease both;
}
.dice-modal[hidden] { display: none; }
.dice-modal__panel {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.2rem, 5vw, 1.8rem);
}
.dice-modal__heading { font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem; }
.dice-modal__loading { color: var(--ink-soft); padding: 1rem 0; }
.dice-modal__error { color: var(--warn); padding: .3rem 0 .6rem; }
.dice-modal__actions { justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }

/* Lens chip: the rotating "kind of task" for a fresh roll. Spin (🎲) shuffles it,
   pin (📌) keeps it across rerolls; muted while a nudge is refining (lens ignored). */
.dice-lens {
  display: flex; align-items: center; gap: .35rem;
  margin: 0 0 1rem; padding: .4rem .4rem .4rem .75rem;
  background: var(--tint-brand-bg); border: 1px solid var(--line);
  border-radius: 10px; font-size: .85rem;
  transition: opacity .15s ease;
}
.dice-lens.is-muted { opacity: .4; }
.dice-lens__text { margin-right: auto; color: var(--ink-soft); }
.dice-lens__text b { color: var(--brand); font-weight: 700; }
.dice-lens__btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: .25rem .35rem;
  border-radius: var(--btn-radius); opacity: .7;
}
.dice-lens__btn:hover { opacity: 1; background: var(--line); }
.dice-lens__btn[aria-pressed="true"] {
  opacity: 1; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--brand);
}

/* ── detail ── */
.back { display: inline-flex; align-items: center; gap: .4em; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 1.1rem; }
.back:hover { color: var(--brand); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.detail__title { font-weight: 900; font-size: clamp(1.7rem, 7vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .7rem; }
.detail__title.done { color: var(--muted); }
.detail__dates { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }

/* ── reminder control (alarm button + popover) ── */
.reminder { position: relative; margin-left: auto; }
.reminder__toggle { list-style: none; cursor: pointer; }
.reminder__toggle::-webkit-details-marker { display: none; }
.reminder__toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.reminder__toggle.is-set { color: var(--brand); border-color: var(--brand); }
.reminder[open] .reminder__toggle { color: var(--brand); border-color: var(--brand); }
.reminder__panel {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30;
  display: flex; flex-direction: column; gap: .55rem;
  min-width: 12rem; padding: .9rem 1rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--btn-radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.reminder__head { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.reminder__opt { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--ink); cursor: pointer; }
.reminder__opt input { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); cursor: pointer; }
.reminder__panel .btn { margin-top: .2rem; align-self: flex-start; }
.detail__desc { color: var(--ink-soft); margin: 0 0 1.4rem; white-space: pre-wrap; }

.statusbar { display: flex; gap: .7rem; align-items: center; margin-bottom: 1.8rem; flex-wrap: wrap; }
.donepill {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--tint-ok-bg); color: var(--ok); border: 1px solid var(--tint-ok-line);
  font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: var(--btn-radius);
}
.donepill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.statuspick { display: inline-flex; align-items: center; gap: .55rem; }
.statuspick__label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.statuspick__select {
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .55rem 2.2rem .55rem .85rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23938cb1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.statuspick__select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 37, 143, .14); }
.statuspick__select--done {
  background-color: var(--tint-ok-bg); color: var(--ok); border-color: var(--tint-ok-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d55' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Read-only status shown to non-admins (no dropdown). */
.statusflag {
  display: inline-flex; align-items: center;
  padding: .4rem .8rem; border-radius: var(--btn-radius);
  font-size: .82rem; font-weight: 600;
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.statusflag--done { background: var(--tint-ok-bg); color: var(--ok); border-color: var(--tint-ok-line); }

.sec-label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 .8rem;
}

/* ── attachments ── */
.attachments { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1.2rem; }
.att { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.att .media-crop { background: #000; }
.att a { display: block; }
.att--audio { background: var(--card); }

/* The card's media is a button so tapping it opens the shared full-screen viewer
   (task_detail.js); the ✕ delete sits alongside it, never nested. */
.att__open {
  display: block; width: 100%; padding: 0; border: none; cursor: pointer;
  background: #000; -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .att__open { transition: transform .16s; }
  .att__open:active { transform: scale(.97); }
}
/* Play badge on video cards (mirrors the gallery tile + viewer nav accent). */
.att--video .att__open::after {
  content: ""; position: absolute; right: 10px; bottom: 10px;
  width: 0; height: 0; pointer-events: none;
  border-left: 13px solid rgba(255, 255, 255, .95);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}

/* Audio tile look — a mini waveform (or 🎙 glyph fallback) + date. Shared by the
   task-record cards and the Gallery wall (gallery.css keeps only the tile bg). */
.gtile__audio {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; padding: 0 12%; color: var(--ink-soft);
}
.gtile__audio .wplayer--tile { width: 100%; }
.gtile__audio .wplayer--tile .wplayer__bars { height: 30px; }
.gtile__glyph { font-size: 1.8rem; line-height: 1; }
.gtile__date { font-size: .72rem; font-weight: 600; color: var(--muted); }

.att__del {
  position: absolute; top: 6px; right: 6px;
  width: 30px; height: 30px; border-radius: var(--btn-radius);
  border: none; cursor: pointer;
  background: rgba(26, 26, 26, .55); color: #fff;
  display: grid; place-items: center; backdrop-filter: blur(4px);
}
.att__del svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Engagement-count badge on a media tile — the *other* person's play/view count
   (engagement.py): Sarah sees how many times Benjamin came back to a clip. Bottom-left
   so it clears the video play-triangle (which sits bottom-right on .gtile / .att). Sits
   over the tile's media, so a dark translucent pill with white text reads in both
   themes. Shared by the task-record cards (.att) and the Gallery wall (.gtile). */
.media-eng {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  display: inline-flex; align-items: center; gap: .28em;
  padding: .18rem .44rem; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.media-eng svg { width: 12px; height: 12px; display: block; }

/* trash view: per-item caption + restore / delete-forever controls */
.att__meta { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .5rem .6rem 0; font-size: .72rem; }
.att__task { color: var(--ink-soft); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att__left { color: var(--muted); flex: none; }
.att__actions { display: flex; gap: .4rem; padding: .5rem .6rem .6rem; }
.att__actions form { flex: 1 1 0; }
.att__actions .btn { width: 100%; }

/* entry point on the task list, shown only when the trash is non-empty */
.trashlink { display: inline-flex; align-items: center; gap: .45em; margin: 1.4rem 0 .4rem; color: var(--muted); text-decoration: none; font-size: .85rem; }
.trashlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.trashlink__count { font-variant-numeric: tabular-nums; background: var(--line); color: var(--ink-soft); border-radius: 999px; padding: 0 .5em; font-size: .72rem; line-height: 1.5; }

.uploadform { display: contents; }
input[type="file"] { display: none; }

/* one inline row: Photo / Library / Record — icon-forward buttons */
.uploadrow { display: flex; gap: .6rem; margin-bottom: 2rem; }
.iconbtn {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
  gap: .25rem; padding: .7rem .4rem; cursor: pointer;
  background: var(--card); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 14px;
  font: inherit; transition: transform .12s, border-color .16s, color .16s, background .16s;
}
.iconbtn:hover { color: var(--brand); border-color: var(--brand); }
.iconbtn:active { transform: scale(.97); }
.iconbtn__i { font-size: 1.45rem; line-height: 1; }
.iconbtn__t { font-size: .72rem; font-weight: 600; }

/* legacy/no-peaks audio (macro fallback): a plain full-width native player */
.att__audio { display: block; width: 100%; }

/* ── record-audio modal (recorder.js) — mirrors the dice-modal overlay recipe ── */
.record-modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 1.5rem;
  background: var(--overlay);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .2s ease both;
}
.record-modal[hidden] { display: none; }
.record-modal__panel {
  position: relative; width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.3rem, 5vw, 1.9rem);
}
.record-modal__close {
  position: absolute; top: .6rem; right: .6rem;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--paper-2); color: var(--ink-soft);
  display: grid; place-items: center; font-size: 1rem; line-height: 1;
}
.record-modal__close:hover { color: var(--brand); }
.record-modal__heading { font-size: 1.15rem; font-weight: 700; margin: 0 0 1.2rem; }

/* recorder panels — used only inside the modal, so laid out as a centered column.
   The [hidden] guard is REQUIRED: the display:flex above overrides the UA
   [hidden]{display:none}, so without it the JS .hidden toggles never hide these
   (same guard as .celebrate / .record-modal). */
.recorder__live[hidden], .recorder__preview[hidden] { display: none; }
.recorder__live { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.recorder__timer { display: inline-flex; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); }
.recorder__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--warn); }
.recorder__livewave { width: 100%; height: 56px; }
.recorder__stop { align-self: center; width: auto; }   /* centered, not full-width */
@media (prefers-reduced-motion: no-preference) {
  .recorder__dot { animation: recpulse 1.1s ease-in-out infinite; }
}
@keyframes recpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.recorder__preview { display: flex; flex-direction: column; gap: 1.1rem; }
.recorder__player { width: 100%; }
.recorder__actions { display: flex; gap: .7rem; }
.recorder__actions .btn { flex: 1 1 0; }
.recorder__error { color: var(--warn); font-size: .82rem; margin-top: .8rem; text-align: center; }

/* ── waveform player (waveform.js / _waveform.html) ── */
.wplayer { display: flex; align-items: center; gap: .6rem; width: 100%; --p: 0; }
.wplayer__play {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center; padding: 0;
}
.wplayer__play svg { width: 16px; height: 16px; fill: currentColor; }
/* bars: a muted base with a brand-colored "played" copy revealed by clip-path.
   Both rows share the same box + child count, so the bars stay perfectly aligned. */
.wplayer__bars {
  flex: 1 1 auto; min-width: 0; position: relative;
  display: flex; align-items: center; gap: 2px; height: 34px; cursor: pointer;
}
.wplayer__bars > i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--muted); opacity: .5; }
.wplayer__played {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 2px;
  clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); pointer-events: none;
}
.wplayer__played > i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--brand); opacity: 1; }
.wplayer__time { flex: none; font-size: .74rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wplayer__audio { display: none; }

/* compact, control-less variant for the Gallery grid tile */
.wplayer--tile { gap: 0; pointer-events: none; }
.wplayer--tile .wplayer__bars { height: 40%; }

/* Stacked variants — waveform full-width on top, play + time centered below.
   Used by the Gallery viewer + record-modal preview (--viewer) and the task/trash
   grid tile (--card). Bottom-centering the play button keeps it clear of the
   viewer's side arrows. */
.wplayer--viewer, .wplayer--card {
  flex-direction: column; align-items: center; gap: .7rem;
}
.wplayer--viewer .wplayer__bars, .wplayer--card .wplayer__bars { width: 100%; }
.wplayer__controls { display: flex; align-items: center; justify-content: center; gap: .6rem; }

.wplayer--viewer { width: 100%; margin-inline: auto; }
.wplayer--viewer .wplayer__bars { height: 48px; }
/* Gallery viewer only: keep the bars inside the ◀ ▶ side arrows. */
.viewer .wplayer--viewer { max-width: min(520px, calc(100vw - 8rem)); }

/* task/trash grid: a square, Gallery-styled tile that plays inline on tap */
.wplayer--card {
  aspect-ratio: 1 / 1; justify-content: center; gap: .55rem;
  padding: .8rem; background: var(--card);
}
.wplayer--card .wplayer__bars { height: 34px; }
.wplayer--card .wplayer__date { font-size: .72rem; font-weight: 700; color: var(--muted); }

/* ── comments ── */
.comments { margin-top: 1.4rem; }
.bubbles { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.bubble {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .7rem .9rem; box-shadow: var(--shadow-sm);
}
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble__meta {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .4rem; font-size: .72rem; color: var(--muted);
}
.bubble__meta .who { font-weight: 600; color: var(--ink-soft); }
.bubble__meta .when::before { content: "· "; }
.bubble__delform { margin-left: auto; }
.bubble__del {
  border: none; cursor: pointer; background: none; color: var(--muted);
  display: grid; place-items: center; padding: .1rem; line-height: 0;
}
.bubble__del:hover { color: var(--brand); }
.bubble__del svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bubble__edit {
  border: none; cursor: pointer; background: none; color: var(--muted);
  display: grid; place-items: center; padding: .1rem; line-height: 0;
}
.bubble__edit:hover { color: var(--brand); }
.bubble__edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bubble__meta .edited { color: var(--muted); font-style: italic; }
/* Inline edit: form hidden until the bubble enters .editing, then it replaces
   the body + meta affordances in place. */
.bubble__editform { display: none; flex-direction: column; gap: .5rem; }
.bubble__editform textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .6rem .7rem; resize: vertical; min-height: 2.6rem;
  transition: border-color .2s, box-shadow .2s;
}
.bubble__editform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 37, 143, .14); }
.bubble__editactions { display: flex; gap: .5rem; justify-content: flex-end; }
.bubble__editactions .btn { padding: .35rem .8rem; font-size: .82rem; }
.bubble.editing .bubble__body,
.bubble.editing .bubble__edit,
.bubble.editing .bubble__delform { display: none; }
.bubble.editing .bubble__editform { display: flex; }
.bubble.editing .reactions { display: none; }

/* Emoji reactions: a wrapping row of toggle chips + an add affordance. */
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .5rem; }
.reactions__chip {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .1rem .45rem; border-radius: var(--btn-radius); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .8rem; line-height: 1.4; transition: background .15s, border-color .15s;
}
.reactions__chip:hover { border-color: var(--brand); }
.reactions__chip.is-mine { background: var(--tint-brand-bg); border-color: var(--tint-brand-line); color: var(--brand); }
.reactions__emoji { font-size: .9rem; line-height: 1; }
.reactions__count { font-weight: 600; font-variant-numeric: tabular-nums; }
.reactions__adder { position: relative; display: inline-flex; }
.reactions__add {
  display: grid; place-items: center; cursor: pointer; padding: .1rem;
  width: 1.6rem; height: 1.6rem; border-radius: var(--btn-radius); line-height: 0;
  background: none; border: 1px solid var(--line); color: var(--muted);
}
.reactions__add:hover { color: var(--brand); border-color: var(--brand); }
.reactions__add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.reactions__popover {
  position: absolute; bottom: calc(100% + .35rem); left: 0; z-index: 20;
  display: flex; flex-direction: column; gap: .5rem; width: 17.5rem; max-width: 90vw;
  padding: .55rem; border-radius: var(--btn-radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
/* Author display: flex above overrides the UA [hidden] rule, so restore it
   explicitly (same guard as .celebrate[hidden]). The add
   button toggles this attribute — without this the popover is always open. */
.reactions__popover[hidden] { display: none; }

/* Search field: a rounded input with a leading magnifier. */
.reactions__search {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .55rem; border-radius: var(--btn-radius);
  background: var(--bg); border: 1px solid var(--line);
}
.reactions__search:focus-within { border-color: var(--brand); }
.reactions__searchicon {
  flex: none; width: 15px; height: 15px; fill: none; stroke: var(--muted);
  stroke-width: 2; stroke-linecap: round;
}
.reactions__input {
  flex: 1; min-width: 0; font-family: inherit; font-size: .85rem; color: var(--ink);
  background: none; border: none; padding: 0;
}
.reactions__input:focus { outline: none; }

/* Zones: the curated row and recents sit unwrapped; the scroll holds the rest. */
.reactions__body { display: flex; flex-direction: column; gap: .35rem; }
.reactions__cells { display: flex; flex-wrap: wrap; gap: .05rem; }
.reactions__cell {
  cursor: pointer; background: none; border: none; border-radius: var(--btn-radius);
  width: 2rem; height: 2rem; padding: 0; font-size: 1.2rem; line-height: 1;
  display: grid; place-items: center;
}
.reactions__cell:hover { background: var(--tint-brand-bg); }
.reactions__zonelabel {
  font-size: .62rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin: .2rem .15rem -.1rem;
}
.reactions__scroll {
  max-height: 11rem; overflow-y: auto; display: flex; flex-direction: column; gap: .35rem;
  scrollbar-width: thin;
}
/* Category labels sit sticky so you always know where you are while scrolling. */
.reactions__scroll .reactions__zonelabel {
  position: sticky; top: 0; background: var(--card); padding: .2rem .15rem; margin: 0;
}
.reactions__empty { color: var(--muted); font-size: .85rem; text-align: center; padding: 1.1rem 0; }
.comments .none { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }

/* ── Sarah's yellow (💛): warm honey — her comments/responses read as her own chat bubble ── */
.bubble[data-author="sarah"],
.resp__cmt[data-author="sarah"],
.resp__note[data-author="sarah"] {
  background: #fcebbf;
  border: 1px solid #e9ce84;
  border-radius: var(--btn-radius);
  padding: .7rem .9rem;
}
html[data-theme="dark"] .bubble[data-author="sarah"],
html[data-theme="dark"] .resp__cmt[data-author="sarah"],
html[data-theme="dark"] .resp__note[data-author="sarah"] {
  background: #40340f;
  border-color: #5c4a12;
}

.commentbox { display: flex; flex-direction: column; gap: .6rem; }
.commentbox textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .75rem .85rem; resize: vertical; min-height: 2.6rem;
  transition: border-color .2s, box-shadow .2s;
}
.commentbox textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 37, 143, .14); }

/* ── forms (create/edit) ── */
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .78rem .85rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 37, 143, .14); }
.field textarea { resize: vertical; min-height: 4rem; }
.field .hint { font-size: .78rem; color: var(--muted); }
.linkbtn {
  background: none; border: none; padding: 0; margin-left: .35rem;
  font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.formactions { display: flex; gap: .8rem; margin-top: .4rem; }
.formactions .btn { flex: 1 1 auto; }
.dangerzone { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); text-align: center; }

/* ── flash ── */
.flash {
  background: var(--tint-brand-bg); border: 1px solid var(--tint-brand-line); color: var(--brand-deep);
  border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.2rem; font-size: .92rem;
}

/* ── login ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; z-index: 1; }
.login__card { width: 100%; max-width: 360px; text-align: center; }
.login__card h1 { font-weight: 900; font-size: 2.1rem; letter-spacing: -.02em; margin: 0 0 .35rem; }
.login__card h1 em { font-style: normal; color: var(--brand); }
.login__card p { color: var(--ink-soft); margin: 0 0 1.6rem; }
.login__card input {
  width: 100%; font-family: inherit; font-size: 1.05rem; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .85rem; margin-bottom: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.login__card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 37, 143, .14); }
.login__err { color: var(--warn); font-size: .9rem; margin: 0 0 .9rem; }

@media (min-width: 600px) {
  .attachments { grid-template-columns: repeat(3, 1fr); }
}

/* ── bottom tab bar (top-level sections: Tasks ⇄ Spoil you) ──────────────── */
.has-tabbar .app { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex;
  background: var(--bar);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: .5rem .4rem calc(.5rem + env(safe-area-inset-bottom));
}
.tabbar__item {
  position: relative;
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--muted);
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: .35rem .3rem; border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s, background .2s;
}
.tabbar__item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar__item.is-active { color: var(--brand); }
/* active-tab indicator: a small brand dot below the label */
.tabbar__item.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.tabbar__item:active { background: var(--paper-2); }

/* Lift the FAB clear of the bar on signed-in pages. */
.has-tabbar .fab { bottom: calc(1.1rem + 4rem + env(safe-area-inset-bottom)); }

/* ── "Spoil you" list ───────────────────────────────────────────────────── */
.picklist { display: flex; flex-direction: column; gap: .9rem; }
.pickcard {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .16s, box-shadow .2s, border-color .2s;
}
.pickcard:hover { transform: translateY(-2px); border-color: #cfc9e0; }
/* Fixed 3:1 band so 1–3 images keep the same strip height; fewer images widen
   and crop via object-fit: cover rather than growing into a tall square. */
.pickcard__strip { display: flex; gap: 2px; background: var(--paper-2); aspect-ratio: 3 / 1; }
.pickcard__strip .media-crop { flex: 1 1 0; min-width: 0; height: 100%; aspect-ratio: auto; }
.pickcard__ph { display: block; width: 100%; aspect-ratio: 3 / 1; background: var(--paper-2); }
.pickcard__body { padding: .85rem 1rem 1rem; }
.pickcard__title { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; margin: 0 0 .5rem; }

/* Admin-only inbox controls: a positioned wrap holds the card <a> plus the
   publish/hide toggle as a sibling (never nested in the link). */
.pickcard-wrap { position: relative; }
.pickcard.is-hidden { border-style: dashed; }
.pickcard.is-hidden .pickcard__strip { opacity: .55; }
.pickcard__badge {
  display: inline-block; vertical-align: middle; margin-right: .45rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .16rem .5rem; border-radius: 999px; border: 1px solid var(--line);
}
.pickcard__badge.is-live { color: var(--brand); background: var(--tint-brand-bg); border-color: var(--tint-brand-line); }
.pickcard__badge.is-hidden { color: var(--muted); background: var(--paper-2); }
.pickcard__toggle { position: absolute; top: .55rem; right: .55rem; margin: 0; }
.pickcard__toggle button {
  font-family: inherit; font-size: .72rem; font-weight: 600; cursor: pointer;
  color: var(--brand); background: var(--card); border: 1px solid var(--tint-brand-line);
  padding: .22rem .6rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
}
.pickcard__toggle button:hover { background: var(--tint-brand-bg); border-color: var(--brand); }

/* Inbox section divider on the admin Spoil list. */
.inbox-head { margin: 1.6rem 0 .3rem; }
.inbox-head h2 { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.inbox-head p { font-size: .8rem; color: var(--muted); margin: .2rem 0 0; }

/* ── Play hub: the fun-layer landing (Wardrobe / Envelope / Playroom / Protocols).
   Entry cards mirror the "Spoil you" pickcard look — a 3:1 icon band over a title
   + meta row — but stand on their own classes so the shared pickcard (which frames
   real photos) is untouched. Cards are stubs until each feature's issue lands. ── */
.hub-lead { color: var(--muted); font-size: .88rem; margin: -.4rem 0 1.3rem; }
.hublist { display: flex; flex-direction: column; gap: .9rem; }
.hubcard {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .16s, border-color .2s;
}
.hubcard__band {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); aspect-ratio: 3 / 1; color: var(--muted);
}
.hubcard__band svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7;
}
/* Photo montage in the band (Wardrobe): a 3:1 row of equal tiles with 2px seams,
   mirroring .pickcard__strip. The strip is taken out of flow (absolute) so the
   band's 3:1 aspect-ratio sets the height — otherwise the <img> children's
   intrinsic height would blow the band up. Empty tiles keep the flat glyph look. */
.hubcard__band { position: relative; }
.hubcard__strip { position: absolute; inset: 0; display: flex; gap: 2px; background: var(--line); }
.hubcard__tile { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; display: block; }
.hubcard__tile--empty {
  display: flex; align-items: center; justify-content: center; background: var(--paper-2);
}
.hubcard__tile--empty svg { width: 24px; height: 24px; }
.hubcard--live:hover { transform: translateY(-2px); border-color: var(--hover-line); }
.hubcard__body { padding: .8rem 1rem .95rem; }
.hubcard__title { font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; margin: 0 0 .35rem; }
.hubcard__meta { display: flex; align-items: center; gap: .5rem; }
.hubcard__meta .met { color: var(--muted); font-size: .8rem; }
.hubcard__soon {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: var(--tint-brand-bg); border: 1px solid var(--tint-brand-line);
  padding: .16rem .5rem; border-radius: 999px;
}

/* ── "Spoil you" detail: responses + respond ────────────────────────────── */
.spoil-head { margin-bottom: 1.2rem; }

/* Share the pick's private link (native share sheet, else copy). */
.sharebtn svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sharebtn.is-done { color: var(--brand); border-color: var(--brand); }
.pickcard__share {
  display: inline-flex; align-items: center; gap: .3em; margin-left: auto;
  font-family: inherit; font-size: .78rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: .2rem .1rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pickcard__share:hover { color: var(--brand); }
.pickcard__share svg { width: 14px; height: 14px; }
.pickcard__share.is-done { color: var(--brand); }

.resp {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: 1rem 1.1rem; margin-bottom: .9rem; box-shadow: var(--shadow-sm);
}
.resp__when { font-size: .78rem; color: var(--muted); margin: 0 0 .7rem; }
.resp__favs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.resp__favs li {
  background: var(--brand); color: #fff; font-size: .82rem; font-weight: 600;
  padding: .28rem .7rem; border-radius: var(--btn-radius);
}
.resp__favs li::before { content: "\2665  "; }
.resp__empty { color: var(--ink-soft); font-style: italic; margin: 0 0 .6rem; }
.resp__cmt { margin: .5rem 0; }
.resp__cmt p, .resp__note p { margin: .1rem 0 0; white-space: pre-wrap; word-break: break-word; }
.resp__item { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.resp__note { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.resp__none { color: var(--ink-soft); }

/* Shared fade-in for the in-app overlays (celebrate, record-modal, related panels,
   and the full-screen media viewer in media-viewer.css). */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── celebration overlay: warm one-shot after a non-admin upload/comment.
   Mirrors the picker .thanks overlay; z-index 60 clears the tabbar + toggle. ── */
.celebrate {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 1.5rem;
  background: var(--overlay);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .25s ease both;
}
.celebrate[hidden] { display: none; }
.celebrate__card {
  text-align: center; max-width: 26ch;
  /* Scale-free entrance (opacity + slight drift) — scaling the card resized the
     text mid-render and read as a font "snap"; a translate doesn't touch metrics. */
  animation: rise-in .4s cubic-bezier(.2, .7, .2, 1) both;
}
.celebrate__mark {
  width: 74px; height: 74px; margin: 0 auto 1.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); box-shadow: 0 20px 40px -18px rgba(197, 37, 143, .8);
}
.celebrate__mark svg { width: 36px; height: 36px; fill: #fff; }
.celebrate__line {
  /* 700 is a real Sofia Pro weight; 800 was synthesized and its metrics shifted on
     font-swap, which is what made the text visibly resize on render. */
  margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: #fff;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── completed banner (Sarah's view of a done task) + list badge ── */
.donebanner {
  display: flex; align-items: center; gap: .55em;
  margin: 0 0 1.1rem; padding: .7rem .9rem;
  background: var(--tint-ok-bg); color: var(--ok);
  border: 1px solid var(--tint-ok-line); border-radius: var(--btn-radius);
  font-weight: 600; font-size: .95rem;
}
/* ── impersonation banner (admin "Viewing as <user>") ── */
.impersonate-banner {
  display: flex; align-items: center; justify-content: space-between; gap: .75em;
  margin: 0 0 1.1rem; padding: .6rem .7rem .6rem .9rem;
  background: var(--tint-warn-bg); color: var(--warn);
  border: 1px solid var(--tint-warn-line); border-radius: var(--btn-radius);
  font-weight: 600; font-size: .95rem;
}
.impersonate-banner__label { display: inline-flex; align-items: center; gap: .5em; }
.impersonate-banner svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.impersonate-banner form { margin: 0; flex: none; }
.impersonate-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.impersonate-actions form { margin: 0; }

.donebanner__mark { display: inline-flex; flex: none; }
.donebanner__mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.metrow .met--done { color: var(--ok); font-weight: 600; }
.metrow .met--done svg { stroke: currentColor; stroke-width: 2.4; }

/* ── weekly-completion nudge (Sarah, top of the To Do list) ── */
.weeksum {
  margin: 0 0 1rem; padding: .55rem .9rem;
  background: var(--tint-brand-bg); border: 1px solid var(--tint-brand-line);
  border-radius: var(--btn-radius); color: var(--brand-deep);
  font-size: .92rem; font-weight: 600; text-align: center;
}

/* ── confetti: one-time completion burst, particles fly out then fade ── */
.confetti { position: fixed; inset: 0; z-index: 61; pointer-events: none; overflow: hidden; }
.confetti__bit {
  position: fixed; width: 9px; height: 9px; border-radius: 2px;
  animation: confetti-fly 1.1s cubic-bezier(.15, .6, .3, 1) both;
}
@keyframes confetti-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4) rotate(220deg); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .celebrate__card { animation: none; }
}

/* ── related items (deep-link chips + admin add-link combobox) ── */
.related { margin: 0 0 1.6rem; }
.chips { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.chip {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--btn-radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.chip__link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .7rem; text-decoration: none; color: var(--ink);
  max-width: 20rem; -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--brand); }
.chip__kind {
  flex: none; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; padding: .18rem .42rem; border-radius: var(--btn-radius);
  background: var(--paper-2); color: var(--muted);
}
.chip__kind--picker { background: rgba(197, 37, 143, .14); color: var(--brand); }
.chip__kind--wardrobe { background: var(--tint-brand-bg); color: var(--brand); }
.chip__title { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip__delform { display: flex; margin: 0; }
.chip__remove {
  border: none; border-left: 1px solid var(--line); cursor: pointer;
  background: none; color: var(--muted); padding: 0 .5rem; display: grid; place-items: center;
}
.chip__remove:hover { color: var(--brand); }
.chip__remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.chip__sub {
  margin-left: .7rem; font-size: .78rem; font-weight: 600; color: var(--muted);
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.chip__sub:hover { color: var(--brand); }

.linkadd { position: relative; }
.linkadd__box { margin-top: .6rem; }
.linkadd__input {
  width: 100%; font: inherit; font-size: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .6rem .7rem; color: var(--ink);
}
.linkadd__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 37, 143, .14); }
.linkadd__results {
  list-style: none; margin: .4rem 0 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--btn-radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.linkadd__result {
  display: flex; align-items: center; gap: .55rem; cursor: pointer;
  padding: .55rem .7rem; border-bottom: 1px solid var(--line);
}
.linkadd__result:last-child { border-bottom: none; }
.linkadd__result:hover { background: var(--paper-2); }
.linkadd__resulttitle { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkadd__empty { padding: .55rem .7rem; color: var(--muted); font-size: .88rem; }

/* ── Notification settings (settings.notifications) ──────────────────────────
   Two grouped lists: "on this device" (push enrolment, mirrors the topbar bell)
   and "notify me when" (one CSS-only toggle per category). */
.notif-group { margin: 0 0 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.notif-group__head {
  margin: 0 0 .1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.notif-row {
  display: flex; align-items: center; gap: .8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--btn-radius);
  padding: .7rem .85rem; box-shadow: var(--shadow-sm); margin: 0;
}
.notif-row--toggle { cursor: pointer; }
/* Sub-feature rows on the feature-visibility page — indented + hairline rail so the
   nesting under a hub (e.g. Play → Wardrobe/Rewards/…) reads at a glance. */
.notif-row--sub { margin-left: 1rem; border-left: 3px solid var(--line); }
.notif-row__ic { flex: none; color: var(--brand); display: grid; place-items: center; }
.notif-row__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notif-row__txt { flex: 1; min-width: 0; }
.notif-row__txt b { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); }
.notif-row__sub { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; margin-top: .1rem; }

/* CSS-only switch: hide the checkbox, drive the track off :checked. */
.notif-switch { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.notif-switch__track {
  flex: none; width: 44px; height: 26px; border-radius: 999px; position: relative;
  background: var(--line); transition: background .18s ease;
}
.notif-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: transform .18s ease;
}
.notif-switch:checked + .notif-switch__track { background: var(--brand); }
.notif-switch:checked + .notif-switch__track::after { transform: translateX(18px); }
.notif-switch:focus-visible + .notif-switch__track {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .notif-switch__track, .notif-switch__track::after { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Rewards economy (#146): score card, catalog cards, ledger/queue rows,
   admin values, milestone celebration. All themed through the tokens.
   ════════════════════════════════════════════════════════════════════════ */

/* score/streak chip on the tasks-list weeksum line */
.scorechip {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--tint-brand-line);
  color: var(--brand); font-size: .82rem; font-weight: 700;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.scorechip:hover { border-color: var(--brand); }

/* admin link on Sarah's page (only Benjamin sees it) */
.rewards-adminlink { display: inline-flex; margin: 0 0 1.2rem; }

/* ── score card ── */
.score {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.4rem; margin-bottom: 1.4rem;
}
.score::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--brand-gradient);
}
.score__eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.score__wallet { display: flex; align-items: baseline; gap: .55rem; margin: .5rem 0 .15rem; }
.score__num {
  font-size: 3rem; font-weight: 900; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--brand-gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.score__spark { font-size: 1.35rem; }
.score__label { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.score__sub { font-size: .82rem; color: var(--muted); margin-top: .1rem; }

.streak { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.streak__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.streak__flame { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.05rem; }
.streak__flame .n { font-variant-numeric: tabular-nums; }
.streak__badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--tint-brand-bg);
  border: 1px solid var(--tint-brand-line); padding: .22rem .6rem; border-radius: 999px;
}
.bar {
  height: 9px; border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--line); overflow: hidden; margin: .7rem 0 .5rem;
}
.bar__fill { height: 100%; background: var(--brand-gradient); border-radius: 999px; }
.streak__meta { display: flex; justify-content: space-between; gap: .6rem; font-size: .76rem; color: var(--muted); }
.streak__meta b { color: var(--ink-soft); font-weight: 600; }

/* ── weekly goal — the hero of the score card (the per-week agreement) ── */
.wk__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.wk__title { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.05rem; }
.wk__count { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.metpill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; color: var(--ok);
  background: var(--tint-ok-bg); border: 1px solid var(--tint-ok-line);
  padding: .12rem .55rem; border-radius: 999px;
}
.wk__dots { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .7rem 0 .35rem; }
.wk__dots i {
  width: .68rem; height: .68rem; border-radius: 50%; flex: none;
  background: var(--paper-2); border: 1px solid var(--line);
}
.wk__dots i.on { background: var(--brand); border-color: transparent; }
.wk__note { margin-top: .15rem; }
.wk__streakline { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; font-size: .9rem; }
.wk__streakline .cal { font-weight: 700; }
.wk__streakline .cal .n { font-variant-numeric: tabular-nums; }
.wk__streakline .cal--muted { font-weight: 600; color: var(--muted); }
.wk__best { font-size: .76rem; color: var(--muted); }
.wk__best b { color: var(--ink-soft); font-weight: 600; }

/* daily streak — demoted to a quiet one-liner beneath the weekly hero */
.daily-min {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .82rem;
}
.daily-min__flame { font-weight: 600; color: var(--ink-soft); }
.daily-min__flame .n { font-variant-numeric: tabular-nums; }
.daily-min__best { color: var(--muted); }
.daily-min__best b { color: var(--ink-soft); font-weight: 600; }

/* ── in-page tabs (rewards + admin; own JS, distinct from the tasks list) ── */
.rtabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin: 0 0 1.1rem; overflow-x: auto; }
.rtab {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); background: none; border: 0;
  border-bottom: 2px solid transparent; padding: .6rem .55rem .7rem; cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: .4rem;
}
.rtab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.rtab .tab__count { font-size: .68rem; background: var(--line); color: var(--muted); padding: .05rem .4rem; border-radius: 999px; }
.rtab.is-active .tab__count { background: var(--tint-brand-bg); color: var(--brand); }

.rpanel { display: none; }
.rpanel.is-active { display: block; animation: fade .3s ease; }
.rpanel__lead { margin: 0 0 .9rem; }

/* ── catalog cards ── */
.cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 430px) { .cardgrid { grid-template-columns: 1fr; } }
.rcard {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.rcard__band { aspect-ratio: 16 / 7; display: grid; place-items: center; font-size: 2rem; background: var(--paper-2); }
.rcard--pun .rcard__band { background: linear-gradient(135deg, var(--tint-warn-bg), var(--paper-2)); }
.rcard__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.rcard__title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.rcard__desc { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; flex: 1; }
.rcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.rcard__foot form { margin: 0; }
.cost { font-size: .8rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost--free { color: var(--warn); }
.locknote { font-size: .72rem; color: var(--muted); font-weight: 600; }

/* ── ledger / request / queue rows ── */
.rrow {
  display: flex; align-items: center; gap: .85rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--btn-radius);
  box-shadow: var(--shadow-sm); padding: .8rem .9rem; margin-bottom: .6rem;
}
.rrow__emoji { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.35rem; background: var(--paper-2); border-radius: var(--btn-radius); }
.rrow__body { flex: 1; min-width: 0; }
.rrow__title { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.rrow__sub { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.rrow__amt { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1rem; white-space: nowrap; }
.rrow__actions { display: flex; gap: .4rem; }
.rrow__actions form { margin: 0; }
.amt-pos { color: var(--ok); }
.amt-neg { color: var(--brand); }

/* status + state pills */
.pill {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.pill--requested { color: var(--ink-soft); background: var(--paper-2); border-color: var(--line); }
.pill--granted, .pill--fulfilled { color: var(--ok); background: var(--tint-ok-bg); border-color: var(--tint-ok-line); }
.pill--denied { color: var(--warn); background: var(--tint-warn-bg); border-color: var(--tint-warn-line); }

/* ── admin: sections, values, adjust ── */
.adminbar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.adminbar--spaced { margin-top: 1.5rem; }
.sec { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.panelcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.kv { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv__label { font-size: .95rem; font-weight: 600; }
.kv__hint { font-size: .76rem; color: var(--muted); }
.kv input[type="number"] { width: 80px; font: inherit; text-align: right; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--paper-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.kv__name { width: 160px; font: inherit; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--paper-2); color: var(--ink); }
.adjust__bal { font-size: 2rem; font-weight: 900; color: var(--brand); font-variant-numeric: tabular-nums; margin: .1rem 0 .6rem; }
.adjust { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.adjust input[type="text"] { flex: 1; min-width: 130px; font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--paper-2); color: var(--ink); }
.adjust input[type="number"] { width: 80px; font: inherit; text-align: right; padding: .5rem; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--paper-2); color: var(--ink); font-variant-numeric: tabular-nums; }

/* emoji + checkbox fields on the catalog form */
.field--emoji { max-width: 92px; }
.field--check { display: flex; align-items: flex-end; }
.field--check label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.field--check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }

/* ── milestone celebration overlay (own card surface; reuses .celebrate shell) ── */
.levelup {
  text-align: center; max-width: 20rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2.2rem 1.8rem;
  animation: rise-in .4s cubic-bezier(.2, .7, .2, 1) both;
}
.levelup__burst { font-size: 3.2rem; line-height: 1; }
.levelup__line { margin: .6rem 0 1.4rem; font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
@media (prefers-reduced-motion: reduce) { .levelup { animation: none; } }
