:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --card: #ffffff;
  --ink: #0e1111;
  --muted: #767673;
  --faint: #aaa9a3;
  --line: #dcd9d1;
  --accent: #2e9690;
  --accent-dark: #1e6d69;
  --accent-pale: #dcebe7;
  --orange: #a99f7f;
  --orange-pale: #e9e2d4;
  --rose: #d15c55;
  --rose-pale: #f0d8d2;
  --blue-pale: #d8e3ed;
  --shadow: 0 18px 50px rgba(20, 35, 33, 0.035);
  --display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --editorial: Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.01em;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .34;
  background-image: linear-gradient(to right, rgba(14, 17, 17, .035) 1px, transparent 1px), linear-gradient(to bottom, rgba(14, 17, 17, .025) 1px, transparent 1px);
  background-size: 25% 100%, 100% 20rem;
  content: "";
  pointer-events: none;
}

button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.is-hidden { display: none !important; }

.login-screen {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-mark, .brand-dot {
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 750;
  letter-spacing: -0.08em;
}

.login-mark { width: 44px; height: 44px; margin-bottom: 28px; font-size: 20px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(42px, 12vw, 72px);
  font-weight: 650;
  letter-spacing: -0.095em;
  line-height: 0.9;
}

h1 em { color: var(--accent-dark); font-family: var(--editorial); font-style: italic; font-weight: 400; letter-spacing: -0.06em; }

.login-copy {
  max-width: 300px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.login-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 233, 229, 0.9);
  border: 1px solid rgba(14, 17, 17, .12);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.user-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--paper);
  border-radius: 2px;
}

.user-choice {
  padding: 11px 12px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
}

.user-choice.is-selected { color: var(--ink); background: white; box-shadow: 0 3px 10px rgba(20, 35, 33, 0.05); }

.field-label { display: block; margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 650; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: 0;
  color: var(--ink);
  background: var(--paper);
}

input { height: 48px; padding: 0 14px; }
textarea { min-height: 96px; padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 123, 115, 0.12); }

.primary-button, .secondary-button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button { width: 100%; margin-top: 14px; color: white; background: var(--ink); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.secondary-button { color: var(--accent-dark); background: var(--accent-pale); }
.login-note { margin: 14px 0 0; color: var(--faint); font-size: 11px; text-align: center; }

.app-shell { display: flex; min-height: 100vh; }
.side-rail { display: none; }
.main-content { width: 100%; padding: 24px 18px 100px; }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.topbar h2 { max-width: 700px; margin: 0; font-family: var(--display); font-size: clamp(30px, 7vw, 52px); font-weight: 600; letter-spacing: -0.095em; line-height: .92; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.user-chip { padding: 8px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: rgba(255,255,255,.62); font-size: 16px; transform: rotate(90deg); }

#view-container { max-width: 1120px; margin: 0 auto; }
.view-grid { display: grid; gap: 14px; }
.two-column { display: grid; gap: 14px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.78); box-shadow: none; }
.card.soft { background: var(--accent-pale); border-color: transparent; }
.card.warm { background: var(--orange-pale); border-color: transparent; }
.card.rose { background: var(--rose-pale); border-color: transparent; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-title { margin: 0; font-size: 14px; font-weight: 750; letter-spacing: -0.02em; }
.card-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.tiny-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.hero-card { position: relative; overflow: hidden; padding: 24px; background: var(--ink); color: white; }
.hero-card::after { position: absolute; width: 220px; height: 220px; right: -90px; bottom: -120px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.018); content: ""; }
.hero-card .tiny-label, .hero-card .card-subtitle { color: rgba(255,255,255,.58); }
.hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.weight-value { margin: 3px 0 0; font-size: clamp(54px, 15vw, 84px); font-weight: 650; letter-spacing: -0.095em; line-height: .92; }
.weight-value span { margin-left: 5px; color: rgba(255,255,255,.52); font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.hero-status { position: relative; z-index: 1; padding: 9px 11px; border-radius: 99px; color: #d8f5e9; background: rgba(117, 203, 168, .18); font-size: 11px; font-weight: 750; white-space: nowrap; }
.hero-meta { display: flex; gap: 16px; margin-top: 24px; }
.hero-meta strong { display: block; margin-top: 4px; font-size: 16px; }
.hero-meta .tiny-label { font-size: 9px; }

.progress-track { height: 8px; margin-top: 22px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.14); }
.progress-fill { height: 100%; min-width: 6px; border-radius: inherit; background: #72cba8; }
.progress-caption { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: rgba(255,255,255,.55); font-size: 11px; }

.chart-card { min-height: 250px; border-top: 2px solid var(--ink); }
.chart-wrap { position: relative; height: 170px; margin: 8px -4px -6px; }
.chart-wrap canvas { width: 100%; height: 100%; }
.chart-empty { display: grid; height: 100%; place-items: center; color: var(--muted); font-size: 13px; }

.date-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.date-control { display: flex; align-items: center; gap: 6px; }
.date-control button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: white; }
.date-control input { width: 132px; height: 34px; padding: 0 9px; border-radius: 2px; background: white; font-size: 12px; }
.date-name { color: var(--muted); font-size: 12px; font-weight: 650; }

.entry-form { display: grid; gap: 18px; }
.form-section { padding-top: 18px; border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section-title { margin: 0 0 11px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.weight-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 42px; }
.input-suffix { position: absolute; top: 50%; right: 13px; color: var(--muted); font-size: 12px; transform: translateY(-50%); }
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-mark { flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #cbd0ce; border-radius: 50%; background: white; }
.toggle:has(input:checked) { color: var(--accent-dark); border-color: #abd5cc; background: var(--accent-pale); }
.toggle:has(input:checked) .toggle-mark { display: grid; place-items: center; border-color: var(--accent); color: white; background: var(--accent); font-size: 12px; }
.toggle:has(input:checked) .toggle-mark::after { content: "✓"; }
.save-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.save-row .primary-button { width: auto; min-width: 150px; margin: 0; }
.save-status { color: var(--muted); font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric { padding: 15px; border: 1px solid var(--line); border-radius: 2px; background: white; }
.metric-value { margin: 5px 0 0; font-size: 25px; font-weight: 700; letter-spacing: -0.07em; }
.metric-note { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.metric.accent { background: var(--accent-pale); border-color: transparent; }
.metric.warm { background: var(--orange-pale); border-color: transparent; }
.metric.rose { background: var(--rose-pale); border-color: transparent; }

.habit-list { display: grid; gap: 13px; }
.habit-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.habit-row-label { color: var(--muted); font-size: 12px; }
.habit-bar { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: var(--paper); }
.habit-bar-fill { height: 100%; border-radius: inherit; background: var(--accent); }
.habit-count { color: var(--ink); font-size: 12px; font-weight: 700; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 10px 0 2px; }
.section-heading h3 { margin: 0; font-family: var(--editorial); font-size: 20px; font-style: italic; font-weight: 400; letter-spacing: -0.04em; }
.section-heading span { color: var(--muted); font-size: 11px; }
.week-list, .history-list { display: grid; gap: 8px; }
.week-row, .history-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.week-row:last-child, .history-row:last-child { border-bottom: 0; }
.week-main strong, .history-main strong { display: block; font-size: 13px; }
.week-main span, .history-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.week-side, .history-side { text-align: right; }
.week-side strong, .history-side strong { display: block; font-size: 14px; }
.week-side span, .history-side span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.status-pill { display: inline-block; padding: 5px 8px; border-radius: 99px; font-size: 10px; font-weight: 750; }
.status-pill.ahead, .status-pill.on-track { color: var(--accent-dark); background: var(--accent-pale); }
.status-pill.slightly-behind { color: #8a5b2e; background: var(--orange-pale); }
.status-pill.behind { color: #8c4d49; background: var(--rose-pale); }
.status-pill.add-weigh-in { color: var(--muted); background: var(--paper); }

.settings-form { display: grid; gap: 16px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings-grid .field-full { grid-column: 1 / -1; }
.settings-form label { color: var(--muted); font-size: 11px; font-weight: 700; }
.settings-form input { margin-top: 7px; background: var(--paper); }
.rules-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; counter-reset: rules; }
.rules-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(20, 35, 33, .08); color: var(--muted); font-size: 12px; line-height: 1.45; }
.rules-list li::before { counter-increment: rules; content: counter(rules, decimal-leading-zero); color: var(--accent); font-size: 10px; font-weight: 800; }
.source-note { color: var(--muted); font-size: 11px; line-height: 1.5; }

.bottom-nav { position: fixed; z-index: 10; right: 12px; bottom: 12px; left: 12px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid rgba(220, 217, 209, .9); border-radius: 4px; background: rgba(255,255,255,.92); box-shadow: 0 12px 32px rgba(20,35,33,.08); backdrop-filter: blur(18px); }
.nav-button { display: grid; place-items: center; gap: 3px; padding: 7px 4px; border: 0; border-radius: 14px; color: var(--faint); background: transparent; font-size: 18px; }
.nav-button small { font-size: 9px; font-weight: 750; letter-spacing: .02em; }
.nav-button.is-active { color: var(--accent-dark); background: var(--accent-pale); }
.toast { position: fixed; z-index: 20; top: 18px; left: 50%; max-width: calc(100% - 36px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, -12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 760px) {
  .login-screen { width: min(1160px, calc(100% - 96px)); max-width: none; padding: 48px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .65fr); column-gap: 9vw; align-content: center; }
  .login-mark { grid-column: 1; grid-row: 1; }
  .login-screen > .eyebrow { grid-column: 1; grid-row: 2; }
  .login-screen > h1 { grid-column: 1; grid-row: 3; max-width: 720px; }
  .login-copy { grid-column: 1; grid-row: 4; }
  .login-card { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .main-content { padding: 42px 42px 54px; }
  .side-rail { display: flex; flex: 0 0 206px; flex-direction: column; min-height: 100vh; padding: 42px 22px 28px; border-right: 1px solid var(--line); background: transparent; }
  .brand-lockup { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; letter-spacing: .12em; }
  .brand-dot { width: 28px; height: 28px; font-size: 13px; }
  .side-caption { margin: 8px 0 48px 37px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
  .desktop-nav { display: grid; gap: 8px; }
  .desktop-nav .nav-button { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 11px 12px; border-radius: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .desktop-nav .nav-button.is-active { color: var(--ink); background: transparent; }
  .desktop-nav .nav-button.is-active::after { position: absolute; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
  .desktop-nav .nav-button small { display: none; }
  .side-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; color: var(--muted); font-size: 11px; }
  .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fbd9e; box-shadow: 0 0 0 4px #dfeee8; }
  .bottom-nav { display: none; }
  .main-content::after { position: fixed; z-index: 4; top: 42%; right: 0; display: grid; width: 42px; height: 148px; place-items: center; color: white; background: var(--rose); content: "THE LINE"; font-size: 9px; font-weight: 800; letter-spacing: .16em; writing-mode: vertical-rl; transform: rotate(180deg); }
  .view-grid { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); align-items: start; }
  .view-grid > .view-grid { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); align-items: start; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .login-screen { max-width: 540px; }
}

@media (min-width: 1100px) {
  .main-content { padding-left: 74px; padding-right: 74px; }
  .view-grid { grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
}

/* Interaction layer: subtle motion on every meaningful action. */
button, input, textarea, .card, .toggle, .metric, .history-row, .week-row, .user-choice, .nav-button, .date-control button {
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

button:active, .toggle:active, .history-row:active { transform: translateY(1px) scale(.985); }
button:disabled { cursor: wait; }

.login-screen.login-reveal > * { animation: editorialIn 700ms cubic-bezier(.2,.75,.25,1) both; }
.login-screen.login-reveal > .login-mark { animation-delay: 40ms; }
.login-screen.login-reveal > .eyebrow { animation-delay: 120ms; }
.login-screen.login-reveal > h1 { animation-delay: 180ms; }
.login-screen.login-reveal > .login-copy { animation-delay: 250ms; }
.login-screen.login-reveal > .login-card { animation-delay: 320ms; }

.user-choice:hover { color: var(--ink); }
.user-choice:active { transform: scale(.97); }
.login-card:hover { border-color: rgba(14, 17, 17, .2); box-shadow: 0 24px 65px rgba(20, 35, 33, .08); }

.primary-button, .secondary-button { position: relative; overflow: hidden; }
.primary-button::before { position: absolute; top: -30%; left: -18%; width: 24%; height: 160%; background: rgba(255,255,255,.18); content: ""; transform: translateX(-220%) skewX(-18deg); transition: transform 500ms cubic-bezier(.2,.75,.25,1); }
.primary-button:hover::before { transform: translateX(600%) skewX(-18deg); }
.primary-button:hover, .secondary-button:hover { box-shadow: 0 10px 22px rgba(20, 35, 33, .12); }
.primary-button:active, .secondary-button:active { transform: translateY(1px) scale(.985); box-shadow: none; }
.primary-button span[aria-hidden] { display: inline-block; transition: transform 180ms cubic-bezier(.2,.7,.2,1); }
.primary-button:hover span[aria-hidden]:not(.button-spinner) { transform: translate(3px, -3px); }
.button-spinner { display: inline-block; width: 13px; height: 13px; margin-left: 6px; vertical-align: -2px; border: 1.5px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin 700ms linear infinite; }
.primary-button.is-loading { opacity: .72; }

.nav-button { transition-duration: 220ms; }
.nav-button:hover { color: var(--accent-dark); background: rgba(220, 235, 231, .58); }
.nav-button span:first-child { display: inline-block; transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
.nav-button:hover span:first-child { transform: translateX(2px) rotate(-8deg); }
.desktop-nav .nav-button.is-active::after { animation: dotPulse 2.4s ease-in-out infinite; }

.icon-button:hover, .date-control button:hover { color: var(--ink); border-color: var(--accent); background: white; transform: translateY(-2px); }
.icon-button:active, .date-control button:active { transform: translateY(1px) scale(.94); }

#view-container.view-enter .card { animation: cardIn 620ms cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--card-order, 0) * 70ms); }
#view-container.view-enter .hero-card { animation-name: heroIn; }
#view-container.view-enter .chart-card canvas { animation: chartIn 850ms cubic-bezier(.2,.75,.25,1) 180ms both; }
#view-container.view-enter .progress-fill, #view-container.view-enter .habit-bar-fill { transform-origin: left center; animation: fillIn 900ms cubic-bezier(.2,.75,.25,1) both; }
#view-container.view-enter .status-pill, #view-container.view-enter .hero-status { animation: statusIn 500ms cubic-bezier(.2,.8,.2,1) 260ms both; }

.card:hover { border-color: rgba(14, 17, 17, .22); }
.hero-card:hover { transform: translateY(-2px); }
.metric:hover { transform: translateY(-3px); border-color: rgba(46, 150, 144, .3); box-shadow: 0 10px 22px rgba(20, 35, 33, .07); }
.history-row:hover, .week-row:hover { color: var(--accent-dark); transform: translateX(5px); }
.history-row:hover .history-side strong, .week-row:hover .week-side strong { color: var(--ink); }

input:hover, textarea:hover { border-color: #bfc5bf; }
.toggle:hover { color: var(--ink); border-color: rgba(46, 150, 144, .48); background: rgba(220, 235, 231, .48); transform: translateY(-1px); }
.toggle-mark { transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 180ms ease, border-color 180ms ease; }
.toggle:has(input:checked) .toggle-mark { animation: checkPop 360ms cubic-bezier(.2,.8,.2,1); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.progress-fill, .habit-bar-fill { transition: width 650ms cubic-bezier(.2,.75,.25,1); }
.toast.is-visible { animation: toastIn 320ms cubic-bezier(.2,.75,.25,1); }
.toast.is-error { color: var(--rose); border-color: rgba(209,92,85,.38); }

@keyframes editorialIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chartIn {
  from { opacity: 0; transform: translateY(10px) scaleY(.92); transform-origin: bottom; }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes fillIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes statusIn {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes checkPop {
  0% { transform: scale(.7); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,150,144,0); }
  50% { box-shadow: 0 0 0 5px rgba(46,150,144,.16); }
}

@keyframes toastIn {
  0% { opacity: 0; transform: translate(-50%, -12px) scale(.96); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
