:root {
  color-scheme: light dark;
  --orange: #ff4f00;
  --orange-strong: #c43b00;
  --orange-action: #c43b00;
  --on-orange: #fff;
  --orange-soft: #fff0e8;
  --blue: #1f3c88;
  --blue-strong: #14295f;
  --blue-fill: #14295f;
  --on-teal: #fff;
  --blue-soft: #e9eefc;
  --sun-soft: #fffefd;
  --page: #f4f6fb;
  --surface: #fffefd;
  --surface-2: #f8f9fc;
  --surface-blue: #edf2ff;
  --text: #152040;
  --muted: #59627a;
  --line: #dce1ec;
  --success: #16794b;
  --danger: #b42318;
  --shadow: 0 14px 34px rgb(31 60 136 / 0.11);
  --card-shadow: 0 8px 24px rgb(31 60 136 / 0.09);
  --cover-overlay: linear-gradient(90deg, rgb(9 27 70 / 0.9) 0%, rgb(9 27 70 / 0.58) 48%, rgb(9 27 70 / 0.08) 100%);
  --app-font: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 16px;
  --nav-height: 76px;
  --header-height: 64px;
  --max-width: 1100px;
  font-family: var(--app-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --orange-soft: #402013;
    --orange-strong: #ff9463;
    --orange-action: #ff6a2a;
    --on-orange: #07183a;
    --blue: #91adff;
    --blue-strong: #cbd7ff;
    --blue-fill: #28478f;
    --blue-soft: #202c52;
    --sun-soft: #171e2d;
    --page: #101522;
    --surface: #171e2d;
    --surface-2: #1d2536;
    --surface-blue: #202c52;
    --text: #f3f5fb;
    --muted: #b7bed0;
    --line: #364057;
    --success: #70d9a7;
    --danger: #ff9c96;
    --shadow: 0 14px 34px rgb(0 0 0 / 0.28);
    --card-shadow: 0 8px 24px rgb(0 0 0 / 0.22);
  }
}

:root[data-theme="lila"] {
  --orange: #ff5d73;
  --orange-strong: #ae2843;
  --orange-action: #ffd35c;
  --on-orange: #3b2a00;
  --orange-soft: #fff0f3;
  --blue: #6947d9;
  --blue-strong: #5734bd;
  --blue-fill: linear-gradient(135deg, #9478ff 0%, #6d4aff 100%);
  --blue-soft: #eee9ff;
  --sun-soft: #fff4c7;
  --page: #fff8fc;
  --surface: #fff;
  --surface-2: #faf6ff;
  --surface-blue: #f0ebff;
  --text: #342d40;
  --muted: #6d6576;
  --line: #e8deec;
  --shadow: 0 14px 34px rgb(105 71 217 / 0.13);
  --card-shadow: 0 8px 24px rgb(105 71 217 / 0.11);
  --cover-overlay: linear-gradient(90deg, rgb(54 34 112 / 0.86) 0%, rgb(79 52 151 / 0.48) 50%, rgb(255 93 115 / 0.08) 100%);
}

:root[data-theme="cielo"] {
  --orange: #ff6b6b;
  --orange-strong: #b72a3a;
  --orange-action: #ffbd2e;
  --on-orange: #3b2900;
  --orange-soft: #fff0ee;
  --blue: #147da8;
  --blue-strong: #0b6287;
  --blue-fill: linear-gradient(135deg, #82ddff 0%, #42bfed 100%);
  --on-teal: #143b4c;
  --blue-soft: #e3f6ff;
  --sun-soft: #fff2bd;
  --page: #f7fcff;
  --surface: #fff;
  --surface-2: #f1faff;
  --surface-blue: #e8f7ff;
  --text: #263b47;
  --muted: #5c6e78;
  --line: #d9ebf3;
  --shadow: 0 14px 34px rgb(20 125 168 / 0.13);
  --card-shadow: 0 8px 24px rgb(20 125 168 / 0.11);
  --cover-overlay: linear-gradient(90deg, rgb(10 79 107 / 0.84) 0%, rgb(20 125 168 / 0.46) 50%, rgb(255 107 107 / 0.08) 100%);
}

:root[data-theme="tulipan"] {
  --orange: #78c850;
  --orange-strong: #477c28;
  --orange-action: #ffd166;
  --on-orange: #392800;
  --orange-soft: #eff9e8;
  --blue: #c7357c;
  --blue-strong: #9e215f;
  --blue-fill: linear-gradient(135deg, #ff94ca 0%, #ef63aa 100%);
  --on-teal: #4a1431;
  --blue-soft: #ffe5f2;
  --sun-soft: #fff0b8;
  --page: #fff9f1;
  --surface: #fff;
  --surface-2: #fff7fb;
  --surface-blue: #ffeaf5;
  --text: #472f3c;
  --muted: #765f6b;
  --line: #f0dce5;
  --shadow: 0 14px 34px rgb(199 53 124 / 0.13);
  --card-shadow: 0 8px 24px rgb(199 53 124 / 0.11);
  --cover-overlay: linear-gradient(90deg, rgb(112 21 65 / 0.84) 0%, rgb(199 53 124 / 0.42) 50%, rgb(120 200 80 / 0.08) 100%);
}

:root[data-font="clean"] {
  --app-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

:root[data-font="editorial"] {
  --app-font: Georgia, "Times New Roman", serif;
}

:root[data-theme="cielo"] .next-stop,
:root[data-theme="cielo"] .next-stop h2,
:root[data-theme="cielo"] .next-stop p,
:root[data-theme="cielo"] .expense-summary,
:root[data-theme="cielo"] .expense-metric strong,
:root[data-theme="tulipan"] .next-stop,
:root[data-theme="tulipan"] .next-stop h2,
:root[data-theme="tulipan"] .next-stop p,
:root[data-theme="tulipan"] .expense-summary,
:root[data-theme="tulipan"] .expense-metric strong {
  color: var(--on-teal);
}

:root[data-theme="cielo"] .next-label,
:root[data-theme="cielo"] .expense-metric span,
:root[data-theme="tulipan"] .next-label,
:root[data-theme="tulipan"] .expense-metric span {
  color: color-mix(in srgb, var(--on-teal), transparent 15%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-authenticating {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    linear-gradient(145deg, rgb(31 60 136 / 0.9), rgb(12 32 82 / 0.84)),
    url("assets/viaje-amigos-cover.webp") center / cover;
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(100%, 430px);
  padding: 32px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface), transparent 3%);
  box-shadow: 0 28px 80px rgb(8 17 45 / 0.4);
  text-align: center;
}

.auth-mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 20px;
  background: var(--blue-fill);
  color: var(--on-teal);
  font-size: 30px;
  font-weight: 850;
  transform: rotate(-4deg);
}

.auth-kicker {
  margin-bottom: 10px;
  color: var(--orange-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 8vw, 42px);
}

.auth-card > p:not(.auth-kicker, .auth-help) {
  color: var(--muted);
}

.auth-loading,
.auth-error,
.auth-help {
  align-items: center;
  gap: 10px;
}

.auth-loading {
  display: flex;
  justify-content: center;
  min-height: 54px;
  margin: 18px 0;
  color: var(--blue-strong);
  font-weight: 750;
}

.auth-loading[hidden],
.auth-error[hidden] {
  display: none;
}

.auth-error {
  display: flex;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--danger), transparent 60%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--danger), transparent 92%);
  color: var(--danger);
  text-align: left;
}

.auth-error > i {
  font-size: 22px;
}

.auth-error p,
.auth-error strong {
  margin: 0;
}

.auth-error p {
  margin-top: 2px;
  font-size: 13px;
}

.auth-help {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.auth-help i,
.whatsapp-color {
  color: #128c4a;
}

.auth-retry {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.auth-languages {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.auth-languages button {
  min-width: 50px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-languages button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-strong);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-touch-callout: none;
}

button {
  color: inherit;
}

a {
  color: var(--blue);
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

button,
a,
input,
textarea,
summary {
  outline: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange), white 22%);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(100%, var(--max-width));
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  background: color-mix(in srgb, var(--page), transparent 8%);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 32%);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.brand-button,
.icon-button,
.nav-item,
.day-route-stop,
.star-button,
.vote-button,
.delete-expense,
.dialog-close,
.subnav-button,
.theme-option,
.font-option,
.language-option {
  border: 0;
  background: none;
  cursor: pointer;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--blue-strong);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-button > span:last-child > span {
  color: var(--orange);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  margin-right: 9px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-fill);
  color: var(--on-teal);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
}

.header-actions,
.account-button {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 6px;
}

.account-button {
  min-height: 36px;
  gap: 7px;
  padding: 3px 10px 3px 4px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-fill);
  color: var(--on-teal);
  font-size: 12px;
  font-weight: 800;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
}

.icon-button:hover {
  background: var(--blue-soft);
}

.view {
  width: 100%;
  padding: 12px 16px 30px;
}

.view[hidden] {
  display: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 18px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
}

.section-heading p {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.section-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-fill);
  color: var(--on-teal);
}

.trip-cover {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-strong);
  box-shadow: var(--shadow);
}

.trip-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cover-overlay);
}

.cover-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(74%, 620px);
  min-height: 270px;
  flex-direction: column;
  justify-content: end;
  padding: 26px;
  color: #fff;
}

.cover-copy h2 {
  max-width: 11ch;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(35px, 7vw, 62px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.cover-copy p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 14px;
}

.cover-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.route-board {
  position: relative;
  margin: -1px 12px 0;
  padding: 20px 16px 17px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.route-board::before {
  content: "";
  position: absolute;
  top: 37px;
  right: 44px;
  left: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
}

.route-stops {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.day-route-stop {
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: var(--muted);
}

.route-node {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: var(--surface);
  color: var(--orange-strong);
  font-size: 13px;
  font-weight: 800;
}

.day-route-stop.is-current .route-node,
.day-route-stop:hover .route-node {
  background: var(--orange);
  color: #fff;
}

.route-label {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-stop {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0 24px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--blue-fill);
  color: #fff;
  box-shadow: var(--shadow);
}

.next-stop img {
  width: 112px;
  height: 100px;
  border-radius: 13px;
  object-fit: cover;
}

.next-stop h2,
.next-stop p {
  color: #fff;
}

.next-stop h2 {
  margin: 2px 0 6px;
  font-size: clamp(24px, 5vw, 34px);
}

.next-stop p {
  margin: 0;
  opacity: 0.84;
}

.next-label {
  color: #ffd1bb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--orange-action);
  color: var(--on-orange);
  box-shadow: 0 8px 18px rgb(255 79 0 / 0.24);
}

.button-primary:hover {
  filter: brightness(0.94);
}

.button-secondary {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue);
}

.button-quiet {
  background: var(--blue-soft);
  color: var(--blue-strong);
}

.button-block {
  width: 100%;
}

.day-list-title {
  margin: 0 0 12px 4px;
  font-size: 24px;
}

.days-list {
  display: grid;
  gap: 14px;
}

.day-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.day-card summary {
  position: relative;
  display: grid;
  min-height: 154px;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: stretch;
  cursor: pointer;
  list-style: none;
}

.day-card summary::-webkit-details-marker {
  display: none;
}

.day-summary-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.day-kicker {
  margin-bottom: 7px;
  color: var(--orange-strong);
  font-size: 13px;
  font-weight: 800;
}

.day-summary-copy h3 {
  margin: 0 0 7px;
  font-size: 25px;
}

.day-summary-copy p {
  margin: 0;
  color: var(--muted);
}

.day-summary-copy .summary-toggle {
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.day-card[open] .summary-toggle i {
  transform: rotate(180deg);
}

.summary-toggle i {
  margin-left: 5px;
  transition: transform 180ms ease;
}

.day-image {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
}

.day-content {
  padding: 0 22px 22px;
}

.stop-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 5px 0 2px;
  list-style: none;
}

.stop-list::before {
  content: "";
  position: absolute;
  top: 29px;
  bottom: 29px;
  left: 9px;
  width: 2px;
  background: var(--line);
}

.stop-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 10px 0;
}

.stop-dot {
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.stop-copy {
  min-width: 0;
}

.stop-copy strong,
.stop-copy span {
  display: block;
}

.stop-time {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.stop-copy strong {
  font-size: 17px;
}

.stop-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.stop-route {
  min-width: 105px;
}

.stop-pending {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.day-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.day-rating > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.stars {
  display: flex;
  gap: 2px;
}

.star-button {
  width: 44px;
  height: 44px;
  padding: 0;
  color: #9299aa;
  font-size: 20px;
}

.star-button.is-filled {
  color: var(--orange);
}

.expense-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--blue-fill);
  color: #fff;
  box-shadow: var(--shadow);
}

.expense-metric {
  padding: 24px;
}

.expense-metric + .expense-metric {
  border-left: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.08);
}

.expense-metric span,
.expense-metric strong {
  display: block;
}

.expense-metric span {
  margin-bottom: 4px;
  color: #dce4ff;
  font-size: 14px;
}

.expense-metric strong {
  color: #fff;
  font-size: clamp(29px, 6vw, 47px);
  letter-spacing: -0.04em;
}

.expense-layout,
.group-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.form-panel,
.list-panel,
.profile-panel,
.chat-panel,
.proposal-panel {
  padding: 20px;
}

.panel h2 {
  margin-bottom: 16px;
  font-size: 21px;
}

.form-grid {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted), transparent 10%);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange), transparent 80%);
}

.form-error {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

.expense-list,
.message-list,
.proposal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.expense-list {
  display: grid;
  gap: 6px;
}

.expense-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.expense-item:last-child {
  border-bottom: 0;
}

.expense-date {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.expense-copy {
  min-width: 0;
}

.expense-copy strong,
.expense-copy span {
  display: block;
}

.expense-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.expense-amount {
  font-weight: 800;
  white-space: nowrap;
}

.delete-expense {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: var(--muted);
}

.delete-expense:hover {
  background: color-mix(in srgb, var(--danger), transparent 88%);
  color: var(--danger);
}

.wallet-notice,
.local-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: color-mix(in srgb, var(--orange-strong), var(--text) 35%);
}

.wallet-notice i,
.local-notice i {
  margin-top: 3px;
}

.wallet-notice p,
.local-notice p {
  margin: 0;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ticket-card {
  position: relative;
  display: grid;
  min-height: 240px;
  grid-template-columns: minmax(0, 1fr) 118px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.ticket-card::before,
.ticket-card::after {
  content: "";
  position: absolute;
  right: 105px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--page);
  transform: translateX(50%);
}

.ticket-card::before {
  top: -13px;
}

.ticket-card::after {
  bottom: -13px;
}

.ticket-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 18px 18px 22px;
}

.ticket-kind {
  color: var(--orange-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-copy h2 {
  margin: 8px 0 7px;
  font-size: 23px;
}

.ticket-copy p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.ticket-status {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 750;
}

.ticket-action {
  align-self: flex-start;
  margin-top: 13px;
}

.document-slot {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.document-add {
  width: 100%;
}

.document-file {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--blue-strong);
}

.document-file > i {
  flex: 0 0 auto;
  font-size: 18px;
}

.document-file > span,
.document-file strong,
.document-file small {
  display: block;
  min-width: 0;
}

.document-file > span {
  overflow: hidden;
}

.document-file strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-file small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.document-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 7px;
}

.document-actions .button {
  min-height: 44px;
  padding: 0 11px;
  font-size: 12px;
}

.document-actions .button:first-child {
  grid-column: 1 / -1;
}

.document-delete {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px;
  color: var(--danger);
}

.document-delete:hover {
  background: color-mix(in srgb, var(--danger), transparent 88%);
}

.qr-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-left: 2px dashed var(--line);
  background: var(--surface-2);
}

.mock-qr {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  padding: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d2d6df;
}

.mock-qr span {
  background: transparent;
}

.mock-qr span.is-dark {
  background: #111827;
}

.mock-qr::after {
  content: "DEMO";
  position: absolute;
  right: 3px;
  bottom: 2px;
  padding: 1px 3px;
  background: #fff;
  color: #b42318;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.group-layout {
  grid-template-columns: 0.72fr 1.28fr;
}

.profile-panel {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-fill);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.share-tools {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.share-tools h3,
.share-tools p {
  margin: 0;
}

.share-tools .install-copy {
  margin-top: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.share-tools h3 {
  font-size: 17px;
}

.share-tools p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.file-button {
  cursor: pointer;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-button:has(+ .file-input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--orange), white 22%);
  outline-offset: 3px;
}

.group-content {
  min-width: 0;
}

.member-manager {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.member-manager-head,
.member-row,
.member-main,
.member-actions,
.session-meta {
  display: flex;
  align-items: center;
}

.member-manager-head,
.member-row {
  justify-content: space-between;
  gap: 12px;
}

.member-manager-head h3,
.member-manager-head p,
.member-row p {
  margin: 0;
}

.member-manager-head h3 {
  font-size: 17px;
}

.member-manager-head p {
  color: var(--muted);
  font-size: 12px;
}

.member-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.member-form input {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
}

.member-form .button {
  min-height: 44px;
  padding-inline: 13px;
}

.member-capacity {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 750;
}

.member-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-row {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.member-main {
  min-width: 0;
  gap: 10px;
}

.member-initial {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 850;
}

.member-copy {
  min-width: 0;
}

.member-copy strong,
.member-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-copy small {
  color: var(--muted);
}

.member-actions {
  flex: 0 0 auto;
  gap: 6px;
}

.member-action {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue-strong);
  cursor: pointer;
}

.member-action.is-whatsapp {
  background: #dcf8e8;
  color: #08783e;
}

.member-action.is-danger {
  color: var(--danger);
}

.member-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.member-status.is-active {
  color: #08783e;
}

.session-meta {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.session-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.session-meta .button {
  min-height: 44px;
}

.group-access-error {
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger), transparent 92%);
  color: var(--danger);
  font-size: 13px;
}

.group-subnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 14px;
  background: var(--blue-soft);
}

.subnav-button {
  min-height: 44px;
  border-radius: 10px;
  color: var(--blue-strong);
  font-weight: 750;
}

.subnav-button.is-active {
  background: var(--surface);
  box-shadow: 0 4px 12px rgb(31 60 136 / 0.1);
}

.group-pane[hidden] {
  display: none;
}

.message-list {
  display: flex;
  min-height: 260px;
  max-height: 420px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 2px 16px;
}

.message {
  align-self: flex-start;
  max-width: min(82%, 520px);
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
}

.message.is-mine {
  align-self: flex-end;
  border-radius: 14px 14px 4px;
  background: var(--blue-soft);
}

.message strong,
.message time {
  font-size: 12px;
}

.message strong {
  color: var(--blue-strong);
}

.message p {
  margin: 4px 0 3px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message time {
  color: var(--muted);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state i {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 32px;
}

.proposal-form {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.proposal-list {
  display: grid;
  gap: 12px;
}

.proposal-item {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
}

.proposal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.proposal-head h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.proposal-meta,
.proposal-note {
  color: var(--muted);
  font-size: 13px;
}

.proposal-note {
  margin: 10px 0 0;
}

.vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.vote-button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.vote-button.is-active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-strong);
}

.bottom-nav {
  position: fixed;
  right: max(0px, calc((100vw - var(--max-width)) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - var(--max-width)) / 2));
  z-index: 30;
  display: grid;
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 10px env(safe-area-inset-bottom);
  border-top: 1px solid color-mix(in srgb, var(--line), transparent 18%);
  background: color-mix(in srgb, var(--surface), transparent 5%);
  box-shadow: 0 -10px 28px rgb(31 60 136 / 0.09);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-item i {
  font-size: 20px;
}

.nav-item.is-active {
  color: var(--orange-strong);
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  bottom: calc(4px + env(safe-area-inset-bottom));
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
}

.key-dialog,
.theme-dialog,
.schedule-dialog {
  width: min(calc(100% - 32px), 430px);
  max-height: min(88dvh, 720px);
  overflow-y: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgb(8 17 45 / 0.35);
}

.key-dialog::backdrop,
.theme-dialog::backdrop,
.schedule-dialog::backdrop {
  background: rgb(9 18 43 / 0.66);
  backdrop-filter: blur(4px);
}

.key-dialog form,
.theme-dialog form,
.schedule-dialog form {
  position: relative;
  padding: 28px;
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
}

.dialog-symbol {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-fill);
  color: #fff;
  font-size: 25px;
}

.key-dialog h2,
.theme-dialog h2,
.schedule-dialog h2 {
  margin-bottom: 10px;
}

.theme-dialog > form > p {
  margin-bottom: 18px;
  color: var(--muted);
}

.appearance-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.theme-option {
  min-height: 84px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.theme-option[aria-pressed="true"],
.font-option[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue), transparent 82%);
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option strong {
  margin-top: 7px;
  font-size: 14px;
}

.theme-option small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.theme-swatches {
  display: grid;
  height: 28px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 8px;
}

.theme-swatches i {
  display: block;
}

[data-theme-choice="classic"] .theme-swatches i:nth-child(1) { background: #1f3c88; }
[data-theme-choice="classic"] .theme-swatches i:nth-child(2) { background: #ff4f00; }
[data-theme-choice="classic"] .theme-swatches i:nth-child(3) { background: #fffefd; }
[data-theme-choice="lila"] .theme-swatches i:nth-child(1) { background: #7c5cfc; }
[data-theme-choice="lila"] .theme-swatches i:nth-child(2) { background: #ff5d73; }
[data-theme-choice="lila"] .theme-swatches i:nth-child(3) { background: #ffd35c; }
[data-theme-choice="cielo"] .theme-swatches i:nth-child(1) { background: #55c9f4; }
[data-theme-choice="cielo"] .theme-swatches i:nth-child(2) { background: #ff6b6b; }
[data-theme-choice="cielo"] .theme-swatches i:nth-child(3) { background: #ffbd2e; }
[data-theme-choice="tulipan"] .theme-swatches i:nth-child(1) { background: #ef63aa; }
[data-theme-choice="tulipan"] .theme-swatches i:nth-child(2) { background: #78c850; }
[data-theme-choice="tulipan"] .theme-swatches i:nth-child(3) { background: #ffd166; }

.font-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}

.font-option,
.language-option {
  min-height: 48px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.font-option[data-font-choice="rounded"] { font-family: "Avenir Next", Avenir, sans-serif; }
.font-option[data-font-choice="clean"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-option[data-font-choice="editorial"] { font-family: Georgia, "Times New Roman", serif; }

.language-option[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue), transparent 82%);
}

#schedule-stop-name {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.schedule-fields,
.schedule-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.schedule-fields {
  text-align: left;
}

.confirm-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.confirm-time input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}

.schedule-actions .button {
  white-space: normal;
}

.demo-pin {
  margin: 20px 0 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--orange-soft);
}

.demo-pin span,
.demo-pin strong {
  display: block;
}

.demo-pin span {
  color: var(--muted);
  font-size: 13px;
}

.demo-pin strong {
  color: var(--orange-strong);
  font-size: 34px;
  letter-spacing: 0.12em;
}

.dialog-note {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 60;
  max-width: 460px;
  min-height: 48px;
  margin: 0 auto;
  padding: 13px 16px;
  border-radius: 12px;
  background: #111d3d;
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .view {
    padding-right: 12px;
    padding-left: 12px;
  }

  .section-heading {
    display: block;
    padding-top: 16px;
  }

  .section-heading p {
    margin: 10px 0 0 56px;
    text-align: left;
  }

  .trip-cover,
  .cover-copy {
    min-height: 245px;
  }

  .cover-copy {
    width: 86%;
    padding: 20px;
  }

  .route-board {
    margin-right: 7px;
    margin-left: 7px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .route-board::before {
    right: 28px;
    left: 28px;
  }

  .route-label {
    font-size: 10px;
  }

  .next-stop {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .next-stop img {
    width: 78px;
    height: 90px;
  }

  .next-stop .button {
    grid-column: 1 / -1;
  }

  .day-card summary {
    min-height: 140px;
    grid-template-columns: minmax(0, 1.15fr) minmax(112px, 0.85fr);
  }

  .day-summary-copy,
  .day-content {
    padding-right: 15px;
    padding-left: 15px;
  }

  .day-summary-copy h3 {
    font-size: 21px;
  }

  .stop-item {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
  }

  .stop-route,
  .stop-pending {
    grid-column: 2;
    min-width: 0;
    justify-self: start;
  }

  .day-rating {
    display: block;
  }

  .stars {
    margin-top: 8px;
  }

  .expense-summary,
  .expense-layout,
  .group-layout {
    grid-template-columns: 1fr;
  }

  .expense-metric {
    padding: 19px;
  }

  .expense-metric + .expense-metric {
    border-top: 1px solid rgb(255 255 255 / 0.22);
    border-left: 0;
  }

  .profile-panel {
    position: static;
  }

  .member-form {
    grid-template-columns: 1fr 1fr;
  }

  .member-form .button {
    grid-column: 1 / -1;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .ticket-card {
    min-height: 220px;
  }
}

@media (max-width: 420px) {
  .account-button > span:last-child {
    display: none;
  }

  .account-button {
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .account-avatar {
    width: 34px;
    height: 34px;
  }

  .auth-card {
    padding: 26px 20px;
  }

  .member-form {
    grid-template-columns: 1fr;
  }

  .member-form .button {
    grid-column: auto;
  }

  .member-row {
    align-items: flex-start;
  }

  .cover-meta {
    display: grid;
    gap: 7px;
  }

  .route-label {
    overflow: visible;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: clip;
    white-space: normal;
  }

  .expense-item {
    grid-template-columns: 38px minmax(0, 1fr) auto 38px;
    gap: 8px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form .button {
    width: 100%;
  }

  .ticket-card {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .ticket-card::before,
  .ticket-card::after {
    right: 91px;
  }

  .qr-side {
    padding: 9px;
  }

  .mock-qr {
    width: 80px;
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-header,
  .bottom-nav {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
