/* === Cruise Controller App Styles === */
/* Design tokens match landing page */

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

:root {
  --ink: #0a0a0f;
  --chalk: #f8f7f4;
  --amber: #e8a523;
  --amber-glow: #f5c957;
  --amber-dim: rgba(232,165,35,0.15);
  --slate: #9ca3af;
  --slate-dim: #6b7280;
  --asphalt: #1a1a2e;
  --road: #16213e;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --orange: #f97316;
}

html, body { height: 100%; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--ink);
  color: var(--chalk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* === NAV === */
#app-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 56px;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--chalk);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.nav-badge {
  background: var(--amber-dim);
  color: var(--amber);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === MAIN === */
#app-content {
  padding-top: 56px;
  min-height: 100vh;
}

/* === TOAST === */
#toast-container {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
  pointer-events: auto;
}

.toast-alert { background: rgba(239,68,68,0.95); color: white; }
.toast-info { background: rgba(59,130,246,0.95); color: white; }
.toast-success { background: rgba(34,197,94,0.95); color: white; }
.toast-warning { background: rgba(249,115,22,0.95); color: white; }

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

/* === PAGES === */
.page { max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-wide { max-width: 900px; }

.page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page h1 span { color: var(--amber); }

.page-sub {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--chalk);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--amber); }
.form-input::placeholder { color: var(--slate-dim); }

textarea.form-input { min-height: 80px; resize: vertical; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--amber-glow); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--chalk);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); }

.btn-danger { background: var(--red); color: white; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; width: auto; }

/* === HOME PAGE === */
.home-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.home-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.home-card:hover {
  border-color: rgba(232,165,35,0.4);
  background: rgba(255,255,255,0.05);
}

.home-card-icon { font-size: 2.2rem; margin-bottom: 1rem; }

.home-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.home-card p { color: var(--slate); font-size: 0.9rem; }

.home-or {
  text-align: center;
  color: var(--slate-dim);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.join-inline {
  display: flex;
  gap: 0.75rem;
}

.join-inline .form-input { flex: 1; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
.join-inline .btn { width: auto; white-space: nowrap; }

/* === ACTIVE SESSION BANNER === */
.session-banner {
  background: var(--amber-dim);
  border: 1px solid rgba(232,165,35,0.3);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.session-banner h4 {
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.session-banner p {
  color: var(--slate);
  font-size: 0.85rem;
}

/* === MAP === */
.map-container {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.25rem;
}

.map-container-full {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  height: auto;
  border-radius: 0;
  border: none;
  z-index: 1;
}

/* Leaflet overrides for dark theme */
.leaflet-container { background: var(--ink); }
.leaflet-control-zoom a {
  background: var(--asphalt) !important;
  color: var(--chalk) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.leaflet-control-attribution { display: none !important; }

/* Custom markers */
.marker-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.marker-leader { background: var(--amber); }
.marker-caboose { background: var(--red); }
.marker-scout { background: var(--green); }
.marker-driver { background: var(--blue); }
.marker-me { animation: pulse 2s ease infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,165,35,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(232,165,35,0); }
}

.marker-meetup {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  background: var(--amber);
  transform: rotate(-45deg);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-meetup span {
  transform: rotate(45deg);
  font-size: 14px;
}

.marker-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* === PARTICIPANT LIST === */
.participant-list {
  list-style: none;
  padding: 0;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.participant-item:last-child { border-bottom: none; }

.participant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.participant-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.participant-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.role-leader { background: var(--amber-dim); color: var(--amber); }
.role-caboose { background: rgba(239,68,68,0.15); color: var(--red); }
.role-scout { background: rgba(34,197,94,0.15); color: var(--green); }
.role-driver { background: rgba(59,130,246,0.15); color: var(--blue); }

/* === LOBBY === */
.lobby-section {
  margin-bottom: 1.5rem;
}

.lobby-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}

.info-row .label { color: var(--slate); }

.departure-card {
  background: var(--amber-dim);
  border: 1px solid rgba(232,165,35,0.3);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}

.departure-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
}

.departure-label {
  color: var(--slate);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* === INVITE SHARE === */
.invite-box {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(232,165,35,0.4);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.invite-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.invite-link {
  font-size: 0.8rem;
  color: var(--slate);
  word-break: break-all;
  margin-bottom: 0.75rem;
}

/* === DRIVE MODE === */
.drive-top-bar {
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.drive-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drive-speed {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  min-width: 60px;
}

.drive-speed small {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--slate);
}

.drive-meta {
  font-size: 0.8rem;
  color: var(--slate);
}

.drive-meta strong { color: var(--chalk); }

/* Alert bar at bottom */
.alert-bar {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px;
  padding-bottom: max(6px, calc(env(safe-area-inset-bottom, 0px)));
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.alert-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.alert-btn:active { transform: scale(0.95); }

.alert-btn .alert-icon { font-size: 1.5rem; }

.alert-stop { background: #dc2626; color: white; }
.alert-hazard { background: #f59e0b; color: var(--ink); }
.alert-regroup { background: #3b82f6; color: white; }
.alert-fuel { background: #8b5cf6; color: white; }
.alert-sos { background: #ef4444; color: white; animation: sosPulse 1.5s ease infinite; }

@keyframes sosPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* Driver mode - simplified UI when speed > 5km/h */
body.driver-mode .drive-top-bar { padding: 0.3rem 1rem; }
body.driver-mode #app-nav { display: none; }
body.driver-mode .map-container-full { top: 0; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
body.driver-mode .drive-top-bar { top: 0; }
body.driver-mode .alert-btn { padding: 14px 4px; }
body.driver-mode .alert-btn .alert-icon { font-size: 2rem; }
body.driver-mode .alert-bar { padding: 8px; gap: 6px; padding-bottom: max(8px, calc(env(safe-area-inset-bottom, 0px))); }
body.driver-mode .chat-panel { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); top: 40px; }

/* === SUMMARY === */
.summary-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.summary-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.summary-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
}

.summary-stat-label {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.3rem;
}

/* === MESSAGES PANEL === */
.messages-panel {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.75rem;
}

.msg-item {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.msg-item:last-child { border-bottom: none; }
.msg-sender { font-weight: 600; color: var(--amber); }
.msg-system { color: var(--slate); font-style: italic; }
.msg-alert { color: var(--red); font-weight: 600; }
.msg-time { color: var(--slate-dim); font-size: 0.75rem; }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .page { padding: 1.5rem 1rem; }
  .page h1 { font-size: 1.6rem; }
  .join-inline { flex-direction: column; }
  .join-inline .btn { width: 100%; }
  .summary-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) {
  .home-actions { flex-direction: row; }
  .home-card { flex: 1; }
}

/* === LOADING === */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--slate);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(232,165,35,0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.75rem;
}

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

/* Chat input for lobby */
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chat-input-row .form-input { flex: 1; padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.chat-input-row .btn { width: auto; padding: 0.6rem 1rem; font-size: 0.85rem; }

/* === DRIVE CHAT PANEL === */
.chat-panel {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  z-index: 450;
  background: rgba(10,10,15,0.97);
  border-top: 1px solid rgba(255,255,255,0.12);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 50vh;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.chat-panel.open {
  transform: translateY(0);
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.chat-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--slate);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  min-height: 32px;
  min-width: 32px;
  -webkit-tap-highlight-color: transparent;
}
.chat-close-btn:hover { color: var(--chalk); }

.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.chat-panel-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.chat-panel-input .form-input {
  flex: 1;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}
.chat-panel-input .btn {
  width: auto;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Chat toggle button in nav */
.chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--chalk);
  min-height: 36px;
  min-width: 44px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.chat-toggle:active { transform: scale(0.93); }

.chat-badge {
  background: var(--red);
  color: white;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}

/* === MOBILE TOUCH TARGETS & SAFE AREA === */
@media (max-width: 480px) {
  .page { padding: 1.5rem 1rem; }
  .page h1 { font-size: 1.6rem; }
  .join-inline { flex-direction: column; }
  .join-inline .btn { width: 100%; }
  .summary-stat-grid { grid-template-columns: 1fr 1fr; }

  /* Ensure alert buttons meet 44px Apple HIG touch target */
  .alert-btn {
    min-height: 48px;
    padding: 8px 2px;
  }
  .alert-btn .alert-icon { font-size: 1.4rem; }

  /* Leaflet zoom controls: push above safe area on small screens */
  .leaflet-control-zoom {
    margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Prevent Leaflet map pan from fighting page scroll on iOS */
.map-container .leaflet-container {
  touch-action: none;
}

/* Reconnecting state visual hint */
#ws-reconnect-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(249,115,22,0.95);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3000;
  pointer-events: none;
}

/* === SHARE SHEET === */
.share-invite-btn {
  margin-top: 0.75rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  min-height: 52px;
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  transition: background 0.2s ease;
}

.share-overlay.share-overlay-visible {
  background: rgba(0,0,0,0.65);
}

.share-sheet {
  width: 100%;
  background: var(--asphalt);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px 20px 0 0;
  padding: 1.2rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-overlay.share-overlay-visible .share-sheet {
  transform: translateY(0);
}

.share-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.share-sheet-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--chalk);
}

.share-sheet-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--slate);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.share-sheet-close:hover { background: rgba(255,255,255,0.14); }

.share-url-preview {
  font-size: 0.78rem;
  color: var(--slate);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  word-break: break-all;
  margin-bottom: 1rem;
}

.share-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1rem 0.5rem;
  min-height: 80px;
  color: var(--chalk);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.share-option:hover { background: rgba(255,255,255,0.1); }
.share-option:active { transform: scale(0.94); }

.share-option-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* NPS survey buttons */
.nps-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nps-btn {
  flex: 1;
  min-width: 28px;
  padding: 0.4rem 0.2rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--chalk);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.nps-btn:hover { background: rgba(255,255,255,0.1); }
.nps-btn:active { transform: scale(0.94); }
