/* Mom & Calm — components: forms, sheets, family hub, settings, lock screen, onboarding. */

.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.center { text-align: center; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wide { flex: 1; min-height: 52px; font-size: var(--fs-lg); white-space: normal; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-x { width: 36px; min-height: 36px; color: var(--ink-3); border-color: transparent; }
.btn-x:hover { color: var(--ink); background: var(--surface-sunk); }
.back-link { text-decoration: none; display: inline-block; margin-bottom: 4px; }
.back-link:hover { color: var(--accent-ink); }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: var(--fs-sm); font-weight: 450; color: var(--ink-2); }
.optional { font-weight: 350; color: var(--ink-3); }
.field-error { margin: 0; font-size: var(--fs-sm); color: var(--m-peach); min-height: 0; }
.field-error:empty { display: none; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-section { font-size: var(--fs-md); margin-top: 6px; color: var(--ink-2); }
.subfields { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }

.input {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  font-size: 1rem; /* 16px stops iOS zooming */
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--m-peach); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.select-sm { width: auto; min-width: 120px; }
input[type="date"].input { min-height: var(--tap); }

/* switch */
.switch {
  position: relative; flex: none; width: 52px; height: 32px; border: 0; border-radius: var(--r-pill);
  background: var(--line-strong); transition: background var(--t-fast);
}
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--t-med) var(--ease);
}
.switch[aria-checked="true"] { background: var(--m-sage); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
/* bigger tap area without a bigger switch */
.switch::before { content: ""; position: absolute; inset: -8px; }

/* colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--m); box-shadow: inset 0 0 0 4px var(--m-wash);
  transition: transform var(--t-fast) var(--ease);
}
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--m); transform: scale(1.04); }
.swatch:has(input:checked)::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.swatch[data-taken]:not(:has(input:checked))::before {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 3px var(--m);
}

/* emoji picker */
.emoji-picker { display: flex; flex-direction: column; gap: 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.emoji-opt {
  display: grid; place-items: center; height: 44px; border-radius: 12px; cursor: pointer;
  font-size: 1.45rem; background: var(--surface-2); transition: background var(--t-fast), transform var(--t-fast);
}
.emoji-opt:hover { background: var(--surface-sunk); }
.emoji-opt:has(input:checked) { background: var(--accent-wash); box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.05); }
.emoji-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.emoji-own { width: 110px; text-align: center; font-size: 1.3rem; }

/* member chips (tagging) */
.member-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick {
  min-height: 40px; padding: 4px 14px; border: 1.5px solid transparent; font-size: var(--fs-sm);
  background: var(--surface-2); color: var(--ink-2);
}
.chip-pick[aria-pressed="true"] { background: var(--m-wash); border-color: var(--m); color: var(--ink); }

/* avatars */
.avatar-lg { width: 56px; height: 56px; font-size: 1.75rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 2.3rem; }

/* wordmark variants */
.wordmark-sm { font-size: 1rem; }
.wordmark-xl { font-size: clamp(2.4rem, 1.8rem + 3vw, 3.2rem); justify-content: center; }
.wordmark-light { color: #FFF6F1; }
.wordmark-light .amp { color: #F3A9BB; }

/* ---------- sheets ---------- */
dialog.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0;
  border: 0; border-radius: 28px 28px 0 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(46, 30, 40, 0.25);
  display: flex; flex-direction: column; overflow: hidden;
  animation: sheet-up var(--t-med) var(--ease);
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(46, 30, 40, 0.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade var(--t-med) ease; }
dialog.sheet.closing { animation: sheet-down 180ms ease forwards; }
dialog.sheet.closing::backdrop { opacity: 0; transition: opacity 180ms; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 6px 22px; flex: none; }
.sheet-head h2 { font-size: var(--fs-xl); }
.sheet-x { border-color: transparent; color: var(--ink-3); }
.sheet-body { padding: 8px 22px 22px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.sheet-foot {
  display: flex; gap: 10px; justify-content: flex-end; flex: none;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface-2);
}
.sheet-foot .btn-primary, .sheet-foot .btn-accent { min-width: 128px; }
.sheet-foot .btn-ghost:first-child:not(:only-child) { margin-right: auto; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheet-down { to { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
/* phones: keep the whole sheet (Save button included) above the on-screen keyboard.
   --vv-h and --kb are set from window.visualViewport by js/ui/sheet.js while a sheet is open. */
@media (max-width: 639.98px) {
  dialog.sheet { max-height: calc(var(--vv-h, 100dvh) * 0.92); margin-bottom: var(--kb, 0px); }
}
/* lock the page behind an open sheet */
html.sheet-open, html.sheet-open body { overflow: hidden; overscroll-behavior: none; }

@media (min-width: 640px) {
  dialog.sheet { width: min(540px, calc(100vw - 48px)); margin: auto; border-radius: var(--r-xl); max-height: 86dvh; }
  dialog.sheet.sheet-wide { width: min(720px, calc(100vw - 48px)); }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 18px; }
  @keyframes sheet-up { from { transform: translateY(16px) scale(0.98); opacity: 0; } }
}

/* ---------- sub navigation (Family sections) ---------- */
.subnav {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: -6px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 6px;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-link {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 450;
}
.subnav-link[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: #FFF6F1; }
:root[data-theme="dark"] .subnav-link[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .subnav-link[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }

/* ---------- people ---------- */
.people-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 18px 18px 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  text-align: left; color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.person::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--m); }
.person:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.person-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.person-name { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: var(--fs-xl); font-weight: 500; line-height: 1.2; }
.person-meta { font-size: var(--fs-sm); color: var(--ink-2); }
.person-edit { font-size: var(--fs-xs); color: var(--ink-3); padding-top: 4px; }

/* family strip on Today */
.family-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.family-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px;
  border-radius: var(--r-pill); background: var(--m-wash); color: var(--ink); text-decoration: none; font-weight: 450;
}
.family-chip .avatar { width: 36px; height: 36px; font-size: 1.1rem; }

/* ---------- lists ---------- */
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.list-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 136px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
}
.list-card[data-color] { background: linear-gradient(180deg, var(--m-wash), var(--surface) 70%); }
.list-card .emoji { font-size: 1.6rem; line-height: 1; }
.list-card .t { font-weight: 500; line-height: 1.25; }
.bar { margin-top: auto; height: 6px; border-radius: 3px; background: var(--surface-sunk); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--m, var(--accent)); transition: width var(--t-med) var(--ease); }

.list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.list-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.done-note { margin: -4px 0 10px; color: var(--m-sage); font-weight: 450; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.check { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 52px; cursor: pointer; padding: 4px 2px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: none; width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line-strong);
  display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.check input:checked + .box { background: var(--m-sage); border-color: var(--m-sage); transform: scale(1.06); }
.check input:checked + .box::after { content: "✓"; color: #fff; font-size: 0.85rem; font-weight: 700; }
.check input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 3px; }
.checklist li[data-done] .check-text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.list-add { margin-top: 10px; }

.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.template {
  display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; cursor: pointer;
  background: var(--surface-2); border: 1.5px solid transparent;
}
.template .emoji { font-size: 1.35rem; }
.template .t { font-weight: 450; font-size: var(--fs-sm); line-height: 1.3; }
.template:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.template:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- notes ---------- */
.note-new { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.note-new .textarea { border: 0; padding: 4px 6px; min-height: 64px; box-shadow: none; background: transparent; }
.note-new-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notes-grid { columns: 2 220px; column-gap: 12px; }
.note {
  break-inside: avoid; margin-bottom: 12px; padding: 16px 16px 10px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.note[data-pinned] { background: var(--gold-wash); border-color: transparent; }
.note footer { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.note footer .hint { margin-right: auto; }

/* ---------- rows used by settings ---------- */
.row-link { text-decoration: none; color: var(--ink); border-radius: 12px; }
.row-link:hover { background: var(--surface-2); }
.row-actions { display: flex; gap: 6px; flex: none; }
.settings-card { padding: 22px; }
.settings-h { font-size: var(--fs-lg); margin-bottom: 4px; }
.settings-card .row { padding-left: 0; padding-right: 0; flex-wrap: wrap; }
.settings-card .row .segmented { flex: none; }
.callout { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); background: var(--blush); }
.about-foot { text-align: center; padding: 8px 12px 4px; display: grid; gap: 6px; color: var(--ink-2); font-size: var(--fs-sm); }
.side-settings { gap: 14px; min-height: 44px; padding: 0 14px; border-radius: 14px; margin: 0 -14px 10px; }

.nudge { display: flex; align-items: center; gap: 14px; background: var(--gold-wash); border-color: transparent; padding: 16px 18px; }
.nudge-ico { font-size: 1.6rem; }
@media (max-width: 480px) { .nudge { flex-wrap: wrap; } .nudge .btn { margin-left: 52px; } }

.more-live { border-color: transparent; background: linear-gradient(160deg, var(--blush), var(--surface) 75%); box-shadow: var(--shadow-1); }
.more-live:hover { box-shadow: var(--shadow-2); }

/* ---------- lock screen ---------- */
.lock {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px;
  color: #FFF6F1;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(200, 96, 122, 0.5), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(232, 185, 73, 0.16), transparent 60%),
    linear-gradient(170deg, #6E3756, #3A1D30);
  animation: fade 300ms ease;
}
.lock.unlocking { animation: lock-out 260ms ease forwards; }
@keyframes lock-out { to { opacity: 0; transform: scale(1.03); } }
.lock-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(320px, 100%); }
.lock-heart { font-size: 2rem; }
.lock-msg { min-height: 1.5em; color: #F0D6DE; text-align: center; }
.pin-dots { display: flex; gap: 16px; height: 18px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 246, 241, 0.6); transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.pin-dots span[data-on] { background: #FFF6F1; border-color: #FFF6F1; transform: scale(1.1); }
.pin-dots.shake { animation: shake 360ms ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; margin-top: 8px; }
.key {
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255, 246, 241, 0.18);
  background: rgba(255, 246, 241, 0.08); color: #FFF6F1;
  font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 1.8rem;
  transition: background var(--t-fast), transform var(--t-fast);
}
.key:active { background: rgba(255, 246, 241, 0.24); transform: scale(0.95); }
.lock-forgot { background: transparent; color: #F0D6DE; text-decoration: underline; text-underline-offset: 4px; }
.reset-count { font-size: 2.6rem; text-align: center; color: var(--accent-ink); min-height: 1.2em; }

/* ---------- onboarding ---------- */
.onb {
  min-height: 100dvh; display: grid; place-items: start center; padding: max(20px, 5vh) var(--gutter) 32px;
  background:
    radial-gradient(70% 45% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
    var(--bg);
}
.onb-leaving { animation: fade 220ms ease reverse forwards; }
.onb-card { width: min(560px, 100%); display: flex; flex-direction: column; gap: 16px; }
.onb-enter { animation: rise 460ms var(--ease) both; }
.onb-top { display: flex; justify-content: space-between; align-items: center; }
.onb-top .btn { border-color: transparent; color: var(--ink-2); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-sunk); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 500ms var(--ease); }
.onb-title { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem); font-weight: 400; line-height: 1.08; margin-top: 8px; }
.onb-title:focus { outline: none; }
.onb-lead { color: var(--ink-2); font-size: var(--fs-lg); }
.onb-body { margin-top: 4px; }
.onb-actions { display: flex; gap: 10px; margin-top: 12px; }
.onb-actions-stack { flex-direction: column; }

.onb-welcome { text-align: center; align-items: center; padding-top: 4vh; }
.onb-welcome .onb-lead { max-width: 36ch; }
.onb-mark {
  width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(160deg, #7B3C5C, #5B2F4A); box-shadow: var(--shadow-hero);
  color: #F7F2EC; font-size: 2.6rem; position: relative;
  animation: float 5s ease-in-out infinite;
}
.onb-mark::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); top: 14px; right: 14px; }
@keyframes float { 50% { transform: translateY(-5px) rotate(-2deg); } }
.onb-promises { text-align: left; margin: 10px 0 4px; width: 100%; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.onb-tick { background: var(--blush); font-size: 0.9rem; width: 32px; height: 32px; }
.onb-welcome .onb-actions { width: 100%; }

.onb-family { display: flex; flex-direction: column; gap: 10px; }
.onb-person {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--m);
}
.onb-add {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: transparent;
  color: var(--ink-2); font-weight: 450; text-align: left;
}
.onb-add:hover { border-color: var(--accent); color: var(--accent-ink); }
.onb-add-plus { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-ink); font-size: 1.4rem; flex: none; }
.onb-choice { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.onb-choice .segmented button { min-height: 46px; padding: 0 22px; font-size: var(--fs-md); }

.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.help-opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 92px; padding: 14px; border-radius: var(--r-md); text-align: left;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 450;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.help-opt .emoji { font-size: 1.6rem; }
.help-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; border: 2px solid var(--line-strong); color: transparent; }
.help-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.help-opt[aria-pressed="true"] .help-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.onb-done { text-align: center; align-items: center; padding-top: 6vh; }
.onb-burst { position: relative; height: 90px; width: 200px; }
.onb-burst span {
  position: absolute; left: 50%; top: 50%; font-size: 1.8rem;
  animation: burst 900ms var(--ease) both; animation-delay: calc(var(--i) * 70ms);
}
.onb-burst span:nth-child(1) { --x: -80px; --y: -20px; }
.onb-burst span:nth-child(2) { --x: -36px; --y: -40px; }
.onb-burst span:nth-child(3) { --x: 0px; --y: -6px; font-size: 2.6rem; }
.onb-burst span:nth-child(4) { --x: 40px; --y: -42px; }
.onb-burst span:nth-child(5) { --x: 82px; --y: -16px; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(0.2); opacity: 0; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 1; } }
.onb-done .onb-actions { width: 100%; }
.sheet-foot { flex-wrap: wrap; }
