/* KM Utilitario — estilo iOS nativo con paleta OXXO */
:root {
  color-scheme: light dark;
  --brand: #E4002B;          /* rojo OXXO: botones y fondos */
  --brand-press: #C40025;
  --tint: #D70029;           /* rojo para texto/íconos (contraste AA) */
  --tint-bg: rgba(228, 0, 43, .1);
  --yellow: #FFD100;
  --yellow-bg: rgba(255, 209, 0, .24);
  --yellow-text: #7A5A00;
  --green: #34C759;
  --green-text: #1F7A37;
  --green-bg: rgba(52, 199, 89, .15);

  --bg: #F2F2F7;             /* systemGroupedBackground */
  --card: #FFFFFF;
  --card-2: #F2F2F7;
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --label: #000000;
  --label-2: #5C5C61;
  --label-3: #8E8E93;
  --sep: rgba(60, 60, 67, .22);
  --bar: rgba(249, 249, 249, .82);
  --odo: #111111;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-round: ui-rounded, 'SF Pro Rounded', -apple-system, 'Inter', sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --tabbar-h: 50px;
  --nav-h: 44px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --tint: #FF3B5C;
    --tint-bg: rgba(255, 59, 92, .16);
    --yellow-bg: rgba(255, 209, 0, .16);
    --yellow-text: #FFD60A;
    --green-text: #30D158;
    --green-bg: rgba(48, 209, 88, .16);
    --bg: #000000;
    --card: #1C1C1E;
    --card-2: #2C2C2E;
    --fill: rgba(118, 118, 128, .24);
    --fill-2: rgba(118, 118, 128, .36);
    --label: #FFFFFF;
    --label-2: #AEAEB2;
    --label-3: #8E8E93;
    --sep: rgba(84, 84, 88, .65);
    --bar: rgba(22, 22, 24, .78);
    --odo: #000000;
    --shadow: none;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  min-height: 100dvh;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--tint); text-decoration: none; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Barra de navegación (título grande que colapsa) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 20;
  padding-top: var(--safe-t);
  background: transparent;
  transition: background .2s, box-shadow .2s;
}
.navbar.scrolled {
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 var(--sep);
}
.navbar-inner {
  height: var(--nav-h);
  max-width: 980px; margin: 0 auto; padding: 0 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.navbar-title {
  font-size: 17px; font-weight: 600; opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .2s; white-space: nowrap;
}
.navbar.scrolled .navbar-title { opacity: 1; transform: none; }
.navbar-left { justify-self: start; display: flex; }
.navbar-right { justify-self: end; display: flex; gap: 4px; }
.nav-btn {
  min-width: 44px; height: 44px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 0; background: none; color: var(--tint); font-size: 17px;
  transition: opacity .15s;
}
.nav-btn:active { opacity: .4; }
.nav-btn svg { width: 24px; height: 24px; }
.nav-btn.strong { font-weight: 600; }

.content {
  max-width: 680px; margin: 0 auto;
  padding: 0 0 calc(var(--tabbar-h) + var(--safe-b) + 32px);
  animation: fadeIn .28s var(--ease);
}
.content.wide { max-width: 980px; }
.eyebrow-date { padding: 0 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); }
.large-title { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .01em; padding: 0 20px; margin: 2px 0 14px; }

/* ---------- Secciones y listas agrupadas ---------- */
.section { margin: 0 16px 28px; }
.section-header { padding: 0 16px 7px; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); }
.section-footer { padding: 7px 16px 0; font-size: 13px; color: var(--label-2); }
.list { background: var(--card); border-radius: 12px; overflow: hidden; }
.row {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 10px 16px;
  width: 100%; border: 0; background: none; text-align: left;
}
.row + .row::before {
  content: ''; position: absolute; top: 0; right: 0; left: 16px;
  height: 1px; transform: scaleY(.5); transform-origin: top; background: var(--sep);
}
.list.icons .row + .row::before { left: 57px; }
.list.avatars .row + .row::before { left: 68px; }
.row.tap { cursor: pointer; transition: background .15s; }
.row.tap:active { background: var(--fill-2); }
@media (hover: hover) { .row.tap:hover { background: var(--fill); } }
.row-icon {
  width: 29px; height: 29px; border-radius: 7px; color: #fff;
  display: grid; place-items: center; background: var(--brand);
}
.row-icon svg { width: 18px; height: 18px; }
.row-icon.yellow { background: var(--yellow); color: #000; }
.row-icon.gray { background: #8E8E93; }
.row-icon.green { background: var(--green); }
.row-icon.blue { background: #007AFF; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 14px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.row-value { color: var(--label-2); text-align: right; white-space: nowrap; }
.row-end { text-align: right; flex: none; }
.chev { width: 14px; height: 14px; color: var(--label-3); stroke-width: 3; }
.row.center { justify-content: center; color: var(--tint); }
.row.destructive { color: var(--tint); justify-content: center; font-weight: 500; }

/* Campos dentro de filas (como Ajustes de iOS) */
.row label.row-title { flex: none; width: 118px; color: var(--label); }
.row .inline {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 17px; text-align: right; color: var(--label-2); padding: 0;
  min-height: 24px;
}
.row .inline:focus { color: var(--label); }
.row select.inline { appearance: none; -webkit-appearance: none; direction: rtl; cursor: pointer; }
.row .inline::placeholder { color: var(--label-3); }
.row .inline.upper { text-transform: uppercase; }
.row.stacked { flex-direction: column; align-items: stretch; gap: 4px; }
.row.stacked .inline { text-align: left; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; width: 100%;
  border: 0; border-radius: 14px;
  font-size: 17px; font-weight: 600;
  transition: opacity .15s, transform .15s var(--ease), background .15s;
}
.btn:active { transform: scale(.98); opacity: .85; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.btn-filled { background: var(--brand); color: #fff; }
.btn-tinted { background: var(--tint-bg); color: var(--tint); }
.btn-gray { background: var(--fill); color: var(--label); }
.btn-sm { min-height: 34px; width: auto; padding: 0 14px; border-radius: 999px; font-size: 15px; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -.5px 0 var(--sep);
  padding-bottom: var(--safe-b);
}
.tabbar-inner { max-width: 560px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tab-item {
  height: var(--tabbar-h); border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; font-weight: 500; color: var(--label-3); letter-spacing: .01em;
}
.tab-item svg { width: 25px; height: 25px; stroke-width: 1.9; }
.tab-item[aria-current="page"] { color: var(--tint); }
.tab-item[aria-current="page"] svg { stroke-width: 2.3; }
.tab-item:active { opacity: .6; }

/* ---------- Tarjeta de captura ---------- */
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.hero { padding: 18px 16px 16px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand) 0 70%, var(--yellow) 70%); }
.hero-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--fill); color: var(--label-2);
}
.pill svg { width: 14px; height: 14px; }
.pill.yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.pill.red { background: var(--tint-bg); color: var(--tint); }
.pill.green { background: var(--green-bg); color: var(--green-text); }
.hero-label { display: block; font-size: 22px; line-height: 28px; font-weight: 700; margin-bottom: 12px; }
.odo {
  display: flex; align-items: baseline;
  background: var(--odo); border-radius: 16px; padding: 4px 16px 4px 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.odo input {
  flex: 1; width: 100%; min-width: 0; border: 0; outline: none;
  background: transparent; color: var(--yellow); caret-color: var(--yellow);
  padding: 14px 12px 12px;
  font: 700 clamp(34px, 11vw, 48px)/1 var(--font-round);
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
  border-radius: 12px;
}
.odo input::placeholder { color: #48484A; }
.odo:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.odo span { color: #8E8E93; font-size: 17px; font-weight: 600; }
.hero-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--label-2); margin: 10px 4px 14px; }
.hero-meta b { color: var(--label); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile { background: var(--card-2); border-radius: 14px; padding: 12px; min-width: 0; }
.tile-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--label-2); font-weight: 500; }
.tile-head svg { width: 16px; height: 16px; color: var(--tint); }
.tile b { display: block; margin-top: 4px; font: 700 22px/1.2 var(--font-round); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile.warn b { color: var(--tint); }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--card-2); border-radius: 14px; padding: 10px 12px;
}
.note svg { width: 20px; height: 20px; color: var(--label-3); margin-top: 2px; }
.note textarea {
  flex: 1; border: 0; outline: none; background: none; resize: none;
  font-size: 17px; line-height: 1.35; min-height: 24px; max-height: 140px; padding: 0;
}
.note textarea::placeholder { color: var(--label-3); }
.field-error { color: var(--tint); font-size: 14px; font-weight: 500; margin: 8px 4px 0; display: flex; gap: 6px; align-items: center; }
.field-error svg { width: 16px; height: 16px; }

/* Botón principal anclado sobre la tab bar */
.dock {
  position: sticky; z-index: 10;
  bottom: calc(var(--tabbar-h) + var(--safe-b));
  padding: 14px 16px 12px; margin: -8px 0 20px;
  background: linear-gradient(to bottom, transparent, var(--bg) 40%);
}

/* Estado enviado */
.done { padding: 26px 20px 20px; text-align: center; }
.check-anim { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-bg); display: grid; place-items: center; }
.check-anim svg { width: 38px; height: 38px; color: var(--green-text); stroke-width: 3; }
.check-anim path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s var(--ease) forwards; }
.done .km-big { font: 700 44px/1.1 var(--font-round); font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.done .km-big small { font-size: 20px; color: var(--label-2); font-weight: 600; }
.done p { color: var(--label-2); font-size: 15px; margin-bottom: 18px; }

/* Placa */
.plate-mini {
  display: inline-flex; flex-direction: column; align-items: center;
  border: 2px solid var(--label); border-radius: 6px; padding: 1px 8px 2px; background: var(--card);
}
.plate-mini small { font-size: 7px; font-weight: 800; letter-spacing: .12em; color: var(--tint); line-height: 1.2; }
.plate-mini b { font: 800 15px/1.1 var(--font-round); letter-spacing: .05em; }

/* Avatar */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, #FF3355, var(--brand)); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 15px;
}
.avatar.lg { width: 76px; height: 76px; font-size: 28px; }
.avatar.muted { background: linear-gradient(180deg, #AEAEB2, #8E8E93); }
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px 16px 24px; }
.profile-head h2 { font-size: 22px; font-weight: 700; margin-top: 6px; }
.profile-head p { color: var(--label-2); font-size: 15px; }

/* Gráfica de barras (historial) */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 16px 16px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 36px; border-radius: 6px 6px 3px 3px; background: var(--fill-2); min-height: 4px; transform-origin: bottom; animation: grow .5s var(--ease) both; }
.bar.last i { background: var(--brand); }
.bar span { font-size: 11px; color: var(--label-2); font-weight: 500; }
.bar em { font-style: normal; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--label-2); }
.bar.last em { color: var(--tint); }
.bars-foot { padding: 10px 16px 14px; font-size: 13px; color: var(--label-2); }

/* Badges */
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--green-bg); color: var(--green-text); }
.badge.pending { background: var(--yellow-bg); color: var(--yellow-text); }
.badge.off { background: var(--fill); color: var(--label-2); }
.badge.admin { background: var(--tint-bg); color: var(--tint); }
.delta { font-size: 13px; font-weight: 600; color: var(--green-text); font-variant-numeric: tabular-nums; }

/* ---------- Admin ---------- */
.summary { padding: 16px; display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--fill); }
.ring .val { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px/1 var(--font-round); }
.summary h2 { font-size: 20px; font-weight: 700; }
.summary p { color: var(--label-2); font-size: 15px; margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.stat-grid .tile { background: var(--card); box-shadow: var(--shadow); }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--fill); border-radius: 9px; padding: 2px; margin-bottom: 10px;
}
.segmented button {
  border: 0; background: none; border-radius: 7px; height: 32px;
  font-size: 13px; font-weight: 500; color: var(--label);
  transition: background .2s, box-shadow .2s;
}
.segmented button[aria-pressed="true"] { background: var(--card); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark) { .segmented button[aria-pressed="true"] { background: #636366; } }
.search {
  display: flex; align-items: center; gap: 6px;
  background: var(--fill); border-radius: 10px; padding: 0 8px; height: 36px; margin-bottom: 12px;
}
.search svg { width: 17px; height: 17px; color: var(--label-3); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; }
.search input::placeholder { color: var(--label-3); }
.empty { padding: 28px 16px; text-align: center; color: var(--label-2); font-size: 15px; }
.empty svg { width: 36px; height: 36px; color: var(--label-3); display: block; margin: 0 auto 8px; }
@media (min-width: 900px) {
  .admin-cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0 8px; align-items: start; }
  .admin-cols > .sticky-col { position: sticky; top: calc(var(--nav-h) + var(--safe-t) + 8px); }
}

/* iOS switch */
.switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 51px; height: 31px; border-radius: 16px; background: var(--fill-2);
  position: relative; cursor: pointer; transition: background .25s;
}
.switch::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16);
  transition: transform .25s var(--ease);
}
.switch:checked { background: var(--green); }
.switch:checked::before { transform: translateX(20px); }

/* ---------- Hoja inferior (sheet) ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh;
  border-radius: 14px 14px 0 0; background: var(--bg); color: var(--label);
  padding-bottom: var(--safe-b);
  animation: sheetUp .4s var(--ease);
}
dialog.sheet::backdrop { background: rgba(0,0,0,.4); animation: fadeIn .3s; }
dialog.sheet.closing { animation: sheetDown .25s ease-in forwards; }
dialog.sheet.closing::backdrop { animation: fadeOut .25s forwards; }
.sheet-form { display: flex; flex-direction: column; max-height: 92dvh; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 6px auto 0; }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 8px; }
.sheet-head h2 { font-size: 17px; font-weight: 600; text-align: center; }
.sheet-head .nav-btn:first-child { justify-self: start; }
.sheet-head .nav-btn:last-child { justify-self: end; }
.sheet-body { overflow-y: auto; padding: 12px 0 24px; overscroll-behavior: contain; }
.sheet-body .section { margin-bottom: 24px; }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; width: 540px; border-radius: 16px; padding-bottom: 0; animation: popIn .3s var(--ease); }
  dialog.sheet.closing { animation: fadeOut .2s forwards; }
  .grabber { display: none; }
  .sheet-head { padding-top: 6px; }
}

/* ---------- Login ---------- */
.auth {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--safe-t) + 32px) 0 calc(var(--safe-b) + 24px);
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(228,0,43,.16), transparent 70%),
    var(--bg);
}
.auth-inner { width: 100%; max-width: 420px; margin: 0 auto; animation: fadeIn .4s var(--ease); }
.app-icon {
  width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 18px;
  background: var(--brand); position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff;
  font: 800 32px/1 var(--font-round); letter-spacing: -.02em;
  box-shadow: 0 10px 30px rgba(228,0,43,.35);
}
.app-icon::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 9px; background: var(--yellow); }
.app-icon span { transform: translateY(-6px); }
.auth h1 { font-size: 28px; font-weight: 700; text-align: center; }
.auth .lead { text-align: center; color: var(--label-2); margin: 6px 24px 28px; }
.auth .btn { margin-top: 4px; }
.auth .actions { padding: 0 16px; }
.alert {
  margin: 0 16px 16px; padding: 10px 14px; border-radius: 12px;
  background: var(--tint-bg); color: var(--tint); font-size: 15px; font-weight: 500;
  display: flex; gap: 8px; align-items: center;
  animation: shake .35s;
}
.alert svg { width: 18px; height: 18px; }

/* ---------- Toast (estilo HUD superior) ---------- */
#toast {
  position: fixed; z-index: 100; left: 50%; top: calc(var(--safe-t) + 10px);
  transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 999px;
  background: var(--bar); color: var(--label);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 30px rgba(0,0,0,.16), 0 0 0 .5px var(--sep);
  font-size: 15px; font-weight: 600;
  transition: transform .45s var(--ease), opacity .3s;
  pointer-events: none; opacity: 0;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast svg { width: 20px; height: 20px; color: var(--green-text); }
#toast.err svg { color: var(--tint); }

/* ---------- Carga ---------- */
.skeleton { background: var(--card); border-radius: 20px; height: 120px; margin: 0 16px 16px; position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--fill), transparent); animation: shimmer 1.2s infinite; }
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot .app-icon { animation: pulse 1.2s ease-in-out infinite; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

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