/* Save, at hand (views/save-bar.js, 18 November 2026): a small frosted bar at the foot of the screen while a Settings panel has
   changes not saved yet, "Unsaved changes" with a lilac point and the ink Save changes; it rises with the family's spring and
   leaves the same way. On a phone it sits above the bar at the foot. Still for a reader who asked for less motion. */
.svb { position: fixed; left: 50%; bottom: 24px; z-index: 320; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 18px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: color-mix(in srgb, var(--cl-surface) 90%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 18px 40px -18px rgba(14, 14, 18, .38), 0 2px 6px -3px rgba(14, 14, 18, .12); color: var(--cl-ink); opacity: 0; pointer-events: none; transform: translate(-50%, 24px); transition: opacity .22s var(--cl-out), transform .5s var(--cl-spring); }
.svb.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.svb__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cl-lilac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 20%, transparent); transition: background-color .2s var(--cl-out); }
.svb__w { font-size: 14.5px; white-space: nowrap; color: var(--cl-ink-2); }
.svb__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; background: var(--cl-ink); color: var(--cl-surface); font-size: 14.5px; white-space: nowrap; cursor: pointer; transition: background-color .18s var(--cl-out), opacity .18s var(--cl-out), scale .12s var(--cl-out); }
.svb__btn > i { font-size: 16px; }
.svb__btn:hover { background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); }
.svb__btn:active { scale: .97; }
.svb__btn:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }
.svb__btn:disabled { opacity: .5; cursor: default; }
.svb.is-busy .svb__dot { animation: svb-pulse 1s ease-in-out infinite; }
.svb.is-done .svb__dot { background: #2E9E6B; box-shadow: 0 0 0 4px rgba(46, 158, 107, .18); }
.svb.is-done .svb__btn { display: none; }
.svb.is-done { padding-right: 18px; }
@keyframes svb-pulse { 50% { opacity: .35; } }
@media (max-width: 1023.98px) {
  .svb { bottom: calc(92px + env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 420px; justify-content: space-between; }
  html.top-away .svb { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* 19 November 2026 (the night audit): while the panel's own Save is in view the bar steps aside softly, so one Save shows at a
   time (views/save-bar.js); on a phone and a tablet Back to top waits while the bar is up, it sat behind the bar's button; on a
   desktop the end of Settings gets room, so its last field scrolls clear of the bar */
.svb.is-near { opacity: 0; pointer-events: none; transform: translate(-50%, 24px); }
@media (max-width: 1023.98px) {
  html:has(.svb.is-on:not(.is-near)) #backTop { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (min-width: 1024px) {
  html:has(.svb.is-on) [data-viewpanel="settings"] { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .svb { transition: opacity .12s linear; transform: translate(-50%, 0); } .svb.is-near { transform: translate(-50%, 0); } .svb.is-busy .svb__dot { animation: none; } }
html.a11y-reduce-motion .svb, html.a11y-reduce-motion .svb.is-near { transition: opacity .12s linear; transform: translate(-50%, 0); }

/* the years in practice as a counter (settings-forms.js, 18 November 2026): a minus and a plus either side of the number, "years"
   after it, and one quiet line under it with the year practice began */
.sf-years { display: flex; align-items: center; gap: 8px; max-width: 280px; }
.sf-years__b { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--cl-line-2); border-radius: 50%; background: var(--cl-surface); color: var(--cl-ink-2); font-size: 17px; cursor: pointer; transition: border-color .16s var(--cl-out), color .16s var(--cl-out), background-color .16s var(--cl-out), scale .12s var(--cl-out), opacity .16s var(--cl-out); }
.sf-years__b:hover:not(:disabled) { border-color: var(--cl-line-3); color: var(--cl-ink); background: var(--cl-hover); }
.sf-years__b:active:not(:disabled) { scale: .94; }
.sf-years__b:disabled { opacity: .4; cursor: default; }
.sf-years__b:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }
.sf-years__mid { display: flex; flex: 1; align-items: baseline; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--cl-line-2); border-radius: 12px; background: var(--cl-surface); cursor: text; transition: border-color .16s var(--cl-out), box-shadow .2s var(--cl-out); }
.sf-years__mid:focus-within { border-color: var(--cl-lilac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 16%, transparent); }
.sf-years__mid #setYears.fld { width: 2.6ch; height: 42px; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: right; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--cl-ink); }
.sf-years__mid #setYears.fld::placeholder { color: var(--cl-ink-4); }
.sf-years__u { align-self: center; font-size: 15px; color: var(--cl-ink-3); }
.sf-years__since { margin: 8px 0 0 52px; font-size: 13.5px; color: var(--cl-ink-4); }
.sf-years__since[hidden] { display: none; }
