:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --blue: #086df5;
  --blue-dark: #0757ca;
  --blue-soft: #eaf3ff;
  --navy: #061b3f;
  --navy-soft: #18375d;
  --mint: #00cfa6;
  --green: #0daf79;
  --red: #dc3f4f;
  --amber: #db8a16;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --line: #e2e9f2;
  --muted: #6b7b91;
  --shadow: 0 18px 48px rgba(18, 56, 98, 0.11);
  color-scheme: light;
  font-family:
    Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--navy);
  background: var(--page);
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

input,
textarea,
select {
  font-size: 16px;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--blue);
}

.network-banner {
  position: fixed;
  z-index: 1000;
  top: calc(var(--safe-top) + 10px);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.eyebrow {
  display: inline-flex;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-screen {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding:
    calc(var(--safe-top) + 28px)
    calc(var(--safe-right) + 22px)
    calc(var(--safe-bottom) + 24px)
    calc(var(--safe-left) + 22px);
  background:
    linear-gradient(180deg, #fff 0%, #f9fbff 62%, #eff6ff 100%);
}

.auth-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.auth-ambient-one {
  top: -150px;
  right: -130px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(8, 109, 245, 0.15), transparent 68%);
}

.auth-ambient-two {
  bottom: -180px;
  left: -150px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(0, 207, 166, 0.13), transparent 67%);
}

.auth-content {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: auto;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.auth-brand img {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(8, 109, 245, 0.14);
}

.auth-wordmark {
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 850;
  letter-spacing: -0.07em;
}

.auth-wordmark strong {
  color: var(--blue);
}

.auth-intro {
  margin-bottom: 30px;
  text-align: center;
}

.auth-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(29px, 8vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.auth-intro p {
  max-width: 315px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.social-auth {
  display: grid;
  gap: 11px;
}

.auth-provider {
  display: grid;
  width: 100%;
  min-height: 56px;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(29, 65, 105, 0.05);
  font-size: 14px;
  font-weight: 800;
}

.auth-provider::after {
  width: 18px;
  content: "";
}

.auth-provider.google {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #1178fb, #075fd8);
  box-shadow: 0 12px 28px rgba(8, 109, 245, 0.23);
}

.auth-provider.apple {
  border-color: #081b3c;
  color: #fff;
  background: #081b3c;
}

.auth-provider.email {
  color: var(--navy);
}

.auth-provider svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
}

.auth-provider.email svg {
  fill: none;
}

.provider-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.provider-google {
  color: #1b65cf;
  background: #fff;
}

.email-auth-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.auth-segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.auth-segmented button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 65, 109, 0.08);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form h2 {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.auth-form > p {
  margin: -6px 0 3px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form label,
.publish-review-form label {
  display: grid;
  gap: 7px;
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 800;
}

.auth-form input,
.publish-review-form input,
.publish-review-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d9e4f1;
  outline: none;
  border-radius: 14px;
  background: #fff;
}

.auth-form input:focus,
.publish-review-form input:focus,
.publish-review-form textarea:focus,
.publish-prompt-card textarea:focus,
.composer:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 109, 245, 0.09);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 850;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #0b76fa, #075ed9);
  box-shadow: 0 11px 26px rgba(8, 109, 245, 0.2);
}

.primary-button:disabled {
  opacity: 0.58;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid #d7e4f2;
  color: var(--navy);
  background: #fff;
}

.danger-button {
  border: 1px solid #efc7cc;
  color: #a82736;
  background: #fff5f6;
}

.forgot-password,
.auth-back-button,
.auth-text-button {
  width: fit-content;
  min-height: 30px;
  padding: 2px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.auth-back-button {
  margin-bottom: 3px;
}

.app-back-button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 13px 8px 10px;
  border: 1px solid #d8e7f8;
  border-radius: 16px;
  color: var(--blue);
  background: #f2f7fd;
  box-shadow: 0 5px 15px rgba(8, 109, 245, 0.08);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.app-back-button svg {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-back-button.app-back-icon-only {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
}

.app-back-button:active {
  transform: scale(0.95);
  border-color: #bed7f3;
  background: #e9f3ff;
  box-shadow: 0 2px 8px rgba(8, 109, 245, 0.1);
}

.app-back-button:focus-visible {
  outline: 3px solid rgba(8, 109, 245, 0.22);
  outline-offset: 2px;
}

.auth-text-button {
  display: block;
  margin: 15px auto 0;
}

.form-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.form-status.error {
  color: var(--red);
}

.form-status.success {
  color: var(--green);
}

.auth-legal {
  max-width: 350px;
  margin: 24px auto 0;
  color: #8492a5;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.auth-legal a {
  font-weight: 700;
  text-decoration: none;
}

.main-app {
  min-height: 100dvh;
  padding:
    calc(68px + var(--safe-top))
    var(--safe-right)
    calc(78px + var(--safe-bottom))
    var(--safe-left);
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 109, 245, 0.08), transparent 250px),
    var(--page);
}

.app-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: calc(68px + var(--safe-top));
  align-items: center;
  justify-content: space-between;
  padding:
    var(--safe-top)
    calc(18px + var(--safe-right))
    0
    calc(18px + var(--safe-left));
  border-bottom: 1px solid rgba(226, 233, 242, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.header-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(8, 109, 245, 0.12);
}

.header-brand strong {
  color: var(--blue);
}

.header-profile {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #dcebff;
}

.header-profile img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #01a8e9);
  font-size: 12px;
  font-weight: 900;
}

.app-pages {
  width: min(100%, 680px);
  margin: 0 auto;
}

.app-page {
  min-height: calc(100dvh - 146px - var(--safe-top) - var(--safe-bottom));
  padding: 22px 18px 26px;
  animation: page-in 0.24s ease-out;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-heading {
  margin-bottom: 20px;
}

.page-heading h1 {
  margin: 7px 0 8px;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.page-heading p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-heading {
  margin-bottom: 8px;
  text-align: center;
}

.search-heading p {
  margin: auto;
}

.assistant-orb {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  margin: 17px auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(8, 109, 245, 0.18), transparent 68%);
}

.assistant-orb img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  clip-path: circle(36% at 50% 50%);
  filter: drop-shadow(0 15px 18px rgba(8, 109, 245, 0.2));
}

.search-conversation {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0 13px;
}

.chat-bubble {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 62, 104, 0.08);
  font-size: 13px;
  line-height: 1.5;
}

.user-bubble {
  align-self: flex-end;
  border-radius: 18px 18px 5px 18px;
  color: #fff;
  background: linear-gradient(135deg, #117afd, #0761df);
  box-shadow: 0 10px 25px rgba(8, 109, 245, 0.2);
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7faaf1;
  animation: typing 0.9s infinite alternate;
}

.typing-bubble i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-bubble i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  to {
    opacity: 0.25;
    transform: translateY(-3px);
  }
}

.search-results {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 3px;
}

.trip-card {
  position: relative;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 63, 104, 0.07);
}

.trip-card-main {
  width: 100%;
  padding: 0 42px 0 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.favorite-button {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dce7f1;
  place-items: center;
  border-radius: 999px;
  color: #657d93;
  background: #fff;
  box-shadow: 0 5px 14px rgba(24, 63, 104, 0.1);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.favorite-button svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.favorite-button.is-favorite {
  border-color: #ffd0d5;
  color: #df2034;
  background: #fff1f3;
}

.favorite-button.is-favorite svg {
  fill: currentColor;
}

.favorite-button:active {
  transform: scale(0.92);
}

.favorite-button:disabled {
  opacity: 0.55;
}

.favorite-trip-list {
  gap: 12px;
}

.favorite-trip-card {
  box-shadow: 0 10px 26px rgba(24, 63, 104, 0.06);
}

.favorite-empty-icon {
  color: #df2034;
  background: #fff0f2;
}

.trip-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 850;
}

.trip-route span {
  color: var(--blue);
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.trip-price {
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
}

.suggestion-row,
.example-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.suggestion-row::-webkit-scrollbar,
.example-chips::-webkit-scrollbar {
  display: none;
}

.suggestion-row button,
.example-chips button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #dce7f4;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.composer {
  position: sticky;
  z-index: 8;
  bottom: calc(76px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 5px;
  border: 1.5px solid #d5e3f3;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(16, 55, 98, 0.13);
  backdrop-filter: blur(18px);
}

.composer input {
  min-width: 0;
  min-height: 47px;
  flex: 1;
  padding: 10px 6px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}

.composer-action,
.composer-send {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  padding: 0;
  border-radius: 14px;
}

.composer-action {
  border: 0;
  color: var(--blue);
  background: var(--blue-soft);
}

.composer-send {
  border: 0;
  color: #fff;
  background: var(--blue);
}

.composer svg,
.icon-button svg,
.bottom-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-prompt-card,
.publish-review-form,
.publish-success {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 62, 103, 0.08);
}

.publish-prompt-card > label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 850;
}

.publish-prompt-card textarea {
  width: 100%;
  min-height: 145px;
  padding: 15px;
  resize: vertical;
  border: 1px solid #d8e5f3;
  outline: 0;
  border-radius: 17px;
  background: #f9fbfe;
  line-height: 1.55;
}

.publish-prompt-card .primary-button {
  width: 100%;
  margin-top: 8px;
}

.publish-review-form {
  display: grid;
  gap: 18px;
}

.review-intro {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 16px;
  background: #ebfff8;
}

.review-intro strong {
  font-size: 13px;
}

.review-intro p {
  margin: 3px 0 0;
  color: #528176;
  font-size: 11px;
}

.success-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(0, 207, 166, 0.13);
}

.publish-review-form .wide-field {
  grid-column: 1 / -1;
}

.publish-review-form textarea {
  min-height: 92px;
  resize: vertical;
}

.price-field {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.price-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-field-heading > span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.price-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.price-stepper {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 11px;
}

.price-stepper button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  border: 1px solid #cfe0f3;
  border-radius: 17px;
  color: var(--blue);
  background: #f4f9ff;
  box-shadow: 0 7px 17px rgba(8, 109, 245, 0.08);
}

.price-stepper button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
  box-shadow: none;
}

.price-value {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid rgba(13, 175, 121, 0.3);
  border-radius: 19px;
  background: #f6fffb;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.price-value input {
  width: min(112px, 68%);
  height: auto;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  color: var(--green);
  background: transparent !important;
  box-shadow: none !important;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  pointer-events: none;
  appearance: textfield;
}

.price-value input::-webkit-inner-spin-button,
.price-value input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.price-value > span {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.price-field.price-good small {
  color: var(--green);
}

.price-field.price-medium small {
  color: var(--amber);
}

.price-field.price-high small {
  color: var(--red);
}

.review-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9px;
}

.publish-success {
  padding: 34px 21px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 17px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--mint), #09b88f);
  box-shadow: 0 15px 30px rgba(0, 207, 166, 0.24);
  font-size: 28px;
  font-weight: 900;
}

.publish-success h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.publish-success p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.publish-success button {
  width: 100%;
  margin-top: 9px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: #fff;
}

.conversation-list {
  display: grid;
  gap: 7px;
}

.conversation-item {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.conversation-avatar,
.person-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.conversation-avatar img,
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-copy {
  min-width: 0;
}

.conversation-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.conversation-copy p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #94a1b2;
  font-size: 9px;
}

.unread-pill,
.nav-badge {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

.unread-pill {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
}

.loading-state,
.empty-state {
  display: grid;
  min-height: 48dvh;
  place-items: center;
  padding: 32px 22px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}

.empty-state div {
  max-width: 300px;
}

.empty-state .empty-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 30px;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 21px;
}

.conversation-view {
  display: flex;
  min-height: calc(100dvh - 168px - var(--safe-top) - var(--safe-bottom));
  flex-direction: column;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.conversation-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.conversation-person-button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.conversation-person strong,
.conversation-person small {
  display: block;
}

.conversation-person small {
  overflow: hidden;
  max-width: 220px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-avatar {
  width: 42px;
  height: 42px;
}

.message-thread {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 16px 2px;
}

.message-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message-row.mine {
  align-items: flex-end;
}

.message-time {
  margin: 4px 5px 0;
  color: #9aa7b6;
  font-size: 8px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-report-button {
  min-height: 28px;
  padding: 3px 6px;
  border: 0;
  color: #8493a6;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}

.message-report-button:active {
  color: #a82736;
}

.message-composer {
  bottom: calc(74px + var(--safe-bottom));
}

.profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(23, 61, 102, 0.08);
}

.profile-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #dce7f4;
  font-size: 20px;
}

.profile-avatar.is-certified {
  box-shadow: 0 0 0 2px var(--blue), 0 0 0 5px #d8ebff;
}

.profile-identity {
  min-width: 0;
}

.profile-identity h2 {
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity p {
  margin: 0 0 5px;
  color: #a36c0d;
  font-size: 12px;
  font-weight: 800;
}

.profile-identity small {
  color: var(--muted);
  font-size: 10px;
}

.verified-badge {
  position: absolute;
  bottom: 16px;
  left: 73px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.profile-stats > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 14px 8px;
  text-align: center;
}

.profile-stats > div + div {
  border-left: 1px solid var(--line);
}

.profile-stats strong {
  font-size: 16px;
}

.profile-stats span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}

.profile-menu {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.profile-menu button {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 33px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.profile-menu button:last-child {
  border-bottom: 0;
}

.menu-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.menu-chevron {
  color: #8291a4;
  font-size: 23px;
}

.logout-button {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
  border: 0;
  border-radius: 15px;
  color: var(--red);
  background: #fff2f4;
  font-size: 13px;
  font-weight: 850;
}

.bottom-nav {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: calc(72px + var(--safe-bottom));
  grid-template-columns: repeat(4, 1fr);
  padding:
    6px
    max(7px, var(--safe-right))
    var(--safe-bottom)
    max(7px, var(--safe-left));
  border-top: 1px solid rgba(219, 229, 241, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -9px 30px rgba(25, 61, 101, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bottom-nav button {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 4px 3px;
  border: 0;
  border-radius: 14px;
  color: #8391a3;
  background: transparent;
  font-size: 9px;
  font-weight: 750;
}

.bottom-nav button.active {
  color: var(--blue);
  background: #eff6ff;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.nav-badge {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: calc(50% + 7px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
}

.app-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(3, 18, 42, 0.46);
  backdrop-filter: blur(4px);
}

.dialog-card {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: calc(88dvh - var(--safe-top));
  padding: 9px 19px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(2, 25, 55, 0.2);
  animation: dialog-in 0.23s ease-out;
}

@keyframes dialog-in {
  from {
    transform: translateY(100%);
  }
}

.dialog-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 9px;
  border-radius: 999px;
  background: #d7e0ea;
}

.dialog-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dialog-card > header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.dialog-card > header .icon-button {
  border: 0;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 24px;
}

.dialog-content {
  padding: 18px 0 4px;
}

.dialog-section {
  display: grid;
  gap: 11px;
}

.dialog-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quick-menu {
  display: grid;
  gap: 2px;
}

.quick-menu button {
  display: grid;
  min-height: 54px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.quick-menu button:last-child {
  border-bottom: 0;
}

.quick-menu button > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 18px;
}

.dialog-trip-list {
  display: grid;
  gap: 9px;
}

.dialog-trip {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.dialog-form {
  display: grid;
  gap: 12px;
}

.dialog-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.dialog-form input,
.dialog-form textarea,
.dialog-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d9e4f0;
  border-radius: 13px;
  background: #fff;
}

.vehicle-editor-form {
  gap: 15px;
}

.vehicle-editor-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 4px;
  padding: 14px;
  border-radius: 18px;
  background: #f3f8ff;
}

.vehicle-editor-heading .profile-vehicle-icon {
  width: 48px;
  height: 48px;
}

.vehicle-editor-heading > div {
  display: grid;
  gap: 4px;
}

.vehicle-editor-heading strong {
  color: var(--navy);
  font-size: 15px;
}

.vehicle-editor-heading p {
  margin: 0;
  color: #718198;
  font-size: 11px;
  line-height: 1.45;
}

.app-dialog[data-variant="vehicle-editor"] {
  align-items: stretch;
}

.app-dialog[data-variant="vehicle-editor"] .dialog-backdrop,
.app-dialog[data-variant="vehicle-editor"] .dialog-handle,
.app-dialog[data-variant="vehicle-editor"] .dialog-card > header {
  display: none;
}

.app-dialog[data-variant="vehicle-editor"] .dialog-card {
  width: 100%;
  max-height: none;
  padding: calc(18px + var(--safe-top)) 20px calc(26px + var(--safe-bottom));
  overflow-y: auto;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.app-dialog[data-variant="vehicle-editor"] .dialog-content {
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
  padding: 0;
}

.vehicle-picker-screen {
  display: flex;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 44px);
  flex-direction: column;
  gap: 22px;
  color: var(--navy);
}

.vehicle-picker-back {
  width: 48px;
  height: 48px;
  margin: -4px 0 4px -6px;
  padding: 0;
  border: 1px solid #d8e7f8;
  color: var(--blue);
  background: #f2f7fd;
}

.vehicle-picker-back svg,
.vehicle-picker-row svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.vehicle-picker-screen h1 {
  max-width: 400px;
  margin: 0 0 7px;
  color: var(--navy);
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.vehicle-picker-search {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 0 19px;
  border-radius: 18px;
  color: #5e718e;
  background: #e9edf3;
}

.vehicle-picker-search svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.vehicle-picker-search input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font-size: 20px;
  font-weight: 650;
}

.vehicle-picker-search input::placeholder {
  color: #647590;
  opacity: 1;
}

.vehicle-picker-list {
  display: grid;
}

.vehicle-picker-row {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #dfe4ea;
  color: var(--navy);
  background: transparent;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: left;
}

.vehicle-picker-row:last-child {
  border-bottom: 0;
}

.vehicle-picker-row > svg {
  justify-self: end;
  color: #60708a;
}

.vehicle-picker-row.is-selected > span:first-child {
  color: var(--blue);
}

.vehicle-picker-other {
  color: var(--blue);
}

.vehicle-custom-model-form {
  display: grid;
  gap: 17px;
}

.vehicle-custom-model-form p {
  margin: 0;
  color: #61728c;
  font-size: 15px;
  line-height: 1.5;
}

.vehicle-picker-continue,
.vehicle-picker-save {
  min-height: 54px;
  margin-top: auto;
}

.vehicle-picker-save-form {
  display: grid;
  margin-top: auto;
  padding-top: 22px;
}

.vehicle-picker-save[disabled] {
  opacity: 0.45;
}

.vehicle-color-list {
  margin-bottom: 6px;
}

.vehicle-color-row {
  grid-template-columns: 38px minmax(0, 1fr) 36px;
}

.vehicle-color-row > svg {
  display: none;
}

.vehicle-color-radio {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.vehicle-color-row.is-selected .vehicle-color-radio::after {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.vehicle-color-swatch {
  width: 29px;
  height: 29px;
  justify-self: end;
  border: 1px solid rgba(2, 25, 55, 0.14);
  border-radius: 7px;
  background: var(--vehicle-color);
}

.danger-text-button {
  min-height: 46px;
  border: 0;
  color: #c53643;
  background: transparent;
  font-weight: 800;
}

.vehicle-delete-confirmation {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.vehicle-delete-confirmation .profile-vehicle-icon {
  width: 58px;
  height: 58px;
}

.vehicle-delete-confirmation h2,
.vehicle-delete-confirmation p {
  margin: 0;
}

.vehicle-delete-confirmation h2 {
  color: var(--navy);
  font-size: 20px;
}

.vehicle-delete-confirmation p {
  color: #718198;
  font-size: 13px;
  line-height: 1.55;
}

.vehicle-delete-confirmation .danger-button,
.vehicle-delete-confirmation .secondary-button {
  width: 100%;
}

.safety-dialog > .danger-button,
.safety-dialog > .secondary-button {
  width: 100%;
}

.account-privacy-actions {
  display: grid;
  gap: 9px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.account-privacy-actions a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.privacy-manager {
  gap: 18px;
}

.privacy-status {
  padding: 11px 13px;
  border-radius: 13px;
  color: var(--muted);
  background: #f3f7fb;
  font-size: 12px;
  line-height: 1.45;
}

.privacy-status.success {
  color: #086b50;
  background: #eaf9f3;
}

.privacy-status.error {
  color: #9e2937;
  background: #fff1f3;
}

.privacy-manager h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}

.privacy-category-list {
  display: grid;
  gap: 2px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.privacy-category-list label {
  min-height: 42px;
  grid-template-columns: 22px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.privacy-category-list label:last-child {
  border-bottom: 0;
}

.privacy-category-list input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.account-deletion-form {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  z-index: 500;
  bottom: calc(86px + var(--safe-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 11px 15px;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 35px rgba(4, 28, 59, 0.24);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 0.2s ease-out;
}

.toast.error {
  background: #a82e3b;
}

.toast.success {
  background: #087654;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

@media (max-width: 430px) {
  .auth-brand {
    margin-bottom: 25px;
  }

  .auth-brand img {
    width: 66px;
    height: 66px;
  }

  .auth-content {
    align-self: center;
  }

  .app-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .form-grid,
  .publish-review-form .form-grid {
    grid-template-columns: 1fr;
  }

  .publish-review-form .wide-field {
    grid-column: auto;
  }
}

@media (max-height: 720px) {
  .auth-screen {
    place-items: start center;
  }

  .auth-brand {
    margin-bottom: 18px;
  }

  .auth-intro {
    margin-bottom: 20px;
  }

  .assistant-orb {
    width: 100px;
    height: 100px;
    margin-top: 7px;
  }

  .assistant-orb img {
    width: 98px;
    height: 98px;
  }
}


/* Composant calendrier partagé : recherche, publication et modification de trajet. */
.opencar-date-picker {
  width: min(100%, 460px);
  min-width: 0;
  margin: auto;
  color: var(--navy);
  background: #fff;
}

.opencar-date-picker-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.opencar-date-picker-header button {
  display: grid;
  width: 46px;
  min-height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: #f0f6fd;
}

.opencar-date-picker-header button:focus-visible,
.opencar-date-picker-days button:focus-visible {
  outline: 3px solid rgba(8, 120, 255, 0.24);
  outline-offset: 2px;
}

.opencar-date-picker-header button:disabled {
  cursor: default;
  opacity: 0.28;
}

.opencar-date-picker-header svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.opencar-date-picker-header strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.opencar-date-picker-weekdays,
.opencar-date-picker-days {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.opencar-date-picker-weekdays span {
  min-width: 0;
  padding: 5px 0;
  color: #75869c;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.opencar-date-picker-days button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.opencar-date-picker-days button.outside {
  color: #b1becd;
}

.opencar-date-picker-days button.today:not(.selected) {
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px rgba(8, 120, 255, 0.4);
}

.opencar-date-picker-days button.selected {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(8, 120, 255, 0.26);
}

.opencar-date-picker-days button:disabled {
  cursor: default;
  opacity: 0.25;
}

.opencar-date-picker-overlay {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  align-items: end;
  padding: max(14px, var(--safe-top)) max(12px, var(--safe-right)) max(14px, var(--safe-bottom)) max(12px, var(--safe-left));
  background: rgba(6, 24, 49, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.opencar-date-picker-overlay[hidden] {
  display: none;
}

.opencar-date-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.opencar-date-picker-sheet {
  position: relative;
  width: min(100%, 480px);
  max-height: min(760px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px));
  margin: 0 auto;
  padding: 20px 18px 18px;
  overflow-y: auto;
  border: 1px solid rgba(218, 230, 244, 0.94);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(5, 31, 67, 0.24);
  overscroll-behavior: contain;
}

body.opencar-date-picker-open {
  overflow: hidden;
}

@media (min-width: 620px) {
  .opencar-date-picker-overlay {
    align-items: center;
  }
}

@media (max-width: 370px), (max-height: 720px) {
  .opencar-date-picker-sheet {
    padding: 15px 13px 13px;
    border-radius: 23px;
  }

  .opencar-date-picker-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    margin-bottom: 7px;
  }

  .opencar-date-picker-header button {
    width: 40px;
    min-height: 40px;
  }

  .opencar-date-picker-days button {
    min-height: 31px;
    font-size: 12px;
  }
}

/* Mobile product UI: compact, calm and aligned with the OpenCar app mockups. */
.auth-screen {
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    calc(var(--safe-top) + 22px)
    calc(var(--safe-right) + 22px)
    calc(var(--safe-bottom) + 18px)
    calc(var(--safe-left) + 22px);
  background:
    radial-gradient(circle at 80% 2%, rgba(8, 109, 245, 0.09), transparent 220px),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 68%, #f2f7ff 100%);
}

.auth-content {
  width: min(100%, 360px);
}

.auth-brand {
  flex-direction: column;
  gap: 4px;
  margin-bottom: 30px;
}

.auth-logo-mark {
  display: grid;
  width: 144px;
  height: 94px;
  place-items: center;
  overflow: hidden;
}

.auth-logo-mark img {
  width: 144px;
  height: 144px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  transform: translateY(-8px);
}

.auth-wordmark {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.auth-intro {
  margin-bottom: 30px;
}

.auth-intro h1 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.auth-intro p {
  max-width: 275px;
  font-size: 15px;
  line-height: 1.5;
}

.social-auth {
  gap: 9px;
}

.auth-provider {
  min-height: 57px;
  border-radius: 16px;
  font-size: 15px;
}

.auth-provider.apple:disabled {
  cursor: default;
  opacity: 0.72;
}

.auth-provider.apple small {
  margin-left: 6px;
  color: #a7b5c8;
  font-size: 10px;
  font-weight: 800;
}

.auth-legal {
  max-width: 315px;
  margin: 30px auto 0;
  font-size: 11.5px;
  line-height: 1.55;
}

.provider-google {
  color: #fff;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.auth-boot {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}

.auth-boot img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.auth-boot p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.auth-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe9fa;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

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

.auth-welcome {
  display: grid;
  gap: 12px;
}

.auth-choice-primary,
.auth-choice-secondary {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 850;
}

.auth-choice-secondary {
  border: 1px solid #cbd9ea;
  color: var(--blue);
  background: #fff;
}

.auth-page-back {
  justify-self: start;
  margin-bottom: 4px;
}

.auth-route-switch {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.auth-route-switch button {
  padding: 3px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 850;
}

.auth-consent {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.45;
}

.password-checklist {
  display: grid;
  gap: 4px;
  margin: -5px 0 1px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  list-style: none;
}

.password-checklist li::before {
  content: "○";
  display: inline-block;
  width: 18px;
  color: #91a2ba;
  font-weight: 900;
}

.password-checklist li.is-valid {
  color: #087a52;
}

.password-checklist li.is-valid::before {
  content: "✓";
  color: #16a46d;
}

.verify-email-panel {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 12px 2px 4px;
  text-align: center;
}

.verify-email-panel h2,
.verify-email-panel p {
  margin: 0;
}

.verify-email-panel h2 {
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.verify-email-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.verify-email-panel strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 15px;
}

.verify-email-panel .primary-button,
.verify-email-panel .auth-choice-secondary {
  width: 100%;
}

.verify-email-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  color: var(--blue);
  background: #eaf3ff;
  font-size: 32px;
}

.verify-email-resend {
  margin-top: 8px !important;
  font-weight: 750;
}

.auth-form .auth-consent input {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

@media (max-height: 720px) {
  .auth-screen {
    padding-top: calc(var(--safe-top) + 12px);
    padding-bottom: calc(var(--safe-bottom) + 12px);
  }

  .auth-brand {
    margin-bottom: 14px;
  }

  .auth-logo-mark,
  .auth-logo-mark img {
    width: 92px;
    height: 72px;
  }

  .auth-wordmark {
    font-size: 32px;
  }

  .auth-intro {
    margin-bottom: 16px;
  }

  .auth-intro h1 {
    font-size: 24px;
  }

  .auth-provider,
  .auth-choice-primary,
  .auth-choice-secondary {
    min-height: 49px;
  }

  .email-auth-panel {
    padding: 14px;
  }

  .auth-form {
    gap: 9px;
  }

  .auth-form input {
    min-height: 46px;
  }

  .auth-legal {
    margin-top: 16px;
  }
}

.main-app {
  padding:
    calc(56px + var(--safe-top))
    var(--safe-right)
    calc(66px + var(--safe-bottom))
    var(--safe-left);
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 109, 245, 0.055), transparent 210px),
    #fbfcfe;
}

.app-header {
  height: calc(56px + var(--safe-top));
  justify-content: space-between;
  padding:
    var(--safe-top)
    calc(14px + var(--safe-right))
    0
    calc(14px + var(--safe-left));
  background: rgba(255, 255, 255, 0.97);
}

.header-menu,
.header-profile {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
}

.header-menu {
  border: 0;
  border-radius: 11px;
  color: var(--navy);
  background: transparent;
}

.header-menu svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.header-brand {
  position: absolute;
  left: 50%;
  gap: 6px;
  font-size: 17px;
  transform: translateX(-50%);
}

.header-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: none;
}

.header-profile {
  border-width: 1.5px;
  box-shadow: 0 0 0 1px #e3eeff;
}

.app-page {
  min-height: calc(100dvh - 122px - var(--safe-top) - var(--safe-bottom));
  padding: 17px 16px 24px;
}

.page-heading {
  margin-bottom: 16px;
}

.page-heading h1 {
  margin: 4px 0 7px;
  font-size: clamp(25px, 7.2vw, 31px);
  letter-spacing: -0.052em;
}

.page-heading p {
  font-size: 12px;
  line-height: 1.48;
}

.search-heading .eyebrow {
  display: none;
}

.search-heading {
  margin-bottom: 2px;
}

.assistant-orb {
  width: 104px;
  height: 104px;
  margin: 10px auto 5px;
}

.assistant-orb img {
  width: 102px;
  height: 102px;
}

.search-conversation {
  min-height: 130px;
  gap: 8px;
  padding: 8px 0 10px;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 5px;
  font-size: 12px;
  box-shadow: 0 5px 16px rgba(23, 62, 104, 0.07);
}

.user-bubble {
  border-radius: 16px 16px 5px 16px;
}

.suggestion-row,
.example-chips {
  gap: 7px;
  padding-bottom: 7px;
}

.suggestion-row button,
.example-chips button {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 10px;
}

#page-search {
  padding-bottom: 72px;
}

#search-form.composer {
  position: fixed;
  right: auto;
  bottom: calc(68px + var(--safe-bottom));
  left: 50%;
  width: min(calc(100% - 24px), 648px);
  padding: 4px;
  border-width: 1px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 55, 98, 0.12);
  transform: translateX(-50%);
}

.composer input {
  min-height: 40px;
  padding: 8px 4px;
  font-size: 12px;
}

.composer-action,
.composer-send {
  width: 39px;
  height: 39px;
  flex-basis: 39px;
  border-radius: 13px;
}

.composer svg,
.icon-button svg,
.bottom-nav svg {
  width: 19px;
  height: 19px;
}

.publish-prompt-card,
.publish-review-form,
.publish-success {
  padding: 16px;
  border-radius: 21px;
  box-shadow: 0 9px 27px rgba(24, 62, 103, 0.06);
}

.publish-prompt-card {
  margin-top: 14px;
}

.publish-prompt-card > label {
  margin-bottom: 8px;
  font-size: 12px;
}

.publish-prompt-card textarea {
  min-height: 112px;
  padding: 13px;
  border-radius: 15px;
  font-size: 14px;
}

#page-publish > .page-heading {
  max-width: 390px;
  margin: 18px auto 6px;
  text-align: center;
}

#page-publish > .page-heading .eyebrow {
  display: none;
}

.conversation-item {
  min-height: 68px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 3px;
}

.conversation-avatar {
  width: 42px;
  height: 42px;
}

.profile-card {
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(23, 61, 102, 0.06);
}

.profile-avatar {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
}

.profile-stats {
  margin: 12px 0 16px;
  border-radius: 17px;
}

.profile-stats > div {
  padding: 12px 6px;
}

.profile-menu {
  border-radius: 18px;
}

.profile-menu button {
  min-height: 52px;
}

.bottom-nav {
  height: calc(64px + var(--safe-bottom));
  padding:
    4px
    max(7px, var(--safe-right))
    var(--safe-bottom)
    max(7px, var(--safe-left));
  box-shadow: 0 -5px 22px rgba(25, 61, 101, 0.055);
}

.bottom-nav button {
  gap: 2px;
  border-radius: 12px;
  font-size: 8px;
}

.bottom-nav button.active {
  background: transparent;
}

.bottom-nav svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 430px) {
  .auth-brand {
    margin-bottom: 28px;
  }

  .auth-logo-mark {
    width: 138px;
    height: 90px;
  }

  .auth-logo-mark img {
    width: 138px;
    height: 138px;
  }

  .app-page {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-height: 720px) {
  .auth-brand {
    margin-bottom: 20px;
  }

  .auth-logo-mark {
    width: 118px;
    height: 78px;
  }

  .auth-logo-mark img {
    width: 118px;
    height: 118px;
  }

  .auth-intro {
    margin-bottom: 20px;
  }

  .auth-provider {
    min-height: 50px;
  }

  .assistant-orb {
    width: 88px;
    height: 88px;
  }

  .assistant-orb img {
    width: 86px;
    height: 86px;
  }
}

/* Recherche mobile : hiérarchie et interactions proches de l'application cible. */
.main-app {
  padding-top: calc(78px + var(--safe-top));
  padding-bottom: calc(78px + var(--safe-bottom));
}

.app-header {
  height: calc(78px + var(--safe-top));
  justify-content: center;
  padding:
    var(--safe-top)
    calc(18px + var(--safe-right))
    0
    calc(18px + var(--safe-left));
}

.header-menu,
.header-profile {
  width: 42px;
  height: 42px;
}

.header-menu svg {
  width: 25px;
  height: 25px;
}

.header-brand {
  position: static;
  gap: 10px;
  font-size: 24px;
  transform: none;
}

.header-brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

#page-search {
  min-height: calc(100dvh - 148px - var(--safe-top) - var(--safe-bottom));
  padding: 26px 20px 104px;
}

.search-heading {
  max-width: 420px;
  margin: 0 auto 4px;
}

.search-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 8.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.search-heading p {
  max-width: 340px;
  color: #718198;
  font-size: 14px;
  line-height: 1.55;
}

.assistant-orb {
  position: relative;
  isolation: isolate;
  width: 158px;
  height: 158px;
  margin: 18px auto 12px;
  background: radial-gradient(circle, rgba(8, 109, 245, 0.2), transparent 67%);
}

.assistant-orb::before {
  position: absolute;
  z-index: -1;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(8, 109, 245, 0.13);
  box-shadow:
    0 0 0 12px rgba(8, 109, 245, 0.045),
    0 18px 42px rgba(8, 109, 245, 0.2);
  content: "";
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.assistant-orb img {
  width: 142px;
  height: 142px;
  clip-path: circle(41% at 50% 50%);
  filter: drop-shadow(0 17px 22px rgba(8, 109, 245, 0.18));
  transform-origin: center;
  animation: robot-breathe 3.2s ease-in-out infinite;
}

.assistant-wave {
  position: absolute;
  z-index: -2;
  inset: 23px;
  border: 2px solid rgba(8, 109, 245, 0.24);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.assistant-orb.mood-listening::before {
  background: rgba(8, 109, 245, 0.2);
  box-shadow:
    0 0 0 14px rgba(8, 109, 245, 0.07),
    0 20px 48px rgba(8, 109, 245, 0.3);
}

.assistant-orb.mood-listening img {
  animation: robot-listen 0.9s ease-in-out infinite alternate;
}

.assistant-orb.mood-listening .assistant-wave {
  animation: voice-wave 1.35s ease-out infinite;
}

.assistant-orb.mood-listening .assistant-wave-two {
  animation-delay: 0.48s;
}

.assistant-orb.mood-thinking img {
  animation: robot-think 1.15s ease-in-out infinite;
}

.assistant-orb.mood-thinking::before {
  animation: thinking-glow 1.15s ease-in-out infinite;
}

.assistant-orb.mood-success img {
  animation: robot-happy 0.72s ease-out 2;
}

.assistant-orb.mood-success::before {
  background: rgba(0, 207, 166, 0.18);
  box-shadow:
    0 0 0 14px rgba(0, 207, 166, 0.07),
    0 20px 48px rgba(0, 207, 166, 0.24);
}

.assistant-orb.mood-concern img {
  animation: robot-concern 0.42s ease-in-out 2;
}

@keyframes robot-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.025);
  }
}

@keyframes robot-listen {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1.055);
  }
}

@keyframes robot-think {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  35% {
    transform: translateX(-4px) rotate(-4deg);
  }
  70% {
    transform: translateX(4px) rotate(4deg);
  }
}

@keyframes robot-happy {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-9px) scale(1.06);
  }
}

@keyframes robot-concern {
  0%,
  100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-4px);
  }
  70% {
    transform: translateX(4px);
  }
}

@keyframes voice-wave {
  from {
    opacity: 0.62;
    transform: scale(0.78);
  }
  to {
    opacity: 0;
    transform: scale(1.58);
  }
}

@keyframes thinking-glow {
  0%,
  100% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.08);
  }
}

.search-conversation {
  min-height: 190px;
  max-width: 440px;
  margin: 0 auto;
  gap: 12px;
  padding: 6px 0 18px;
}

.chat-bubble {
  max-width: 86%;
  padding: 14px 16px;
  border-radius: 19px 19px 19px 6px;
  font-size: 14px;
  line-height: 1.48;
  box-shadow: 0 8px 24px rgba(23, 62, 104, 0.09);
}

.user-bubble {
  border-radius: 19px 19px 6px 19px;
}

.chat-bubble time {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  line-height: 1;
  text-align: right;
}

.typing-bubble {
  flex-wrap: wrap;
  min-width: 155px;
}

.typing-bubble span {
  width: 100%;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

#search-form.composer {
  bottom: calc(82px + var(--safe-bottom));
  width: min(calc(100% - 32px), 620px);
  min-height: 64px;
  gap: 8px;
  padding: 7px;
  border: 1px solid #e3e9f1;
  border-radius: 32px;
  box-shadow:
    0 13px 32px rgba(17, 55, 98, 0.12),
    0 0 0 1px rgba(8, 109, 245, 0.02);
}

#search-form.composer input {
  min-height: 48px;
  padding: 10px 5px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 550;
}

#search-form.composer input::placeholder {
  color: #7d8ba0;
  opacity: 1;
}

#search-form .composer-action,
#search-form .composer-send {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  border-radius: 50%;
}

#search-form .composer-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(8, 109, 245, 0.24);
}

#search-form .composer-action[aria-pressed="true"] {
  box-shadow:
    0 0 0 6px rgba(8, 109, 245, 0.13),
    0 8px 22px rgba(8, 109, 245, 0.3);
  animation: microphone-pulse 1s ease-in-out infinite;
}

#search-form .composer-send {
  color: #98a5b7;
  background: #eef2f6;
  box-shadow: none;
  transition: color 90ms ease;
  -webkit-tap-highlight-color: transparent;
}

#search-form .composer-send:not(:disabled):active,
#search-form .composer-send.is-pressed {
  color: var(--blue);
}

#search-form .composer-send:disabled {
  cursor: default;
  opacity: 0.58;
}

#search-form .composer-action svg,
#search-form .composer-send svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

@keyframes microphone-pulse {
  50% {
    transform: scale(1.06);
  }
}

.bottom-nav {
  height: calc(78px + var(--safe-bottom));
  padding:
    6px
    max(10px, var(--safe-right))
    var(--safe-bottom)
    max(10px, var(--safe-left));
}

.bottom-nav button {
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
}

.bottom-nav svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

@media (max-width: 370px) {
  .search-heading h1 {
    font-size: 28px;
  }

  .search-heading p {
    font-size: 13px;
  }

  .assistant-orb {
    width: 140px;
    height: 140px;
    margin-top: 10px;
  }

  .assistant-orb img {
    width: 128px;
    height: 128px;
  }

  .search-conversation {
    min-height: 165px;
  }

  #search-form.composer {
    width: calc(100% - 22px);
  }
}

@media (max-height: 720px) {
  #page-search {
    padding-top: 16px;
  }

  .search-heading h1 {
    margin-bottom: 7px;
    font-size: 27px;
  }

  .search-heading p {
    font-size: 12px;
  }

  .assistant-orb {
    width: 122px;
    height: 122px;
    margin: 8px auto 4px;
  }

  .assistant-orb img {
    width: 112px;
    height: 112px;
  }

  .search-conversation {
    min-height: 145px;
    padding-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-orb img,
  .assistant-orb::before,
  .assistant-wave,
  #search-form .composer-action {
    animation: none !important;
  }
}

/* Voyager : parcours principal structuré, l’assistant reste facultatif. */
#page-search.voyager-page {
  min-height: calc(100dvh - 146px - var(--safe-top) - var(--safe-bottom));
  padding: 24px 18px 112px;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 109, 245, 0.08), transparent 250px),
    var(--page);
}

.voyager-view {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.voyager-view.active {
  animation: voyager-view-in 180ms ease-out;
}

@keyframes voyager-view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voyager-hero {
  margin: 0 0 22px;
}

.voyager-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 850;
}

.voyager-greeting::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(0, 207, 166, 0.11);
  content: "";
}

.voyager-hero h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.voyager-hero > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.travel-mode-selector {
  display: grid;
  gap: 14px;
}

.travel-mode-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 150px;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 32%);
  align-items: center;
  gap: 8px;
  padding: 22px 14px 22px 20px;
  overflow: hidden;
  border: 1px solid #dce8f6;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f7fbff 100%);
  box-shadow: 0 14px 34px rgba(23, 62, 104, 0.085);
  text-align: left;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.travel-mode-card::after {
  position: absolute;
  right: -28px;
  top: 14px;
  width: 152px;
  height: 124px;
  border-radius: 55% 42% 48% 58%;
  background: rgba(8, 109, 245, 0.055);
  content: "";
  pointer-events: none;
}

.travel-mode-card:focus-visible {
  outline: 3px solid rgba(8, 109, 245, 0.28);
  outline-offset: 3px;
}

.travel-mode-card:active {
  transform: scale(0.985);
}

.travel-mode-card:hover {
  border-color: rgba(8, 109, 245, 0.34);
  box-shadow: 0 16px 38px rgba(23, 62, 104, 0.11);
}

.driver-mode-card {
  border-color: #ccefe7;
  background: linear-gradient(135deg, #fff 0%, #f3fffb 100%);
}

.driver-mode-card::after {
  background: rgba(0, 207, 166, 0.09);
}

.travel-mode-illustration {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 124px);
  aspect-ratio: 4 / 3;
  place-items: center;
  justify-self: end;
  margin-top: 12px;
  overflow: visible;
  pointer-events: none;
}

.travel-mode-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 160px;
  max-height: 120px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}

.travel-mode-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.travel-mode-copy small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.driver-mode-card .travel-mode-copy small {
  color: #087e68;
}

.travel-mode-copy strong {
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.travel-mode-copy span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.travel-mode-arrow,
.voyager-recent-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.travel-mode-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #d9e8fb;
  border-radius: 50%;
  background: rgba(242, 247, 255, 0.94);
  box-shadow: 0 5px 14px rgba(8, 109, 245, 0.08);
}

.driver-mode-card .travel-mode-arrow {
  border-color: #ccece4;
  color: #087e68;
  background: rgba(232, 250, 246, 0.96);
  box-shadow: 0 5px 14px rgba(8, 126, 104, 0.08);
}

.travel-mode-arrow svg,
.voyager-recent-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.voyager-recent {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.voyager-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.voyager-section-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.voyager-recent-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.voyager-recent-item {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 40px 1fr 28px;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

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

.voyager-recent-item:focus-visible {
  outline: 3px solid rgba(8, 109, 245, 0.25);
  outline-offset: -3px;
}

.voyager-recent-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
}

.voyager-recent-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.voyager-recent-item > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.voyager-recent-item strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voyager-recent-item strong i {
  color: var(--blue);
  font-style: normal;
}

.voyager-recent-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.voyager-recent-arrow {
  width: 28px;
  height: 28px;
  justify-self: end;
  border-radius: 50%;
  background: var(--blue-soft);
}

.voyager-recent-arrow svg {
  width: 15px;
  height: 15px;
}

.voyager-assistant-shortcut {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 12px;
  align-items: center;
  margin-top: 24px;
  padding: 15px;
  border: 1px solid #e4ebf4;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.voyager-assistant-shortcut img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(8, 109, 245, 0.12);
  box-shadow:
    0 0 0 4px rgba(8, 109, 245, 0.045),
    0 7px 16px rgba(23, 62, 104, 0.1);
  object-fit: cover;
}

.voyager-assistant-shortcut > span {
  display: grid;
  gap: 3px;
}

.voyager-assistant-shortcut strong {
  font-size: 13px;
}

.voyager-assistant-shortcut small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.voyager-assistant-shortcut button {
  grid-column: 2;
  justify-self: start;
  padding: 4px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.voyager-inner-header {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 22px;
}

.voyager-back-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 7px 18px rgba(23, 62, 104, 0.06);
}

.voyager-back-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.voyager-inner-header > span {
  display: grid;
  gap: 3px;
  padding-top: 2px;
}

.voyager-inner-header small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.voyager-inner-header h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.passenger-search-form {
  display: grid;
  gap: 12px;
}

.passenger-search-card {
  overflow: hidden;
  border: 2px solid var(--blue);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 62, 104, 0.11);
}

.passenger-route-fields {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0 21px;
  padding-left: 31px;
}

.passenger-route-line {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 2px;
  display: flex;
  width: 13px;
  flex-direction: column;
  align-items: center;
}

.passenger-route-line i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.passenger-route-line i:last-child {
  border-color: var(--mint);
  background: var(--mint);
}

.passenger-route-line span {
  width: 2px;
  flex: 1;
  background: #ccd9e9;
}

.passenger-search-field {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--line);
}

.passenger-search-field:last-child {
  border-bottom: 0;
}

.passenger-search-field > span,
.passenger-trip-date > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.passenger-search-field input {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font-size: 16px;
  font-weight: 750;
}

.passenger-search-field input::placeholder {
  color: #95a2b4;
  font-weight: 550;
  opacity: 1;
}

.passenger-location-results {
  position: absolute;
  z-index: 30;
  top: calc(100% - 4px);
  right: 8px;
  left: -42px;
  display: grid;
  max-height: min(310px, 45dvh);
  overflow-y: auto;
  border: 1px solid #d9e5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(18, 56, 98, 0.18);
}

.passenger-location-results button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.passenger-location-results button:last-child {
  border-bottom: 0;
}

.passenger-location-results button:focus-visible,
.passenger-location-results button:hover {
  outline: 0;
  background: #f4f8ff;
}

.passenger-location-results svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.passenger-location-results button span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.passenger-location-results strong,
.passenger-location-results small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passenger-location-results strong {
  font-size: 13px;
}

.passenger-location-results small,
.passenger-location-empty {
  color: var(--muted);
  font-size: 10px;
}

.passenger-location-empty {
  margin: 0;
  padding: 17px;
  text-align: center;
}

.passenger-trip-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 21px;
  border-top: 1px solid var(--line);
}

.passenger-trip-date {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 64px;
  align-content: center;
  gap: 3px;
  padding: 10px 15px 11px 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.passenger-return-date {
  padding-right: 0;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.passenger-trip-date span small {
  font-size: 9px;
  font-weight: 650;
}

.passenger-trip-date strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passenger-trip-date:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(8, 109, 245, 0.24);
  outline-offset: -3px;
}

.passenger-trip-time {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: calc(100% - 42px);
  min-height: 64px;
  margin: 0 21px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--navy);
  background: transparent;
  font: inherit;
  text-align: left;
}

.passenger-trip-time > svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.passenger-trip-time > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.passenger-trip-time small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.passenger-trip-time small i {
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
}

.passenger-trip-time strong {
  font-size: 15px;
}

.passenger-trip-time > em {
  color: var(--blue);
  font-size: 24px;
  font-style: normal;
}

.passenger-trip-time:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(8, 109, 245, 0.24);
  outline-offset: -3px;
}

.passenger-date-picker-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.passenger-date-picker-heading > span {
  display: grid;
  gap: 3px;
}

.passenger-date-picker-heading small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.passenger-date-picker-heading strong {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.passenger-date-picker-heading > button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: #f0f6fd;
}

.passenger-date-picker-heading svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.passenger-date-picker-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.passenger-date-picker-shortcuts button {
  min-height: 43px;
  padding: 8px 12px;
  border: 1px solid #d9e8fb;
  border-radius: 14px;
  color: var(--blue);
  background: #f3f8ff;
  font-size: 12px;
  font-weight: 850;
}

.passenger-date-picker-shortcuts button:disabled {
  cursor: default;
  opacity: 0.35;
}

#passenger-date-picker-clear {
  grid-column: 1 / -1;
  color: var(--muted);
  background: #fff;
}

#passenger-date-picker-clear[hidden] {
  display: none;
}

.passenger-time-picker-sheet {
  max-height: min(650px, 86dvh);
}

.passenger-time-picker-copy {
  margin: -5px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.passenger-time-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: min(360px, 48dvh);
  padding: 2px;
  overflow-y: auto;
}

.passenger-time-options button,
.passenger-time-clear {
  min-height: 43px;
  border: 1px solid #d9e8fb;
  border-radius: 13px;
  color: var(--navy);
  background: #f5f9ff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.passenger-time-options button.selected,
.passenger-time-options button:focus-visible,
.passenger-time-clear.selected {
  border-color: var(--blue);
  outline: 0;
  color: #fff;
  background: var(--blue);
}

.passenger-time-clear {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 370px) {
  .passenger-time-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.passenger-search-card .passenger-search-submit {
  width: 100%;
  min-height: 60px;
  margin: 0;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  box-shadow: none;
}

.passenger-search-error {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #f3c7ce;
  border-radius: 13px;
  color: #a42c3c;
  background: #fff3f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.passenger-search-submit {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  border-radius: 18px;
  font-size: 15px;
}

.passenger-search-submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: passenger-spinner 700ms linear infinite;
}

@keyframes passenger-spinner {
  to {
    transform: rotate(360deg);
  }
}

.passenger-results-header {
  margin-bottom: 15px;
}

.passenger-results-header h1 {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 7vw, 34px);
}

.passenger-results-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.passenger-search-results {
  display: grid;
  gap: 12px;
  min-height: 220px;
}

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

.passenger-return-results {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.passenger-return-results h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.passenger-leg-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.passenger-search-results .app-empty-search-state {
  margin-top: 20px;
}

.voyager-assistant-view {
  padding-bottom: 86px;
}

.voyager-assistant-view .assistant-orb {
  width: 126px;
  height: 126px;
  margin: 0 auto 4px;
}

.voyager-assistant-view .assistant-orb img {
  width: 116px;
  height: 116px;
}

.voyager-assistant-view .search-conversation {
  min-height: 190px;
}

@media (min-width: 620px) {
  .travel-mode-selector {
    grid-template-columns: 1fr 1fr;
  }

  .travel-mode-card {
    min-height: 224px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
    padding: 23px 20px 18px;
  }

  .travel-mode-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 205px;
  }

  .travel-mode-illustration {
    width: 148px;
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-top: -2px;
  }

  .travel-mode-arrow {
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 370px) {
  #page-search.voyager-page {
    padding-right: 13px;
    padding-left: 13px;
  }

  .voyager-hero h1 {
    font-size: 29px;
  }

  .travel-mode-card {
    min-height: 136px;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 6px;
    padding: 18px 12px 18px 15px;
  }

  .travel-mode-illustration {
    width: 98px;
    margin-top: 10px;
  }

  .travel-mode-copy strong {
    font-size: 18px;
  }

  .travel-mode-copy span {
    font-size: 11.5px;
  }

  .travel-mode-arrow {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .passenger-trip-date {
    padding-right: 10px;
  }

  .passenger-return-date {
    padding-right: 0;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voyager-view.active,
  .button-spinner {
    animation: none !important;
  }
}


/* Publication : une phrase d'abord, les détails seulement après l'analyse. */
#page-publish {
  min-height: calc(100dvh - 148px - var(--safe-top) - var(--safe-bottom));
  padding: 28px 20px 106px;
}

#page-publish .publish-prompt-card {
  display: flex;
  min-height: calc(100dvh - 260px - var(--safe-top) - var(--safe-bottom));
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#page-publish .publish-heading {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

#page-publish .publish-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(29px, 8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

#page-publish .publish-heading p {
  max-width: 350px;
  margin: 0 auto;
  color: #718198;
  font-size: 15px;
  line-height: 1.55;
}

#page-publish .publish-heading strong {
  color: var(--blue);
  font-weight: 800;
}

.publish-examples {
  width: min(100%, 430px);
  margin: clamp(48px, 10vh, 82px) auto 0;
}

.publish-examples > span {
  display: block;
  margin: 0 0 14px 4px;
  color: #75849a;
  font-size: 13px;
  font-weight: 750;
}

.publish-examples .example-chips {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 0;
  overflow: visible;
}

.publish-examples .example-chips button {
  min-height: 46px;
  max-width: 100%;
  padding: 11px 18px;
  border-color: #e2e8f1;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 7px 20px rgba(17, 55, 98, 0.06);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.publish-voice-orb {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  margin: auto auto 10px;
  padding: 0;
  border: 8px solid #e8f2ff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow:
    0 12px 28px rgba(8, 109, 245, 0.28),
    0 0 0 8px rgba(8, 109, 245, 0.06);
}

/* Mascotte OpenCar : le robot principal reste sur Recherche, sa version mini accompagne les autres ecrans. */
.app-mascot {
  position: fixed;
  z-index: 3;
  right: 18px;
  bottom: calc(84px + var(--safe-bottom));
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  place-items: center;
  pointer-events: none !important;
  user-select: none;
  touch-action: none;
  color: var(--navy);
  background: transparent;
  font: inherit;
  filter: drop-shadow(0 9px 14px rgba(8, 109, 245, 0.22));
  animation: mascot-wander 4.6s ease-in-out infinite;
}

.app-mascot[hidden] {
  display: none;
}

.app-mascot[data-page="messages"] {
  right: auto;
  left: 18px;
  width: auto;
  min-width: 190px;
  height: 58px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(8, 109, 245, 0.16);
  border-radius: 999px;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(10, 62, 124, 0.16);
  filter: none;
  animation: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.app-mascot[data-page="messages"]:hover,
.app-mascot[data-page="messages"]:focus-visible {
  background: #fff;
  box-shadow: 0 13px 32px rgba(8, 77, 158, 0.22);
  transform: translateY(-2px);
}

.app-mascot[data-page="messages"]:focus-visible {
  outline: 3px solid rgba(8, 109, 245, 0.28);
  outline-offset: 3px;
}

.app-mascot[data-page="messages"]:active {
  transform: translateY(1px) scale(0.98);
}

.app-mascot[data-page="profile"] {
  right: 24px;
  animation-delay: -2.7s;
}

.app-mascot-visual {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
}

.app-mascot-copy {
  display: none;
  min-width: 0;
  text-align: left;
}

.app-mascot[data-page="messages"] .app-mascot-copy {
  display: grid;
  gap: 1px;
}

.app-mascot-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.app-mascot-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.app-mascot-orbit {
  position: absolute;
  inset: 1px;
  border: 2px solid rgba(8, 120, 255, 0.16);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.72);
}

.app-mascot-face {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #163c6c, #02162f 72%);
  box-shadow: 0 0 0 4px rgba(8, 120, 255, 0.18);
}

.app-mascot-face i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1ddbb1;
  box-shadow: 0 0 6px #1ddbb1;
  animation: mascot-blink 4.6s step-end infinite;
}

.app-mascot-face b {
  position: absolute;
  width: 11px;
  height: 5px;
  margin-top: 12px;
  border-bottom: 2px solid #1ddbb1;
  border-radius: 0 0 10px 10px;
}

.app-mascot-face em {
  position: absolute;
  width: 8px;
  height: 4px;
  margin-top: -11px;
  border-top: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transform: translateX(-7px) rotate(-18deg);
  animation: mascot-wink 7.2s ease-in-out infinite;
}

.app-mascot-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #69d9ff;
  box-shadow: 0 0 9px #69d9ff;
  animation: mascot-spark 3.6s ease-in-out infinite;
}

.app-mascot-spark-one {
  top: 3px;
  right: 4px;
}

.app-mascot-spark-two {
  bottom: 5px;
  left: 2px;
  animation-delay: -1.8s;
}

@keyframes mascot-wander {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  45% { transform: translate3d(-5px, -8px, 0) rotate(5deg); }
  70% { transform: translate3d(3px, -3px, 0) rotate(-1deg); }
}

@keyframes mascot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96% { transform: scaleY(0.12); }
}

@keyframes mascot-wink {
  0%, 82%, 100% { opacity: 0; transform: translateX(-7px) rotate(-18deg) scaleY(0.2); }
  86%, 90% { opacity: 1; transform: translateX(-7px) rotate(-18deg) scaleY(1); }
}

@keyframes mascot-spark {
  0%, 100% { opacity: 0.2; transform: translate3d(0, 0, 0) scale(0.7); }
  50% { opacity: 1; transform: translate3d(3px, -6px, 0) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
.app-mascot,
  .app-mascot-face i,
  .app-mascot-face em,
  .app-mascot-spark {
    animation: none;
  }
}

.publish-voice-orb svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-prompt-card.is-listening .publish-voice-orb {
  animation: microphone-pulse 1s ease-in-out infinite;
  box-shadow:
    0 0 0 10px rgba(8, 109, 245, 0.12),
    0 12px 30px rgba(8, 109, 245, 0.32);
}

#publish-composer.composer {
  position: fixed;
  right: auto;
  bottom: calc(82px + var(--safe-bottom));
  left: 50%;
  width: min(calc(100% - 32px), 620px);
  min-height: 64px;
  gap: 8px;
  padding: 7px;
  border: 1px solid #e3e9f1;
  border-radius: 32px;
  box-shadow:
    0 13px 32px rgba(17, 55, 98, 0.12),
    0 0 0 1px rgba(8, 109, 245, 0.02);
  transform: translateX(-50%);
}

.publish-analysis-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #31506f;
  background: #eef6ff;
  font-size: 13px;
  line-height: 1.35;
}

#publish-composer input {
  min-height: 48px;
  padding: 10px 5px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 550;
}

#publish-composer input::placeholder {
  color: #7d8ba0;
  opacity: 1;
}

#publish-composer .composer-action,
#publish-composer .composer-send {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  border-radius: 50%;
}

#publish-composer .composer-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(8, 109, 245, 0.24);
}

#publish-composer .composer-action[aria-pressed="true"] {
  animation: microphone-pulse 1s ease-in-out infinite;
  box-shadow:
    0 0 0 6px rgba(8, 109, 245, 0.13),
    0 8px 22px rgba(8, 109, 245, 0.3);
}

#publish-composer .composer-send {
  color: #98a5b7;
  background: #eef2f6;
  box-shadow: none;
}

#publish-composer .composer-action svg,
#publish-composer .composer-send svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-publish .publish-review-form,
#page-publish .publish-success {
  margin-top: 8px;
}

@media (max-height: 720px) {
  #page-publish {
    padding-top: 18px;
  }

  #page-publish .publish-heading h1 {
    margin-bottom: 8px;
    font-size: 27px;
  }

  #page-publish .publish-heading p {
    font-size: 13px;
  }

  .publish-examples {
    margin-top: 28px;
  }

  .publish-examples .example-chips {
    gap: 7px;
  }

  .publish-examples .example-chips button {
    min-height: 39px;
    padding: 8px 15px;
  }

  .publish-voice-orb {
    width: 65px;
    height: 65px;
    flex-basis: 65px;
    border-width: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publish-voice-orb,
  #publish-composer .composer-action {
    animation: none !important;
  }
}

/* Carte d'itineraire et recommandation tarifaire */
.route-planner {
  display: grid;
  gap: 14px;
  padding-top: 3px;
}

.route-planner-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.route-planner-heading .eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.route-planner-heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}

.route-estimate-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.route-estimate-status.loading::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border: 2px solid rgba(8, 109, 245, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  content: "";
  vertical-align: -1px;
  animation: spin 0.8s linear infinite;
}

.route-point-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.route-point-switcher button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--navy);
  background: #fff;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.route-point-switcher button.active {
  border-color: rgba(8, 109, 245, 0.5);
  background: #f3f8ff;
  box-shadow: 0 7px 18px rgba(8, 109, 245, 0.1);
}

.route-point-switcher button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.route-point-switcher small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-point-switcher strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-point-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--blue);
  background: var(--blue);
}

.route-point-dot.arrival {
  box-shadow: 0 0 0 2px var(--green);
  background: var(--green);
}

.route-map {
  z-index: 0;
  width: 100%;
  height: 275px;
  overflow: hidden;
  border: 1px solid #d7e4f2;
  border-radius: 22px;
  background: #eaf3fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.route-map .leaflet-control-zoom {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(9, 37, 72, 0.16);
}

.route-map .leaflet-control-zoom a {
  color: var(--navy);
}

.route-map .leaflet-control-attribution {
  font-size: 8px;
}

.route-map-help {
  margin: -5px 3px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.opencar-map-marker-shell {
  border: 0;
  background: transparent;
}

.opencar-map-marker {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 10px;
  transform: rotate(-45deg);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(8, 109, 245, 0.34);
  font-size: 13px;
  font-weight: 900;
}

.opencar-map-marker.arrival {
  background: var(--green);
  box-shadow: 0 7px 18px rgba(13, 175, 121, 0.34);
}

.opencar-map-marker::first-letter {
  transform: rotate(45deg);
}

.opencar-map-marker {
  text-indent: 0;
}

.opencar-map-marker.departure,
.opencar-map-marker.arrival {
  line-height: 30px;
}

.opencar-map-marker.departure {
  color: transparent;
}

.opencar-map-marker.arrival {
  color: transparent;
}

.opencar-map-marker.departure::before,
.opencar-map-marker.arrival::before {
  transform: rotate(45deg);
  color: #fff;
  content: "A";
}

.opencar-map-marker.arrival::before {
  content: "B";
}

.price-field.price-good .price-value {
  border-color: rgba(13, 175, 121, 0.45);
  background: #f6fffb;
}

.price-field.price-medium .price-value {
  border-color: rgba(219, 138, 22, 0.5);
  background: #fffaf0;
}

.price-field.price-medium .price-value input,
.price-field.price-medium .price-value > span {
  color: var(--amber);
}

.price-field.price-high .price-value {
  border-color: rgba(220, 63, 79, 0.5);
  background: #fff6f7;
}

.price-field.price-high .price-value input,
.price-field.price-high .price-value > span {
  color: var(--red);
}

@media (max-width: 390px) {
  .route-planner-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-map {
    height: 245px;
  }

  .price-stepper {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .price-stepper button {
    width: 48px;
    height: 48px;
  }

  .price-value input {
    font-size: 27px;
  }
}


/* Profile page */
#page-profile {
  padding: 10px 16px 28px;
}

.profile-page-heading {
  position: relative;
  display: grid;
  min-height: 56px;
  place-items: center;
  margin-bottom: 13px;
}

.profile-page-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.profile-page-heading .icon-button {
  position: absolute;
  right: 0;
  width: 42px;
  height: 42px;
  color: #52667f;
  background: transparent;
  box-shadow: none;
}

.profile-page-heading .icon-button svg {
  width: 22px;
  height: 22px;
}

.profile-summary-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(23, 61, 102, 0.08);
}

#page-profile .profile-card {
  position: relative;
  gap: 16px;
  padding: 20px 18px 17px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#page-profile .profile-avatar {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  border-width: 3px;
  box-shadow: 0 0 0 2px #dce7f4;
  font-size: 23px;
}

#page-profile .profile-avatar.is-certified {
  box-shadow: 0 0 0 3px var(--blue), 0 0 0 6px #d8ebff;
}

#page-profile .profile-identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

#page-profile .profile-identity h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.profile-rating-line {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  color: var(--navy-soft) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.profile-rating-line strong {
  font-weight: 850;
}

.profile-rating-line > span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.profile-star {
  color: #f5b91f;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(245, 185, 31, 0.25));
}

#page-profile .profile-identity small {
  margin-top: 1px;
  color: #8a98aa;
  font-size: 11px;
  font-weight: 600;
}

.mobile-grade-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #b8d7ff;
  border-radius: 999px;
  color: #0758c7;
  background: #edf6ff;
  font-size: 10px;
  line-height: 1;
}

.mobile-grade-badge strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-grade-symbol {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: currentColor;
}

.mobile-grade-badge[data-grade="urban"] {
  border-color: #e4a36d;
  color: #a4511f;
  background: #fff0e3;
}

.mobile-grade-badge[data-grade="captain"] {
  border-color: #aab7c8;
  color: #526174;
  background: #f0f3f7;
}

.mobile-grade-badge[data-grade="captain"] .mobile-grade-symbol {
  border-radius: 50% 50% 2px 2px;
}

.mobile-grade-badge[data-grade="legend"] {
  border-color: #e0a90d;
  color: #9c6800;
  background: linear-gradient(135deg, #fff6bd, #ffd65a);
  box-shadow: 0 5px 13px rgba(224, 169, 13, 0.17);
}

#page-profile .verified-badge {
  top: 78px;
  bottom: auto;
  left: 80px;
  width: 23px;
  height: 23px;
}

#page-profile .profile-stats {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

#page-profile .profile-stats > div {
  gap: 5px;
  padding: 16px 7px;
}

#page-profile .profile-stats strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}

#page-profile .profile-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

#page-profile .profile-stats .co2-stat strong {
  color: var(--green);
}

#page-profile .profile-menu {
  margin-top: 16px;
  border-radius: 21px;
  box-shadow: 0 11px 30px rgba(23, 61, 102, 0.055);
}

#page-profile .profile-menu button {
  min-height: 60px;
  grid-template-columns: 29px minmax(0, 1fr) 20px;
  gap: 10px;
  padding: 9px 15px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
}

#page-profile .menu-icon {
  width: 27px;
  height: 27px;
  color: #52667f;
  background: transparent;
}

#page-profile .menu-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-profile .menu-chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8190a3;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog-form [data-dialog-logout] {
  margin-top: 4px;
}

@media (max-width: 390px) {
  #page-profile {
    padding-inline: 13px;
  }

  #page-profile .profile-card {
    gap: 13px;
    padding-inline: 15px;
  }

  #page-profile .profile-avatar {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }

  #page-profile .verified-badge {
    top: 72px;
    left: 70px;
  }

  #page-profile .profile-identity h2 {
    font-size: 20px;
  }

  #page-profile .profile-menu button {
    min-height: 56px;
    font-size: 14px;
  }
}

/* Trip discovery, booking and account journeys */
.results-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 4px;
}

.results-summary strong {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -0.025em;
}

.results-summary span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.opencar-result-card {
  padding: 0;
  overflow: hidden;
  border-color: #d9e5f2;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(25, 68, 113, 0.075);
}

.opencar-result-card .trip-card-main {
  display: block;
  padding: 0;
}

.opencar-result-card .favorite-button {
  top: 11px;
  right: 11px;
  width: 32px;
  height: 32px;
  border: 0;
  box-shadow: none;
}

.opencar-result-card .favorite-button:not(.is-favorite) {
  color: #69809a;
}

.opencar-result-card .favorite-button svg {
  position: static;
  width: 19px;
  min-width: 19px;
  height: 19px;
  padding: 0;
}

.result-card-main {
  display: grid;
  min-height: 142px;
  grid-template-columns: 45px 14px minmax(0, 1fr) 72px;
  gap: 7px;
  align-items: stretch;
  padding: 18px 12px 15px 14px;
}

.result-times,
.result-places {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-times {
  align-items: flex-start;
  padding: 1px 0;
}

.result-times strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1;
}

.result-times span {
  color: #60738a;
  font-size: 11px;
  font-weight: 700;
}

.result-route-line {
  display: grid;
  min-height: 102px;
  grid-template-rows: 11px 1fr 11px;
  justify-items: center;
  align-self: center;
}

.result-route-line i {
  width: 9px;
  height: 9px;
  border: 2px solid #3c5878;
  border-radius: 50%;
  background: #fff;
}

.result-route-line span {
  width: 2px;
  height: 100%;
  min-height: 58px;
  background: repeating-linear-gradient(
    to bottom,
    #3c5878 0 5px,
    transparent 5px 9px
  );
}

.result-places {
  min-width: 0;
  padding: 0 0 1px;
}

.result-places div {
  display: grid;
  gap: 3px;
}

.result-places strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-places span {
  display: -webkit-box;
  overflow: hidden;
  color: #50657e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-top: 32px;
  text-align: right;
}

.result-price strong {
  color: var(--navy);
  font-size: 19px;
  line-height: 1;
}

.result-price span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.2;
}

.result-card-footer {
  display: grid;
  min-height: 65px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-top: 1px solid #e8eef5;
  background: #fbfcfe;
}

.result-driver-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border: 2px solid #d7e9ff;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 850;
}

.result-driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-driver-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.result-driver-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-driver-copy small {
  color: #667a91;
  font-size: 10px;
}

.result-seat-badge {
  padding: 6px 8px;
  border-radius: 999px;
  color: #29624f;
  background: #e9fbf5;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.result-seat-badge.urgent {
  color: #a34d16;
  background: #fff0e3;
}

.app-dialog[data-variant="trip-sheet"] {
  align-items: stretch;
}

.app-dialog[data-variant="trip-sheet"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant="trip-sheet"] .dialog-card {
  width: 100%;
  max-width: 680px;
  max-height: 100dvh;
  padding: var(--safe-top) 0 0;
  border-radius: 0;
  box-shadow: none;
}

.app-dialog[data-variant="trip-sheet"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="trip-sheet"] .dialog-card > header {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 58px;
  padding: 8px 16px;
  border-bottom: 1px solid #e8edf4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.app-dialog[data-variant="trip-sheet"] .dialog-card > header h2 {
  font-size: 18px;
}

.app-dialog[data-variant="trip-sheet"] .dialog-content {
  padding: 0;
}

.trip-detail-sheet {
  min-height: calc(100dvh - var(--safe-top) - 58px);
  padding-bottom: 0;
  background: #fff;
}

.trip-detail-hero,
.trip-detail-section,
.trip-impact-card,
.trip-detail-links,
.trip-legal-copy {
  border-bottom: 8px solid #f0f3f7;
  background: #fff;
}

.trip-detail-hero {
  padding: 24px 18px 20px;
}

.trip-detail-date {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 27px;
  font-weight: 880;
  letter-spacing: -0.045em;
}

.trip-detail-route {
  display: grid;
  grid-template-columns: 55px 16px minmax(0, 1fr);
  gap: 7px;
  min-height: 112px;
}

.trip-detail-times,
.trip-detail-places {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trip-detail-times {
  align-items: flex-start;
}

.trip-detail-times strong {
  color: var(--navy);
  font-size: 17px;
}

.trip-detail-times span {
  color: #687a91;
  font-size: 12px;
  font-weight: 750;
}

.trip-detail-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding: 4px 0;
}

.trip-detail-line i {
  position: relative;
  z-index: 1;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border: 2px solid #415a77;
  border-radius: 50%;
  background: #fff;
}

.trip-detail-line span {
  flex: 1 1 auto;
  width: 3px;
  min-height: 0;
  margin: -1px 0;
  border-radius: 999px;
  background: #415a77;
}

.trip-detail-places div {
  display: grid;
  gap: 4px;
}

.trip-detail-places strong {
  color: var(--navy);
  font-size: 18px;
}

.trip-detail-places span {
  color: #53677f;
  font-size: 13px;
  line-height: 1.3;
}

.trip-detail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 21px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #edf5ff;
}

.trip-detail-summary span {
  color: #18558d;
  font-size: 14px;
  font-weight: 820;
}

.trip-detail-summary span.urgent {
  color: #b54a14;
}

.trip-detail-summary strong {
  color: var(--navy);
  font-size: 24px;
}

.trip-fee-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.trip-detail-section {
  padding: 21px 18px;
}

.driver-detail-card {
  display: grid;
  gap: 14px;
}

.driver-detail-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.driver-detail-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  border: 3px solid #cfe5ff;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 17px;
  font-weight: 850;
}

.driver-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-detail-heading > span:last-child {
  display: grid;
  gap: 4px;
}

.driver-detail-heading strong {
  color: var(--navy);
  font-size: 18px;
}

.driver-detail-heading small {
  color: #61758d;
  font-size: 12px;
}

.detail-trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #50637b;
  font-size: 14px;
  font-weight: 680;
}

.detail-trust-line span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
}

.driver-description {
  display: grid;
  gap: 6px;
  margin-top: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.driver-description p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #53677f;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.trip-impact-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 20px 18px;
}

.impact-leaf {
  color: var(--green);
  font-size: 28px;
}

.trip-impact-card p {
  margin: 0;
  color: #50657d;
  font-size: 13px;
  line-height: 1.5;
}

.trip-detail-links {
  display: grid;
  padding: 5px 18px;
}

.trip-detail-links button {
  min-height: 55px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.trip-detail-links button:last-child {
  border-bottom: 0;
}

.trip-legal-copy {
  margin: 0;
  padding: 20px 18px;
  color: #687991;
  font-size: 11px;
  line-height: 1.55;
}

.trip-sheet-actions {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px 15px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.trip-sheet-actions > * {
  grid-column: 1 / -1;
}

.trip-sheet-actions button {
  min-height: 50px;
  border-radius: 999px;
  min-width: 0;
  width: 100%;
  white-space: normal;
}

.trip-detail-sheet > :last-child {
  border-bottom: 0;
}

.trip-detail-sheet > .trip-legal-copy:last-child {
  padding-bottom: calc(20px + var(--safe-bottom));
}

.trip-sheet-actions > .trip-cancel-button,
.trip-sheet-actions > .secondary-button {
  min-height: 50px;
  padding: 10px 14px;
  border-width: 1px;
  border-style: solid;
  text-align: center;
  line-height: 1.2;
}

.trip-sheet-actions > .trip-cancel-button {
  border-color: #f0bfc4;
  color: #cf3544;
  background: #fff;
}

.trip-sheet-actions > .trip-cancel-button:hover,
.trip-sheet-actions > .trip-cancel-button:focus-visible {
  background: #fff5f6;
}

.app-dialog[data-variant="profile-trips"] .dialog-card {
  max-height: calc(96dvh - var(--safe-top));
  padding-inline: 15px;
}

.profile-trips-layout {
  display: grid;
  gap: 18px;
  padding-bottom: 12px;
}

.profile-trip-period {
  display: grid;
  gap: 11px;
}

.trips-page.is-empty {
  display: grid;
  min-height: calc(100dvh - 156px - var(--safe-top) - var(--safe-bottom));
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.my-trips-content.is-empty {
  display: grid;
  min-height: 0;
  align-items: center;
}

.my-trips-content.is-empty .app-empty-search-state {
  min-height: 0;
  padding: 4px 12px 8px;
  align-content: center;
}

.my-trips-content.is-empty .app-empty-search-state svg {
  width: min(100%, 190px);
  max-height: min(120px, 19dvh);
  margin-bottom: 4px;
}

.profile-trip-period > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-trip-period h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.035em;
}

.profile-trip-period > div:first-child > span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 850;
}

.profile-trip-section {
  display: grid;
  gap: 11px;
}

.profile-trip-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: end;
}

.profile-trip-section-heading .eyebrow {
  grid-column: 1 / -1;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-trip-section-heading h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.profile-trip-section-heading > span:last-child {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 850;
}

.profile-trip-list {
  display: grid;
  gap: 10px;
}

.profile-trip-card {
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 63, 108, 0.055);
}

.profile-trip-card.is-canceled {
  opacity: 0.76;
  background: #fafbfc;
}

.driver-navigation { padding: 0 12px 12px; border-top: 1px solid #e7edf4; }
.driver-navigation summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; color: var(--navy); cursor: pointer; font-size: 12px; list-style: none; }
.driver-navigation summary::-webkit-details-marker { display: none; }
.driver-navigation summary span { color: var(--blue); font-weight: 800; }
.driver-navigation[open] summary { margin-bottom: 8px; }
.driver-navigation-points { position: relative; display: grid; gap: 5px; }
.driver-navigation-points::before { position: absolute; top: 25px; bottom: 25px; left: 21px; width: 2px; background: #cce4e8; content: ""; }
.driver-navigation-point { position: relative; z-index: 1; display: grid; grid-template-columns: 18px minmax(0, 1fr) 24px; align-items: center; gap: 8px; width: 100%; min-width: 0; border: 1px solid #dce6f1; border-radius: 10px; background: #f8fbff; padding: 8px 9px; color: #39516e; font: inherit; text-align: left; }
.driver-navigation-point:not(:disabled) { cursor: pointer; }
.driver-navigation-point:disabled { opacity: .58; }
.driver-navigation-dot { display: block; width: 11px; height: 11px; border: 3px solid var(--blue); border-radius: 50%; background: #fff; box-sizing: border-box; }
.driver-navigation-place { display: grid; min-width: 0; gap: 1px; }
.driver-navigation-place small { color: #63758c; font-size: 10px; font-weight: 800; }
.driver-navigation-place strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.driver-navigation-action { color: var(--blue); font-size: 20px; font-weight: 900; text-align: center; }
.driver-navigation-empty, .navigation-chooser p { margin: 0; color: var(--muted); font-size: 12px; }
.navigation-chooser { display: grid; gap: 10px; }
.navigation-chooser button { width: 100%; }

.profile-trip-main {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 15px;
  border: 0;
  background: transparent;
  text-align: left;
}

.profile-trip-archives {
  display: grid;
  gap: 11px;
}

.profile-trip-archives > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  list-style: none;
}

.profile-trip-archives > summary::-webkit-details-marker {
  display: none;
}

.profile-trip-archives > summary > span:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
}

.profile-trip-archives > summary b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 11px;
}

.profile-trip-archives > summary i {
  font-size: 27px;
  font-style: normal;
  line-height: 1;
  transition: transform 160ms ease;
}

.profile-trip-archives[open] > summary i {
  transform: rotate(90deg);
}

.profile-trip-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-trip-role {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b5da9;
  background: #e9f4ff;
  font-size: 10px;
  font-weight: 850;
}

.profile-trip-role.is-driver {
  color: #08736d;
  background: #e7f8f5;
}

.profile-trip-date {
  overflow: hidden;
  color: #63758c;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trip-main > strong {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.profile-trip-main > strong span {
  color: var(--blue);
}

.profile-trip-main > small {
  color: #64778e;
  font-size: 11px;
}

.profile-trip-status {
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #155a92;
  background: #ebf5ff;
  font-size: 10px;
  font-weight: 800;
}

.profile-trip-card.is-canceled .profile-trip-status {
  color: #8a4a2a;
  background: #fff0e8;
}

.trip-cancel-button {
  width: 100%;
  min-height: 43px;
  padding: 0 15px;
  border: 0;
  border-top: 1px solid #e7edf4;
  color: var(--red);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.profile-trips-empty {
  display: grid;
  justify-items: center;
  gap: 13px;
  min-height: 55dvh;
  align-content: center;
  text-align: center;
}

.empty-search-illustration {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border-radius: 44% 56% 58% 42%;
  color: var(--blue);
  background: #e8f3ff;
  font-size: 64px;
  transform: rotate(-8deg);
}

.profile-trips-empty h2 {
  max-width: 300px;
  margin: 3px 0 0;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.profile-trips-empty p,
.profile-trip-empty-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-trips-empty > div:last-child {
  display: flex;
  gap: 9px;
  margin-top: 5px;
}

.app-dialog[data-variant="cancellation"] .dialog-card {
  max-height: calc(94dvh - var(--safe-top));
}

.booking-passenger-profile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  width: 100%;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #d8e6f7;
  border-radius: 16px;
  color: var(--navy);
  background: #f7fbff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.booking-passenger-profile:hover,
.booking-passenger-profile:focus-visible {
  border-color: var(--blue);
  background: #eef6ff;
  outline: 2px solid rgba(0, 102, 255, 0.18);
  outline-offset: 2px;
}

.booking-passenger-profile:active {
  transform: scale(0.99);
}

.booking-passenger-profile img,
.booking-passenger-profile > span {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.booking-passenger-profile > span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.booking-passenger-profile small {
  color: var(--muted);
}

.booking-passenger-chevron {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
  font-size: 28px;
}

.booking-passenger-profile:has(.booking-passenger-chevron) {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.trip-passengers h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 17px;
}

.app-dialog[data-variant="trip-report"] .dialog-card {
  width: min(100%, 460px);
  max-height: calc(94dvh - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
}

.trip-report-form {
  display: grid;
  gap: 14px;
}

.trip-report-form textarea {
  min-height: 112px;
  resize: vertical;
}

.trip-report-form .form-help {
  margin: -7px 0 0;
  color: #61738f;
  font-size: 13px;
}

.trip-delete-action {
  width: 100%;
  border: 0;
  color: #fff;
  background: #df1c26;
  box-shadow: 0 10px 22px rgba(197, 25, 36, 0.2);
}

.app-dialog[data-variant="driver-trip-delete-confirmation"] {
  align-items: center;
  padding:
    max(16px, var(--safe-top))
    16px
    max(16px, var(--safe-bottom));
}

.app-dialog[data-variant="driver-trip-delete-confirmation"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="driver-trip-delete-confirmation"] .dialog-card {
  width: min(100%, 430px);
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px);
  padding: 14px 20px 20px;
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(3, 24, 59, 0.24);
}

.app-dialog[data-variant="driver-trip-delete-confirmation"] .dialog-card > header {
  align-items: flex-start;
  padding: 0 0 14px;
  border-bottom: 1px solid #e3eaf3;
}

.app-dialog[data-variant="driver-trip-delete-confirmation"] .dialog-card > header h2 {
  margin: 4px 12px 0 0;
  color: #071f45;
  font-size: clamp(22px, 6vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.app-dialog[data-variant="driver-trip-delete-confirmation"] .dialog-content {
  padding: 18px 0 0;
}

.driver-trip-delete-confirmation {
  display: grid;
  gap: 22px;
}

.driver-trip-delete-copy {
  max-width: 370px;
}

.driver-trip-delete-copy p {
  margin: 0;
  color: #536986;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.driver-trip-delete-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px;
}

.driver-trip-delete-cancel,
.driver-trip-delete-submit {
  min-height: 50px;
  padding: 11px 14px;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.driver-trip-delete-cancel {
  border: 1px solid #cad6e5;
  color: #17365f;
  background: #f7f9fc;
}

.driver-trip-delete-submit {
  border: 1px solid #d8202b;
  color: #fff;
  background: #d8202b;
  box-shadow: 0 9px 20px rgba(197, 25, 36, 0.2);
}

@media (max-width: 360px) {
  .driver-trip-delete-actions {
    grid-template-columns: 1fr;
  }
}

.cancellation-confirmation {
  display: grid;
  gap: 15px;
}

.cancellation-route {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid #dbe6f2;
  border-radius: 17px;
  background: #fbfdff;
}

.cancellation-route span {
  color: #64768d;
  font-size: 11px;
}

.cancellation-route strong {
  font-size: 16px;
}

.cancellation-policy-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid #bfeadc;
  border-radius: 17px;
  background: #effcf8;
}

.cancellation-policy-card.is-late {
  border-color: #f1d1bd;
  background: #fff4ed;
}

.cancellation-policy-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.cancellation-policy-card.is-late .cancellation-policy-icon {
  background: #d96a25;
}

.cancellation-policy-card div {
  display: grid;
  gap: 5px;
}

.cancellation-policy-card strong {
  font-size: 14px;
}

.cancellation-policy-card p,
.cancellation-warning {
  margin: 0;
  color: #586b81;
  font-size: 11px;
  line-height: 1.45;
}

.cancellation-confirmation label {
  display: grid;
  gap: 7px;
  color: #52667e;
  font-size: 12px;
  font-weight: 750;
}

.cancellation-confirmation textarea {
  width: 100%;
  padding: 12px;
  resize: vertical;
  border: 1px solid #d7e2ee;
  border-radius: 14px;
  outline: none;
  background: #fff;
  font-size: 14px;
}

.cancellation-confirmation textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 109, 245, 0.1);
}

@media (max-width: 355px) {
  .result-card-main {
    grid-template-columns: 40px 12px minmax(0, 1fr) 64px;
    gap: 5px;
    padding-inline: 10px;
  }

  .result-times strong,
  .result-places strong {
    font-size: 14px;
  }

  .result-price strong {
    font-size: 17px;
  }

  .result-seat-badge {
    padding-inline: 6px;
    font-size: 8px;
  }
}

.shared-trip-summary {
  display: grid;
  gap: 1rem;
  color: var(--ink, #092653);
}

.shared-trip-summary h2,
.shared-trip-summary p {
  margin: 0;
}

.shared-trip-kicker {
  color: var(--turquoise, #008c8c);
  font-weight: 800;
}

.shared-trip-date {
  font-weight: 700;
}

.shared-trip-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
}

.shared-trip-details > div {
  padding: .8rem;
  border: 1px solid #d9e3ef;
  border-radius: .8rem;
  background: #f7fbfe;
}

.shared-trip-details dt {
  color: #60708b;
  font-size: .78rem;
}

.shared-trip-details dd {
  margin: .3rem 0 0;
  font-weight: 800;
}

.shared-trip-note {
  color: #52637c;
  font-size: .92rem;
}

.shared-trip-actions {
  display: grid;
  gap: .65rem;
}
.profile-trip-card.booking-request-card {
  padding: 18px;
  display: grid;
  gap: 12px;
  overflow-wrap: anywhere;
}
.booking-request-card p { margin: 0; line-height: 1.45; }
.booking-request-card .primary-button,
.booking-request-card .secondary-button {
  width: 100%;
  min-height: 48px;
  height: auto;
  white-space: normal;
  padding: 12px 16px;
  line-height: 1.3;
}

/* Assistant de publication OpenCar */
#page-publish .publish-review-form {
  width: min(100%, 680px);
  min-height: calc(100dvh - 190px - var(--safe-top) - var(--safe-bottom));
  margin: 0 auto;
  padding: 0 16px 96px;
  scroll-margin-top: calc(78px + var(--safe-top));
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

[data-publish-step][hidden] {
  display: none !important;
}

.publish-wizard-header {
  position: sticky;
  z-index: 20;
  top: calc(78px + var(--safe-top));
  padding: 10px 0 13px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.publish-wizard-topline {
  display: grid;
  grid-template-columns: minmax(74px, auto) 1fr auto;
  align-items: center;
  gap: 12px;
  color: #718198;
  font-size: 12px;
  font-weight: 750;
}

.publish-wizard-topline > span:first-of-type {
  justify-self: start;
}

.publish-wizard-topline > span:last-child {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.publish-wizard-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #dbe6f2;
  border-radius: 15px;
  color: var(--blue);
  background: #fff;
}

.publish-wizard-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-progress {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.publish-progress span {
  display: block;
  width: 11%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0878ff, #16cda3);
  transition: width 0.28s ease;
}

#page-publish .review-intro {
  align-items: flex-start;
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px solid #dcecff;
  border-radius: 18px;
  background: #f2f8ff;
}

#page-publish .review-intro.needs-input {
  border-color: #ffe0b2;
  background: #fff9ee;
}

.assistant-mini-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #0878ff, #0bcfa5);
  box-shadow: 0 7px 17px rgba(8, 120, 255, 0.18);
  font-size: 10px;
  font-weight: 950;
}

#page-publish .review-intro strong {
  color: var(--navy);
  font-size: 14px;
}

#page-publish .review-intro p {
  color: #647791;
  font-size: 12px;
  line-height: 1.45;
}

#page-publish .publish-review-form .form-grid {
  grid-template-columns: 1fr;
  gap: 13px;
}

#page-publish .publish-review-form label,
.publish-inline-field,
.publish-select-field {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

#page-publish .publish-review-form input,
#page-publish .publish-review-form textarea {
  min-height: 58px;
  padding: 14px 15px;
  border: 1px solid #d7e3f0;
  border-radius: 17px;
  color: var(--navy);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

#page-publish .publish-review-form textarea {
  min-height: 132px;
  line-height: 1.5;
}

#page-publish .publish-review-form input:focus,
#page-publish .publish-review-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(8, 120, 255, 0.1);
}

#page-publish .route-planner {
  gap: 14px;
}

#page-publish .route-map {
  height: min(44vh, 360px);
  min-height: 280px;
  border-radius: 20px;
}

.route-choice-list,
.publish-choice-step,
.publish-summary-step {
  display: grid;
  gap: 12px;
}

.route-choice,
.publish-radio-row,
.publish-check-row {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 13px !important;
  min-height: 82px;
  padding: 14px !important;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 7px 20px rgba(20, 56, 96, 0.04);
}

.route-choice.selected,
.publish-radio-row.selected {
  border-color: rgba(8, 120, 255, 0.55);
  background: #f3f8ff;
  box-shadow: 0 8px 22px rgba(8, 120, 255, 0.1);
}

.route-choice > input,
.publish-radio-row > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.route-choice-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #9bb0c8;
  border-radius: 50%;
  background: #fff;
}

.route-choice.selected .route-choice-radio {
  border: 6px solid var(--blue);
}

.route-choice > span:last-child,
.publish-radio-row > span,
.publish-check-row > span {
  display: grid;
  gap: 4px;
}

.route-choice strong,
.publish-radio-row strong,
.publish-check-row strong {
  color: var(--navy);
  font-size: 14px;
}

.route-choice small,
.publish-radio-row small,
.publish-check-row small,
.publish-inline-field small {
  color: #728198;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.45;
}

.publish-inline-field {
  padding: 15px;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: #fbfdff;
}

.publish-choice-step {
  padding-top: 4px;
}

.publish-choice-step h2,
.publish-summary-step h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.publish-choice-step > p {
  margin: -3px 0 10px;
  color: #728198;
  font-size: 13px;
  line-height: 1.5;
}

.publish-vehicle-list,
.publish-vehicle-options {
  display: grid;
  gap: 10px;
}

.publish-vehicle-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 7px 20px rgba(20, 56, 96, 0.04);
  text-align: left;
}

.publish-vehicle-option.selected {
  border-color: rgba(8, 120, 255, 0.58);
  background: #f3f8ff;
  box-shadow: 0 9px 24px rgba(8, 120, 255, 0.11);
}

.publish-vehicle-option > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.publish-vehicle-option strong {
  font-size: 15px;
  font-weight: 850;
}

.publish-vehicle-option small {
  color: #728198;
  font-size: 12px;
  font-weight: 600;
}

.publish-vehicle-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #9bb0c8;
  border-radius: 50%;
  background: #fff;
}

.publish-vehicle-option.selected .publish-vehicle-radio {
  border: 6px solid var(--blue);
}

.publish-vehicle-option .profile-vehicle-icon {
  justify-self: end;
}

.publish-vehicle-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px;
  border: 1px solid #dce8f5;
  border-radius: 20px;
  background: linear-gradient(145deg, #f7fbff, #eef7ff);
  text-align: center;
}

.publish-vehicle-empty strong {
  color: var(--navy);
  font-size: 17px;
}

.publish-vehicle-empty p {
  max-width: 270px;
  margin: 0 0 6px;
  color: #6f8198;
  font-size: 12px;
  line-height: 1.5;
}

.publish-vehicle-empty .primary-button {
  width: 100%;
}

.publish-add-vehicle {
  border-bottom: 0;
}

.publish-check-row > input {
  width: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  accent-color: var(--blue);
}

.publish-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 18px;
  background: #edf3f9;
}

.publish-segmented label {
  display: block !important;
}

.publish-segmented input {
  position: absolute;
  opacity: 0;
}

.publish-segmented span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #61738b;
  font-size: 13px;
  font-weight: 850;
}

.publish-segmented input:checked + span {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 55, 98, 0.1);
}

.publish-summary-step .eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publish-summary-route {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px 12px;
  margin-top: 8px;
  padding: 17px;
  border: 1px solid #dfe7f0;
  border-radius: 20px;
  background: #fbfdff;
}

.publish-summary-route > span {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.publish-summary-route > span:nth-of-type(2) {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.publish-summary-route > span:first-child::after {
  position: absolute;
  top: 13px;
  left: 3px;
  width: 2px;
  height: 45px;
  background: #c7d6e7;
  content: "";
}

.publish-summary-route div {
  display: grid;
  gap: 3px;
  min-height: 43px;
}

.publish-summary-route strong {
  color: var(--navy);
  font-size: 15px;
}

.publish-summary-route small {
  color: #728198;
  font-size: 11px;
}

.publish-summary-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin: 0;
  border: 1px solid #dfe7f0;
  border-radius: 20px;
}

.publish-summary-details div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.publish-summary-details div:nth-child(even) {
  border-left: 1px solid #e4ebf3;
}

.publish-summary-details div:nth-child(n + 3) {
  border-top: 1px solid #e4ebf3;
}

.publish-summary-details dt {
  color: #7a8aa0;
  font-size: 10px;
  font-weight: 750;
}

.publish-summary-details dd {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.publish-legal-copy {
  margin: 2px 0 0;
  color: #718198;
  font-size: 10px;
  line-height: 1.55;
}

.publish-wizard-actions {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: calc(70px + var(--safe-bottom));
  left: 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.55fr) minmax(160px, 1fr);
  gap: 10px;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(219, 230, 241, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.publish-wizard-actions button {
  min-height: 54px;
  border-radius: 17px;
}

@media (max-width: 380px) {
  #page-publish .publish-review-form {
    padding-inline: 12px;
  }

  .publish-wizard-topline {
    grid-template-columns: 58px 1fr auto;
  }

  .publish-summary-details {
    grid-template-columns: 1fr;
  }

  .publish-summary-details div:nth-child(even) {
    border-left: 0;
  }

  .publish-summary-details div + div {
    border-top: 1px solid #e4ebf3;
  }
}


/* Parcours conducteur : une expérience plein écran, claire et homogène. */
#page-publish .publish-prompt-card {
  min-height: calc(100dvh - 190px - var(--safe-top) - var(--safe-bottom));
  padding: 16px 2px 4px;
}

#page-publish .publish-heading {
  max-width: 400px;
}

#page-publish .publish-heading p {
  max-width: 330px;
}

.publish-examples {
  margin-top: clamp(38px, 8vh, 66px);
}

.publish-examples > span {
  margin-left: 2px;
  color: #536b8a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publish-examples .example-chips {
  display: block;
}

.publish-examples .example-chips .publish-example-card {
  display: grid;
  width: 100%;
  min-height: 0;
  gap: 9px;
  padding: 20px;
  border: 1px solid #cfe1f8;
  border-radius: 22px;
  color: #203d63;
  background: linear-gradient(145deg, #f9fcff 0%, #eef6ff 100%);
  box-shadow: 0 16px 34px rgba(15, 73, 135, 0.09);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.58;
  text-align: left;
}

.publish-example-card:active {
  transform: scale(0.985);
}

.publish-example-card .publish-example-quote {
  height: 22px;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 0.95;
}

.publish-example-card small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

#page-publish .publish-review-form {
  width: 100%;
  min-height: calc(100dvh - 148px - var(--safe-top) - var(--safe-bottom));
  margin: 0;
  padding: 0 0 108px;
  background: #fff;
}

.publish-wizard-header {
  top: calc(63px + var(--safe-top));
  padding: 16px 20px 14px;
  border-bottom: 1px solid #edf1f6;
  background: rgba(255, 255, 255, 0.98);
}

.publish-wizard-topline {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
}

.publish-step-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.publish-step-meta > span {
  color: #728199;
  font-size: 11px;
  font-weight: 800;
}

.publish-step-meta > strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-wizard-close {
  width: 44px;
  height: 44px;
  border-color: #e1eaf5;
  border-radius: 15px;
  background: #f7faff;
}

.publish-progress {
  height: 5px;
  margin-top: 13px;
}

#page-publish .review-intro {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin: 24px 20px 2px;
  padding: 17px;
  border-color: #dce9f8;
  border-radius: 22px;
  background: linear-gradient(135deg, #f7fbff, #eef7ff);
}

#page-publish .review-intro.needs-input {
  border-color: #dce9f8;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.assistant-mini-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(9, 68, 135, 0.14);
}

.assistant-mini-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
}

#page-publish .review-intro strong {
  font-size: 15px;
  line-height: 1.25;
}

#page-publish .review-intro p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

#page-publish .publish-review-form .form-grid,
#page-publish .route-planner,
#page-publish .publish-choice-step,
#page-publish .publish-summary-step {
  width: auto;
  margin: 26px 20px 0;
}

#page-publish .publish-review-form .form-grid {
  gap: 16px;
}

#page-publish .publish-review-form label,
.publish-inline-field,
.publish-select-field {
  gap: 9px;
  font-size: 12px;
}

#page-publish .publish-review-form input,
#page-publish .publish-review-form textarea {
  min-height: 62px;
  border-radius: 19px;
  font-size: 16px;
}

#page-publish .publish-review-form textarea {
  min-height: 158px;
}

#page-publish .route-planner {
  gap: 16px;
}

#page-publish .route-map {
  height: min(48vh, 410px);
  min-height: 320px;
  border-radius: 24px;
}

.publish-choice-step,
.publish-summary-step {
  gap: 17px;
}

.publish-choice-step h2,
.publish-summary-step h2 {
  max-width: 470px;
  font-size: clamp(29px, 8.5vw, 42px);
  line-height: 1.06;
}

.publish-choice-step > p {
  max-width: 430px;
  margin-top: -5px;
  font-size: 15px;
  line-height: 1.55;
}

.route-choice,
.publish-radio-row,
.publish-check-row {
  min-height: 92px;
  padding: 17px !important;
  border-radius: 21px;
}

.route-choice strong,
.publish-radio-row strong,
.publish-check-row strong {
  font-size: 15px;
}

.route-choice small,
.publish-radio-row small,
.publish-check-row small,
.publish-inline-field small {
  font-size: 12px;
}

.publish-vehicle-option {
  min-height: 86px;
  padding: 16px;
  border-radius: 21px;
}

.publish-wizard-actions {
  bottom: calc(66px + var(--safe-bottom));
  width: 100%;
  padding: 13px 20px max(15px, env(safe-area-inset-bottom));
}

.publish-wizard-actions button {
  min-height: 58px;
  border-radius: 19px;
  font-size: 15px;
}

@media (max-height: 720px) {
  #page-publish .publish-prompt-card {
    min-height: calc(100dvh - 174px - var(--safe-top) - var(--safe-bottom));
  }

  .publish-examples {
    margin-top: 26px;
  }

  .publish-example-card {
    font-size: 13px !important;
  }

  .publish-voice-orb {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
}

/* Profile v2: two clear spaces, matching the mobile OpenCAR visual system. */
#page-profile {
  padding: 0 0 30px;
  background: #fff;
}

.profile-tabs {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid #e8eef5;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(20, 52, 92, 0.06);
  backdrop-filter: blur(16px);
}

.profile-tabs button {
  position: relative;
  min-width: 0;
  border: 0;
  color: #6b7b91;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.profile-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.profile-tabs button.active {
  color: var(--navy);
}

.profile-tabs button.active::after {
  background: var(--blue);
}

.profile-tab-panel {
  display: grid;
  gap: 0;
  padding: 22px 18px 32px;
  touch-action: pan-y;
}

.profile-tab-panel[hidden] {
  display: none;
}

.profile-panel-enter-from-right {
  animation: profile-panel-from-right 0.22s ease-out;
}

.profile-panel-enter-from-left {
  animation: profile-panel-from-left 0.22s ease-out;
}

@keyframes profile-panel-from-right {
  from {
    opacity: 0.45;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes profile-panel-from-left {
  from {
    opacity: 0.45;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-summary-card {
  display: grid;
  gap: 14px;
}

.profile-card.profile-card-summary {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  width: 100%;
  min-height: 100px;
  align-items: center;
  gap: 14px;
  padding: 0 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.profile-card-summary .profile-avatar {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  border: 4px solid #fff;
  outline: 3px solid var(--blue);
  box-shadow: 0 8px 20px rgba(8, 109, 245, 0.14);
  font-size: 25px;
}

.profile-card-summary .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  min-width: 0;
}

.profile-identity h2 {
  overflow: hidden;
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 7px;
  color: #667890;
  font-size: 11px;
}

.profile-star {
  color: #ffb000;
  font-size: 15px;
}

.profile-rating-line strong {
  color: var(--navy);
}

.profile-identity > small {
  display: block;
  margin-top: 6px;
  color: #8795a8;
  font-size: 10px;
  font-weight: 650;
}

.profile-card-summary .verified-badge {
  position: absolute;
  left: 68px;
  bottom: 7px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.profile-card-summary .verified-badge[hidden] {
  display: none;
}

.mobile-grade-badge {
  width: max-content;
  max-width: 100%;
  min-height: 23px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 62, 104, 0.05);
}

.profile-stats > div {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 3px;
  padding: 13px 4px;
  text-align: center;
}

.profile-stats > div + div {
  border-left: 1px solid #e4ebf3;
}

.profile-stat-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #eaf4ff;
}

.profile-stat-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-trip-stat-icon {
  color: var(--blue);
  background: #eaf4ff;
}

.profile-stats strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.15;
}

.profile-stats span:last-child {
  color: #76869a;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
}

.profile-stats .co2-stat strong {
  color: #009b72;
}

.profile-edit-links {
  display: grid;
  margin: 18px 0 6px;
}

.profile-edit-links button,
.profile-text-action {
  min-height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e6edf4;
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.profile-content-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 8px solid #f2f5f8;
}

.profile-content-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  letter-spacing: -0.04em;
}

.profile-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-section-heading > div {
  display: grid;
  gap: 5px;
}

.profile-section-heading p {
  margin: 0;
  color: #73839a;
  font-size: 12px;
  line-height: 1.5;
}

.profile-section-add {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #cfe0f4;
  border-radius: 50%;
  color: var(--blue);
  background: #f7fbff;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.profile-vehicles-list {
  display: grid;
}

.profile-vehicle-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #e7edf4;
  color: var(--navy);
  background: transparent;
  text-align: left;
}

.profile-vehicle-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.profile-vehicle-row strong {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.profile-vehicle-row small,
.profile-vehicles-empty small {
  color: #75859a;
  font-size: 15px;
  line-height: 1.4;
}

.profile-vehicle-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #0878f5;
  background: #edf6ff;
}

.profile-vehicle-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vehicle-type-icon {
  overflow: visible;
  border: 0;
  box-shadow: none;
}

.vehicle-type-icon svg {
  width: 28px;
  height: 21px;
  fill: none;
  stroke: none;
}

.vehicle-type-icon .vehicle-art-body {
  fill: currentColor;
}

.vehicle-type-icon .vehicle-art-window {
  fill: #fff;
  opacity: 0.87;
}

.vehicle-type-icon .vehicle-art-wheel {
  fill: #0b5fbd;
}

.vehicle-type-icon .vehicle-art-wheel-core {
  fill: #fff;
  opacity: 0.72;
}

.vehicle-type-icon .vehicle-art-lightning {
  fill: currentColor;
}

.vehicle-type-icon .vehicle-art-bolt {
  fill: currentColor;
}

.vehicle-type-icon.vehicle-type-city,
.vehicle-type-icon.vehicle-type-sedan,
.vehicle-type-icon.vehicle-type-suv,
.vehicle-type-icon.vehicle-type-sport,
.vehicle-type-icon.vehicle-type-family,
.vehicle-type-icon.vehicle-type-electric {
  color: #0878f5;
  background: #edf6ff;
}

.profile-vehicle-add {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  min-height: 58px;
  padding: 10px 0 2px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.profile-vehicle-add > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.profile-vehicles-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 2px;
  border-bottom: 1px solid #e7edf4;
}

.profile-vehicles-empty > div {
  display: grid;
  gap: 3px;
}

.profile-vehicles-empty strong {
  color: var(--navy);
  font-size: 14px;
}

.verification-list {
  display: grid;
}

.verification-row {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e8eef5;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.verification-row:active {
  opacity: 0.72;
}

.verification-check {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #a86b00;
  background: #fff1d1;
  font-size: 13px;
  font-weight: 900;
}

.verification-row.verified .verification-check {
  color: #fff;
  background: var(--blue);
}

.verification-row > div {
  display: grid;
  gap: 3px;
}

.verification-row strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verification-row small {
  color: #7c8ca0;
  font-size: 10px;
}

.verification-row-action {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.profile-bio-copy {
  margin: 0;
  color: #5f7188;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
}

.profile-bio-copy.is-empty,
.travel-preferences .is-empty {
  color: var(--blue);
}

.travel-preferences {
  display: grid;
  gap: 2px;
}

.travel-preferences > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.preference-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #5e7390;
}

.preference-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.preference-icon .preference-icon-accent,
.travel-preference-option-icon .preference-icon-accent {
  stroke: #e64b51;
}

.app-dialog[data-variant="vehicle-details"],
.app-dialog[data-variant="travel-preferences"],
.app-dialog[data-variant="travel-preference-choice"] {
  align-items: stretch;
  background: #fff;
}

.app-dialog[data-variant="vehicle-details"] .dialog-backdrop,
.app-dialog[data-variant="travel-preferences"] .dialog-backdrop,
.app-dialog[data-variant="travel-preference-choice"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant="vehicle-details"] .dialog-card,
.app-dialog[data-variant="travel-preferences"] .dialog-card,
.app-dialog[data-variant="travel-preference-choice"] .dialog-card {
  width: 100%;
  max-width: 680px;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
  animation: preference-screen-in 0.18s ease-out;
}

@keyframes preference-screen-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

.app-dialog[data-variant="vehicle-details"] .dialog-handle,
.app-dialog[data-variant="travel-preferences"] .dialog-handle,
.app-dialog[data-variant="travel-preference-choice"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="vehicle-details"] .dialog-card > header,
.app-dialog[data-variant="travel-preferences"] .dialog-card > header,
.app-dialog[data-variant="travel-preference-choice"] .dialog-card > header {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 62px;
  padding: 8px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.app-dialog[data-variant="vehicle-details"] .dialog-card > header h2,
.app-dialog[data-variant="travel-preferences"] .dialog-card > header h2,
.app-dialog[data-variant="travel-preference-choice"] .dialog-card > header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-dialog[data-variant="vehicle-details"] .dialog-card > header .icon-button,
.app-dialog[data-variant="travel-preferences"] .dialog-card > header .icon-button,
.app-dialog[data-variant="travel-preference-choice"] .dialog-card > header .icon-button {
  width: 44px;
  height: 44px;
  margin-right: auto;
  border-radius: 12px;
  color: var(--blue);
  background: transparent;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.app-dialog[data-variant="vehicle-details"] .dialog-content,
.app-dialog[data-variant="travel-preferences"] .dialog-content,
.app-dialog[data-variant="travel-preference-choice"] .dialog-content {
  padding: 7px 20px 30px;
}

.vehicle-detail-screen {
  display: grid;
  align-content: start;
  gap: 26px;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 100px);
  padding-top: 14px;
}

.vehicle-detail-summary {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 0 20px;
}

.vehicle-detail-icon {
  width: 66px;
  height: 66px;
}

.vehicle-detail-icon svg {
  width: 34px;
  height: 34px;
}

.vehicle-detail-summary > div {
  display: grid;
  gap: 3px;
}

.vehicle-detail-summary h1,
.vehicle-detail-summary p {
  margin: 0;
}

.vehicle-detail-summary h1 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.vehicle-detail-summary p {
  color: #66778f;
  font-size: 17px;
}

.vehicle-kind-chip {
  width: fit-content;
  margin-top: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #275277;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 800;
}

.vehicle-kind-chip.vehicle-kind-suv { color: #087789; background: #e4f7f8; }
.vehicle-kind-chip.vehicle-kind-sport { color: #bd4c1c; background: #fff0e8; }
.vehicle-kind-chip.vehicle-kind-family { color: #6d4ba8; background: #f2ebff; }
.vehicle-kind-chip.vehicle-kind-electric { color: #087650; background: #e4faef; }
.vehicle-kind-chip.vehicle-kind-sedan { color: #4357ad; background: #eef0ff; }

.vehicle-detail-actions {
  display: grid;
  border-top: 1px solid #e3e8ef;
}

.vehicle-detail-actions button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  min-height: 68px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e3e8ef;
  color: var(--blue);
  background: transparent;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
}

.vehicle-detail-actions button.is-danger {
  color: #c93843;
}

.vehicle-detail-actions svg {
  width: 26px;
  height: 26px;
  justify-self: end;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.travel-preferences-screen,
.travel-preference-choice-screen {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 100px);
}

.travel-preferences-screen h1,
.travel-preference-choice-screen h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.travel-preferences-intro,
.travel-preference-choice-screen > p {
  max-width: 520px;
  margin: -4px 0 2px;
  color: #63748b;
  font-size: 14px;
  line-height: 1.55;
}

.travel-preferences-menu {
  display: grid;
  margin-top: 4px;
}

.travel-preference-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 5px 12px;
  min-height: 82px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #e6ebf1;
  color: var(--navy);
  background: #fff;
  text-align: left;
}

.travel-preference-menu-item > span {
  font-size: 16px;
  font-weight: 780;
}

.travel-preference-menu-item > strong {
  overflow: hidden;
  color: var(--blue);
  font-size: 16px;
  font-weight: 820;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-preference-menu-item > strong.is-empty {
  color: #0783ee;
}

.travel-preference-menu-item > svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #73849a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.travel-preference-options {
  display: grid;
  margin-top: 4px;
}

.travel-preference-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px 0;
  border: 0;
  color: var(--navy);
  background: #fff;
  text-align: left;
}

.travel-preference-option:disabled {
  opacity: 0.72;
}

.travel-preference-radio {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.travel-preference-option.selected .travel-preference-radio::after,
.travel-preference-option.saving .travel-preference-radio::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.travel-preference-option-label {
  font-size: 17px;
  font-weight: 790;
  line-height: 1.35;
}

.travel-preference-option-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #60748f;
}

.travel-preference-option-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.travel-bio-field {
  display: grid;
  gap: 9px;
  margin-top: 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 820;
}

.travel-bio-field textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid #d7e2ee;
  border-radius: 20px;
  color: var(--navy);
  background: #f7f9fc;
  font: inherit;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.55;
}

.travel-preference-save {
  width: 100%;
  margin-top: auto;
}

.account-menu-list {
  display: grid;
  margin: -4px 0 0;
}

.account-menu-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  min-height: 61px;
  align-items: center;
  gap: 12px;
  padding: 0 3px;
  border: 0;
  border-bottom: 1px solid #e3eaf2;
  color: var(--navy);
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}

.account-menu-list button span:last-child {
  color: #64758c;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.account-menu-list .account-danger-row {
  color: #cf3b41;
}


.bottom-nav button[data-nav="messages"] svg {
  width: 29px;
  height: 29px;
}

.photo-upload-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f4f8fc;
}

.photo-upload-preview .profile-avatar {
  width: 70px;
  height: 70px;
  flex-basis: 70px;
}

.photo-upload-preview p,
.dialog-help-copy,
.payment-methods-copy p {
  margin: 5px 0 0;
  color: #6f8095;
  font-size: 12px;
  line-height: 1.45;
}

.file-picker {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #a9c9ec;
  border-radius: 16px;
  color: var(--blue);
  background: #f6fbff;
  font-weight: 800;
}

.file-picker input {
  width: 100%;
  color: #60738b;
  font-size: 11px;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-card {
  padding: 14px;
  border: 1px solid #dfe7f0;
  border-radius: 16px;
  background: #fff;
}

.review-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-card strong {
  color: #f0a000;
}

.review-card time {
  color: #8190a3;
  font-size: 10px;
}

.review-card p {
  margin: 10px 0 0;
  color: #52667f;
  font-size: 13px;
  line-height: 1.5;
}

.app-dialog[data-variant="reviews"] .dialog-card,
.app-dialog[data-variant="review-compose"] .dialog-card {
  width: min(100%, 620px);
  max-height: calc(96dvh - var(--safe-top));
}

.app-dialog[data-variant="reviews"] .dialog-content,
.app-dialog[data-variant="review-compose"] .dialog-content {
  padding: 0 20px calc(28px + var(--safe-bottom));
}

.reviews-layout {
  display: grid;
  gap: 22px;
}

.review-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e5ebf2;
}

.review-tabs button {
  min-height: 50px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #6c7d95;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.review-tabs button.is-active {
  border-bottom-color: var(--blue);
  color: var(--navy);
}

.reviews-swipe-surface {
  min-height: 320px;
  touch-action: pan-y;
}

.review-summary-card {
  display: grid;
  gap: 2px;
  padding: 4px 0 20px;
  border-bottom: 1px solid #e5ebf2;
}

.review-summary-card strong {
  color: var(--navy);
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.review-summary-card strong small {
  margin-left: 5px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.review-summary-card span,
.review-given-intro p,
.review-empty p {
  color: #657791;
  font-size: 14px;
  line-height: 1.5;
}

.review-distribution {
  display: grid;
  gap: 0;
  margin: 14px 0 22px;
  border-bottom: 1px solid #e5ebf2;
}

.review-distribution p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 11px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
}

.review-distribution strong {
  font-size: 20px;
}

.review-given-intro h3,
.review-pending-list h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 21px;
}

.review-given-intro p {
  margin: 0 0 18px;
}

.review-pending-list {
  display: grid;
  gap: 2px;
  margin: 4px 0 22px;
}

.review-pending-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #e5ebf2;
}

.review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f2ff;
  font-size: 13px;
  font-weight: 800;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-avatar-system {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #13c89c);
}

.review-pending-card strong,
.review-pending-card small,
.review-pending-card em {
  display: block;
}

.review-pending-card strong {
  color: var(--navy);
  font-size: 14px;
}

.review-pending-card small,
.review-pending-card em {
  margin-top: 2px;
  color: #70819a;
  font-size: 12px;
  font-style: normal;
}

.review-pending-card button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b8d8ff;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
}

.review-pending-lock {
  color: #8190a3;
  font-size: 18px;
}

.review-card {
  padding: 16px;
}

.review-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-author {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  text-align: left;
}

.review-author span:last-child {
  display: grid;
  gap: 2px;
}

.review-author strong {
  color: var(--navy);
  font-size: 14px;
}

.review-author small {
  overflow: hidden;
  color: #72829a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card time {
  flex: 0 0 auto;
  padding-top: 4px;
}

.review-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.review-stars {
  color: #f0a000;
  font-size: 18px;
  letter-spacing: 1px;
}

.review-score-row strong {
  color: var(--navy);
  font-size: 14px;
}

.review-card-waiting {
  padding: 10px;
  border-radius: 12px;
  color: #547294 !important;
  background: #eff7ff;
  font-size: 12px !important;
}

.review-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 52px 20px;
  text-align: center;
}

.review-empty > span {
  color: var(--blue);
  font-size: 42px;
}

.review-empty h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.review-empty p {
  max-width: 280px;
  margin: 0;
}

.review-compose {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.review-compose-route {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.review-compose-person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.review-compose-person p {
  margin: 0;
  color: #52667f;
  font-size: 15px;
  line-height: 1.45;
}

.review-score-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-score-picker legend,
.review-comment-label {
  width: 100%;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.review-score-picker label {
  position: relative;
}

.review-score-picker input {
  position: absolute;
  opacity: 0;
}

.review-score-picker span {
  display: grid;
  min-width: 48px;
  min-height: 42px;
  place-items: center;
  border: 1px solid #d7e5f3;
  border-radius: 13px;
  color: #72829a;
  background: #fff;
  font-weight: 800;
}

.review-score-picker b {
  color: #f0a000;
}

.review-score-picker input:checked + span {
  border-color: var(--blue);
  color: var(--blue);
  background: #edf6ff;
  box-shadow: 0 6px 15px rgba(0, 111, 238, 0.14);
}

.review-comment-label small {
  color: #8493a7;
  font-weight: 600;
}

.review-compose textarea {
  min-height: 120px;
  padding: 14px;
  border: 1px solid #d7e5f3;
  border-radius: 16px;
  color: var(--navy);
  background: #f8fbff;
  font: inherit;
  resize: vertical;
}

.review-compose-help {
  margin: -5px 0 0;
  color: #72829a;
  font-size: 12px;
  line-height: 1.45;
}

.review-submit-button {
  width: 100%;
}

.saved-passenger-list {
  display: grid;
  gap: 0;
}

.saved-passenger-card {
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 17px 4px;
  border: 0;
  border-bottom: 1px solid #e6ebf1;
  color: var(--navy);
  background: transparent;
  text-align: left;
}

.saved-passenger-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.saved-passenger-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-passenger-copy {
  display: grid;
  gap: 4px;
}

.saved-passenger-copy strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-passenger-copy small {
  color: #71839a;
  font-size: 12px;
  font-weight: 650;
}

.saved-passenger-chevron {
  color: #687b93;
  font-size: 31px;
  font-weight: 300;
}

.saved-passengers-empty {
  display: grid;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 95px);
  align-content: start;
  justify-items: center;
  padding: 24px 0;
  text-align: center;
}

.saved-passengers-empty svg {
  width: min(100%, 340px);
  margin: 2px auto 18px;
}

.saved-passengers-empty .empty-blob {
  fill: #e6f3ff;
}

.saved-passengers-empty .empty-lens,
.saved-passengers-empty .empty-handle,
.saved-passengers-empty .empty-rays {
  fill: none;
  stroke: #0877f9;
  stroke-linecap: round;
}

.saved-passengers-empty .empty-lens {
  stroke-width: 18;
}

.saved-passengers-empty .empty-handle {
  stroke-width: 22;
}

.saved-passengers-empty .empty-rays {
  stroke: #8bc8ff;
  stroke-width: 9;
}

.saved-passengers-empty h3 {
  max-width: 340px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 7vw, 35px);
  line-height: 1.08;
}

.saved-passengers-empty p {
  max-width: 390px;
  margin: 16px 0 0;
  color: #61738a;
  font-size: 15px;
  line-height: 1.5;
}

.app-empty-search-state {
  display: grid;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 95px);
  align-content: start;
  justify-items: center;
  padding: 24px 18px;
  text-align: center;
}

.app-empty-search-state svg {
  width: min(100%, 340px);
  margin: 2px auto 18px;
}

.app-empty-search-state .app-empty-blob {
  fill: #e6f3ff;
}

.app-empty-search-state .app-empty-lens,
.app-empty-search-state .app-empty-handle,
.app-empty-search-state .app-empty-rays {
  fill: none;
  stroke: #0877f9;
  stroke-linecap: round;
}

.app-empty-search-state .app-empty-lens {
  stroke-width: 18;
}

.app-empty-search-state .app-empty-handle {
  stroke-width: 22;
}

.app-empty-search-state .app-empty-rays {
  stroke: #8bc8ff;
  stroke-width: 9;
}

.app-empty-search-state h3 {
  max-width: 340px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 7vw, 35px);
  line-height: 1.08;
}

.app-empty-search-state p {
  max-width: 390px;
  margin: 16px 0 0;
  color: #61738a;
  font-size: 15px;
  line-height: 1.5;
}

.app-empty-search-state .primary-button {
  width: min(100%, 300px);
  margin-top: 22px;
}

.app-dialog[data-variant="saved-passengers"],
.app-dialog[data-variant="member-profile"],
.app-dialog[data-variant="reviews"],
.app-dialog[data-variant="my-trips"],
.app-dialog[data-variant="favorite-trips"] {
  align-items: stretch;
  background: #fff;
}

.app-dialog[data-variant="saved-passengers"] .dialog-backdrop,
.app-dialog[data-variant="member-profile"] .dialog-backdrop,
.app-dialog[data-variant="reviews"] .dialog-backdrop,
.app-dialog[data-variant="my-trips"] .dialog-backdrop,
.app-dialog[data-variant="favorite-trips"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant="saved-passengers"] .dialog-card,
.app-dialog[data-variant="member-profile"] .dialog-card,
.app-dialog[data-variant="reviews"] .dialog-card,
.app-dialog[data-variant="my-trips"] .dialog-card,
.app-dialog[data-variant="favorite-trips"] .dialog-card {
  width: 100%;
  max-width: 680px;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
}

.app-dialog[data-variant="saved-passengers"] .dialog-handle,
.app-dialog[data-variant="member-profile"] .dialog-handle,
.app-dialog[data-variant="reviews"] .dialog-handle,
.app-dialog[data-variant="my-trips"] .dialog-handle,
.app-dialog[data-variant="favorite-trips"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="saved-passengers"] .dialog-card > header,
.app-dialog[data-variant="member-profile"] .dialog-card > header,
.app-dialog[data-variant="reviews"] .dialog-card > header,
.app-dialog[data-variant="my-trips"] .dialog-card > header,
.app-dialog[data-variant="favorite-trips"] .dialog-card > header {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 62px;
  padding: 8px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.app-dialog[data-variant="saved-passengers"] .dialog-card > header h2,
.app-dialog[data-variant="member-profile"] .dialog-card > header h2,
.app-dialog[data-variant="reviews"] .dialog-card > header h2,
.app-dialog[data-variant="my-trips"] .dialog-card > header h2,
.app-dialog[data-variant="favorite-trips"] .dialog-card > header h2 {
  font-size: 20px;
  font-weight: 900;
}

.app-dialog[data-variant="saved-passengers"] .dialog-content,
.app-dialog[data-variant="member-profile"] .dialog-content,
.app-dialog[data-variant="reviews"] .dialog-content,
.app-dialog[data-variant="my-trips"] .dialog-content,
.app-dialog[data-variant="favorite-trips"] .dialog-content {
  padding: 8px 22px 34px;
}

/* Le signalement suit le même écran plein format que les préférences de voyage. */
.app-dialog[data-variant="trip-report"] {
  align-items: stretch;
  background: #fff;
}

.app-dialog[data-variant="trip-report"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant="trip-report"] .dialog-card {
  width: 100%;
  max-width: 680px;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
}

.app-dialog[data-variant="trip-report"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="trip-report"] .dialog-card > header {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 62px;
  padding: 8px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.app-dialog[data-variant="trip-report"] .dialog-card > header h2 {
  font-size: 20px;
  font-weight: 900;
}

.app-dialog[data-variant="trip-report"] .dialog-card > header .icon-button {
  width: 46px;
  height: 46px;
  margin-right: auto;
  border-radius: 14px;
  color: var(--blue);
  background: transparent;
  font-size: 0;
}

.app-dialog[data-variant="trip-report"] .dialog-card > header .icon-button::before {
  font-size: 35px;
  font-weight: 350;
  line-height: 1;
  content: "\\2190";
}

.app-dialog[data-variant="trip-report"] .dialog-content {
  height: calc(100% - 62px);
  overflow-y: auto;
  padding: 12px 22px calc(32px + var(--safe-bottom));
}

.trip-report-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}

.trip-report-form > p {
  margin: 0;
  color: #61728a;
  line-height: 1.5;
}

.trip-report-reasons {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.trip-report-reasons legend {
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 850;
}

.trip-report-reasons .travel-preference-options {
  margin-top: 0;
}

.trip-report-reason-option {
  width: 100%;
  text-align: left;
}

.trip-report-form textarea {
  min-height: 120px;
  resize: vertical;
}

.trip-report-form .danger-button {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 2px;
}

.app-dialog[data-variant="my-trips"] .app-empty-search-state,
.app-dialog[data-variant="favorite-trips"] .app-empty-search-state {
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 82px);
  align-content: center;
  padding-bottom: 84px;
}


/* Shared native header for every page reached from the Compte section. */
.app-dialog[data-account-page="true"] {
  align-items: stretch;
  background: #fff;
}

.app-dialog[data-account-page="true"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-account-page="true"] .dialog-card {
  width: 100%;
  max-width: 680px;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
}

.app-dialog[data-account-page="true"] .dialog-handle {
  display: none;
}

.app-dialog[data-account-page="true"] .dialog-card > header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 8px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.app-dialog[data-account-page="true"] .dialog-card > header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-dialog[data-account-page="true"] .dialog-card > header .icon-button {
  width: 48px;
  height: 48px;
  margin-right: auto;
  padding: 0;
  border: 1px solid #d8e7f8;
  border-radius: 16px;
  color: var(--blue);
  background: #f2f7fd;
  box-shadow: 0 5px 15px rgba(8, 109, 245, 0.08);
  font-size: 0;
}

.app-dialog[data-account-page="true"] .dialog-card > header .icon-button::before {
  content: none;
}

.app-dialog[data-account-page="true"] .dialog-card > header .icon-button svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-dialog[data-account-page="true"] .dialog-content {
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 62px);
  padding: 8px 22px calc(34px + var(--safe-bottom));
}

.profile-info-screen,
.profile-field-screen,
.profile-photo-screen {
  color: var(--navy);
}

.profile-info-screen h1,
.profile-field-screen h1,
.profile-photo-screen h1 {
  margin: 12px 0 36px;
  color: var(--navy);
  font-size: clamp(31px, 9vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.profile-info-list {
  display: grid;
}

.profile-info-list button {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 19px 0;
  border: 0;
  border-bottom: 1px solid #e4e9ef;
  color: var(--navy);
  text-align: left;
  background: transparent;
}

.profile-info-list button span {
  font-size: 17px;
  font-weight: 700;
}

.profile-info-list button strong {
  color: var(--blue);
  font-size: 19px;
  font-weight: 760;
}

.profile-info-list button strong.is-empty {
  color: #8090a8;
}

.profile-field-form {
  display: flex;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 86px);
  flex-direction: column;
}

.profile-field-form input,
.profile-field-form textarea {
  width: 100%;
  border: 0;
  border-radius: 22px;
  outline: 0;
  color: var(--navy);
  background: #e9edf2;
  font: inherit;
  font-size: 20px;
}

.profile-field-form input {
  height: 72px;
  padding: 0 21px;
}

.profile-field-form textarea {
  min-height: 145px;
  padding: 18px 21px;
  resize: vertical;
}

.profile-field-form .primary-button {
  width: max-content;
  min-width: 160px;
  margin: auto auto 0;
  padding-inline: 29px;
}

.profile-photo-screen {
  display: flex;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 86px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-photo-preview {
  width: min(58vw, 242px);
  aspect-ratio: 1;
  margin: 8px 0 32px;
  overflow: hidden;
  border: 4px solid #e7f0ff;
  border-radius: 50%;
  background: #eef6ff;
  box-shadow: 0 16px 35px rgba(0, 80, 180, 0.14);
}

.profile-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-photo-screen h1 {
  margin: 0;
  text-align: left;
}

.profile-photo-guidance {
  width: 100%;
  margin: 10px 0 18px;
  color: #607086;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.profile-photo-validation {
  display: grid;
  width: 100%;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #ffb9b4;
  border-radius: 14px;
  color: #8d211d;
  background: #fff3f2;
  text-align: left;
  line-height: 1.4;
}

.profile-photo-validation[hidden] {
  display: none;
}

.profile-photo-validation strong {
  font-size: 15px;
}

.profile-photo-validation span {
  font-size: 14px;
}

.profile-photo-actions {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: auto;
}

.profile-photo-actions .primary-button,
.profile-photo-save {
  width: 100%;
}

.text-action-button {
  min-height: 52px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 760;
}

.profile-photo-save {
  margin-top: 12px;
}

.profile-photo-save[hidden] {
  display: none;
}

.public-member-profile {
  display: grid;
  gap: 24px;
}

.public-member-profile > header {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 0 20px;
  border-bottom: 1px solid #e6ebf1;
}

.public-member-avatar {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  place-items: center;
  overflow: visible;
  border: 4px solid var(--blue);
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 25px;
  font-weight: 900;
}

.public-member-avatar > img,
.public-member-avatar > span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.public-member-avatar > span {
  display: grid;
  place-items: center;
}

.public-member-avatar > i {
  position: absolute;
  right: -3px;
  bottom: 2px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-style: normal;
}

.public-member-profile h3,
.public-member-profile h4 {
  margin: 0;
  color: var(--navy);
}

.public-member-profile h3 {
  font-size: 24px;
  line-height: 1.1;
}

.public-member-profile header p,
.public-member-profile header small {
  display: block;
  margin: 6px 0 0;
}

.public-member-profile header p {
  color: #687a91;
}

.public-member-profile header p strong {
  color: #e9a000;
}

.public-member-profile header small {
  color: #8493a6;
  font-size: 12px;
}

.public-member-verified {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #24714f;
  font-weight: 800;
}

.public-member-verified span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0baf72;
}

.public-member-profile section {
  display: grid;
  gap: 9px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6ebf1;
}

.public-member-profile section h4 {
  font-size: 20px;
}

.public-member-profile section p {
  margin: 0;
  color: #607189;
  font-size: 15px;
  line-height: 1.55;
}

.saved-passenger-action {
  width: 100%;
  min-height: 54px;
}

.saved-passenger-help {
  margin-top: -14px;
  color: #71839a;
  text-align: center;
  line-height: 1.4;
}

.app-dialog[data-variant^="communication-"] {
  align-items: stretch;
  background: #fff;
}

.app-dialog[data-variant^="communication-"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant^="communication-"] .dialog-card {
  width: 100%;
  max-width: 680px;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
  animation: preference-screen-in 0.18s ease-out;
}

.app-dialog[data-variant^="communication-"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant^="communication-"] .dialog-card > header {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 62px;
  padding: 8px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.app-dialog[data-variant^="communication-"] .dialog-card > header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-dialog[data-variant^="communication-"] .dialog-card > header .icon-button {
  width: 46px;
  height: 46px;
  margin-right: auto;
  border-radius: 14px;
  color: var(--blue);
  background: transparent;
  font-size: 0;
}

.app-dialog[data-variant^="communication-"]
  .dialog-card
  > header
  .icon-button::before {
  font-size: 35px;
  font-weight: 350;
  line-height: 1;
  content: "\2190";
}

.app-dialog[data-variant^="communication-"] .dialog-content {
  padding: 6px 22px 34px;
}

.app-dialog[data-variant="password-settings"] {
  align-items: stretch;
  background: #fff;
}

.app-dialog[data-variant="password-settings"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant="password-settings"] .dialog-card {
  width: 100%;
  max-width: 680px;
  height: 100dvh;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
  animation: preference-screen-in 0.18s ease-out;
}

.app-dialog[data-variant="password-settings"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="password-settings"] .dialog-card > header {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 62px;
  padding: 8px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.app-dialog[data-variant="password-settings"] .dialog-card > header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-dialog[data-variant="password-settings"]
  .dialog-card
  > header
  .icon-button {
  width: 46px;
  height: 46px;
  margin-right: auto;
  border-radius: 14px;
  color: var(--blue);
  background: transparent;
  font-size: 0;
}

.app-dialog[data-variant="password-settings"]
  .dialog-card
  > header
  .icon-button::before {
  font-size: 35px;
  font-weight: 350;
  line-height: 1;
  content: "\2190";
}

.app-dialog[data-variant="password-settings"] .dialog-content {
  height: calc(100% - 62px);
  padding: 5px 22px 28px;
}

.password-settings-screen,
.password-settings-form {
  min-height: 100%;
}

.password-settings-form {
  display: flex;
  flex-direction: column;
}

.password-settings-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 7.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.password-settings-heading p {
  max-width: 520px;
  margin: 24px 0 0;
  color: #60718a;
  font-size: 16px;
  line-height: 1.42;
}

.password-settings-fields {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.password-settings-field {
  display: block;
}

.password-settings-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.password-settings-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 19px;
  border: 2px solid transparent;
  border-radius: 18px;
  outline: 0;
  color: var(--navy);
  background: #edf1f5;
  font-size: 16px;
  font-weight: 650;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.password-settings-field input::placeholder {
  color: #60718a;
  opacity: 1;
}

.password-settings-field input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(8, 109, 245, 0.1);
}

.password-settings-form .primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 26px;
  border-radius: 999px;
  font-size: 16px;
}

.communication-screen {
  display: grid;
  align-content: start;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 92px);
}

.communication-screen h1 {
  max-width: 520px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(31px, 9vw, 39px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.communication-menu {
  display: grid;
  margin-top: 24px;
}

.communication-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e2e9f1;
  color: var(--navy);
  background: #fff;
  text-align: left;
}

.communication-menu-item > span {
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.communication-menu-item > svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #64778f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.communication-menu-item:active {
  color: var(--blue);
  background: #f7fbff;
}

.communication-detail-screen {
  gap: 18px;
}

.communication-contact {
  margin: 2px 0 6px;
  padding-bottom: 20px;
  overflow: hidden;
  border-bottom: 1px solid #e2e9f1;
  color: #61738b;
  font-size: 17px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-options {
  display: grid;
}

.communication-option {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 102px;
  padding: 15px 0;
  color: var(--navy);
}

.communication-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.communication-checkbox {
  display: grid;
  width: 27px;
  height: 27px;
  margin-top: 3px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 5px;
  color: #fff;
  background: #fff;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.communication-checkbox svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  opacity: 0;
}

.communication-option input:checked + .communication-checkbox {
  background: var(--blue);
}

.communication-option input:checked + .communication-checkbox svg {
  opacity: 1;
}

.communication-option:focus-within .communication-checkbox {
  box-shadow: 0 0 0 5px rgba(9, 116, 244, 0.14);
}

.communication-option:active .communication-checkbox {
  transform: scale(0.94);
}

.communication-option.saving {
  opacity: 0.72;
}

.communication-option-copy {
  display: grid;
  gap: 5px;
}

.communication-option-copy strong {
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.022em;
  line-height: 1.24;
}

.communication-option-copy small {
  color: #61738b;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.42;
}

.communication-save-status {
  min-height: 24px;
  margin: 8px 0 0 54px;
  color: #60758e;
  font-size: 13px;
  font-weight: 720;
}

.communication-save-status[data-state="success"] {
  color: #087f60;
}

.communication-error-screen {
  align-content: center;
  gap: 18px;
  padding-bottom: 20vh;
}

.communication-error-screen p {
  margin: 0;
  color: #61738b;
  font-size: 15px;
  line-height: 1.5;
}

.communication-error-screen .primary-button {
  width: min(100%, 260px);
}

.setting-toggle {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px !important;
  min-height: 72px;
  padding: 10px 0;
  border-bottom: 1px solid #e5ecf3;
}

.setting-toggle > span {
  display: grid;
  gap: 4px;
}

.setting-toggle small {
  color: #77889d;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.setting-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

@media (max-width: 355px) {
  .profile-tab-panel {
    padding-inline: 14px;
  }

  .profile-card.profile-card-summary {
    grid-template-columns: 76px minmax(0, 1fr) 18px;
    gap: 11px;
  }

  .profile-card-summary .profile-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .profile-card-summary .verified-badge {
    left: 58px;
  }

  .profile-identity h2 {
    font-size: 21px;
  }
}


/* Messages et confirmation de réservation */
#page-messages {
  padding-top: 12px;
}

.messages-page.is-empty {
  display: grid;
  min-height: calc(100dvh - 156px - var(--safe-top) - var(--safe-bottom));
}

#messages-list-view.is-empty {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

#messages-list-view .page-heading {
  margin: 0;
  padding: 8px 4px 12px;
}

#messages-list-view .page-heading h1 {
  margin: 0;
  font-size: 30px;
}

.conversation-list {
  gap: 0;
  border-top: 1px solid #e8edf4;
  background: #fff;
}

.conversation-item {
  min-height: 94px;
  grid-template-columns: minmax(0, 1fr) 58px 18px;
  gap: 12px;
  padding: 15px 3px;
  border-bottom: 1px solid #e6ebf2;
}

.conversation-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.conversation-name-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.conversation-copy strong {
  overflow: hidden;
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy p {
  overflow: hidden;
  margin: 0;
  color: #536680;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy small {
  color: #7f8da0;
  font-size: 12px;
  font-weight: 600;
}

.conversation-avatar-shell,
.person-avatar-shell {
  position: relative;
  display: grid;
  place-items: center;
}

.conversation-avatar {
  width: 54px;
  height: 54px;
  border: 2px solid transparent;
  color: var(--blue);
  background: #edf5ff;
  font-size: 14px;
}

.person-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid transparent;
  color: var(--blue);
  background: #edf5ff;
  font-size: 12px;
}

.conversation-avatar-shell.is-verified .conversation-avatar,
.person-avatar-shell.is-verified .person-avatar {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #fff;
}

.verified-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -1px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 950;
}

.conversation-chevron {
  display: grid;
  place-items: center;
  color: #667991;
}

.conversation-chevron svg,
.conversation-trip-summary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversation-view {
  height: calc(100dvh - 156px - var(--safe-top) - var(--safe-bottom));
  min-height: 430px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
}

.conversation-header {
  min-height: 66px;
  flex: 0 0 auto;
  gap: 9px;
  padding: 8px 6px;
  border-bottom: 1px solid #e4eaf2;
  background: #fff;
}

.conversation-header .icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.conversation-header .icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversation-list.is-empty {
  display: grid;
  min-height: 0;
  border-top: 0;
  align-items: center;
  background: transparent;
}

.conversation-list.is-empty .app-empty-search-state {
  min-height: 0;
  padding: 10px 18px 48px;
  align-content: center;
}

.conversation-list.is-empty .app-empty-search-state svg {
  width: min(100%, 230px);
  max-height: min(150px, 23dvh);
  margin-bottom: 10px;
}

.conversation-header .app-back-button {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 1px solid #d8e7f8;
  border-radius: 16px;
  color: var(--blue);
  background: #f2f7fd;
  box-shadow: 0 5px 15px rgba(8, 109, 245, 0.08);
}

.conversation-header .app-back-button svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.15;
}

.conversation-person {
  flex: 1;
  gap: 10px;
}

.conversation-person strong {
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
}

.conversation-person small {
  max-width: 170px;
  margin-top: 2px;
  color: #65778e;
  font-size: 12px;
  font-weight: 700;
}

#conversation-safety svg {
  fill: currentColor;
  stroke: none;
}

.conversation-trip-summary {
  display: grid;
  width: 100%;
  min-height: 72px;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #e5ebf3;
  color: var(--navy);
  background: #fff;
  text-align: left;
}

.conversation-trip-summary > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.conversation-trip-summary strong,
.conversation-trip-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-trip-summary strong {
  font-size: 16px;
  font-weight: 850;
}

.conversation-trip-summary small {
  color: #65778e;
  font-size: 12px;
  font-weight: 650;
}

.message-thread {
  gap: 9px;
  padding: 14px 14px 10px;
  background: #fbfcff;
  overscroll-behavior: contain;
}

.conversation-moderation-note {
  max-width: 420px;
  margin: 0 auto 10px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #667991;
  background: #f0f5fb;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.conversation-empty-thread {
  display: grid;
  max-width: 280px;
  margin: auto;
  gap: 5px;
  color: #75859a;
  text-align: center;
}

.conversation-empty-thread p {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 850;
}

.conversation-empty-thread span {
  font-size: 12px;
  line-height: 1.45;
}

.message-day-separator {
  align-self: center;
  margin: 5px 0;
  color: #7b899b;
  font-size: 11px;
  font-weight: 750;
}

.message-row .chat-bubble {
  max-width: 80%;
  padding: 11px 13px;
  border-radius: 18px 18px 18px 5px;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 5px 15px rgba(24, 57, 92, 0.06);
}

.message-row.mine .chat-bubble {
  border-radius: 18px 18px 5px 18px;
  color: #fff;
  background: var(--blue);
}

.message-row:not(.mine) .chat-bubble {
  color: var(--navy);
  background: #e9eef5;
}

.message-time {
  margin-top: 4px;
  color: #8b98aa;
  font-size: 10px;
}

.message-report-button {
  min-height: 24px;
  padding: 2px 5px;
  font-size: 10px;
}

.conversation-reservation-bar {
  flex: 0 0 auto;
  padding: 9px 14px 3px;
  background: #fff;
}

.conversation-reservation-bar .primary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-size: 15px;
}

.conversation-view .message-composer {
  position: static;
  width: calc(100% - 24px);
  flex: 0 0 auto;
  margin: 7px 12px 10px;
  border-radius: 22px;
  box-shadow: 0 7px 24px rgba(20, 55, 94, 0.1);
}

.conversation-view .message-composer input {
  font-size: 14px;
}

.app-dialog[data-variant="reservation-review"] {
  align-items: stretch;
}

.app-dialog[data-variant="reservation-review"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant="reservation-review"] .dialog-card {
  width: 100%;
  max-width: 680px;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
}

.app-dialog[data-variant="reservation-review"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="reservation-review"] .dialog-card > header {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 62px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.app-dialog[data-variant="reservation-review"] .dialog-content {
  padding: 0;
}

.reservation-review {
  min-height: calc(100dvh - var(--safe-top) - 62px);
  padding-bottom: calc(76px + var(--safe-bottom));
  background: #f4f6f9;
}

.reservation-review-intro,
.reservation-review-section {
  border-bottom: 8px solid #f1f3f6;
  background: #fff;
}

.reservation-review-intro {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 22px 18px;
}

.reservation-review-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 950;
}

.reservation-review-intro h3,
.reservation-review-intro p,
.reservation-review-section h3 {
  margin: 0;
}

.reservation-review-intro h3 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}

.reservation-review-intro p {
  margin-top: 6px;
  color: #687a90;
  font-size: 12px;
  line-height: 1.4;
}

.reservation-review-section {
  padding: 22px 18px;
}

.reservation-review-section > h3 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 21px;
  text-transform: capitalize;
}

.reservation-review-route {
  display: grid;
  grid-template-columns: 48px 18px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 24px;
  align-items: start;
}

.reservation-review-route time {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.reservation-review-route time:first-of-type {
  grid-column: 1;
  grid-row: 1;
}

.reservation-review-route time:last-of-type {
  grid-column: 1;
  grid-row: 2;
}

.reservation-review-route > div:first-of-type {
  grid-column: 3;
  grid-row: 1;
}

.reservation-review-route > div:last-of-type {
  grid-column: 3;
  grid-row: 2;
}

.reservation-review-route strong,
.reservation-review-route small {
  display: block;
}

.reservation-review-route strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.3;
}

.reservation-review-route small {
  margin-top: 3px;
  color: #718198;
  font-size: 12px;
}

.reservation-route-line {
  position: relative;
  display: flex;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.reservation-route-line b {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #7488a1;
}

.reservation-route-line i {
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid #526b8a;
  border-radius: 50%;
  background: #fff;
}

.reservation-price-review {
  display: grid;
  gap: 13px;
}

.reservation-price-review > h3 {
  margin-bottom: 5px;
}

.reservation-price-review > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #536680;
  font-size: 14px;
}

.reservation-price-review > div strong {
  color: var(--navy);
  font-size: 15px;
}

.reservation-price-review .reservation-total {
  margin-top: 3px;
  padding-top: 15px;
  border-top: 1px solid #e0e7f0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
}

.reservation-price-review .reservation-total strong {
  font-size: 23px;
}

.reservation-introduction {
  display: grid;
  gap: 9px;
}

.reservation-introduction label {
  color: var(--navy);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.25;
}

.reservation-introduction textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  outline: none;
  color: var(--navy);
  background: #f2f5f9;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.reservation-introduction textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 109, 245, 0.1);
}

.reservation-introduction small {
  color: #77879b;
  font-size: 11px;
  line-height: 1.4;
}

.reservation-review-actions {
  position: fixed;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 11px 16px calc(11px + var(--safe-bottom));
  border-top: 1px solid #e1e7ef;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.reservation-review-actions .primary-button {
  width: min(100%, 648px);
  min-height: 52px;
  border-radius: 999px;
  font-size: 15px;
}

.reservation-review-error {
  min-height: calc(100dvh - var(--safe-top) - 80px);
}

.result-driver-avatar[data-member-profile] {
  cursor: pointer;
}

.driver-profile-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.driver-profile-button:active {
  opacity: 0.72;
}

.app-dialog[data-variant="payout-methods"],
.app-dialog[data-variant="finance-history"],
.app-dialog[data-variant="privacy-settings"],
.app-dialog[data-variant="privacy-manager"],
.app-dialog[data-variant="cookie-settings"],
.app-dialog[data-variant="close-account"] {
  align-items: stretch;
}

.app-dialog[data-variant="payout-methods"] .dialog-backdrop,
.app-dialog[data-variant="finance-history"] .dialog-backdrop,
.app-dialog[data-variant="privacy-settings"] .dialog-backdrop,
.app-dialog[data-variant="privacy-manager"] .dialog-backdrop,
.app-dialog[data-variant="cookie-settings"] .dialog-backdrop,
.app-dialog[data-variant="close-account"] .dialog-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.app-dialog[data-variant="payout-methods"] .dialog-card,
.app-dialog[data-variant="finance-history"] .dialog-card,
.app-dialog[data-variant="privacy-settings"] .dialog-card,
.app-dialog[data-variant="privacy-manager"] .dialog-card,
.app-dialog[data-variant="cookie-settings"] .dialog-card,
.app-dialog[data-variant="close-account"] .dialog-card {
  width: 100%;
  max-width: 680px;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
}

.app-dialog[data-variant="payout-methods"] .dialog-handle,
.app-dialog[data-variant="finance-history"] .dialog-handle,
.app-dialog[data-variant="privacy-settings"] .dialog-handle,
.app-dialog[data-variant="privacy-manager"] .dialog-handle,
.app-dialog[data-variant="cookie-settings"] .dialog-handle,
.app-dialog[data-variant="close-account"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="payout-methods"] .dialog-card > header,
.app-dialog[data-variant="finance-history"] .dialog-card > header,
.app-dialog[data-variant="privacy-settings"] .dialog-card > header,
.app-dialog[data-variant="privacy-manager"] .dialog-card > header,
.app-dialog[data-variant="cookie-settings"] .dialog-card > header,
.app-dialog[data-variant="close-account"] .dialog-card > header {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 62px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.app-dialog[data-variant="payout-methods"] .dialog-content,
.app-dialog[data-variant="finance-history"] .dialog-content,
.app-dialog[data-variant="privacy-settings"] .dialog-content,
.app-dialog[data-variant="privacy-manager"] .dialog-content,
.app-dialog[data-variant="cookie-settings"] .dialog-content,
.app-dialog[data-variant="close-account"] .dialog-content {
  min-height: calc(100dvh - var(--safe-top) - 62px);
  padding: 8px 22px calc(34px + var(--safe-bottom));
}

.native-settings-screen {
  display: grid;
  align-content: start;
  min-height: 100%;
  color: var(--navy);
}

.native-settings-screen h1 {
  max-width: 520px;
  margin: 13px 0 9px;
  color: var(--navy);
  font-size: clamp(28px, 8.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.native-settings-screen > p {
  max-width: 520px;
  margin: 0;
  color: #61728a;
  font-size: 15px;
  line-height: 1.5;
}

.native-settings-list {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid #e4e9f0;
}

.native-settings-list > button,
.native-settings-list > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 78px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e4e9f0;
  color: var(--navy);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.native-settings-list > button:disabled {
  opacity: 0.44;
}

.setting-row-copy {
  display: grid;
  gap: 4px;
}

.setting-row-copy strong {
  font-size: 17px;
  line-height: 1.25;
}

.setting-row-copy small {
  color: #718198;
  font-size: 12px;
  line-height: 1.35;
}

.setting-chevron {
  color: #5e7189;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.setting-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: #eaf3ff;
  font-weight: 900;
}

.app-dialog[data-variant="help-support"] .dialog-card {
  width: 100%;
  max-width: 680px;
  max-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  box-shadow: none;
}

.app-dialog[data-variant="help-support"] .dialog-handle {
  display: none;
}

.app-dialog[data-variant="help-support"] .dialog-card > header {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 62px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.app-dialog[data-variant="help-support"] .dialog-content {
  min-height: calc(100dvh - var(--safe-top) - 62px);
  padding: 8px 22px calc(34px + var(--safe-bottom));
}

.help-support-screen {
  grid-template-rows: auto auto 1fr auto;
  padding-top: 14px;
}

.help-support-contact-card {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #dce8f3;
  border-radius: 20px;
  background: #f8fbff;
}

.help-support-contact-card span,
.help-support-contact-card small {
  color: #61728a;
  font-size: 13px;
  line-height: 1.4;
}

.help-support-contact-card strong {
  color: var(--navy);
  font-size: 17px;
}

.help-support-actions {
  display: grid;
  gap: 12px;
  align-self: end;
  margin-top: 28px;
}

.help-support-actions .primary-button,
.help-support-actions .secondary-button {
  width: 100%;
  justify-content: center;
}

.payout-method-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.payout-balance-card {
  display: grid;
  gap: 4px;
  margin: 18px 0 14px;
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #00b99a);
  box-shadow: 0 14px 34px rgba(8, 109, 245, 0.2);
}

.payout-balance-card small,
.payout-balance-card span {
  color: rgba(255, 255, 255, 0.88);
}

.payout-balance-card strong {
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.05;
}

.payout-withdraw-button {
  width: 100%;
  margin-bottom: 28px;
}

.payout-withdraw-button:disabled {
  opacity: 0.58;
  box-shadow: none;
}

.payout-inline-alert {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #f0d6a1;
  border-radius: 14px;
  color: #6f5212;
  background: #fff8e8;
  font-size: 13px;
  line-height: 1.4;
}

.payout-method-guidance,
.payout-paypal-unavailable {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #d8e7f7;
  border-radius: 14px;
  color: #50657e;
  background: #f5f9fe;
  font-size: 13px;
  line-height: 1.45;
}

.payout-paypal-unavailable {
  margin: 0;
}

.payout-history-section {
  margin-top: 30px;
}

.payout-method-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 112px;
  padding: 17px;
  border: 1px solid #dce6f2;
  border-radius: 20px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 26px rgba(13, 43, 82, 0.06);
  font: inherit;
  text-align: left;
}

.payout-method-card.is-primary {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(8, 109, 245, 0.12);
}

.payout-method-card:active {
  transform: scale(0.99);
}

.payout-paypal-icon {
  color: #073087;
  background: #eaf0ff;
}

.payout-status {
  width: fit-content;
  margin-top: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #65758c;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 800;
}

.payout-status[data-state="ready"] {
  color: #08765b;
  background: #e5f8f1;
}

.payout-status[data-state="pending"] {
  color: #835b00;
  background: #fff4d7;
}

.payout-status[data-state="action_required"] {
  color: #a23b33;
  background: #ffebe8;
}

.payout-primary-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.native-settings-note,
.close-account-note {
  margin-top: 28px !important;
}

.text-link-button {
  width: max-content;
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.close-account-screen .danger-button {
  width: 100%;
  margin-top: 28px;
  min-height: 52px;
  border-radius: 999px;
}

.cookie-settings-form {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.cookie-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  padding: 15px 0;
  border-bottom: 1px solid #e4e9f0;
}

.cookie-setting > span {
  display: grid;
  gap: 5px;
}

.cookie-setting strong {
  font-size: 16px;
}

.cookie-setting small {
  color: #718198;
  font-size: 12px;
  line-height: 1.35;
}

.cookie-setting b {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.cookie-setting input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

.cookie-settings-form .primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  border-radius: 999px;
}

.privacy-manager .privacy-status {
  margin: 18px 0 8px;
}

.privacy-manager .dialog-form {
  margin-top: 18px;
}

.privacy-manager .dialog-form h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.finance-history-screen {
  gap: 0;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.finance-page-intro {
  display: grid;
  gap: 5px;
  margin: 10px 0 22px;
}

.finance-page-intro .finance-page-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.finance-page-intro h1 {
  margin: 0;
}

.finance-page-intro p {
  margin: 0;
  color: #64758c;
  font-size: 14px;
  line-height: 1.45;
}

.finance-current-card,
.finance-paid-card,
.finance-history-section {
  border: 1px solid #e1e8f2;
  background: #fff;
  box-shadow: 0 12px 32px rgba(13, 43, 82, 0.065);
}

.finance-current-card {
  padding: 18px;
  border-radius: 24px;
}

.finance-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.finance-section-heading > div {
  display: grid;
  gap: 2px;
}

.finance-section-heading span {
  color: #718198;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -0.025em;
}

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

.finance-balance-item {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 148px;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #f5f8fc;
}

.finance-balance-item-transfer {
  grid-column: 1 / -1;
}

.finance-balance-item-primary {
  border-color: rgba(8, 109, 245, 0.22);
  background: linear-gradient(145deg, #eef6ff, #e4f1ff);
}

.finance-balance-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #526b8b;
  background: #e8eef6;
}

.finance-balance-item-primary .finance-balance-icon {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(8, 109, 245, 0.22);
}

.finance-balance-item-transfer .finance-balance-icon {
  color: #08765b;
  background: #e5f8f1;
}

.finance-balance-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-balance-item small,
.finance-paid-card small {
  color: #64758c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.finance-balance-item strong,
.finance-paid-card strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: clamp(24px, 7vw, 31px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.finance-balance-item-primary strong {
  color: var(--blue-dark);
}

.finance-balance-item p,
.finance-paid-card p {
  align-self: end;
  margin: 0;
  color: #7b899b;
  font-size: 11px;
  line-height: 1.35;
}

.finance-paid-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 21px;
}

.finance-paid-card > .finance-balance-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #526b8b;
  background: #eef2f7;
}

.finance-paid-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.finance-paid-card strong {
  font-size: clamp(28px, 8vw, 36px);
}

.finance-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 3px 2px;
  color: #607188;
  font-size: 13px;
}

.finance-stat-strip b {
  color: var(--navy);
}

.finance-history-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
}

.finance-history-section h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 22px;
}

.finance-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  padding: 14px 0;
  border-bottom: 1px solid #e5eaf1;
}

.finance-history-row:last-child,
.finance-history-section > .finance-empty:last-child {
  border-bottom: 0;
}

.finance-history-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.finance-history-copy strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-history-copy span,
.finance-history-copy small {
  color: #65758c;
  font-size: 13px;
}

.finance-history-copy small {
  line-height: 1.3;
}

.finance-history-amount {
  flex: 0 0 auto;
  color: #178259;
  font-size: 17px;
}

.finance-history-row.is-issue .finance-history-amount,
.finance-history-row.is-issue .finance-history-copy small {
  color: #c53a44;
}

.finance-empty {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 12px 0;
  border-bottom: 1px solid #e5eaf1;
  color: #697a91;
}

.finance-empty span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #eaf3ff;
  font-weight: 900;
}

.finance-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.finance-loading-screen {
  gap: 12px;
  padding-top: 16px;
}

.finance-skeleton-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
  padding: 18px;
  border: 1px solid #e6ebf2;
  border-radius: 24px;
}

.finance-skeleton {
  min-height: 118px;
  border-radius: 18px;
  background: linear-gradient(100deg, #edf1f6 30%, #f7f9fc 48%, #edf1f6 66%);
  background-size: 250% 100%;
  animation: finance-skeleton-shimmer 1.3s ease-in-out infinite;
}

.finance-skeleton-card .finance-skeleton:last-child {
  grid-column: 1 / -1;
}

.finance-skeleton-title {
  width: min(82%, 330px);
  min-height: 37px;
}

.finance-skeleton-subtitle {
  width: min(64%, 260px);
  min-height: 17px;
}

.finance-skeleton-paid {
  min-height: 92px;
}

.finance-load-error .primary-button {
  margin-top: 15px;
}

@keyframes finance-skeleton-shimmer {
  to {
    background-position: -180% 0;
  }
}

@media (min-width: 560px) {
  .finance-balance-grid,
  .finance-skeleton-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .finance-balance-item-transfer,
  .finance-skeleton-card .finance-skeleton:last-child {
    grid-column: auto;
  }
}

@media (max-width: 340px) {
  .finance-current-card {
    padding: 14px;
  }

  .finance-balance-grid,
  .finance-skeleton-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-balance-item-transfer,
  .finance-skeleton-card .finance-skeleton:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finance-skeleton {
    animation: none;
  }
}

/* A conversation is a focused full-screen space, separate from global navigation. */
body[data-conversation-open="true"] .bottom-nav {
  display: none;
}

body[data-conversation-open="true"] .conversation-view {
  position: fixed;
  z-index: 100;
  inset: 0;
  height: 100dvh;
  min-height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  border-radius: 0;
  background: #fff;
}

body[data-conversation-open="true"] .conversation-header {
  min-height: 64px;
  padding: 7px 12px;
}

body[data-conversation-open="true"] .conversation-trip-summary {
  min-height: 70px;
  padding: 12px 22px;
}

body[data-conversation-open="true"] .message-thread {
  padding: 18px 22px 12px;
  background: #fff;
}

body[data-conversation-open="true"] .conversation-reservation-bar {
  padding: 10px 22px 3px;
}

body[data-conversation-open="true"] .conversation-view .message-composer {
  width: calc(100% - 32px);
  margin: 8px 16px 6px;
}

@media (max-width: 355px) {
  .conversation-copy strong {
    font-size: 15px;
  }

  .conversation-copy p {
    font-size: 12px;
  }

  .conversation-avatar {
    width: 50px;
    height: 50px;
  }
}

.phone-verification-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 112px);
  margin: 0 auto;
}

.phone-verification-title {
  margin: 10px 0 16px;
  color: var(--navy);
  font-size: clamp(31px, 9vw, 43px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.phone-verification-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.phone-verification-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e8ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3f8ff, #fbfdff);
}

.phone-verification-step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #137eff, #0865e7);
  box-shadow: 0 9px 18px rgba(8, 109, 245, 0.2);
  font-size: 18px;
  font-weight: 900;
}

.phone-verification-step strong {
  display: block;
  margin: 2px 0 4px;
  color: var(--navy);
  font-size: 16px;
}

.phone-verification-step p,
.phone-verification-hint,
.phone-verification-status,
.phone-verification-cooldown {
  margin: 0;
  color: #667993;
  font-size: 14px;
  line-height: 1.42;
}

.phone-verification-field {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.phone-verification-field input {
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid #cbddef;
  border-radius: 16px;
  outline: 0;
  color: var(--navy);
  background: #f8fbff;
  font-size: 18px;
  font-weight: 750;
}

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

.phone-number-control > input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #cbddef;
  border-radius: 16px;
  outline: 0;
  color: var(--navy);
  background: #f8fbff;
  font-size: 17px;
  font-weight: 750;
}

.phone-country-toggle {
  display: inline-flex;
  min-width: 112px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #cbddef;
  border-radius: 16px;
  color: var(--navy);
  background: #f1f7ff;
  font-size: 17px;
  cursor: pointer;
}

.phone-country-toggle:focus-visible,
.phone-number-control > input:focus,
.phone-country-search input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8, 109, 245, 0.12);
  background: #fff;
}

.phone-country-panel {
  overflow: hidden;
  border: 1px solid #d8e5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 42, 75, 0.14);
}

.phone-country-panel[hidden] {
  display: none;
}

.phone-country-search {
  display: block;
  padding: 12px;
  border-bottom: 1px solid #e7eef6;
}

.phone-country-search input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid #cbddef;
  border-radius: 13px;
  outline: 0;
  color: var(--navy);
  background: #f8fbff;
  font: inherit;
}

.phone-country-list {
  overflow-y: auto;
  max-height: min(310px, 42dvh);
  padding: 6px;
  overscroll-behavior: contain;
}

.phone-country-option {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  border: 0;
  border-radius: 11px;
  color: var(--navy);
  background: transparent;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.phone-country-option:hover,
.phone-country-option:focus-visible {
  outline: 0;
  background: #edf6ff;
}

.phone-country-option-flag {
  font-size: 21px;
}

.phone-country-option b {
  color: #526982;
  font-variant-numeric: tabular-nums;
}

.phone-country-empty {
  margin: 0;
  padding: 18px;
  color: #667993;
  text-align: center;
}

.phone-verification-field input:focus,
.phone-otp-inputs input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 109, 245, 0.12);
  background: #fff;
}

.phone-verification-hint {
  margin-top: -7px;
  font-size: 12px;
}

.phone-verification-status {
  padding: 12px 14px;
  border-radius: 14px;
  color: #0c6c45;
  background: #edfff6;
  font-weight: 700;
}

.phone-verification-status.is-muted {
  color: #667993;
  background: #f4f8fc;
  font-weight: 600;
}

.phone-verification-status.is-success {
  color: #0c6c45;
  background: #edfff6;
}

.phone-verification-status.is-error {
  color: #a72736;
  background: #fff0f2;
}

.phone-verification-cooldown {
  margin-top: -7px;
  font-size: 12px;
  text-align: center;
}

.phone-otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.phone-otp-inputs input {
  width: 100%;
  min-width: 0;
  height: 54px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #cbddef;
  border-radius: 15px;
  outline: 0;
  color: var(--navy);
  background: #f8fbff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.phone-verification-link,
.phone-resend-button {
  justify-self: center;
  border: 0;
  padding: 2px 4px;
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.phone-resend-button:disabled {
  color: #8294ab;
}

.phone-verification-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.phone-verification-actions .primary-button,
.phone-verification-actions .secondary-button {
  width: 100%;
  min-height: 54px;
  border-radius: 17px;
  font-size: 15px;
}

@media (max-width: 370px) {
  .app-dialog[data-variant="phone-verification"] .dialog-content {
    padding-inline: 16px;
  }

  .phone-otp-inputs {
    gap: 6px;
  }

  .phone-otp-inputs input {
    height: 50px;
    font-size: 22px;
  }
}


/* Lasting override: Account screens always use the same blue return arrow. */
.app-dialog[data-account-page="true"] .dialog-card > header .icon-button {
  width: 48px;
  height: 48px;
  margin-right: auto;
  padding: 0;
  border: 1px solid #d8e7f8;
  border-radius: 16px;
  color: var(--blue);
  background: #f2f7fd;
  box-shadow: 0 5px 15px rgba(8, 109, 245, 0.08);
  font-size: 0;
}

.app-dialog[data-account-page="true"] .dialog-card > header .icon-button::before {
  content: none;
}

.app-dialog[data-account-page="true"] .dialog-card > header .icon-button svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Publish wizard: clear full-screen steps and precise meeting points. */
#page-publish .publish-review-form {
  background: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

#page-publish .publish-step-panel { min-height: 420px; }

#page-publish #route-map {
  min-height: 360px;
  border: 1px solid #dbe7f6;
  border-radius: 24px;
  overflow: hidden;
}

.meeting-point-search { display: grid; gap: 8px; margin-top: 14px; }
.meeting-point-search > span { font-size: .82rem; font-weight: 800; color: #15345c; }
.meeting-point-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6e4f4;
  border-radius: 18px;
  padding: 12px 14px;
  background: #f7fbff;
}
.meeting-point-search-input svg { width: 20px; height: 20px; fill: none; stroke: #0b7bf5; stroke-width: 1.8; }
.meeting-point-search-input input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #102f59; }
.meeting-point-results { display: grid; gap: 6px; max-height: 220px; overflow: auto; margin-top: 8px; }
.meeting-point-result { text-align: left; border: 1px solid #e0ebf7; background: #fff; color: #102f59; border-radius: 14px; padding: 11px 12px; cursor: pointer; }
.meeting-point-empty { padding: 10px 12px; color: #6d829c; }
.route-stop-suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.route-stop-option { display: flex; align-items: center; gap: 8px; border: 1px solid #dce8f6; border-radius: 14px; padding: 10px; background: #fbfdff; font-weight: 700; color: #15345c; }
.route-stop-option input { accent-color: #0b7bf5; }

/* Parcours Publier : une seule décision claire par écran. */
#page-publish .route-point-switcher[data-publish-location] { display: none; }

.nearby-points-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: #15345c;
  font-size: 13px;
}

.nearby-points-heading button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: #0878ff;
  background: #edf6ff;
  font-weight: 800;
}

.nearby-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nearby-point {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dce8f6;
  border-radius: 15px;
  color: #15345c;
  background: #fafdff;
  text-align: left;
}

.nearby-point strong,
.nearby-point small,
.meeting-point-result strong,
.meeting-point-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-point small,
.meeting-point-result small { color: #71829a; }
.meeting-point-result { display: grid; gap: 4px; }

.publish-stops-step { padding-bottom: 10px; }
.publish-stops-step .eyebrow { color: #0878ff; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }

.route-stop-list { display: grid; gap: 10px; }
.route-stops-empty { margin: 0; padding: 16px; border: 1px dashed #c9d9e9; border-radius: 18px; color: #71829a; text-align: center; }

.route-stop-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid #dfe9f4;
  border-radius: 18px;
  background: #fff;
}

.route-stop-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #0878ff;
  font-size: 12px;
  font-weight: 900;
}

.route-stop-item > div:nth-child(2) { display: grid; min-width: 0; gap: 3px; color: #15345c; }
.route-stop-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.route-stop-item small { overflow: hidden; color: #71829a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.route-stop-actions { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2; }
.route-stop-actions button {
  min-height: 32px;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  padding: 5px 8px;
  color: #15345c;
  background: #fafdff;
  font-size: 12px;
  font-weight: 800;
}
.route-stop-actions button:disabled { opacity: .4; }

.publish-summary-stops,
.publish-summary-preferences {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 18px;
  color: #15345c;
  background: #f7fbff;
}

.publish-summary-stops strong { font-size: 13px; }
.publish-summary-stops span { font-size: 13px; }
.publish-summary-preferences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.publish-summary-preferences span { padding: 9px; border-radius: 12px; color: #315374; background: #fff; font-size: 12px; font-weight: 750; }

.publish-summary-map {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 1px solid #dbe7f6;
  border-radius: 20px;
}

@media (max-width: 640px) {
  #page-publish .publish-step-panel { min-height: 0; }
  #page-publish #route-map { min-height: 320px; }
  .nearby-points { grid-template-columns: 1fr; }
  .publish-summary-preferences { grid-template-columns: 1fr; }
}

/* Publier v2 : assistant guide plein ecran, sans defilement de la page. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#page-publish .publish-review-form {
  position: fixed;
  z-index: 80;
  inset: calc(62px + var(--safe-top)) 0 calc(64px + var(--safe-bottom)) 0;
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--navy);
  background: #fff;
}

#page-publish .publish-review-form[hidden] { display: none !important; }

#page-publish .publish-wizard-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  height: 78px;
  padding: 10px 16px 14px;
  border-bottom: 0;
  background: #fff;
}

#page-publish .publish-wizard-header .publish-step-meta { min-width: 0; text-align: center; }
#page-publish .publish-wizard-header .publish-step-meta > span { font-size: 10px; }
#page-publish .publish-wizard-header .publish-step-meta > strong { font-size: clamp(14px, 4vw, 17px); }
#page-publish .publish-wizard-header .publish-progress {
  position: absolute;
  right: 16px;
  bottom: 5px;
  left: 16px;
  height: 4px;
  margin: 0;
}

#page-publish .publish-wizard-close {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 50%;
  background: #f2f7fd;
}

#page-publish .publish-wizard-close.app-back-button {
  border: 1px solid #d8e7f8;
  color: var(--blue);
  box-shadow: 0 5px 15px rgba(8, 109, 245, 0.08);
}

#page-publish .publish-wizard-close.app-back-button svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.15;
}

#page-publish .publish-stage {
  position: absolute;
  inset: 78px 0 78px;
  min-height: 0;
  overflow: hidden;
}

#page-publish .publish-step-panel {
  box-sizing: border-box;
  display: flex;
  width: min(100%, 680px);
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: clamp(12px, 2.5vh, 22px);
  margin: 0 auto;
  padding: clamp(14px, 3vh, 26px) 20px 10px;
  overflow: hidden;
  background: #fff;
}

#page-publish .publish-step-panel[hidden] { display: none !important; }
#page-publish .publish-step-panel h1 {
  flex: 0 0 auto;
  max-width: 590px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 7.4vw, 42px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

#page-publish .publish-step-panel > p {
  margin: -4px 0 0;
  color: #6e8098;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.45;
}

.publish-search-box {
  display: flex !important;
  min-height: 58px;
  align-items: center;
  gap: 11px !important;
  padding: 0 16px;
  border: 1px solid #dce6f1;
  border-radius: 19px;
  background: #eef3f8;
}

.publish-search-box svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: #47627f; stroke-width: 1.8; }
#page-publish .publish-search-box input {
  min-width: 0;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}

.publish-location-button {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid #d7e7f8;
  border-radius: 18px;
  color: #12406f;
  background: #f7fbff;
  text-align: left;
}
.publish-location-button svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; }
.publish-location-button span { display: grid; gap: 3px; }
.publish-location-button small { color: #6f8199; font-size: 11px; font-weight: 650; }
.publish-search-results { max-height: min(42vh, 290px); overflow-y: auto; overscroll-behavior: contain; }

.publish-map-step { position: relative; padding: 8px 0 0 !important; gap: 7px !important; }
.publish-map-step h1 { padding: 0 18px; font-size: clamp(21px, 5.7vw, 30px) !important; }
.publish-map-subtitle { margin: -2px 18px 2px !important; color: #6f8199; font-size: 12px; }
.publish-map-search-wrap { position: relative; z-index: 540; margin: 0 12px; }
.publish-map-search-box { min-height: 48px !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 5px 18px rgba(18, 59, 102, .1); }
.publish-map-search-box input { min-height: 46px !important; font-size: 14px !important; }
.publish-map-results {
  position: absolute;
  z-index: 550;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: min(34vh, 250px);
  padding: 6px;
  border: 1px solid #dce8f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 59, 102, .16);
}
.publish-map-address {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  margin: 0 14px;
  padding: 8px 11px;
  overflow: hidden;
  border-radius: 16px;
  background: #edf3f8;
}
.publish-map-address > span:not(.route-point-dot) { display: grid; min-width: 0; flex: 1; gap: 1px; }
.publish-map-address small { color: #6f8199; font-size: 10px; font-style: normal; font-weight: 800; }
.publish-map-address strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.publish-map-address em { overflow: hidden; color: #6f8199; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.publish-map-address em.error { color: #b14b40; }
.publish-map-address button { flex: 0 0 auto; min-height: 34px; border: 0; border-radius: 999px; padding: 6px 10px; color: var(--blue); background: #fff; font-size: 11px; font-weight: 850; }
.publish-map-host { position: relative; min-height: 220px; flex: 1 1 auto; overflow: hidden; background: #e9eef3; }
#page-publish .publish-map-host #route-map {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  border: 0;
  border-radius: 0;
}
#route-map.is-location-picker .opencar-map-marker-shell { display: none !important; }
.publish-center-pin {
  position: absolute;
  z-index: 500;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  pointer-events: none;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  box-shadow: 0 5px 15px rgba(0, 41, 91, .28);
  transform: translate(-50%, -100%) rotate(-45deg);
  transition: transform .18s ease;
}
.publish-center-pin.arrival { background: var(--green); }
.publish-map-host:has(#route-map.is-moving) .publish-center-pin { transform: translate(-50%, -122%) rotate(-45deg); }
.publish-map-geolocate {
  position: absolute;
  z-index: 510;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 59, 102, .2);
}
.publish-map-geolocate:disabled { opacity: .55; }
.publish-map-geolocate svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.publish-suggestions-toggle {
  position: absolute;
  z-index: 510;
  top: auto;
  bottom: 14px;
  left: 50%;
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 59, 102, .16);
  font-weight: 850;
  transform: translateX(-50%);
}
.publish-nearby-sheet {
  position: absolute;
  z-index: 520;
  right: 12px;
  bottom: 68px;
  left: 12px;
  max-height: min(44%, 310px);
  padding: 10px;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(13, 52, 94, .18);
}
.publish-nearby-sheet.nearby-points { grid-template-columns: 1fr; gap: 7px; }
.publish-nearby-sheet .nearby-points-heading { position: sticky; z-index: 1; top: -10px; padding: 8px 2px; background: rgba(255,255,255,.98); }
.publish-nearby-sheet .nearby-points-heading strong { font-size: 13px; }
.publish-nearby-sheet .nearby-point { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; }
.publish-nearby-sheet .nearby-point > span:last-child { display: grid; min-width: 0; gap: 2px; }
.nearby-point-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: var(--blue); background: #edf6ff; }
.nearby-point-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#page-publish .publish-route-step {
  display: grid !important;
  grid-template-rows: auto clamp(124px, 23vh, 190px) auto auto;
  align-content: start;
  min-height: 0;
  gap: 9px !important;
  padding-top: 8px !important;
  padding-bottom: 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
.publish-route-step h1 { margin: 0; font-size: clamp(23px, 6vw, 33px) !important; }
.publish-route-map-host { min-height: 0; height: 100%; border-radius: 18px; }
.publish-route-status-row { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.publish-route-status-row button { border: 0; color: var(--blue); background: transparent; font-weight: 850; }
.publish-route-step .route-choice-list { display: grid; min-height: 0; gap: 8px; overflow: visible; }
.publish-route-step .route-choice {
  position: relative;
  min-height: 96px;
  height: auto;
  padding: 12px 13px !important;
  border-radius: 15px;
}
.publish-route-step .route-choice-copy { min-width: 0; }
.publish-route-step .route-choice strong { font-size: 14px; line-height: 1.2; }
.publish-route-step .route-choice-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.publish-route-step .route-choice-metrics > span { display: grid; min-width: 0; gap: 1px; }
.publish-route-step .route-choice small { color: #718198; font-size: 10px; line-height: 1.2; }
.publish-route-step .route-choice b { color: var(--navy); font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; white-space: normal; }
.publish-route-step .route-choice-comparison { color: #1471ce; font-weight: 750; }
.publish-route-step .route-choice-action { display: inline-flex; min-height: 30px; align-items: center; margin-top: 3px; color: var(--blue); font-size: 11px; font-weight: 850; }

.publish-time-step, .publish-counter-step { align-items: center; text-align: center; }
.publish-time-step h1, .publish-counter-step h1 { margin-top: clamp(12px, 5vh, 48px) !important; text-align: center; }
.publish-time-control { margin: auto; }
#page-publish .publish-time-control input {
  width: min(82vw, 360px);
  min-height: 106px;
  padding: 10px 20px;
  border: 0;
  border-radius: 28px;
  color: var(--navy);
  background: #f0f6fc;
  font-size: clamp(45px, 15vw, 78px);
  font-weight: 900;
  text-align: center;
}

.publish-counter { display: grid; grid-template-columns: 68px 120px 68px; align-items: center; gap: 18px; margin: auto; }
.publish-counter button { width: 68px; height: 68px; border: 1px solid #cfe0f2; border-radius: 50%; color: var(--blue); background: #f7fbff; font-size: 36px; }
.publish-counter button:disabled {
  border-color: #dce4ed;
  color: #9aa9ba;
  background: #eef2f6;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
  pointer-events: none;
}
.publish-counter strong { font-size: 70px; }

#page-publish .publish-choice-step { margin: 0 auto; }
#page-publish .publish-choice-step h1 { font-size: clamp(26px, 7vw, 40px); }
#page-publish .publish-choice-step .publish-radio-row { min-height: 72px; padding: 13px 15px !important; border-radius: 18px; }
#page-publish .publish-vehicle-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.publish-inline-warning { padding: 10px 12px; border-radius: 13px; color: #76500a !important; background: #fff7df; }

.publish-price-step { align-items: center; text-align: center; }
.publish-price-step h1 { text-align: center; }
.publish-price-step .price-field { width: min(100%, 440px); margin: auto; }
.publish-price-step .price-field p { margin: 0; color: #718198; }
#page-publish .publish-price-step input { min-height: 70px; font-size: 38px; }
.publish-return-kicker {
  margin: 0 !important;
  color: #0878ff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .14em;
  text-align: center;
}

.publish-date-input {
  width: min(100%, 420px) !important;
  min-height: 74px !important;
  margin: auto;
  border-radius: 22px !important;
  font-size: 22px !important;
}

.publish-description-step textarea {
  min-height: 0 !important;
  flex: 1 1 auto;
  resize: none !important;
  border-radius: 20px !important;
  font-size: 16px !important;
  line-height: 1.5;
}
.publish-description-step > span { align-self: flex-end; color: #718198; font-size: 12px; font-weight: 800; }

#page-publish .publish-summary-step {
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#page-publish .publish-summary-step h1 { font-size: clamp(23px, 6vw, 34px); }
#page-publish .publish-summary-route { margin: 0; padding: 10px 12px; border-radius: 16px; }
#page-publish .publish-summary-route button { display: grid; min-width: 0; min-height: 38px; gap: 2px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
#page-publish .publish-summary-route strong, #page-publish .publish-summary-route small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#page-publish .publish-summary-details { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; gap: 1px; border-radius: 16px; background: #e4ebf3; }
#page-publish .publish-summary-details button { display: grid; min-width: 0; min-height: 48px; gap: 2px; padding: 8px 10px; border: 0; color: inherit; background: #fff; text-align: left; }
#page-publish .publish-summary-details dt { color: #7a8aa0; font-size: 9px; font-weight: 800; }
#page-publish .publish-summary-details dd { overflow: hidden; margin: 0; font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.publish-return-summary-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #cfe2f6;
  border-radius: 16px;
  background: #f5faff;
}
.publish-return-summary-card[hidden] { display: none; }
.publish-return-summary-card h2 { margin: 0; color: #0878ff; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.publish-return-summary-card > p { margin: 0; color: var(--navy); font-size: 14px; font-weight: 900; }
.publish-return-summary-card dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: 11px; background: #dce8f4; }
.publish-return-summary-card button { display: grid; min-width: 0; gap: 2px; padding: 7px; border: 0; color: inherit; background: #fff; text-align: left; }
.publish-return-summary-card dt { color: #718198; font-size: 9px; font-weight: 800; }
.publish-return-summary-card dd { overflow: hidden; margin: 0; font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }

#page-publish .publish-wizard-actions {
  position: absolute;
  z-index: 40;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: 78px;
  padding: 10px 20px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid #e6edf5;
  background: rgba(255,255,255,.98);
}
#page-publish .publish-wizard-actions button { display: block; width: min(100%, 640px); min-height: 56px; margin: 0 auto; }
#page-publish .publish-wizard-actions button:disabled { cursor: not-allowed; opacity: .42; }

@media (max-height: 720px) {
  #page-publish .publish-review-form { top: calc(56px + var(--safe-top)); }
  #page-publish .publish-wizard-header { height: 68px; padding-block: 7px 11px; }
  #page-publish .publish-stage { inset-block: 68px 68px; }
  #page-publish .publish-wizard-actions { height: 68px; padding-block: 6px; }
  #page-publish .publish-wizard-actions button { min-height: 54px; }
  #page-publish .publish-step-panel { gap: 9px; padding-top: 9px; }
  #page-publish .publish-step-panel h1 { font-size: clamp(23px, 6.4vw, 32px); }
  #page-publish .publish-route-step { grid-template-rows: auto clamp(112px, 21vh, 148px) auto auto auto; gap: 7px !important; }
  .publish-route-step .route-choice { min-height: 86px; padding-block: 9px !important; }
  #page-publish .publish-choice-step .publish-radio-row { min-height: 62px; padding-block: 9px !important; }
  #page-publish .publish-summary-details button { min-height: 42px; padding-block: 5px; }
}

@media (max-width: 360px) {
  #page-publish .publish-step-panel { padding-inline: 14px; }
  #page-publish .publish-wizard-header { padding-inline: 10px; }
  .publish-counter { grid-template-columns: 58px 94px 58px; gap: 10px; }
  .publish-counter button { width: 58px; height: 58px; }
  .publish-counter strong { font-size: 58px; }
  .publish-return-summary-card dl { grid-template-columns: 1fr 1fr; }
}

#page-publish .route-choice > input[type="radio"],
#page-publish .publish-radio-row > input[type="radio"] {
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#page-publish .publish-radio-row::before {
  grid-column: 1;
  grid-row: 1;
  width: 20px;
  height: 20px;
  border: 2px solid #9bb0c8;
  border-radius: 50%;
  background: #fff;
  content: "";
}

#page-publish .publish-radio-row.selected::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #fff;
}

#page-publish .publish-radio-row > span {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

@media (max-height: 620px) {
  #page-publish .publish-choice-step .publish-radio-row {
    min-height: 56px;
    padding-block: 6px !important;
  }
}

.profile-onboarding {
  position: fixed;
  z-index: 850;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100dvh;
  padding:
    var(--safe-top)
    calc(var(--safe-right) + 16px)
    var(--safe-bottom)
    calc(var(--safe-left) + 16px);
  color: var(--navy);
  background: #fff;
}

/* The onboarding is a full-screen layer. Child journeys opened from it must
   remain above that layer, otherwise the real dialog runs invisibly behind it. */
.profile-onboarding:not([hidden]) ~ .app-dialog:not([hidden]) {
  z-index: 900;
}

.onboarding-header,
.onboarding-content,
.onboarding-footer {
  width: min(620px, calc(100vw - var(--safe-left) - var(--safe-right) - 32px));
  min-width: 0;
  margin-inline: auto;
}

.onboarding-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 62px;
}

.onboarding-header > p {
  grid-column: 3;
  margin: 0;
  color: #7c8999;
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.onboarding-back-button {
  display: grid;
  grid-column: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: transparent;
}

.onboarding-back-button:active {
  background: var(--blue-soft);
}

.onboarding-back-button svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.onboarding-content {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 4px 28px;
  scrollbar-width: none;
}

.onboarding-content::-webkit-scrollbar {
  display: none;
}

.onboarding-step,
.profile-onboarding .travel-preference-choice-screen {
  animation: onboarding-step-in 150ms ease-out both;
}

.onboarding-step h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.onboarding-step > p {
  max-width: 520px;
  margin: 12px 0 26px;
  color: #63748b;
  font-size: 15px;
  line-height: 1.55;
}

.profile-onboarding .travel-preference-choice-screen {
  width: 100%;
  min-width: 0;
  min-height: auto;
  gap: 20px;
}

.profile-onboarding .travel-preference-options {
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}

.profile-onboarding .travel-preference-option {
  width: 100%;
  min-width: 0;
  min-height: 88px;
}

.profile-onboarding .travel-preference-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.onboarding-photo-step {
  text-align: center;
}

.onboarding-photo-step > p {
  margin-inline: auto;
}

.onboarding-photo-step .onboarding-photo-guidance {
  color: #607086;
  font-size: 14px;
  line-height: 1.5;
}

.onboarding-photo-step .profile-photo-validation {
  width: min(100%, 360px);
  margin-inline: auto;
}

.onboarding-photo-preview {
  display: grid;
  width: 176px;
  height: 176px;
  margin: 12px auto 30px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 50%;
  color: var(--blue);
  background: #f3f8ff;
  font-size: 44px;
  font-weight: 900;
}

.onboarding-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-photo-actions {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  margin-inline: auto;
}

.onboarding-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.onboarding-form label {
  display: grid;
  gap: 9px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 820;
}

.onboarding-form input,
.onboarding-form textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #d7e2ee;
  outline: none;
  color: var(--navy);
  background: #f8fafc;
  font: inherit;
  font-size: 16px;
  font-weight: 560;
}

.onboarding-form input {
  min-height: 58px;
  padding: 0 17px;
  border-radius: 16px;
}

.onboarding-form textarea {
  min-height: 230px;
  padding: 16px 17px;
  resize: vertical;
  border-radius: 20px;
  line-height: 1.55;
}

.onboarding-form input:focus,
.onboarding-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 109, 245, 0.1);
}

.onboarding-optional-step {
  display: grid;
  justify-items: center;
  padding-top: clamp(20px, 8vh, 72px);
  text-align: center;
}

.onboarding-optional-step > p {
  margin-inline: auto;
}

.onboarding-optional-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 25px;
  color: var(--blue);
  background: var(--blue-soft);
}

.onboarding-optional-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.onboarding-optional-state {
  display: inline-flex;
  margin: 0 0 22px !important;
  padding: 8px 13px;
  border-radius: 999px;
  color: #087452 !important;
  background: #e5f8f1;
  font-size: 13px !important;
  font-weight: 820;
}

.onboarding-outline-action,
.onboarding-text-action,
.onboarding-skip-action {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  color: var(--blue);
  background: transparent;
  font-size: 15px;
  font-weight: 850;
}

.onboarding-outline-action {
  border: 1px solid #b9d5f7;
  background: #fff;
}

.onboarding-text-action {
  min-height: 44px;
}

.onboarding-skip-action {
  width: 100%;
  min-height: 56px;
}

.onboarding-footer {
  display: grid;
  padding: 12px 4px 10px;
  background: #fff;
}

.onboarding-footer .primary-button {
  width: 100%;
  min-height: 56px;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(5, 95, 219, 0.18);
}

@keyframes onboarding-step-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-height: 680px) {
  .onboarding-header {
    min-height: 52px;
  }

  .onboarding-content {
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .profile-onboarding .travel-preference-option {
    min-height: 72px;
    padding-block: 8px;
  }

  .onboarding-photo-preview {
    width: 126px;
    height: 126px;
    margin-block: 6px 16px;
  }

  .onboarding-form {
    margin-top: 18px;
  }

  .onboarding-form textarea {
    min-height: 150px;
  }

  .onboarding-optional-step {
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-step,
  .profile-onboarding .travel-preference-choice-screen {
    animation: none;
  }
}

.trips-page { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
.trips-page.is-empty { padding-bottom: 24px; }
.trips-heading { margin-bottom: 18px; }
.my-trips-content:not(.is-empty) { min-height: 240px; }
.trips-page .profile-trips-layout { padding-bottom: 12px; }

/* Shared visual language for the real application and its web companion. */
/* OpenCar experience: shared surfaces, rhythm and cards. No marketing fixtures. */
:root {
  --oc-radius: 24px;
  --oc-border: #dfebfb;
  --oc-shadow: 0 6px 22px rgb(27 89 168 / 5%);
  --oc-ink: #071c40;
  --oc-muted: #677c9b;
  --oc-action: #0675ff;
  --oc-mint: #00c7ad;
}
.main-app { background: linear-gradient(155deg, #f5f8ff, #fafeff 65%, #f5f9ff); color: var(--oc-ink); font-family: Arial, Helvetica, sans-serif; }
.main-app .app-header { justify-content: center; background: #fff; border-color: #eef3fb; box-shadow: none; }
.main-app .header-brand { gap: 10px; font-size: 25px; letter-spacing: -1px; }
.main-app .header-brand img { width: 42px; height: 42px; object-fit: contain; box-shadow: none; }
.main-app h1 { color: var(--oc-ink); letter-spacing: -.045em; line-height: 1.12; }
.main-app h2 { letter-spacing: -.025em; }
.main-app :where(button, input, select, textarea):focus-visible { outline: 3px solid #1681ff; outline-offset: 3px; }
.main-app .primary-button { border-radius: 22px; background: linear-gradient(110deg, #0787ff, #0063ee); box-shadow: 0 6px 16px rgb(0 104 255 / 12%); }
.main-app .secondary-button { border-color: var(--oc-border); border-radius: 20px; background: #fff; }
.main-app .bottom-nav { background: #fff; border-color: var(--oc-border); box-shadow: none; }
.main-app .bottom-nav button { color: #73839c; font-size: 11px; gap: 5px; }
.main-app .bottom-nav button.active { color: var(--oc-action); background: transparent; }
.main-app .bottom-nav svg { width: 26px; height: 26px; flex-shrink: 0; stroke-width: 1.9; }
.main-app .bottom-nav button[data-nav="search"] svg { stroke-width: 2.3; }
.voyager-page .voyager-hero { padding: 8px 2px 6px; }
.voyager-page .voyager-hero h1 { max-width: 440px; font-size: clamp(29px, 7.5vw, 36px); }
.voyager-page .voyager-hero > p:last-child { margin-top: 10px; color: var(--oc-muted); font-weight: 500; line-height: 1.5; }
.voyager-page .travel-mode-selector { gap: 12px; margin-block: 18px; }
.voyager-page .travel-mode-card { min-height: 128px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); box-shadow: var(--oc-shadow); }
.voyager-page .travel-mode-copy strong { font-size: 21px; letter-spacing: -.035em; line-height: 1.15; }
.voyager-page .travel-mode-copy span { color: var(--oc-muted); font-size: 12px; line-height: 1.45; }
.voyager-page .travel-mode-illustration img { object-fit: contain; aspect-ratio: 4 / 3; }
.voyager-page .voyager-assistant-shortcut { border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: #fff; box-shadow: var(--oc-shadow); padding: 18px; margin-block: 18px; }
.voyager-page .voyager-assistant-shortcut img { width: 56px; height: 56px; object-fit: contain; border-radius: 18px; }
.voyager-page .voyager-assistant-shortcut strong { font-size: 15px; }
.voyager-page .voyager-assistant-shortcut small { font-size: 13px; line-height: 1.5; font-weight: 400; }
.voyager-page .voyager-assistant-shortcut button { font-size: 14px; min-height: 32px; }
.voyager-discovery { margin-top: 30px; }
.voyager-section-heading h2 { margin: 0; font-size: 22px; color: var(--oc-ink); }
.voyager-section-heading p { font-size: 13px; color: var(--oc-muted); line-height: 1.5; margin: 7px 0 16px; }
#voyager-discovery-more { width: 100%; margin-top: 14px; }
.voyager-recent { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--oc-border); }
.voyager-inner-header { align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.voyager-inner-header h1 { font-size: clamp(28px, 7.2vw, 36px); margin-top: 4px; }
.voyager-inner-header > span { min-width: 0; }
.voyager-inner-header p { color: var(--oc-muted); font-size: 15px; line-height: 1.5; margin: 9px 0 0; }
.voyager-back-button { flex: 0 0 44px; border-radius: 17px; background: #fff; }
.passenger-search-view .passenger-search-card { border: 1px solid var(--oc-border); border-radius: 28px; padding: 8px; background: #fff; box-shadow: var(--oc-shadow); overflow: visible; }
.passenger-route-fields { padding: 4px 14px 0 40px; }
.passenger-route-fields .passenger-search-field { padding: 17px 0; }
.passenger-search-field > span { font-size: 12px; font-weight: 650; color: var(--oc-muted); }
.passenger-search-field input { font-size: 16px; min-width: 0; padding: 8px 0 3px; color: var(--oc-ink); }
.passenger-search-field input::placeholder { color: #8191aa; opacity: 1; }
.passenger-route-fields .passenger-route-line { left: 17px; top: 36px; bottom: 32px; }
.passenger-route-line i { width: 12px; height: 12px; border-width: 3px; }
.passenger-route-line span { background: linear-gradient(var(--oc-action), var(--oc-mint)); opacity: .4; }
.passenger-trip-dates { margin: 0 10px; padding-block: 8px; border-top: 1px solid var(--oc-border); }
.passenger-trip-date { min-width: 0; padding: 12px 10px 12px 34px; position: relative; }
.passenger-trip-date::before { content: ''; position: absolute; left: 6px; top: 23px; width: 18px; height: 19px; border: 2px solid #6d83a2; border-radius: 4px; background: linear-gradient(transparent 4px, #6d83a2 4px, #6d83a2 6px, transparent 6px); }
.passenger-trip-date span { font-size: 12px; }
.passenger-trip-date strong { font-size: 16px; }
.passenger-trip-date span small { font-size: 10px; }
.passenger-search-card .passenger-search-submit { min-height: 62px; border-radius: 22px; font-size: 20px; margin: 0; width: 100%; }
.passenger-search-card .passenger-search-submit svg { width: 25px; height: 25px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.passenger-results-header { padding: 0 18px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: #fff; box-shadow: var(--oc-shadow); }
.passenger-results-route { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: 10px; padding: 13px 0 10px; }
.passenger-results-locations { position: relative; display: grid; gap: 0; min-width: 0; }
.passenger-results-locations::before { content: ''; position: absolute; left: 6px; top: 19px; bottom: 19px; width: 2px; border-radius: 2px; background: linear-gradient(var(--oc-action), var(--oc-mint)); opacity: .5; }
.passenger-results-locations p { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 8px 0; }
.passenger-results-locations p + p { border-top: 1px solid #e7eef8; }
.passenger-results-locations strong { min-width: 0; overflow: hidden; color: var(--oc-ink); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.passenger-result-marker { z-index: 1; display: block; box-sizing: border-box; width: 14px; height: 14px; border: 4px solid #dcecff; border-radius: 50%; background: var(--oc-action); box-shadow: 0 0 0 2px #fff; }
.passenger-result-marker.arrival { position: relative; border: 0; border-radius: 50% 50% 50% 0; background: var(--oc-mint); transform: rotate(-45deg); }
.passenger-result-marker.arrival::after { content: ''; position: absolute; width: 5px; height: 5px; margin: 4px; border-radius: 50%; background: #fff; }
.passenger-results-swap { display: grid; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; place-items: center; background: #f1f7ff; color: var(--oc-action); }
.passenger-results-swap svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.passenger-results-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--oc-border); }
.passenger-results-meta > span { display: flex; align-items: center; min-width: 0; gap: 9px; padding: 13px 0; color: #627897; }
.passenger-results-meta > span + span { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--oc-border); }
.passenger-results-meta svg { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.passenger-results-meta strong { min-width: 0; overflow: hidden; color: #526b90; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.passenger-results-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; }
.passenger-results-tools > button { min-height: 44px; padding: 8px 14px; font-size: 13px; }
.results-sort-label { display: flex; align-items: center; gap: 8px; color: var(--oc-muted); font-size: 13px; min-width: 0; }
.results-sort-label select { max-width: 165px; min-height: 44px; border: 1px solid var(--oc-border); border-radius: 14px; padding: 8px; background: #fff; color: var(--oc-ink); font: inherit; }
.results-summary { gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.results-summary strong { color: var(--oc-ink); font-size: 20px; }
.results-summary > span { font-size: 11px; color: var(--oc-muted); }
.structured-trip-list, .favorite-trip-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.opencar-result-card.trip-card { position: relative; overflow: hidden; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: #fff; box-shadow: var(--oc-shadow); margin: 0; padding: 0; }
.opencar-result-card .trip-card-main { display: block; width: 100%; margin: 0; padding: 18px; border: 0; background: transparent; color: var(--oc-ink); text-align: left; }
.trip-card-journey { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.trip-card-itinerary { min-width: 0; }
.trip-card-hours { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 23px; letter-spacing: -.035em; }
.trip-card-hours svg { width: 24px; height: 24px; fill: none; stroke: #617899; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.trip-card-cities { margin: 5px 0 3px; color: #6c819f; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.trip-card-duration { color: #7386a1; font-size: 11px; }
.trip-card-price { display: grid; justify-items: end; gap: 2px; }
.trip-card-price strong { color: #078b6c; font-size: 26px; line-height: 1.1; letter-spacing: -.04em; white-space: nowrap; }
.trip-card-price span { color: var(--oc-muted); font-size: 12px; }
.trip-card-price small { color: var(--oc-muted); font-size: 9px; }
.opencar-result-card .result-card-footer { display: grid; grid-template-columns: 50px minmax(0, 1fr) 38px; gap: 12px; align-items: center; padding: 15px 0 12px; margin: 0; border: 0; }
.opencar-result-card .result-driver-avatar { display: grid; width: 50px; height: 50px; overflow: hidden; border: 1px solid #d9e9fb; border-radius: 50%; background: #e6f3ff; color: #086df5; place-items: center; }
.opencar-result-card .result-driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.opencar-result-card .result-driver-copy { min-width: 0; display: grid; gap: 4px; }
.opencar-result-card .result-driver-copy > strong { font-size: 16px; overflow-wrap: anywhere; white-space: normal; }
.opencar-result-card .result-driver-copy small { color: var(--oc-muted); font-size: 12px; }
.trip-card-rating { display: inline-flex; align-items: center; gap: 5px; min-height: 18px; }
.trip-card-rating .trip-card-rating-star { color: #ffb800; font-size: 18px; line-height: 1; text-shadow: 0 1px 0 rgb(145 91 0 / 8%); }
.trip-card-rating strong { color: #435c82; font-size: 12px; }
.trip-card-chevron { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e1edfb; border-radius: 50%; background: #f6faff; color: var(--oc-action); }
.trip-card-chevron svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.trip-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; min-height: 31px; padding-right: 34px; color: #657b9b; font-size: 11px; }
.trip-card-badges > span { display: inline-flex; align-items: center; gap: 5px; }
.opencar-result-card .result-seat-badge { padding: 0; background: transparent; color: #657b9b; font-size: 11px; white-space: normal; }
.trip-card-badges svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.trip-card-badges strong { color: #5f7597; font-size: inherit; }
.trip-card-badges .trip-card-highlight { color: #087ca9; }
.trip-card-badges .trip-card-highlight svg { fill: #1596c7; stroke: #1596c7; }
.opencar-result-card .favorite-button { top: auto; bottom: 14px; right: 13px; width: 32px; height: 32px; z-index: 2; background: #fff; box-shadow: none; }
.trip-list-skeleton { display: grid; gap: 13px; }
.trip-skeleton { display: grid; gap: 18px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); padding: 24px; background: #fff; }
.trip-skeleton i { display: block; height: 17px; width: 72%; border-radius: 12px; background: #eaf2fc; animation: oc-pulse 1.2s ease-in-out infinite alternate; }
.trip-skeleton i:nth-child(2) { width: 47%; height: 32px; }.trip-skeleton i:last-child { width: 90%; height: 12px; }
@keyframes oc-pulse { to { opacity: .4; } }
.voyager-discovery .app-empty-search-state { padding: 24px 18px; margin: 0; background: #fff; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); }
.voyager-discovery .app-empty-search-state svg { max-height: 90px; }
.voyager-assistant-view .assistant-orb { width: 64px; height: 64px; margin: 0 0 12px 2px; background: transparent; border: 0; box-shadow: none; }
.voyager-assistant-view .assistant-orb::before, .voyager-assistant-view .assistant-orb::after { display: none; }
.voyager-assistant-view .assistant-orb img { width: 64px; height: 64px; object-fit: contain; }
.voyager-assistant-view .assistant-wave { display: none; }
.voyager-assistant-view .chat-bubble { padding: 17px; border: 1px solid var(--oc-border); border-radius: 24px 24px 24px 8px; box-shadow: var(--oc-shadow); font-size: 15px; line-height: 1.55; }
.voyager-assistant-view .user-bubble { border-color: transparent; border-radius: 24px 24px 8px 24px; background: var(--oc-action); }
.voyager-assistant-view .assistant-bubble::before { content: 'OpenCar'; display: block; margin-bottom: 6px; color: #0972ec; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.voyager-assistant-view .composer { border-radius: 28px; border: 1px solid var(--oc-border); background: #fff; box-shadow: var(--oc-shadow); }
.voyager-assistant-view .composer input { font-size: 16px; min-width: 0; }
.voyager-assistant-view .composer-send { border-radius: 50%; background: var(--oc-action); }
#page-publish .publish-step-panel h1 { font-size: clamp(27px, 6.8vw, 34px); }
#page-publish .publish-summary-route, #page-publish .publish-summary-details > button { border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: #fff; box-shadow: var(--oc-shadow); }
#page-publish .publish-summary-route { margin: 18px 0 12px; padding: 18px; }
#page-publish .publish-summary-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; }
#page-publish .publish-summary-details > button { position: relative; display: grid; gap: 6px; padding: 18px 40px 18px 20px; text-align: left; min-height: 83px; }
#page-publish .publish-summary-details > button::after { content: '›'; position: absolute; right: 17px; top: 24px; color: var(--oc-action); font-size: 27px; }
#page-publish .publish-summary-details dt { color: var(--oc-muted); font-size: 12px; }
#page-publish .publish-summary-details dd { margin: 0; color: var(--oc-ink); font-size: 18px; font-weight: 750; overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
#page-publish .publish-summary-details > button[data-edit-publish-step="price"] { background: #edfcf8; border-color: #c7f3e9; }
#page-publish #publish-summary-price { font-size: 36px; color: #087d69; }
#page-publish .price-field { background: #edfcf8; border: 1px solid #c7f3e9; border-radius: 28px; padding: 20px 16px; box-shadow: none; }
#page-publish .price-field-heading { color: #087d69; line-height: 1.5; }
#page-publish .price-stepper button, #page-publish .publish-counter button { background: #f4f9ff; border: 1px solid var(--oc-border); border-radius: 20px; color: var(--oc-action); }
#page-publish .publish-radio-row { border-radius: 22px; border-color: var(--oc-border); }
.main-app .profile-trip-card { border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: #fff; box-shadow: var(--oc-shadow); overflow: hidden; }
.main-app .profile-trip-main { padding: 20px; }
.main-app .profile-trip-main > strong { font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.main-app .profile-trip-role { border-radius: 20px; padding: 5px 10px; font-size: 11px; }
.main-app .profile-trip-status { color: #087d69; }
.main-app .profile-trip-period h3 { font-size: 19px; }
#page-messages .conversation-list { border: 0; background: transparent; display: grid; gap: 10px; }
#page-messages .conversation-item { grid-template-columns: 50px minmax(0, 1fr) 16px; border: 1px solid var(--oc-border); border-radius: 22px; padding: 16px 13px; background: #fff; box-shadow: var(--oc-shadow); }
.conversation-item .conversation-avatar-shell { grid-column: 1; grid-row: 1; }
.conversation-item .conversation-copy { grid-column: 2; grid-row: 1; }
.conversation-item .conversation-chevron { grid-column: 3; grid-row: 1; }
#page-messages .conversation-avatar { width: 46px; height: 46px; }
.conversation-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--oc-muted); font-size: 13px; line-height: 1.6; }
#page-messages .message-row .chat-bubble { border-radius: 22px 22px 22px 7px; box-shadow: var(--oc-shadow); border: 1px solid var(--oc-border); padding: 14px 16px; }
#page-messages .message-row:not(.mine) .chat-bubble { background: #fff; }
#page-messages .message-row.mine .chat-bubble { border-radius: 22px 22px 7px 22px; background: var(--oc-action); border-color: transparent; }
#page-publish .publish-summary-intro { color: var(--oc-muted); font-size: 15px; line-height: 1.5; }
#page-profile .profile-summary-card, #page-profile .profile-content-section { border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: #fff; box-shadow: var(--oc-shadow); padding: 20px; margin-bottom: 16px; }
#page-profile .profile-card-summary { padding: 0 0 20px; }
#page-profile .profile-avatar { width: 78px; height: 78px; aspect-ratio: 1; flex-shrink: 0; }
#page-profile .profile-identity { min-width: 0; }
#page-profile .profile-identity h2 { font-size: 26px; overflow-wrap: anywhere; }
#page-profile .profile-stats { border-top: 1px solid var(--oc-border); padding-top: 18px; }
#page-profile .profile-stats strong { font-size: 22px; }
#page-profile .profile-stats > div > span:last-child { font-size: 10px; }
#page-profile .verification-row { border-radius: 16px; min-height: 66px; }
@media (min-width: 700px) {
  .voyager-page .travel-mode-card { min-height: 175px; }
  .voyager-page .travel-mode-illustration { width: 120px; }
}
@media (max-width: 359px) {
  .opencar-result-card .trip-card-main { padding: 14px; }
  .trip-card-hours { font-size: 20px; gap: 6px; }.trip-card-price strong { font-size: 23px; }
  .passenger-trip-date { padding-left: 27px; }.passenger-trip-date::before { left: 2px; width: 16px; }
  .passenger-trip-date strong { font-size: 14px; }
  .voyager-page .travel-mode-copy strong { font-size: 19px; }
  .results-sort-label select { max-width: 145px; }
  #page-profile .profile-summary-card, #page-profile .profile-content-section { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) { .trip-skeleton i { animation: none; } }
