/* Family Wallet — styled after Apple's iOS Human Interface Guidelines.
   System font, iOS system colours, inset grouped lists, sheets, segmented controls. */

:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --bg2: #ffffff;
  --bg3: #f2f2f7;
  --fill: rgba(120, 120, 128, 0.12);
  --fill2: rgba(120, 120, 128, 0.2);
  --label: #000000;
  --label2: rgba(60, 60, 67, 0.6);
  --label3: rgba(60, 60, 67, 0.3);
  --sep: rgba(60, 60, 67, 0.22);
  --blue: #007aff;
  --red: #ff3b30;
  --green: #34c759;
  --orange: #ff9500;
  --bar: rgba(249, 249, 249, 0.86);
  --seg-on: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg2: #1c1c1e;
    --bg3: #2c2c2e;
    --fill: rgba(120, 120, 128, 0.24);
    --fill2: rgba(120, 120, 128, 0.36);
    --label: #ffffff;
    --label2: rgba(235, 235, 245, 0.6);
    --label3: rgba(235, 235, 245, 0.3);
    --sep: rgba(84, 84, 88, 0.6);
    --blue: #0a84ff;
    --red: #ff453a;
    --green: #30d158;
    --orange: #ff9f0a;
    --bar: rgba(22, 22, 24, 0.82);
    --seg-on: #636366;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--label);
  font: 17px/1.3 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { display: block; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--label2); }

#app { max-width: 600px; margin: 0 auto; min-height: 100%; position: relative; }

/* ---------- Splash ---------- */
.splash { min-height: 100vh; display: grid; place-items: center; }
.splash .app-icon { width: 76px; height: 76px; border-radius: 18px; opacity: .9; }

/* ---------- Navigation bar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 6px) 16px 6px;
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  background: transparent; transition: background .2s, border-color .2s;
  border-bottom: 0.5px solid transparent;
}
.navbar.scrolled { background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-color: var(--sep); }
.navbar .small-title { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; font-weight: 600; font-size: 17px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.navbar.scrolled .small-title { opacity: 1; }
.nav-actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--blue); }
.icon-btn:active { background: var(--fill); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.large-title { padding: 0 16px 8px; }
.large-title h1 { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.01em; margin: 0; }
.large-title .subtitle { color: var(--label2); font-size: 15px; margin-top: 2px; }

/* ---------- Page ---------- */
.page { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 32px); }
.section { margin: 22px 0 0; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; padding: 0 32px 7px; font-size: 13px; color: var(--label2); text-transform: uppercase; letter-spacing: 0.02em; }
.section-header .link { color: var(--blue); text-transform: none; font-size: 15px; letter-spacing: 0; }
.section-title { padding: 0 20px 8px; font-size: 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.section-footer { padding: 7px 32px 0; font-size: 13px; color: var(--label2); }

/* ---------- Inset grouped list ---------- */
.group { background: var(--bg2); border-radius: var(--radius); margin: 0 16px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; position: relative; background: var(--bg2); width: 100%; text-align: left; }
.row + .row::before, .row-wrap + .row-wrap .row::before { content: ""; position: absolute; top: 0; right: 0; left: 64px; border-top: 0.5px solid var(--sep); }
.group.plain .row + .row::before { left: 16px; }
button.row:active, .row.tappable:active { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 13px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .value { color: var(--label2); font-size: 17px; white-space: nowrap; }
.row .amount { font-weight: 600; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .chev { color: var(--label3); width: 14px; height: 14px; }
.row.danger { color: var(--red); justify-content: center; }
.row.action { color: var(--blue); }
.row .pending-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; margin-left: 6px; vertical-align: middle; }

/* Swipe actions */
.row-wrap { position: relative; overflow: hidden; }
.row-wrap .row { transition: transform .25s cubic-bezier(.2,.8,.2,1); touch-action: pan-y; z-index: 1; }
.row-wrap.dragging .row { transition: none; }
.row-actions { position: absolute; inset: 0 0 0 auto; display: flex; }
.row-actions button { width: 76px; color: #fff; font-size: 13px; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.row-actions button svg { width: 20px; height: 20px; }
.row-actions .repeat { background: var(--blue); }
.row-actions .delete { background: var(--red); }

/* Category tile (Settings-style rounded square) */
.tile { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.tile svg { width: 20px; height: 20px; }
.tile.sm { width: 30px; height: 30px; border-radius: 7px; }
.tile.sm svg { width: 18px; height: 18px; }

/* ---------- Summary card ---------- */
.summary { margin: 4px 16px 0; background: var(--bg2); border-radius: 16px; padding: 16px; }
.month-switch { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 6px; }
.month-switch button { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; color: var(--blue); }
.month-switch button:disabled { color: var(--label3); }
.month-switch button:active:not(:disabled) { background: var(--fill); }
.month-switch button svg { width: 18px; height: 18px; }
.month-switch .label { font-weight: 600; font-size: 15px; }
.summary .caption { color: var(--label2); font-size: 13px; }
.summary .total { font-family: var(--font-round); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 2px; font-variant-numeric: tabular-nums; }
.summary .delta { font-size: 13px; color: var(--label2); }
.summary .delta b { font-weight: 600; }
.summary .delta .up { color: var(--red); }
.summary .delta .down { color: var(--green); }
.stackbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--fill); margin: 14px 0 10px; gap: 2px; }
.stackbar span { display: block; height: 100%; min-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--label2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.summary-link { display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--blue); font-size: 15px; margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--sep); }
.summary-link svg { width: 14px; height: 14px; }

/* ---------- Quick add cards ---------- */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.quick { scroll-snap-align: start; flex: 0 0 auto; width: 128px; background: var(--bg2); border-radius: 14px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.quick:active { transform: scale(0.97); }
.quick .q-desc { font-size: 15px; font-weight: 500; line-height: 1.2; height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quick .q-amt { font-size: 13px; color: var(--label2); font-variant-numeric: tabular-nums; }

/* ---------- Search + chips ---------- */
.search { margin: 14px 16px 0; display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 10px; height: 36px; padding: 0 8px; color: var(--label2); }
.search svg { width: 17px; height: 17px; flex-shrink: 0; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 17px; color: var(--label); min-width: 0; }
.search input::placeholder { color: var(--label2); }
.search .clear { color: var(--label3); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--bg2); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.chip.on { background: var(--label); color: var(--bg2); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }

.empty { text-align: center; color: var(--label2); padding: 48px 32px; }
.empty svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--label3); }
.empty .t { font-size: 17px; font-weight: 600; color: var(--label); margin-bottom: 4px; }

/* ---------- Banner ---------- */
.banner { margin: 8px 16px 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 149, 0, 0.14); color: var(--label); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.banner svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.banner .grow { flex: 1; }
.banner button { color: var(--blue); font-weight: 600; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
}
.tabbar .inner { max-width: 600px; margin: 0 auto; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--label2); padding-top: 4px; }
.tab svg { width: 25px; height: 25px; }
.tab.on { color: var(--blue); }
.tab.add .plus { width: 44px; height: 44px; border-radius: 22px; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35); }
.tab.add .plus svg { width: 24px; height: 24px; }
.tab.add:active .plus { transform: scale(0.94); }

/* ---------- Sheet ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity .3s; }
.backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; margin: 0 auto; max-width: 600px;
  height: calc(100% - var(--safe-t) - 12px); max-height: 900px;
  background: var(--bg); border-radius: 14px 14px 0 0; box-shadow: var(--shadow);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.25,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.sheet.show { transform: translateY(0); }
.sheet.dragging { transition: none; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill2); margin: 6px auto 0; flex-shrink: 0; }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 8px 8px; flex-shrink: 0; }
.sheet-head .t { font-weight: 600; font-size: 17px; text-align: center; }
.sheet-head .l { justify-self: start; }
.sheet-head .r { justify-self: end; }
.text-btn { color: var(--blue); font-size: 17px; padding: 8px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 2px; }
.text-btn.bold { font-weight: 600; }
.text-btn:disabled { color: var(--label3); }
.text-btn svg { width: 20px; height: 20px; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.stages { display: flex; width: 200%; height: 100%; transition: transform .35s cubic-bezier(.2,.9,.25,1); }
.stages.s2 { transform: translateX(-50%); }
.stage { width: 50%; height: 100%; display: flex; flex-direction: column; min-height: 0; }

/* Stage 1: amount + note + keypad */
.amount-display { text-align: center; padding: 10px 16px 4px; }
.amount-display .val { font-family: var(--font-round); font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amount-display .val .cur { color: var(--label2); font-weight: 600; margin-right: 2px; }
.amount-display .val.zero { color: var(--label3); }
.amount-display .val.fresh { color: var(--blue); }
.amount-display .val .caret { display: inline-block; width: 3px; height: 0.9em; background: var(--blue); vertical-align: -0.08em; margin-left: 2px; border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.note-field { margin: 8px 16px 0; background: var(--bg2); border-radius: 12px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 48px; }
.note-field svg { width: 20px; height: 20px; color: var(--label2); flex-shrink: 0; }
.note-field input { flex: 1; border: 0; outline: none; background: transparent; font-size: 17px; min-width: 0; }
.note-field input::placeholder { color: var(--label3); }
.suggest-wrap { flex: 1; min-height: 0; overflow-y: auto; padding-top: 10px; }
.suggest-head { padding: 0 32px 6px; font-size: 13px; color: var(--label2); text-transform: uppercase; letter-spacing: .02em; }
.stage1-foot { flex-shrink: 0; padding: 8px 12px calc(10px + var(--safe-b)); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { height: 52px; border-radius: 12px; background: var(--bg2); font-size: 26px; font-weight: 500; font-family: var(--font-round); display: grid; place-items: center; user-select: none; -webkit-user-select: none; }
.key:active { background: var(--fill2); }
.key svg { width: 26px; height: 26px; }
.typing .keypad, .typing .stage1-next { display: none; }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 50px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; }
.btn:active { opacity: .85; }
.btn:disabled { background: var(--fill); color: var(--label3); }
.btn.secondary { background: var(--bg2); color: var(--blue); }
.btn.destructive { background: var(--bg2); color: var(--red); }
.stage1-next { margin-top: 10px; }

/* Stage 2: details */
.recap { margin: 4px 16px 0; background: var(--bg2); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); text-align: left; }
.recap .amt { font-family: var(--font-round); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.recap .desc { color: var(--label2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recap .edit { color: var(--blue); font-size: 15px; margin-left: auto; flex-shrink: 0; }
.field-label { padding: 18px 32px 7px; font-size: 13px; color: var(--label2); text-transform: uppercase; letter-spacing: .02em; }
.cat-grid { margin: 0 16px; background: var(--bg2); border-radius: 12px; padding: 12px 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 0; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--label2); padding: 2px; text-align: center; line-height: 1.15; }
.cat .tile { width: 48px; height: 48px; border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.cat .tile svg { width: 26px; height: 26px; }
.cat.on { color: var(--label); font-weight: 600; }
.cat.on .tile { box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5.5px var(--blue); }
.cat:active .tile { transform: scale(0.92); }
.segmented { margin: 0 16px; display: flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.segmented button { flex: 1; height: 32px; border-radius: 7px; font-size: 15px; font-weight: 500; transition: background .2s; }
.segmented button.on { background: var(--seg-on); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04); font-weight: 600; }
.date-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.date-row::-webkit-scrollbar { display: none; }
.date-chip { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--bg2); font-size: 15px; display: flex; align-items: center; gap: 6px; position: relative; }
.date-chip.on { background: var(--blue); color: #fff; font-weight: 600; }
.date-chip svg { width: 17px; height: 17px; }
.date-chip input { position: absolute; inset: 0; opacity: 0; width: 100%; }
.stage2-foot { padding: 20px 16px calc(16px + var(--safe-b)); display: grid; gap: 10px; }
.stage2-scroll { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 8px; }

/* ---------- Insights ---------- */
.donut-wrap { position: relative; width: 220px; height: 220px; margin: 8px auto 4px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center .t { font-family: var(--font-round); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.donut-center .c { font-size: 13px; color: var(--label2); }
.bar-row { padding: 2px 0 0; }
.meter { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: 3px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px; }
.stat { background: var(--bg2); border-radius: 12px; padding: 12px; }
.stat .k { font-size: 12px; color: var(--label2); }
.stat .v { font-size: 19px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; font-family: var(--font-round); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend { background: var(--bg2); border-radius: 12px; margin: 0 16px; padding: 14px 12px 10px; }
.trend svg { width: 100%; height: auto; overflow: visible; }
.trend .lbl { font-size: 11px; fill: var(--label2); }
.trend .val { font-size: 10px; fill: var(--label2); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--safe-t) + 24px) 0 calc(var(--safe-b) + 24px); max-width: 440px; margin: 0 auto; }
.login .hero { text-align: center; margin-bottom: 28px; }
.login .hero img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.login h1 { font-size: 28px; font-weight: 700; margin: 16px 0 4px; }
.login .hero p { margin: 0; color: var(--label2); font-size: 15px; }
.login .group input { flex: 1; border: 0; outline: none; background: transparent; font-size: 17px; min-width: 0; height: 28px; }
.login .group .row > span { width: 92px; flex-shrink: 0; }
.login .group .row::before { left: 16px !important; }
.login .actions { margin: 20px 16px 0; }
.login .msg { margin: 14px 32px 0; font-size: 15px; text-align: center; min-height: 20px; }
.login .msg.error { color: var(--red); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); z-index: 60;
  background: rgba(30, 30, 32, 0.94); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 15px; display: flex; gap: 16px; align-items: center;
  opacity: 0; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); max-width: calc(100% - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast span { white-space: nowrap; }
.toast button { color: #64d2ff; font-weight: 600; white-space: nowrap; }

/* ---------- Alert dialog ---------- */
.alert-back { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.35); display: grid; place-items: center; padding: 24px; }
.alert { width: 270px; background: var(--bar); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: 14px; text-align: center; overflow: hidden; }
.alert .body { padding: 18px 16px 16px; }
.alert .at { font-weight: 600; font-size: 17px; }
.alert .am { font-size: 13px; margin-top: 4px; }
.alert .body input { width: 100%; margin-top: 10px; height: 32px; border-radius: 7px; border: 0.5px solid var(--sep); background: var(--bg2); padding: 0 8px; font-size: 14px; outline: none; }
.alert .btns { display: flex; border-top: 0.5px solid var(--sep); }
.alert .btns button { flex: 1; height: 44px; color: var(--blue); font-size: 17px; }
.alert .btns button + button { border-left: 0.5px solid var(--sep); }
.alert .btns .strong { font-weight: 600; }
.alert .btns .red { color: var(--red); }
.alert .btns.stack { flex-direction: column; }
.alert .btns.stack button + button { border-left: 0; border-top: 0.5px solid var(--sep); }

@media (min-width: 640px) {
  body { background: var(--bg); }
  .tabbar .inner { max-width: 600px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}
