/* Driver.js is locally hosted; these overrides follow the workspace palette. */
.driver-popover.trekly-tour {
  box-sizing: border-box;
  width: 356px;
  min-width: 0;
  max-width: min(356px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 26px 26px 22px;
  border: 1px solid rgba(165, 213, 191, .3);
  border-radius: 22px;
  background: rgba(20, 38, 31, .94);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: inherit;
}
.trekly-tour .tour-chapter {
  display: block;
  margin: 0 50px 14px 0;
  color: var(--orange-bright);
  font-size: var(--ui-text-base, 10px);
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: .1em;
}
.trekly-tour .driver-popover-title { padding-right: 0; font-weight: 600; font-family: inherit; font-size: var(--ui-text-base, 10px); line-height: 1.4; letter-spacing: -.03em; }
.trekly-tour .driver-popover-description { margin-top: 14px; color: var(--ink-soft); font-family: inherit; font-size: var(--ui-text-base, 10px); line-height: 1.85; }
.trekly-tour .driver-popover-description p { margin: 0; }
.trekly-tour .driver-popover-description .tour-tip { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--mint); font-size: var(--ui-text-base, 10px); line-height: 1.7; }
.trekly-tour .driver-popover-footer { margin-top: 24px; gap: 10px; }
.trekly-tour .driver-popover-progress-text { color: var(--ink-soft); font-size: var(--ui-text-base, 10px); white-space: nowrap; }
.trekly-tour .driver-popover-navigation-btns { gap: 7px; }
.trekly-tour button { font-family: inherit; text-shadow: none; box-shadow: none; transition: background .15s ease; }
.trekly-tour .driver-popover-prev-btn, .trekly-tour .driver-popover-next-btn {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(165, 213, 191, .06);
  color: var(--ink-soft);
  font-size: var(--ui-text-base, 10px);
}
.trekly-tour .driver-popover-next-btn { background: var(--orange); color: #111c16; border-color: transparent; font-weight: 650; }
.trekly-tour .driver-popover-prev-btn:hover { background: rgba(165, 213, 191, .16); }
.trekly-tour .driver-popover-next-btn:hover { background: var(--orange-bright); }
.trekly-tour .driver-popover-prev-btn:disabled { opacity: .3; }
.trekly-tour .driver-popover-next-btn:disabled { opacity: .5; cursor: wait; }
.trekly-tour .driver-popover-close-btn { top: 15px; right: 16px; width: 48px; height: 34px; border-radius: 8px; color: var(--ink-soft); font-size: var(--ui-text-base, 10px); }
.trekly-tour .driver-popover-close-btn:hover { color: var(--ink); background: rgba(165, 213, 191, .1); }
.tour-import-step .driver-popover-close-btn { width: 72px; }
.tour-import-step .tour-chapter { margin-right: 78px; }
.trekly-tour .driver-popover-description .tour-import-status { margin-top: 12px; color: var(--mint); font-size: var(--ui-text-base, 10px); }
.trekly-tour .tour-import-status:empty { display: none; }
.trekly-tour button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.trekly-tour .driver-popover-arrow { display: none; }
.tour-progress-track { height: 2px; margin: 19px 0 -6px; background: rgba(165, 213, 191, .13); border-radius: 2px; overflow: hidden; }
.tour-progress-track span { display: block; height: 100%; background: var(--mint); }
.onboarding-feedback { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1500; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--surface-strong); border: 1px solid var(--line-strong); color: var(--mint); font-size: var(--ui-text-base, 10px); box-shadow: var(--shadow-soft); pointer-events: none; }
.onboarding-feedback:empty { display: none; }
.onboarding-settings { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.onboarding-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.onboarding-settings-head strong { display: block; margin-top: 4px; color: var(--ink); font-size: var(--ui-text-base, 10px); }
.onboarding-settings label { display: block; color: var(--ink-soft); font-size: var(--ui-text-base, 10px); margin-bottom: 8px; }
.onboarding-settings select { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--canvas-raised); color: var(--ink); font: inherit; font-size: var(--ui-text-base, 10px); }
.onboarding-settings select:disabled { opacity: .5; }
.onboarding-settings button { border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 12px; color: var(--mint); background: transparent; font: inherit; font-size: var(--ui-text-base, 10px); cursor: pointer; }
.onboarding-settings-foot { display: flex; align-items: flex-start; gap: 14px; margin-top: 10px; }
.onboarding-settings-foot p { flex: 1; color: var(--ink-soft); font-size: var(--ui-text-base, 10px); line-height: 1.6; margin: 0; }
.onboarding-settings-foot button { flex-shrink: 0; border: 0; padding: 0; font-size: var(--ui-text-base, 10px); }
@media (max-width: 600px) {
  .driver-popover.trekly-tour { padding: 22px 20px 18px; border-radius: 18px; }
  .trekly-tour .driver-popover-title { font-size: var(--ui-text-base, 10px); }
  .trekly-tour .driver-popover-footer { gap: 6px; }
  .trekly-tour .driver-popover-next-btn, .trekly-tour .driver-popover-prev-btn { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .trekly-tour *, .trekly-tour-active * { scroll-behavior: auto !important; }
  .trekly-tour button { transition: none; }
}
/* Surface mounting must not move a target underneath the spotlight. */
.trekly-tour-active .trip-overview, .trekly-tour-active .gear-assistant { animation: none; }
