/* =========================================================
   ほぐしノート - Design System
   ナチュラル・やさしい（ベージュ × セージグリーン）
   ========================================================= */

:root {
  /* Colors */
  --bg: #f7f3ec;
  --bg-deep: #efe8dc;
  --surface: #fffdf9;
  --surface-2: #faf6ef;
  --line: #e6ddcf;
  --text: #3e3a35;
  --text-sub: #7a7268;
  --text-faint: #a89f93;
  --sage: #7f9c83;
  --sage-deep: #5f7d64;
  --sage-soft: #e3ebe2;
  --sage-mist: #f0f4ee;
  --terracotta: #c0705a;
  --terracotta-soft: #f6e4dd;
  --sand: #d9c6a5;
  --honey: #e7cf9f;

  /* Typography */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(80, 64, 40, 0.06), 0 2px 8px rgba(80, 64, 40, 0.05);
  --shadow-md: 0 4px 14px rgba(80, 64, 40, 0.08), 0 12px 32px rgba(80, 64, 40, 0.06);
  --shadow-fab: 0 6px 18px rgba(95, 125, 100, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;

  /* Layout */
  --nav-h: 68px;
  --header-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

svg {
  display: block;
}

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

[hidden] {
  display: none !important;
}

/* Avatar palette */
.avatar--c1 { background: linear-gradient(140deg, #d9a59a, #c0786a); }
.avatar--c2 { background: linear-gradient(140deg, #9fbfa4, #6f9175); }
.avatar--c3 { background: linear-gradient(140deg, #a9b8cf, #7b8daa); }
.avatar--c4 { background: linear-gradient(140deg, #e2c58f, #c49d58); }

/* ---------- App shell ---------- */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(127, 156, 131, 0.12), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(217, 198, 165, 0.25), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

@media (min-width: 481px) {
  .app {
    box-shadow: 0 0 0 1px var(--line), var(--shadow-md);
  }
}

/* ---------- Lock screen ---------- */
.lock {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 24px 40px;
  min-height: 100vh;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(127, 156, 131, 0.22), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(217, 198, 165, 0.35), transparent 70%),
    var(--bg);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.lock.is-hidden {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.lock__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: rise 700ms var(--ease) both;
}

.lock__logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, #93ae96, var(--sage-deep));
  box-shadow: var(--shadow-fab);
  color: #fff;
}

.lock__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.lock__hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
  text-align: center;
  min-height: 24px;
  transition: color var(--t-fast) var(--ease);
}

.lock__hint.is-error {
  color: var(--terracotta);
  font-weight: 600;
}

.dots {
  display: flex;
  gap: 16px;
  height: 16px;
}

.dots.is-error {
  animation: shake 400ms var(--ease);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.dot.is-filled {
  background: var(--sage);
  transform: scale(1.1);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 16px 28px;
  animation: rise 700ms 120ms var(--ease) both;
}

.key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 300;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.key:active {
  transform: scale(0.92);
  background: var(--sage-soft);
}

.key--ghost {
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  color: var(--text-sub);
}

.lock__note {
  margin: 0;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__title {
  flex: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-sub);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.icon-btn:hover {
  background: var(--sage-mist);
}

.icon-btn:active {
  transform: scale(0.9);
}

.icon-btn[hidden] {
  display: none;
}

/* ---------- View ---------- */
.view {
  padding: 8px 16px calc(var(--nav-h) + 96px);
  min-height: calc(100vh - var(--header-h));
}

.view.is-entering {
  animation: viewIn var(--t-mid) var(--ease) both;
}

.stack > * + * {
  margin-top: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 4px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.section-title small {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-faint);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--line);
}

.card--tap {
  display: block;
  width: 100%;
  text-align: left;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.card--tap:hover {
  box-shadow: var(--shadow-md);
}

.card--tap:active {
  transform: scale(0.985);
}

/* ---------- Search ---------- */
.search {
  position: relative;
  margin-top: 4px;
}

.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.search input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.search input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-soft);
}

/* ---------- Banner ---------- */
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, #f5ead3, #f8f1e2);
  border: 1px solid var(--honey);
  font-size: 14px;
}

.banner__icon {
  flex: none;
  color: #a7843f;
}

.banner__body {
  flex: 1;
  line-height: 1.5;
}

.banner__body strong {
  display: block;
  font-size: 14px;
}

.banner__body span {
  font-size: 12px;
  color: var(--text-sub);
}

.banner__action {
  flex: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: #8a6a2c;
  box-shadow: var(--shadow-sm);
}

/* ---------- Client list ---------- */
.client {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

.client__body {
  flex: 1;
  min-width: 0;
}

.client__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
}

.client__meta {
  font-size: 13px;
  color: var(--text-sub);
}

.chev {
  flex: none;
  color: var(--text-faint);
}

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
}

.badge--alert {
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.badge--sage {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.badge--sand {
  background: #f1e8d8;
  color: #8a7350;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  transition: all var(--t-fast) var(--ease);
}

.chip:active {
  transform: scale(0.95);
}

.chip.is-on {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.chip--static {
  padding: 3px 12px;
  font-size: 13px;
  background: var(--sage-mist);
  border-color: transparent;
}

/* Horizontal scrolling filter row */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px -16px 0;
  padding: 2px 16px 6px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-row .chip {
  flex: none;
}

/* ---------- Client detail ---------- */
.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 4px 4px;
}

.profile__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.profile__meta {
  font-size: 13px;
  color: var(--text-sub);
}

.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--terracotta-soft);
  border-left: 4px solid var(--terracotta);
  color: #7d3f2f;
}

.alert__icon {
  flex: none;
  color: var(--terracotta);
  margin-top: 2px;
}

.alert__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--terracotta);
}

.alert__text {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.handover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #eef3ec, #f7f9f4);
  border: 1px solid #d5e1d3;
}

.handover::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 156, 131, 0.18), transparent 70%);
}

.handover__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sage-deep);
}

.handover__date {
  margin-left: auto;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-sub);
}

.handover__text {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.handover__selfcare {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #c9d8c6;
  font-size: 14px;
  color: var(--text-sub);
}

.handover__selfcare strong {
  color: var(--sage-deep);
  font-weight: 600;
}

/* Definition list (counseling etc.) */
.dl {
  margin: 0;
}

.dl__row + .dl__row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dl dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-sub);
}

.dl dd {
  margin: 2px 0 0;
  white-space: pre-wrap;
}

.dl dd.is-empty {
  color: var(--text-faint);
}

/* Segmented tabs */
.tabs {
  display: flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-deep);
}

.tab {
  flex: 1;
  height: 38px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  transition: all var(--t-mid) var(--ease);
}

.tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.timeline__item {
  position: relative;
}

.timeline__item + .timeline__item {
  margin-top: 14px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--sage);
}

.session__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.session__date {
  font-weight: 600;
}

.session__menu {
  font-size: 13px;
  color: var(--text-sub);
}

.session__body {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-sub);
  white-space: pre-wrap;
}

.session .chips {
  margin-top: 10px;
  gap: 6px;
}

/* ---------- Muscle knowledge ---------- */
.muscle {
  display: flex;
  align-items: center;
  gap: 14px;
}

.muscle__mark {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sage-mist);
  color: var(--sage-deep);
}

.muscle__body {
  flex: 1;
  min-width: 0;
}

.muscle__name {
  font-size: 17px;
  font-weight: 600;
}

.muscle__reading {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
}

.muscle__summary {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.muscle-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #8eaa91, var(--sage-deep));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.muscle-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.08);
}

.muscle-hero__reading {
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.muscle-hero__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.muscle-hero .badge {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.info-block__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
}

.info-block__text {
  margin: 6px 0 0;
}

.notice {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-sub);
}

/* ---------- Forms ---------- */
.field + .field {
  margin-top: 18px;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.field__req {
  font-size: 11px;
  color: var(--terracotta);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-soft);
}

.textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.textarea--alert {
  border-color: #e3bfb3;
  background: #fffaf8;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a7268' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.segmented {
  display: flex;
  gap: 8px;
}

.segmented .chip {
  flex: 1;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, #8aa78e, var(--sage-deep));
  color: #fff;
  box-shadow: var(--shadow-fab);
}

.btn--secondary {
  background: var(--surface);
  color: var(--sage-deep);
  border: 1px solid #cfdccd;
}

.btn--danger {
  background: transparent;
  color: var(--terracotta);
}

.btn--ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px dashed var(--line);
}

.btn--block {
  width: 100%;
}

.form-actions {
  position: sticky;
  bottom: calc(var(--nav-h) + 12px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 24px;
  padding: 12px;
  border-radius: var(--r-pill);
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  z-index: 25;
  right: max(20px, calc(50% - 240px + 20px));
  bottom: calc(var(--nav-h) + 20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #8aa78e, var(--sage-deep));
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-fab);
  animation: popIn 420ms 120ms var(--ease) both;
  transition: transform var(--t-fast) var(--ease);
}

.fab:active {
  transform: scale(0.94);
}

.fab[hidden] {
  display: none;
}

/* ---------- Bottom nav ---------- */
.nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  display: flex;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  transition: color var(--t-fast) var(--ease);
}

.nav__icon {
  width: 52px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  transition: background var(--t-mid) var(--ease);
}

.nav__item.is-active {
  color: var(--sage-deep);
}

.nav__item.is-active .nav__icon {
  background: var(--sage-soft);
}

/* ---------- Settings ---------- */
.list {
  padding: 4px 0;
}

.list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  transition: background var(--t-fast) var(--ease);
}

.list__item + .list__item {
  border-top: 1px solid var(--line);
}

.list__item:active {
  background: var(--surface-2);
}

.list__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sage-mist);
  color: var(--sage-deep);
}

.list__icon--alert {
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.list__body {
  flex: 1;
  min-width: 0;
}

.list__title {
  font-weight: 600;
}

.list__sub {
  font-size: 12px;
  color: var(--text-sub);
}

.list__value {
  font-size: 14px;
  color: var(--text-sub);
}

.backup-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.backup-ring {
  flex: none;
  position: relative;
  width: 64px;
  height: 64px;
}

.backup-ring__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #a7843f;
}

.privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-sub);
}

.privacy svg {
  flex: none;
  color: var(--sage);
  margin-top: 2px;
}

/* ---------- Empty ---------- */
.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--nav-h) + 24px);
  transform: translate(-50%, 20px);
  max-width: calc(100% - 48px);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: rgba(62, 58, 53, 0.92);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Animations ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

.stagger > * {
  animation: rise 480ms var(--ease) both;
}

.stagger > *:nth-child(2) { animation-delay: 40ms; }
.stagger > *:nth-child(3) { animation-delay: 80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; }
.stagger > *:nth-child(5) { animation-delay: 160ms; }
.stagger > *:nth-child(6) { animation-delay: 200ms; }
.stagger > *:nth-child(7) { animation-delay: 240ms; }
.stagger > *:nth-child(n + 8) { animation-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
