/* Build 684: privacy-first guided import for a past trip. */

html body .app-shell .life-chapter-trip-start {
  display: inline-flex !important;
  min-height: 50px !important;
  padding: 7px 12px 7px 8px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 1px solid rgba(8, 120, 109, 0.2) !important;
  border-radius: 999px !important;
  color: #075d61 !important;
  background: linear-gradient(145deg, rgba(255, 254, 247, 0.98), rgba(238, 250, 244, 0.96)) !important;
  box-shadow:
    0 10px 24px rgba(5, 68, 71, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  font: inherit !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

html body .app-shell .life-chapter-trip-start-icon {
  display: inline-grid !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 12px !important;
  color: #fffef8 !important;
  background: linear-gradient(145deg, #41d5ad 0%, #149a98 58%, #0c7182 100%) !important;
  box-shadow:
    0 6px 14px rgba(10, 119, 118, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

html body .app-shell .life-chapter-trip-start-icon svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 2.25 !important;
}

html body .app-shell .life-chapter-trip-start-label {
  white-space: nowrap !important;
}

html body .app-shell .life-chapter-trip-start-arrow {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  color: rgba(7, 93, 97, 0.72) !important;
  transition: transform 160ms ease, color 160ms ease !important;
}

html body .app-shell .life-chapter-trip-start:hover,
html body .app-shell .life-chapter-trip-start:focus-visible {
  border-color: rgba(8, 120, 109, 0.34) !important;
  background: linear-gradient(145deg, #fffef8, #e8f8ef) !important;
  box-shadow: 0 10px 24px rgba(5, 68, 71, 0.12), 0 0 0 3px rgba(49, 199, 162, 0.1) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .life-chapter-trip-start:hover .life-chapter-trip-start-arrow,
html body .app-shell .life-chapter-trip-start:focus-visible .life-chapter-trip-start-arrow {
  color: #075d61 !important;
  transform: translateX(2px) !important;
}

html body .app-shell #homeJourney .life-chapter-empty-copy .life-chapter-trip-start {
  margin: 13px auto 0 !important;
}

html body .app-shell #homeJourney .life-chapter-import-row {
  display: flex !important;
  width: 100% !important;
  margin-top: 14px !important;
  justify-content: center !important;
}

html body .app-shell .trip-import-dialog {
  width: min(720px, calc(100vw - 32px)) !important;
  max-width: 720px !important;
  max-height: min(860px, calc(100dvh - 32px)) !important;
  margin: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(123, 186, 177, 0.3) !important;
  border-radius: 30px !important;
  color: #0a4652 !important;
  background:
    radial-gradient(circle at 92% 4%, rgba(78, 221, 175, 0.15), transparent 28%),
    linear-gradient(148deg, #fffef8 0%, #f4fbf7 58%, #eaf7f4 100%) !important;
  box-shadow: 0 28px 82px rgba(1, 35, 45, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

html body .app-shell .trip-import-dialog::backdrop {
  background: rgba(2, 28, 38, 0.58) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html body .app-shell .trip-import-panel {
  display: grid !important;
  max-height: min(860px, calc(100dvh - 32px)) !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

html body .app-shell .trip-import-header {
  display: flex !important;
  padding: 25px 26px 15px !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

html body .app-shell .trip-import-header > div {
  display: grid !important;
  min-width: 0 !important;
  gap: 4px !important;
}

html body .app-shell .trip-import-header span {
  color: #168778 !important;
  font-size: 0.64rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

html body .app-shell .trip-import-header h2 {
  margin: 0 !important;
  color: #073f4d !important;
  font-size: clamp(1.45rem, 4vw, 2rem) !important;
  font-weight: 820 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
}

html body .app-shell .trip-import-header p {
  margin: 2px 0 0 !important;
  color: #58787d !important;
  font-size: 0.82rem !important;
  font-weight: 590 !important;
  line-height: 1.45 !important;
}

html body .app-shell .trip-import-close {
  display: grid !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 1px solid rgba(11, 85, 91, 0.14) !important;
  border-radius: 50% !important;
  color: #315e63 !important;
  background: rgba(255, 255, 252, 0.84) !important;
}

html body .app-shell .trip-import-close svg {
  width: 20px !important;
  height: 20px !important;
}

html body .app-shell .trip-import-progress {
  display: grid !important;
  margin: 0 26px !important;
  padding: 6px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  list-style: none !important;
  border: 1px solid rgba(13, 109, 101, 0.1) !important;
  border-radius: 18px !important;
  background: rgba(231, 245, 240, 0.68) !important;
}

html body .app-shell .trip-import-progress li {
  display: flex !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 7px 9px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 13px !important;
  color: #6b8587 !important;
  font-size: 0.67rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

html body .app-shell .trip-import-progress li > span {
  display: grid !important;
  width: 20px !important;
  height: 20px !important;
  place-items: center !important;
  border: 1px solid rgba(11, 102, 94, 0.14) !important;
  border-radius: 50% !important;
  font-size: 0.59rem !important;
}

html body .app-shell .trip-import-progress li.active {
  color: #075f5c !important;
  background: rgba(255, 255, 251, 0.94) !important;
  box-shadow: 0 5px 14px rgba(9, 81, 77, 0.09) !important;
}

html body .app-shell .trip-import-progress li.active > span {
  border-color: rgba(20, 152, 126, 0.3) !important;
  color: #086d65 !important;
  background: rgba(211, 244, 232, 0.88) !important;
}

html body .app-shell .trip-import-body {
  min-height: 0 !important;
  padding: 20px 26px 22px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .app-shell .trip-import-step {
  display: grid !important;
  gap: 16px !important;
}

html body .app-shell .trip-import-step[hidden] {
  display: none !important;
}

html body .app-shell .trip-import-step-heading {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .app-shell .trip-import-step-heading > svg {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  padding: 10px !important;
  border: 1px solid rgba(17, 135, 119, 0.16) !important;
  border-radius: 14px !important;
  color: #0a8475 !important;
  background: rgba(231, 248, 240, 0.9) !important;
}

html body .app-shell .trip-import-step-heading > div {
  display: grid !important;
  min-width: 0 !important;
  gap: 3px !important;
}

html body .app-shell .trip-import-step-heading strong {
  color: #0a4752 !important;
  font-size: 0.92rem !important;
  font-weight: 810 !important;
  line-height: 1.2 !important;
}

html body .app-shell .trip-import-step-heading small {
  color: #668084 !important;
  font-size: 0.72rem !important;
  font-weight: 570 !important;
  line-height: 1.4 !important;
}

html body .app-shell .trip-import-file-picker {
  display: grid !important;
  min-height: 172px !important;
  padding: 24px !important;
  place-items: center !important;
  align-content: center !important;
  gap: 7px !important;
  border: 1.5px dashed rgba(13, 139, 119, 0.36) !important;
  border-radius: 22px !important;
  color: #0a625f !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(72, 219, 171, 0.15), transparent 46%),
    rgba(249, 252, 247, 0.88) !important;
  text-align: center !important;
  cursor: pointer !important;
}

html body .app-shell .trip-import-file-picker > svg {
  width: 34px !important;
  height: 34px !important;
  padding: 7px !important;
  border-radius: 12px !important;
  color: #087d70 !important;
  background: rgba(211, 245, 232, 0.9) !important;
}

html body .app-shell .trip-import-file-picker > strong {
  font-size: 0.87rem !important;
  font-weight: 800 !important;
}

html body .app-shell .trip-import-file-picker > small {
  color: #6a8385 !important;
  font-size: 0.69rem !important;
  font-weight: 560 !important;
}

html body .app-shell .trip-import-file-picker > input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

html body .app-shell .trip-import-selection {
  display: grid !important;
  min-height: 42px !important;
  gap: 10px !important;
  color: #5e7b7e !important;
  font-size: 0.72rem !important;
  font-weight: 620 !important;
}

html body .app-shell .trip-import-selection-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .trip-import-selection-grid figure {
  position: relative !important;
  min-width: 0 !important;
  aspect-ratio: 1 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(10, 94, 94, 0.13) !important;
  border-radius: 13px !important;
  background: #e7f3ee !important;
}

html body .app-shell .trip-import-selection-grid img,
html body .app-shell .trip-import-selection-grid video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html body .app-shell .trip-import-selection-grid figure > span {
  position: absolute !important;
  right: 5px !important;
  bottom: 5px !important;
  padding: 4px 6px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(4, 55, 64, 0.78) !important;
  font-size: 0.54rem !important;
  font-weight: 780 !important;
}

html body .app-shell .trip-import-privacy,
html body .app-shell .trip-import-confirmation {
  display: flex !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  align-items: flex-start !important;
  gap: 9px !important;
  border: 1px solid rgba(21, 145, 117, 0.12) !important;
  border-radius: 15px !important;
  color: #557579 !important;
  background: rgba(229, 247, 239, 0.7) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

html body .app-shell .trip-import-privacy svg,
html body .app-shell .trip-import-confirmation svg {
  flex: 0 0 17px !important;
  width: 17px !important;
  height: 17px !important;
  color: #0a8978 !important;
}

html body .app-shell .trip-import-step > label,
html body .app-shell .trip-import-date-row > label {
  display: grid !important;
  gap: 7px !important;
  color: #315e65 !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  line-height: 1.3 !important;
}

html body .app-shell .trip-import-step > label > small,
html body .app-shell .trip-import-date-row > label > small {
  color: #71888a !important;
  font-size: 0.64rem !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
}

html body .app-shell .trip-import-step input[type="text"],
html body .app-shell .trip-import-step input[type="date"],
html body .app-shell .trip-import-step textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(13, 95, 99, 0.16) !important;
  border-radius: 15px !important;
  outline: none !important;
  color: #123f49 !important;
  background: rgba(255, 255, 252, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  font: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 620 !important;
}

html body .app-shell .trip-import-step textarea {
  min-height: 92px !important;
  resize: vertical !important;
}

html body .app-shell .trip-import-step input:focus,
html body .app-shell .trip-import-step textarea:focus {
  border-color: rgba(12, 148, 126, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(57, 203, 164, 0.12) !important;
}

html body .app-shell .trip-import-date-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body .app-shell .trip-import-review-card {
  display: grid !important;
  padding: 18px !important;
  gap: 13px !important;
  border: 1px solid rgba(12, 111, 105, 0.14) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 211, 165, 0.18), transparent 38%),
    rgba(255, 255, 252, 0.9) !important;
  box-shadow: 0 13px 30px rgba(4, 63, 68, 0.09) !important;
}

html body .app-shell .trip-import-review-card > header {
  display: grid !important;
  gap: 5px !important;
}

html body .app-shell .trip-import-review-card > header span {
  color: #188675 !important;
  font-size: 0.59rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html body .app-shell .trip-import-review-card > header strong {
  color: #073f4d !important;
  font-size: 1.12rem !important;
  font-weight: 820 !important;
  line-height: 1.15 !important;
}

html body .app-shell .trip-import-review-card > header small {
  color: #627e81 !important;
  font-size: 0.71rem !important;
  font-weight: 590 !important;
  line-height: 1.4 !important;
}

html body .app-shell .trip-import-review-facts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .trip-import-review-facts span {
  display: grid !important;
  min-width: 0 !important;
  min-height: 62px !important;
  padding: 10px 8px !important;
  place-items: center !important;
  align-content: center !important;
  gap: 3px !important;
  border: 1px solid rgba(10, 107, 102, 0.1) !important;
  border-radius: 15px !important;
  background: rgba(237, 248, 243, 0.76) !important;
  text-align: center !important;
}

html body .app-shell .trip-import-review-facts strong {
  color: #0a5860 !important;
  font-size: 0.9rem !important;
  font-weight: 830 !important;
}

html body .app-shell .trip-import-review-facts small {
  color: #6a8586 !important;
  font-size: 0.59rem !important;
  font-weight: 720 !important;
}

html body .app-shell .trip-import-review-detail {
  margin: 0 !important;
  padding: 12px 13px !important;
  border-left: 3px solid #45c69d !important;
  border-radius: 4px 13px 13px 4px !important;
  color: #446a70 !important;
  background: rgba(233, 247, 239, 0.62) !important;
  font-size: 0.71rem !important;
  font-weight: 590 !important;
  line-height: 1.5 !important;
}

html body .app-shell .trip-import-upload-status {
  display: grid !important;
  gap: 8px !important;
}

html body .app-shell .trip-import-upload-status[hidden] {
  display: none !important;
}

html body .app-shell .trip-import-upload-status > div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  color: #416b70 !important;
  font-size: 0.68rem !important;
}

html body .app-shell .trip-import-upload-track {
  display: block !important;
  height: 7px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(9, 91, 91, 0.1) !important;
}

html body .app-shell .trip-import-upload-track > i {
  display: block !important;
  width: 0;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #0b6870, #12a17e, #54d19c) !important;
  transition: width 180ms ease !important;
}

html body .app-shell .trip-import-footer {
  display: flex !important;
  padding: 15px 26px calc(17px + env(safe-area-inset-bottom, 0px)) !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-top: 1px solid rgba(13, 88, 91, 0.1) !important;
  background: rgba(250, 253, 248, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

html body .app-shell .trip-import-footer > span {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
}

html body .app-shell .trip-import-footer button {
  min-height: 44px !important;
  padding: 11px 16px !important;
  border-radius: 14px !important;
  font: inherit !important;
  font-size: 0.71rem !important;
  font-weight: 790 !important;
  cursor: pointer !important;
}

html body .app-shell .trip-import-back,
html body .app-shell .trip-import-cancel {
  border: 1px solid rgba(10, 92, 94, 0.13) !important;
  color: #4f7275 !important;
  background: rgba(255, 255, 252, 0.78) !important;
}

html body .app-shell .trip-import-next,
html body .app-shell .trip-import-save {
  border: 1px solid rgba(73, 222, 179, 0.25) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #075666 0%, #0b857a 58%, #19a474 100%) !important;
  box-shadow: 0 10px 23px rgba(7, 108, 98, 0.2) !important;
}

html body .app-shell .trip-import-footer button:disabled {
  opacity: 0.5 !important;
  cursor: wait !important;
}

@media (max-width: 640px) {
  html body .app-shell .trip-import-dialog {
    width: calc(100vw - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
    border-radius: 25px !important;
  }

  html body .app-shell .trip-import-panel {
    max-height: calc(100dvh - 18px) !important;
  }

  html body .app-shell .trip-import-header {
    padding: 19px 18px 12px !important;
  }

  html body .app-shell .trip-import-header p {
    max-width: 33ch !important;
    font-size: 0.72rem !important;
  }

  html body .app-shell .trip-import-progress {
    margin-inline: 18px !important;
  }

  html body .app-shell .trip-import-progress li {
    padding-inline: 5px !important;
    gap: 5px !important;
  }

  html body .app-shell .trip-import-body {
    padding: 17px 18px 20px !important;
  }

  html body .app-shell .trip-import-file-picker {
    min-height: 148px !important;
    padding: 20px 14px !important;
  }

  html body .app-shell .trip-import-selection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html body .app-shell .trip-import-date-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .app-shell .trip-import-footer {
    padding-inline: 18px !important;
  }

  html body .app-shell .trip-import-footer button {
    padding-inline: 13px !important;
  }
}

@media (max-width: 380px) {
  html body .app-shell .trip-import-progress li {
    font-size: 0 !important;
  }

  html body .app-shell .trip-import-progress li > span {
    font-size: 0.59rem !important;
  }

  html body .app-shell .trip-import-selection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body .app-shell .trip-import-footer {
    align-items: stretch !important;
  }

  html body .app-shell .trip-import-footer > span {
    width: 100% !important;
  }

  html body .app-shell .trip-import-footer button {
    flex: 1 1 auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .life-chapter-trip-start,
  html body .app-shell .life-chapter-trip-start-arrow,
  html body .app-shell .trip-import-upload-track > i {
    transition: none !important;
  }
}
