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

[hidden] { display: none !important; }

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ece8d4;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

body.loading > * { display: none !important; }
body.logged-out .bottom-nav,
body.logged-out .trip-strip-wrap,
body.logged-out .empty-state,
body.logged-out .trip-content { display: none !important; }

button { font-family: inherit; }

/* ── Empty state ── */
.empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb8a4;
  font-size: 0.85rem;
}

/* ── Trip content ── */
.trip-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: none;
}
.trip-content.visible { display: block; }
.trip-content::-webkit-scrollbar { display: none; }

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: #f0ead6;
  border-top: 1px solid #ddd8c4;
  display: flex;
  align-items: center;
  z-index: 10;
}

.nav-icon {
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-icon:hover { color: #333; }
.nav-icon svg { width: 24px; height: 24px; }

.users-strip {
  flex: 1;
  overflow-x: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.users-strip::-webkit-scrollbar { display: none; }

.user-pill {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ccc8b2;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.user-pill:hover { transform: scale(1.08); border-color: #888; }
.user-pill.active { border-color: #1a1a1a; box-shadow: 0 0 0 2px rgba(0,0,0,0.12); }
.user-pill canvas { display: block; width: 100%; height: 100%; }

/* ── Invite toast ── */
.invite-toast {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 84px;
  background: #1a1a1a;
  color: #f0ead6;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  text-align: center;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  word-break: break-all;
  user-select: text;
}
