/* GENERATED FILE - DO NOT EDIT.
   Source: shared/plan-drag.css - run `npm run sync:shared` after editing. */

/*
 * Drag to plan + 🔒 Fixed time + 📎 bookings (owner-approved mock 2026-10-12, docs/mocks/drag-plan-mock.html) —
 * web planner and the app's planner (both draw #panel-itinerary.wbp-on). shared/plan-drag.js, shared/plan-files.js.
 */
#panel-itinerary.wbp-on,
.lb-drag-preview,
.lb-hotel-booking {
  --lbd-forest: var(--wbx-forest, var(--forest, #1e3a2f));
  --lbd-forest-soft: var(--wbx-forest-soft, #e3ece6);
  --lbd-warn: #b4581f;
  --lbd-warn-soft: #fdebdc;
  --lbd-gold: var(--wbx-gold, #7a5c1c);
  --lbd-gold-soft: var(--wbx-gold-soft, #f5ecd3);
  --lbd-line: var(--wbx-line, #e3d8c2);
  --lbd-paper: #fffdf8;
  --lbd-ink: var(--wbx-ink, #1b2a23);
  --lbd-soft: var(--wbx-muted, #5f6b64);
}

/* The line between two rows: a thin gap, a drop zone while a stop is being dragged. */
#panel-itinerary.wbp-on .lmp-dropline {
  position: relative;
  height: 4px;
  margin: 0;
  pointer-events: none;
}
/* It opens as a 22 px drop zone over the rows' edges, never pushing them (Run 21 sim B-67: six lines opening at the
   lift moved the list ~100 px, the free box slid away from the finger): 22 px tall, −9 px above and below = the
   same 4 px in the layout. */
#panel-itinerary.wbp-on .is-plan-dragging .lmp-dropline {
  height: 22px;
  margin: -9px 0;
  z-index: 2;
  pointer-events: auto;
}
#panel-itinerary.wbp-on .lmp-dropline::after {
  content: "";
  position: absolute;
  left: 2.6rem;
  right: 0.25rem;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.12s;
}
#panel-itinerary.wbp-on .lmp-dropline.is-drop-target::after {
  background: var(--lbd-forest);
}
#panel-itinerary.wbp-on .lmp-dropline.is-drop-target.is-drop-bad::after {
  background: var(--lbd-warn);
}

/* Targets while dragging: a stop's card, a free row. */
#panel-itinerary.wbp-on .is-plan-dragging .lmp-stop.is-movable:not(.is-dragging) .wbx-stopcard {
  outline: 1.5px dashed color-mix(in srgb, var(--lbd-forest) 35%, transparent);
  outline-offset: 1px;
}
#panel-itinerary.wbp-on .lmp-stop.is-drop-target .wbx-stopcard {
  outline: 2px solid var(--lbd-forest);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--lbd-forest-soft);
}
#panel-itinerary.wbp-on .lmp-stop.is-drop-target.is-drop-bad .wbx-stopcard {
  outline-color: var(--lbd-warn);
  box-shadow: 0 0 0 4px var(--lbd-warn-soft);
}
#panel-itinerary.wbp-on .wbx-freerow.is-drop-target .wbx-free {
  border-color: var(--lbd-forest);
  border-style: solid;
  background: var(--lbd-forest-soft);
  color: var(--lbd-ink);
}
#panel-itinerary.wbp-on .wbx-freerow.is-drop-target.is-drop-bad .wbx-free {
  border-color: var(--lbd-warn);
  background: var(--lbd-warn-soft);
}
#panel-itinerary.wbp-on .lmp-stop.is-dragging {
  opacity: 0.35;
  transform: none !important;
  box-shadow: none;
}
.lb-drag-ghost {
  position: fixed !important;
  z-index: 2147483000;
  pointer-events: none !important;
  margin: 0 !important;
  background: var(--lbd-paper, #fffdf8);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(19, 37, 30, 0.55);
  opacity: 0.97;
  will-change: transform;
}
.lb-drag-ghost .lmp-dropline,
.lb-drag-ghost .lm-plan-drag {
  display: none;
}
html.lb-plan-dragging,
html.lb-plan-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* The preview line along the bottom: what the drop would do (warning colour when refused). */
.lb-drag-preview {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bot, env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%);
  z-index: 2147483001;
  width: min(34rem, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: var(--lbd-forest);
  color: #fffdf8;
  font: 600 0.86rem/1.35 var(--font-body, "DM Sans", system-ui, sans-serif);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  overflow-wrap: anywhere;
}
.lb-drag-preview[hidden] {
  display: none;
}
.lb-drag-preview.is-bad {
  background: var(--lbd-warn);
}
.lb-drag-preview strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

/* The way between two cards: a quiet grey "🚗 ~25 min" (owner 2026-10-13); only "Tight · 10 min gap" is orange.
   Never blocks. */
#panel-itinerary.wbp-on .lmp-leg.is-travel,
#panel-itinerary.wbp-on .lmp-leg.is-travel.is-tight,
#panel-itinerary.wbp-on .wbp3 :is(.wbx-legrow, .wbx-free-leg, .wbx-lines) .lmp-leg.is-travel.is-tight {
  color: var(--lbd-soft);
  font-weight: 500;
}
#panel-itinerary.wbp-on .lmp-leg .lmp-leg-warn {
  color: var(--lbd-warn);
  font-weight: 700;
}

/* A stop with 🔒 Fixed time (a traveller fixed it): a plain card, the lock where the grip was (owner 2026-10-13). */
#panel-itinerary.wbp-on .lmp-lock {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  min-height: 2.6rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
/* The card's right edge: 🎫 / 📎 its booking above the grip / lock. */
#panel-itinerary.wbp-on .wbx-stop .lmp-edge {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 0.15rem;
}
#panel-itinerary.wbp-on .wbx-stop .lmp-edge .lm-plan-drag {
  margin-top: 0;
  min-height: 2.2rem;
}
#panel-itinerary.wbp-on .wbx-stop .lmp-edge .lmp-lock {
  min-height: 2rem;
}
/* One right column on every row (owner 2026-10-13 "so that they are the same card size to all"): the grip, a 🔒,
   🎫 / 📎 over either, a faint 🔒 or an empty spacer — all one width, so every card is the same width. */
#panel-itinerary.wbp-on .wbp3 .wbx-stop > :is(.lm-plan-drag, .lmp-lock, .lmp-edge, .lmp-edge-gap) {
  box-sizing: border-box;
  width: 2.25rem;
}
#panel-itinerary.wbp-on .wbp3 .wbx-stop > .lmp-lock {
  align-self: center;
}
/* Fixed by nature (a flight, a Trip detail travel row, hotel check-in / out): a faint 🔒 — not a button; its title
   says where to change it (LakbayPlanFiles.lockIconHtml faintIn). */
#panel-itinerary.wbp-on .lmp-lock.is-faint,
#panel-itinerary.wbp-on .wbx-stop .lmp-edge .lmp-lock.is-faint {
  opacity: 0.35;
  cursor: default;
}
/* 🎫 / 📎 alone (day card + planner card): a tap opens the file. 2.25rem — a thumb fits. */
.lb-plan-file-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.lb-plan-file-icon:hover {
  background: var(--lbd-gold-soft, #f5ecd3);
}
.lb-plan-file-icon small {
  position: absolute;
  right: 0.1rem;
  bottom: 0.1rem;
  min-width: 0.9rem;
  padding: 0 0.15rem;
  border-radius: 999px;
  background: var(--lbd-gold, #7a5c1c);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 0.9rem;
}
.lb-plan-lock-icon {
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  line-height: 1;
}
/* A faint 🔒 (hotel / flight row) says where to change it on a tap (China sim 2026-10-17 A-5). */
.lb-plan-lock-icon[data-plan-lock-why] {
  cursor: pointer;
}
/* The stop's sheet / panel: "🔒 Fixed time · other stops go around it …" in words. */
.lb-plan-fixed-line {
  margin: 0.5rem 0;
  color: var(--lbd-ink, #1b2a23);
  font-size: 0.86rem;
  font-weight: 600;
}
.lb-plan-fixed-line small {
  color: var(--lbd-soft, #5f6b64);
  font-size: 0.8rem;
  font-weight: 400;
}
.lb-plan-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.55rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.lb-plan-file-chip {
  min-height: 1.75rem;
  background: var(--lbd-gold-soft, #f5ecd3);
  color: var(--lbd-gold, #7a5c1c);
  cursor: pointer;
}
.lb-plan-file-chip:focus-visible,
.lb-plan-file-icon:focus-visible,
.lb-plan-switch:focus-visible,
.lb-plan-opt-btn:focus-visible {
  outline: 3px solid var(--lbd-gold, #b98a2e);
  outline-offset: 2px;
}

/* The stop editor's rows: 🔒 Fixed time (a switch) and 🎫 Ticket / 📎 Booking; the hotel card's 📎 Booking. */
.lb-plan-opts {
  display: grid;
  gap: 0.5rem;
  margin: 0.6rem 0;
}
.lb-plan-opt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--lbd-line, #e3d8c2);
  border-radius: 14px;
  background: var(--lbd-paper, #fffdf8);
  color: var(--lbd-ink, #1b2a23);
}
/* The words take the room; the buttons go under them when the card is narrow (a phone, the planner's column). */
.lb-plan-opt-copy {
  flex: 1 1 11rem;
  min-width: 0;
}
.lb-plan-opt > .lb-plan-switch,
.lb-plan-opt-acts {
  margin-left: auto;
}
.lb-plan-opt-copy b {
  display: block;
  font-size: 0.9rem;
}
.lb-plan-opt-copy small {
  display: block;
  color: var(--lbd-soft, #5f6b64);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.lb-plan-opt-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}
.lb-plan-opt-btn {
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--lbd-line, #e3d8c2);
  border-radius: 999px;
  background: var(--lbd-paper, #fffdf8);
  color: var(--lbd-ink, #1b2a23);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.lb-plan-opt-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.lb-plan-opt-hint {
  margin: 0;
  color: var(--lbd-forest, #1e3a2f);
  font-size: 0.8rem;
}
.lb-plan-switch {
  position: relative;
  flex: none;
  width: 3rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--lbd-line, #e3d8c2);
  cursor: pointer;
}
.lb-plan-switch::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.lb-plan-switch[aria-checked="true"] {
  background: var(--lbd-forest, #1e3a2f);
}
.lb-plan-switch[aria-checked="true"]::after {
  transform: translateX(1.25rem);
}
@media (prefers-reduced-motion: reduce) {
  .lb-plan-switch::after,
  #panel-itinerary.wbp-on .lmp-dropline::after {
    transition: none;
  }
}

/* The finger is low on the screen (a phone on its side): the preview line moves to the top. */
.lb-drag-preview.is-top {
  top: calc(12px + env(safe-area-inset-top, 0px));
  bottom: auto;
}

/* The ghost is the card only: the time column and the dot stay with the row. */
.lb-drag-ghost .wbx-when,
.lb-drag-ghost .wbx-dot,
.lb-drag-ghost .lmp-pin {
  visibility: hidden;
}

/* The name gets the room the chips had (owner 2026-10-13): two lines before it is cut, web + app planner. */
#panel-itinerary.wbp-on .wbp3 .wbx-stop.is-compact.is-compact .wbx-cmain.lmp-main .nu-agc-body > b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
