/* TimeGo plan wizard, phone theme (dark + lime). Loaded in <head>, so it is ready before the wizard opens. */
html.tgw-lock, body.tgw-lock { overflow: hidden !important; overscroll-behavior: none; }
body.tgw-lock { position: fixed; left: 0; right: 0; width: 100%; }
.tgw { overscroll-behavior: contain; }
.tgw-main, .tgw-auth { overscroll-behavior: contain; }
.tgw-tabs { overscroll-behavior-x: contain; }
@media (max-width: 600px) {

  html body .tgw { padding: 0; align-items: flex-end; background: rgba(0,0,0,.62); font-family: Manrope, Poppins, system-ui, sans-serif; color: #f3f5ee; }
  html body .tgw-card {
    height: 94vh; height: 94dvh; max-width: none; border-radius: 26px 26px 0 0;
    background: #12140e; border: 1px solid rgba(255,255,255,.07); border-bottom: 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5);
  }

  /* ---------- header + tabs ---------- */
  html body .tgw-head { gap: 6px; padding: 10px 10px 10px 8px; background: #151811; border-bottom: 1px solid rgba(255,255,255,.07); }
  html body .tgw-brand { display: none; }
  html body .tgw-tabs { position: relative; flex: 1; min-width: 0; gap: 2px; }
  html body .tgw-tab { padding: 8px 13px; font-size: .78rem; font-weight: 700; color: #8d9285; background: transparent; }
  html body .tgw-tab.is-done { color: #c9f23a; }
  html body .tgw-tab.is-on { background: #c9f23a; color: #10120a; }
  html body .tgw-tab:disabled { opacity: .45; }
  html body .tgw-reset { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 0; background: transparent; }
  html body .tgw-reset::before { content: "\21BA"; font-size: 1.15rem; color: #8d9285; }
  html body .tgw-x { flex: 0 0 36px; background: #1f2219; color: #f3f5ee; border: 1px solid rgba(255,255,255,.08); }
  html body .tgw-bar { background: rgba(255,255,255,.06); }
  html body .tgw-bar i { background: linear-gradient(90deg, #9fd12a, #c9f23a); }

  /* ---------- content ---------- */
  html body .tgw-main { padding: 18px 16px 28px; }
  html body .tgw-main h2 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.03em; color: #f3f5ee !important; margin: 0 0 6px; text-wrap: balance; }
  html body .tgw-sub { color: #8d9285; font-size: .86rem; margin: 0 0 16px; }

  html body .tgw-search { background: #0f110b !important; color: #f3f5ee !important; border: 1px solid #2b2e27 !important; font-size: 16px; min-height: 48px; }
  html body .tgw-search::placeholder { color: #6f746a; }
  html body .tgw-places { grid-template-columns: 1fr 1fr; gap: 12px; }
  html body .tgw-place { height: 160px; border-radius: 20px; background-color: #1a1c15; }
  html body .tgw-place.is-on { outline: 3px solid #c9f23a; }
  html body .tgw-empty { background: #1a1c15; color: #8d9285; border: 1px solid rgba(255,255,255,.07); }

  html body .tgw-panel { padding: 16px; margin-bottom: 14px; border-radius: 22px; background: #1a1c15; border: 1px solid rgba(255,255,255,.07); box-shadow: none; }
  html body .tgw-panel h3 { color: #f3f5ee !important; font-size: 1rem; }
  html body .tgw-field { margin-bottom: 12px; }
  html body .tgw-field label { color: #8d9285; font-size: .68rem; }
  html body .tgw-row { grid-template-columns: 1fr; gap: 0; }

  html body .tgw .tgw-in, html body .tgw select.tgw-in {
    display: block; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; font-size: 16px;
    background-color: #0f110b !important; color: #f3f5ee !important; border: 1px solid #2b2e27 !important; color-scheme: dark;
  }
  html body .tgw textarea.tgw-in { padding: 12px 14px; }
  html body .tgw .tgw-in::placeholder { color: #6f746a !important; }
  html body .tgw .tgw-in:focus { border-color: #c9f23a !important; box-shadow: 0 0 0 3px rgba(201,242,58,.16) !important; }
  html body .tgw .tgw-in:disabled { opacity: .7; }
  html body .tgw input[type="date"].tgw-in { -webkit-appearance: none; appearance: none; text-align: left; }

  html body .tgw-pill { background: #262a20; color: #c9f23a; }
  html body .tgw-err { color: #ff7a6b; }
  html body .tgw-note { background: rgba(212,162,76,.12); border-color: rgba(212,162,76,.4); color: #e9c779; }

  /* ---------- footer ---------- */
  html body .tgw-foot { gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: #151811; border-top: 1px solid rgba(255,255,255,.07); }
  html body .tgw-foot > span { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex: 1; min-width: 0; }
  html body .tgw-btn { min-height: 46px; padding: 0 20px; font-size: .88rem; white-space: nowrap; border-radius: 999px; }
  html body .tgw-primary, html body .tgw-accent { background: #c9f23a; color: #10120a; box-shadow: none; }
  html body .tgw-primary:hover:not(:disabled), html body .tgw-accent:hover:not(:disabled) { background: #b9e22a; }
  html body .tgw-ghost { background: #23261d; color: #f3f5ee; border: 1px solid rgba(255,255,255,.08); }
  html body .tgw-btn:disabled { opacity: .4; }
  html body .tgw-link { color: #8d9285; font-size: .8rem; white-space: nowrap; padding: 10px 8px; }

  /* ---------- attractions ---------- */
  html body .tgw-acs { grid-template-columns: 1fr 1fr; gap: 12px; }
  html body .tgw-ac { aspect-ratio: 3 / 4; border-radius: 20px; background: #1a1c15; }
  html body .tgw-ac.is-on { outline-color: #c9f23a; box-shadow: 0 10px 26px rgba(201,242,58,.22); }
  html body .tgw-ac.is-on .tgw-ac-add { background: #c9f23a; border-color: #c9f23a; color: #10120a; }
  html body .tgw-ac-cta { color: #c9f23a; }
  html body .tgw-ac.is-on .tgw-ac-cta { color: #c9f23a; }
  html body .tgw-ac-txt p { display: none; }
  html body .tgw-ac-txt b { font-size: 1rem; }
  html body .tgw-footr b { color: #f3f5ee; }
  html body .tgw-thumbs { display: none; }
  html body .tgw-custom { gap: 8px; }

  /* ---------- itinerary ---------- */
  html body .tgw-modes { grid-template-columns: 1fr; gap: 10px; }
  html body .tgw-mode { background: #1a1c15; border: 2px solid rgba(255,255,255,.07); box-shadow: none; }
  html body .tgw-mode.is-on { border-color: #c9f23a; }
  html body .tgw-mode b { color: #f3f5ee; }
  html body .tgw-mode small { color: #8d9285; }
  html body .tgw-day { background: #1a1c15; border: 1px solid rgba(255,255,255,.07); box-shadow: none; }
  html body .tgw-day h4 { color: #c9f23a; }
  html body .tgw-stop { grid-template-columns: 1fr auto; border-top-color: rgba(255,255,255,.07); }
  html body .tgw-stop select { grid-column: 1 / -1; background: #0f110b; color: #f3f5ee; border: 1px solid #2b2e27; color-scheme: dark; min-height: 40px; }
  html body .tgw-stop-name { color: #f3f5ee; }
  html body .tgw-ctl button { background: #262a20; color: #f3f5ee; }
  html body .tgw-pool { border-top-color: rgba(255,255,255,.07); }
  html body .tgw-pool span { color: #f3f5ee; }
  html body .tgw-pool select { background: #0f110b; color: #f3f5ee; border: 1px solid #2b2e27; color-scheme: dark; }
  html body .tgw-pool button, html body .tgw-mini button { background: #c9f23a; color: #10120a; }

  /* ---------- finish + sign-in sheet ---------- */
  html body .tgw-sum { color: #cfd3c6; } html body .tgw-sum b { color: #f3f5ee; }
  html body .tgw-two { grid-template-columns: 1fr; }
  html body .tgw-opt, html body .tgw-passrow { background: #1a1c15; border: 1px solid rgba(255,255,255,.07); box-shadow: none; }
  html body .tgw-opt h3, html body .tgw-passrow h3 { color: #f3f5ee !important; }
  html body .tgw-opt p, html body .tgw-passrow p { color: #8d9285; }
  html body .tgw-passrow { grid-template-columns: 1fr; }
  html body .tgw-ok h2 { color: #f3f5ee !important; }

  html body .tgw-authwrap { padding: 0; align-items: flex-end; background: rgba(0,0,0,.6); }
  html body .tgw-auth { grid-template-columns: 1fr; max-height: 92%; border-radius: 26px 26px 0 0; background: #151811; }
  html body .tgw-auth-l { padding: 18px; }
  html body .tgw-auth-r { padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
  html body .tgw-auth-r h3 { color: #f3f5ee !important; }
  html body .tgw-sw { color: #8d9285; } html body .tgw-sw a { color: #c9f23a; }
  html body .tgw-or { color: #6f746a; } html body .tgw-or span { background: #2b2e27; }
}