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

/*
 * LakbayBook controls — ONE look for web + app (owner-approved mock, 2026-11-11).
 *
 *   Buttons    pills, 44px; 48px in a window / sheet footer
 *   Footers    Remove (red words, no box) far left · Cancel · the main action LAST.
 *              Narrow (phone app, narrow web, bottom sheets): the main action fills the rest of the row.
 *              Wide web and centred pickers: Cancel + main sit right, each at least 132px.
 *   Colour     switches, tick boxes, the picked day, chips and segmented controls follow the trip theme (--forest).
 *              The confirm window (shared/lb-confirm.css) keeps its own #1f3d30 / #b3261e fills.
 *   Labels     untouched (small capitals stay); no wording here.
 *
 * Order in this file:
 *   1. Tokens
 *   2. Shared modules, same on every page that loads them: lb-picker, lb-range-picker, Quick cost (shared/pending.js),
 *      the confirm window's shape, the "Saved" tick (shared/busy-button.js)
 *   3. Trip pages, web + app together: switch, tick box, the stop editor's footer, Remove inside a footer
 *   4. Website only  (html.wb-new … — play.html)
 *   5. App only      (html.lb-app … — mobile/www/index.html sets class="lb-app" on <html>)
 *
 * Loaded right after buttons.css (after every per-screen sheet). The older sheets set these controls through #id
 * chains and their own !important, so the rules here are !important too. Pages other than the trip page and the app
 * only ever match section 2.
 *
 * Known limit: the select chevron (--lbc-chev-down) and the focus ring (--lbc-brand-ring) are fixed forest green: a
 * background image cannot take the theme colour. The calendar's arrows are masks, so they do follow it.
 *
 * Android floor is Chrome 90: no :has(), no color-mix(), no dvh, no @container, no translate / scale / rotate properties.
 */

/* ═════════════════════════ 1. Tokens ═════════════════════════ */

:root {
  --lbc-brand: var(--forest, #1e3a2f);
  --lbc-brand-deep: var(--forest-deep, #13251e);
  --lbc-brand-ring: rgba(30, 58, 47, 0.16);
  --lbc-on-brand: #fff;
  --lbc-gold: #e6c98e;
  --lbc-lakbi: #f7bb50;
  --lbc-on-lakbi: #3d2a05;
  --lbc-surface: #fffdf8;
  --lbc-surface-2: #fbf6ec;
  --lbc-white: #fff;
  --lbc-tray: #f1ece1;
  --lbc-ink: #1b2a23;
  --lbc-ink-soft: #5f685f;
  --lbc-ink-faint: #8a9087;
  --lbc-line: #dedfd4;
  --lbc-line-soft: #ece4d4;
  --lbc-ctl-line: #d9d0bd;
  --lbc-off: #d9d3c4;
  --lbc-danger: #b3412b;
  --lbc-toast: var(--lbc-brand-deep); /* the trip's deep colour (mock: the toast follows the theme) */
  --lbc-dim: rgba(19, 37, 30, 0.5);
  --lbc-dim-2: rgba(19, 37, 30, 0.32); /* a picker over another window */
  --lbc-r-field: 12px;
  --lbc-r-card: 16px;
  --lbc-r-win: 20px;
  --lbc-r-sheet: 22px;
  --lbc-r-pill: 999px;
  --lbc-h-btn: 44px;
  --lbc-h-foot: 48px;
  --lbc-h-field: 46px;
  --lbc-h-chip: 36px;
  --lbc-sh-thumb: 0 1px 3px rgba(19, 37, 30, 0.14);
  --lbc-sh-toast: 0 14px 34px -10px rgba(19, 37, 30, 0.26);
  --lbc-sh-win: 0 24px 60px rgba(19, 37, 30, 0.28);
  --lbc-sans: "DM Sans", system-ui, sans-serif;
  --lbc-chev-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231e3a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  --lbc-chev-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231e3a2f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  --lbc-chev-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231e3a2f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E");
  --lbc-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.4l2.7 2.7L11 4.4'/%3E%3C/svg%3E");
}

/* ═════════════════════════ 2. Shared modules ═════════════════════════ */

/* ——— 2.1 lb-picker (lists, calendar, time, colour) ——— */

/* Dim: the full window dim from a page, the lighter one when the picker sits over another window. The pickers mount
   inside the open <dialog> they were opened from, so that is the test (no :has()). */
.lbsel:not(.is-pop) .lbsel-scrim {
  background: var(--lbc-dim) !important;
}
dialog[open] .lbsel:not(.is-pop) .lbsel-scrim {
  background: var(--lbc-dim-2) !important;
}
.lbsel.is-center .lbsel-panel {
  border-radius: var(--lbc-r-win) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  box-shadow: var(--lbc-sh-win) !important;
}
.lbsel.is-sheet .lbsel-panel {
  border-radius: var(--lbc-r-sheet) var(--lbc-r-sheet) 0 0 !important;
  background-color: var(--lbc-surface) !important;
  box-shadow: var(--lbc-sh-win) !important;
}
/* The calendar sheet may grow so the last week is never cut by the footer. */
.lbsel.lbd.is-sheet .lbsel-panel {
  max-height: 88vh !important;
}

/* Close (×): one quiet round button that can always be seen — pickers and the time picker. */
.lbsel .lbsel-x,
.lbr .lbr-x,
#pnd-sheet .pnd-x {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
  color: var(--lbc-ink) !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Calendar: the read-out, the days, the month row. */
.lbsel .lbd-read {
  border-radius: var(--lbc-r-card) !important;
  background: var(--lbc-brand) !important;
}
.lbsel .lbd-days button {
  border-width: 2px !important;
  border-color: transparent !important;
  color: var(--lbc-ink) !important;
}
.lbsel .lbd-days button.is-today {
  border-style: solid !important;
  border-color: var(--lbc-gold) !important;
}
.lbsel .lbd-days button.is-on {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
.lbsel .lbd-days button:not(.is-on):not(:disabled):focus-visible {
  border-color: var(--lbc-brand) !important;
}
@media (hover: hover) and (pointer: fine) {
  .lbsel .lbd-days button:not(.is-on):not(:disabled):hover {
    border-color: var(--lbc-brand) !important;
  }
}
.lbsel .lbd-nav {
  grid-template-columns: 44px 1fr 44px !important;
  margin: 2px 0 4px !important;
}
/* The month / year arrow buttons are empty in markup (shared/lb-picker.js keeps their aria-label): the arrow is
   the ::before below, a mask filled with the trip colour (shared/lb-picker.css carries a plain ‹ › for a page without
   this file). */
.lbsel .lbd-nav button[data-lbd-nav],
.lbsel .lbd-nav button[data-lbd-year] {
  box-sizing: border-box !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  display: inline-grid !important;
  place-items: center !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-size: 0 !important;
  box-shadow: none !important;
}
.lbsel .lbd-nav button[data-lbd-nav]::before,
.lbsel .lbd-nav button[data-lbd-year]::before {
  content: "" !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  background: currentColor !important;
  -webkit-mask: var(--lbc-chev-right) center / 20px 20px no-repeat;
  mask: var(--lbc-chev-right) center / 20px 20px no-repeat;
}
.lbsel .lbd-nav button[data-lbd-nav="-1"]::before,
.lbsel .lbd-nav button[data-lbd-year="-1"]::before {
  -webkit-mask-image: var(--lbc-chev-left);
  mask-image: var(--lbc-chev-left);
}
/* The month label is plain text ("November 2026"); its chevron is the ::after here. */
.lbsel .lbd-nav button.lbd-month {
  box-sizing: border-box !important;
  position: relative !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 38px 0 18px !important; /* right: room for the chevron (::after) */
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.lbsel .lbd-nav button.lbd-month::after {
  content: "" !important;
  position: absolute !important;
  top: 4px !important;
  bottom: 4px !important;
  right: 6px !important;
  width: 28px !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) var(--lbc-chev-down) center / 16px 16px no-repeat !important;
}
.lbsel .lbd-today {
  min-height: var(--lbc-h-chip) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

/* Quick day picks above the month row were approved but NOT built (2026-11-11): the date fields do not carry the trip's dates. */

/* The single time picker: the read-out band and the picked hour / minute follow the trip colour, like the calendar. */
.lbsel .lbt-top {
  background: var(--lbc-brand) !important;
}
.lbsel .lbt-grid button.is-on {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
.lbsel .lbt-grid button:not(.is-on):focus-visible {
  border-color: var(--lbc-brand) !important;
}

/* Footer (Clear · Cancel · Set): pills, 48px. */
.lbsel .lbc-foot {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.lbsel .lbc-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid var(--lbc-brand) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.lbsel .lbc-btn.is-quiet {
  border-color: var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
/* Bottom sheet (phones): Cancel hugs its word, the main action takes the rest. */
.lbsel.is-sheet .lbc-foot {
  justify-content: flex-start !important;
  padding: 12px 16px calc(12px + var(--safe-bot, env(safe-area-inset-bottom, 0px))) !important;
}
.lbsel.is-sheet .lbc-foot > .lbc-btn.is-quiet {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  max-width: none !important;
}
.lbsel.is-sheet .lbc-foot > .lbc-btn:not(.is-quiet) {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
/* Centred window (wide screens): the pair sits right, each at least 132px; Clear stays far left. */
.lbsel:not(.is-sheet) .lbc-foot {
  justify-content: flex-end !important;
  gap: 12px !important;
  padding: 12px 16px 16px !important;
}
.lbsel:not(.is-sheet) .lbc-foot > .lbc-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 132px !important;
  max-width: none !important;
  padding: 0 22px !important;
}
.lbsel .lbc-foot > .lbc-btn.lbt-clear {
  min-width: 0 !important;
  margin-right: auto !important;
  padding: 0 16px !important;
}

/* ——— 2.2 lb-range-picker (the time picker) ——— */

.lbr .lbr-backdrop {
  background: var(--lbc-dim) !important;
}
dialog[open] .lbr .lbr-backdrop {
  background: var(--lbc-dim-2) !important;
}
.lbr .lbr-sheet {
  border-radius: var(--lbc-r-sheet) var(--lbc-r-sheet) 0 0 !important;
  background-color: var(--lbc-surface) !important;
  box-shadow: var(--lbc-sh-win) !important;
}
.lbr .lbr-readout {
  border-radius: var(--lbc-r-card) !important;
  background: var(--lbc-brand) !important;
}
.lbr .lbr-box {
  border-radius: var(--lbc-r-field) !important;
}
.lbr .lbr-chips {
  gap: 8px !important;
}
.lbr .lbr-chip {
  box-sizing: border-box !important;
  height: var(--lbc-h-chip) !important;
  min-height: var(--lbc-h-chip) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.lbr .lbr-chip.is-on {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* The chosen block and its handles follow the theme. */
.lbr .lbr-sel {
  background: var(--lbc-brand) !important;
  box-shadow: 0 6px 16px rgba(19, 37, 30, 0.28) !important;
}
.lbr .lbr-h::before {
  border-color: var(--lbc-brand) !important;
}
.lbr .lbr-hint {
  border-top-color: var(--lbc-line-soft) !important;
}
.lbr .lbr-toast {
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-toast) !important;
  color: #fff !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: var(--lbc-sh-toast) !important;
}
/* Footer: the sheet keeps its own one-third / two-thirds row (Cancel, then the main action taking the rest). */
.lbr .lbr-foot {
  align-items: center !important;
  gap: 10px !important;
}
.lbr .lbr-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.lbr .lbr-btn.is-ghost {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  max-width: none !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
.lbr .lbr-btn.is-go {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* Wide screens: the sheet is a centred window; the pair sits right, each at least 132px. */
@media (min-width: 48rem) {
  .lbr .lbr-sheet {
    border-radius: var(--lbc-r-win) !important;
  }
  .lbr .lbr-foot {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 12px 16px 16px !important;
    background: var(--lbc-surface) !important;
    box-shadow: none !important;
  }
  .lbr .lbr-btn.is-ghost,
  .lbr .lbr-btn.is-go {
    flex: 0 0 auto !important;
    min-width: 132px !important;
    padding: 0 22px !important;
  }
}

/* ——— 2.3 Quick cost (shared/pending.js, #pnd-sheet) ——— */

#pnd-sheet {
  background-color: var(--lbc-dim) !important;
}
#pnd-sheet .pnd-card {
  row-gap: 18px !important;
  border-radius: var(--lbc-r-win) !important;
  background-color: var(--lbc-surface) !important;
  box-shadow: var(--lbc-sh-win) !important;
}
/* Quick cost header: title + a real close button (shared/pending.js .pnd-head / .pnd-x, same as Cancel); its layout
   is in shared/lb-sheets.css with the rest of the window. */
#pnd-sheet .pnd-field {
  gap: 8px !important;
}
#pnd-sheet .pnd-field > input,
#pnd-sheet .pnd-field > select,
#pnd-sheet .pnd-field > textarea {
  box-sizing: border-box !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background-color: var(--lbc-white) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-text-fill-color: currentColor;
}
#pnd-sheet .pnd-field > textarea {
  height: auto !important;
  min-height: 96px !important;
  padding: 12px 14px !important;
  line-height: 1.4 !important;
}
#pnd-sheet .pnd-field > select {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 40px !important;
  background-image: var(--lbc-chev-down) !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
}
#pnd-sheet .pnd-field > input::placeholder,
#pnd-sheet .pnd-field > textarea::placeholder {
  color: var(--lbc-ink-faint) !important;
  opacity: 1 !important;
}
#pnd-sheet .pnd-field > input:focus,
#pnd-sheet .pnd-field > select:focus,
#pnd-sheet .pnd-field > textarea:focus {
  border-color: var(--lbc-brand) !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
  outline: none !important;
}
/* Receipt photo: a 44px dashed secondary pill. */
#pnd-sheet .pnd-camera {
  box-sizing: border-box !important;
  height: var(--lbc-h-btn) !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 20px !important;
  border: 1px dashed #b9ad93 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  gap: 8px !important;
}
#pnd-sheet .pnd-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: var(--lbc-h-btn) !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 20px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
#pnd-sheet .pnd-btn.is-solid {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* Remove photo: red words, no box. */
#pnd-sheet .pnd-btn.is-quiet {
  padding: 0 6px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--lbc-danger) !important;
}
#pnd-sheet .pnd-btn.is-solid:disabled {
  opacity: 0.5 !important;
}
/* Footer: divider, Cancel hugs its word, the main action takes the rest. */
#pnd-sheet .pnd-sheet-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 4px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--lbc-line) !important;
}
#pnd-sheet .pnd-sheet-actions > .pnd-btn {
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
}
#pnd-sheet .pnd-sheet-actions > .pnd-btn:not(.is-solid) {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  max-width: none !important;
}
#pnd-sheet .pnd-sheet-actions > .pnd-btn.is-solid {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
@media (min-width: 48rem) {
  #pnd-sheet .pnd-sheet-actions {
    justify-content: flex-end !important;
    gap: 12px !important;
  }
  #pnd-sheet .pnd-sheet-actions > .pnd-btn:not(.is-solid),
  #pnd-sheet .pnd-sheet-actions > .pnd-btn.is-solid {
    flex: 0 0 auto !important;
    min-width: 132px !important;
    padding: 0 22px !important;
  }
}

/* ——— 2.4 Confirm window (shared/lb-confirm.css): already pills in #1f3d30 / #b3261e. Only the window's shape. ——— */

.lb-cf-back .lb-cf-card {
  border-radius: var(--lbc-r-win) !important;
  box-shadow: var(--lbc-sh-win) !important;
}

/* ——— 2.5 "Saved" on a busy button (extra, approved) ———
   The tick + word are drawn over the button by shared/busy-button.js, which carries its own styles
   (.lb-busy-done ::before / ::after) so every page gets them with the one file. Nothing to style here. */

/* ——— 2.6 Loading and empty (mock "Toast, loading, empty", owner-approved 2026-11-12) ———
   ONE spinner: the ring — 28px, a 3px track in the tray colour, the top arc in the trip colour, 0.8s linear. A small
   wait inside a line (a photo being found) keeps its size, same colours and speed. On a dark surface (a photo, a dark
   pill) the track and arc are white. A busy BUTTON keeps its own spinner (shared/busy-button.js).
   ONE skeleton: #ece6da with a soft moving sheen (1.5s). A list on its way shows the skeleton row: a 56px tile and two
   bars (12px at 70%, 10px at 45%).
   ONE toast: the trip's deep colour, a pill, white 600 words, rises in and sinks out; a button on it is gold on a
   see-through chip. A warning keeps its red. No new toasts, no new buttons: only the look.
   The empty-state box, LakBi's coin and its pills: shared/empty-states.css (loaded last on the trip pages).
   Every motion here stops under "Reduce motion". */
:root {
  --lbc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --lbc-sk: #ece6da;
  --lbc-sk-sheen: linear-gradient(100deg, rgba(255, 253, 248, 0) 30%, rgba(255, 253, 248, 0.75) 50%, rgba(255, 253, 248, 0) 70%);
  --lb-ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* the ring: page / section loading */
.lb-ring,
.busy-spinner,
.lb-mw-spin,
.lbpd-spin {
  box-sizing: border-box !important;
  display: inline-block;
  flex: none !important;
  width: 28px !important;
  height: 28px !important;
  border: 3px solid var(--lbc-tray) !important;
  border-top-color: var(--lbc-brand) !important;
  border-radius: 50% !important;
  background: none !important;
  animation: lb-ring-spin 0.8s linear infinite !important;
}
/* the same ring, small, inside a line */
.pull-refresh-spin,
.plc-add-photo-wait > i,
.lm-plan-addbar .lm-plan-addbar-wait > i,
.lm-plan-addbar-wait > i,
.wbx-peek-wait > i {
  box-sizing: border-box !important;
  border: 2.5px solid var(--lbc-tray) !important;
  border-top-color: var(--lbc-brand) !important;
  border-radius: 50% !important;
  animation: lb-ring-spin 0.8s linear infinite !important;
}
/* on a dark surface */
.lb-crop-spin,
.lb-photo-busy-spin,
.wbx-pc-wait > i {
  box-sizing: border-box !important;
  border: 2.5px solid rgba(255, 255, 255, 0.28) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: lb-ring-spin 0.8s linear infinite !important;
}
.lb-crop-spin {
  width: 28px !important;
  height: 28px !important;
  border-width: 3px !important;
}
@keyframes lb-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

/* the skeleton */
.lb-sk,
img.lb-img-wait,
.lbp-item.is-skeleton :is(b, i),
.lbx-card.is-skeleton :is(.lbx-media, b, i),
.lbpd-tl.is-skeleton li,
.wx-skel,
.pf-skel,
.tvc-skel :is(.tvc-avatar, i),
.wg-sk,
.rc-share-wait,
.mw-opening .mw-skel-card .mw-skel {
  background: var(--lbc-sk-sheen) 130% 0 / 250% 100% no-repeat, var(--lbc-sk) !important;
  animation: lb-sk-sheen 1.5s ease-in-out infinite !important;
}
.lb-sk {
  display: block;
  border-radius: 10px;
}
@keyframes lb-sk-sheen {
  from {
    background-position: 130% 0, 0 0;
  }
  to {
    background-position: -30% 0, 0 0;
  }
}
/* the skeleton row: a list on its way (the words stay for screen readers) */
.lb-loading {
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}
.lb-loading.is-ring {
  justify-items: center;
  padding: 28px 0;
}
.lb-skrow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.lb-skrow > .lb-sk {
  height: 56px;
}
.lb-skrow > span {
  display: grid;
  gap: 8px;
}
.lb-skrow > span > .lb-sk {
  height: 12px;
  width: 70%;
}
.lb-skrow > span > .lb-sk + .lb-sk {
  height: 10px;
  width: 45%;
}
.lb-vh {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* the app's opening screen: its stop cards are the skeleton row */
.mw-opening .mw-skel-card {
  gap: 12px !important;
  padding: 14px !important;
  border-radius: var(--lbc-r-card) !important;
  background: var(--lbc-surface) !important;
}
.mw-opening .mw-skel-card .mw-skel.is-time {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
}
.mw-opening .mw-skel-card .mw-skel-lines {
  gap: 8px !important;
}
.mw-opening .mw-skel-card .mw-skel.is-line {
  width: 70% !important;
  height: 12px !important;
  border-radius: 10px !important;
}
.mw-opening .mw-skel-card .mw-skel.is-line.is-short {
  width: 45% !important;
  height: 10px !important;
}

/* A found place's bar on the map (app Live Map plan, website planner bar; LakbayPlaceCard.barPic): its photo box is
   there from the first paint — the skeleton, then the photo fading in over it, or the kind icon — so the name beside it
   never moves (owner 2026-11-12). The same box on both bars: 52px (56px on the website's planner). */
.lm-plan-addbar .lm-plan-addbar-pic {
  position: relative;
  isolation: isolate;
  flex: none !important;
  display: grid !important;
  place-items: center;
  box-sizing: border-box;
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 10px !important;
  background: var(--lbc-surface-2) !important;
  color: var(--lbc-brand);
}
#panel-itinerary.wbp-on .lm-plan-addbar .lm-plan-addbar-pic {
  width: 56px !important;
  height: 56px !important;
}
.lm-plan-addbar .lm-plan-addbar-pic > .lb-sk {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  border-radius: 0;
}
.lm-plan-addbar .lm-plan-addbar-pic > .lm-plan-addbar-photo {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}
.lm-plan-addbar .lm-plan-addbar-pic > .lm-plan-addbar-photo.is-in ~ .lb-sk {
  display: none;
}
.lm-plan-addbar .lm-plan-addbar-pic > svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .lm-plan-addbar .lm-plan-addbar-pic > .lm-plan-addbar-photo.lbpc-fade {
    opacity: 0;
    transition: opacity 240ms ease-out;
  }
  .lm-plan-addbar .lm-plan-addbar-pic > .lm-plan-addbar-photo.lbpc-fade.is-in {
    opacity: 1;
  }
}

/* the toast (its colour: --lbc-toast, section 1) */
:is(.lbpd-toast, .lb-photo-toast, .lb-photo-busy, .wg-toast, .wb-page-toast, .hq-toast):not(.is-warn) {
  background: var(--lbc-toast) !important;
}
:is(.lbpd-toast, .lb-photo-toast, .lb-photo-busy, .wg-toast, .wb-page-toast, .hq-toast) {
  gap: 14px !important;
  padding: 12px 18px !important;
  border-radius: var(--lbc-r-pill) !important;
  color: #fff !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  box-shadow: var(--lbc-sh-toast) !important;
}
.lbpd-toast {
  /* a long line wraps: one wide rounded box, never a pill bent round three lines (owner 2026-11-14: "ui bugs") */
  box-sizing: border-box !important;
  width: min(calc(100% - 2rem), 30rem) !important;
  max-width: none !important;
  padding: 12px 12px 12px 18px !important;
  border-radius: 18px !important;
}
.lbpd-toast p {
  line-height: 1.2 !important;
}
/* a button on a toast (an existing one: LakBi's "Undo") */
.lbpd-toast .lbpd-toast-undo,
.toast button,
.exp-toast button {
  flex: none;
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--lbc-gold) !important;
  font: 700 0.82rem/1 var(--lbc-sans) !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  /* rises in: the ones that appear (shown, or added to the page) */
  :is(.lbpd-toast, .lb-photo-toast, .wg-toast, .wb-page-toast, .hq-toast):not([hidden]),
  html.wb-new .exp-toast:not([hidden]) {
    animation: lb-toast-rise 240ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards !important;
  }
  /* the app's toast stays on the page: rises in when it comes on, sinks out when it goes */
  html.lb-app .toast {
    transform: translate(-50%, 8px) !important;
    transition: opacity 170ms ease-in, transform 170ms ease-in !important;
  }
  html.lb-app .toast.is-on {
    transform: translate(-50%, 0) !important;
    transition: opacity 240ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  .lbr .lbr-toast {
    transform: translate(-50%, 8px) !important;
    transition: opacity 170ms ease-in, transform 170ms ease-in !important;
  }
  .lbr .lbr-toast.is-on {
    transform: translate(-50%, 0) !important;
    transition: opacity 240ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
}
@keyframes lb-toast-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.96);
  }
}

/* "Reduce motion": nothing moves (the ring and the skeleton stand still) */
@media (prefers-reduced-motion: reduce) {
  .lb-ring,
  .busy-spinner,
  .lb-mw-spin,
  .lbpd-spin,
  .pull-refresh-spin,
  .plc-add-photo-wait > i,
  .lm-plan-addbar-wait > i,
  .wbx-peek-wait > i,
  .lb-crop-spin,
  .lb-photo-busy-spin,
  .wbx-pc-wait > i,
  .lb-sk,
  img.lb-img-wait,
  .lbp-item.is-skeleton :is(b, i),
  .lbx-card.is-skeleton :is(.lbx-media, b, i),
  .lbpd-tl.is-skeleton li,
  .wx-skel,
  .pf-skel,
  .tvc-skel :is(.tvc-avatar, i),
  .wg-sk,
  .rc-share-wait,
  .mw-opening .mw-skel-card .mw-skel,
  :is(.lbpd-toast, .lb-photo-toast, .wg-toast, .wb-page-toast, .hq-toast),
  html.wb-new .exp-toast {
    animation: none !important;
  }
  html.lb-app .toast,
  .lbr .lbr-toast {
    transition: opacity 1ms !important;
  }
}

/* ═════════════════════════ 3. Trip pages, web + app ═════════════════════════ */

/* ——— 3.1 Switch ——— */
:is(html.wb-new, html.lb-app) :is(.wb-switch, .lb-plan-switch) {
  box-sizing: border-box !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-off) !important;
}
:is(html.wb-new, html.lb-app) .wb-switch::after,
:is(html.wb-new, html.lb-app) .lb-plan-switch::after {
  top: 3px !important;
  left: 3px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(19, 37, 30, 0.28) !important;
  transform: none !important;
}
:is(html.wb-new, html.lb-app) :is(.wb-switch.is-on, .wb-switch[aria-checked="true"], .lb-plan-switch[aria-checked="true"]) {
  background: var(--lbc-brand) !important;
}
:is(html.wb-new, html.lb-app) .wb-switch.is-on::after,
:is(html.wb-new, html.lb-app) .wb-switch[aria-checked="true"]::after,
:is(html.wb-new, html.lb-app) .lb-plan-switch[aria-checked="true"]::after {
  transform: translateX(20px) !important;
}

/* ——— 3.2 Tick box ——— */
html.wb-new dialog.lpd-formwin input[type="checkbox"],
html.wb-new dialog.pass-modal input[type="checkbox"],
html.lb-app dialog.lpd-formwin input[type="checkbox"],
html.lb-app .lb-hotel-plan-tick > input[type="checkbox"],
html.lb-app .sheet-modal .sheet-modal-panel input[type="checkbox"]:not(.lb-file-proxy):not([role="switch"]) {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid #c9c0ad !important;
  border-radius: 6px !important;
  background: #fff center / 14px 14px no-repeat !important;
  box-shadow: none !important;
}
html.wb-new dialog.lpd-formwin input[type="checkbox"]:checked,
html.wb-new dialog.pass-modal input[type="checkbox"]:checked,
html.lb-app dialog.lpd-formwin input[type="checkbox"]:checked,
html.lb-app .lb-hotel-plan-tick > input[type="checkbox"]:checked,
html.lb-app .sheet-modal .sheet-modal-panel input[type="checkbox"]:not(.lb-file-proxy):not([role="switch"]):checked {
  border-color: var(--lbc-brand) !important;
  background-color: var(--lbc-brand) !important;
  background-image: var(--lbc-tick) !important;
}

/* Prep's tick boxes (checklists, My list, travel documents) and the website's "Not returning home": the same box in
   the trip colour. They keep their own place and margin in the row; a locked empty one is tinted. */
html.wb-new .nu-prep-items .check-row input[type="checkbox"],
html.wb-new .detail-oneway > input[type="checkbox"],
:is(html.wb-new, html.lb-app) .prep-check > input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  border: 1.5px solid #c9c0ad !important;
  border-radius: 6px !important;
  background: #fff center / 14px 14px no-repeat !important;
  box-shadow: none !important;
}
html.wb-new .nu-prep-items .check-row input[type="checkbox"]:checked,
html.wb-new .detail-oneway > input[type="checkbox"]:checked,
:is(html.wb-new, html.lb-app) .prep-check > input[type="checkbox"]:checked {
  border-color: var(--lbc-brand) !important;
  background-color: var(--lbc-brand) !important;
  background-image: var(--lbc-tick) !important;
}
html.wb-new .nu-prep-items .check-row input[type="checkbox"]:disabled:not(:checked),
:is(html.wb-new, html.lb-app) .prep-check > input[type="checkbox"]:disabled:not(:checked) {
  background-color: var(--lbc-surface-2) !important;
}
/* The app's light switch ("Not returning home" on Destinations): the same switch as 3.1. */
html.lb-app .plan-switch--light .plan-switch-control {
  width: 48px !important;
  height: 28px !important;
}
html.lb-app .plan-switch--light .plan-switch-track {
  border: 0 !important;
  background: var(--lbc-off) !important;
}
html.lb-app .plan-switch--light .plan-switch-track::after {
  top: 3px !important;
  left: 3px !important;
  width: 22px !important;
  height: 22px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(19, 37, 30, 0.28) !important;
}
html.lb-app .plan-switch--light .plan-switch-control input:checked + .plan-switch-track {
  background: var(--lbc-brand) !important;
}
html.lb-app .plan-switch--light .plan-switch-control input:checked + .plan-switch-track::after {
  background: #fff !important;
  transform: translateX(20px) !important;
}

/* ——— 3.3 The stop editor (planner card; the same markup on web and app) ———
   ONE footer: Remove (red words) far left · Change place · Done LAST, filling the rest (the card is narrow on both). */
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-edit-foot {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding-top: 14px !important;
}
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-edit-foot > button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-edit-foot > .wbx-remove {
  flex: 0 0 auto !important;
  margin: 0 auto 0 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: none !important;
  color: var(--lbc-danger) !important;
}
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-edit-foot > .wbx-soft {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-edit-foot > .wbx-done {
  flex: 1 1 0 !important;
  min-width: 96px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* "Cancel changes": a secondary pill, left, under the fields. */
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-cancel {
  box-sizing: border-box !important;
  width: auto !important;
  align-self: flex-start !important;
  justify-self: start !important;
  height: var(--lbc-h-btn) !important;
  min-height: var(--lbc-h-btn) !important;
  margin: 10px 0 8px !important;
  padding: 0 20px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}
/* The pre-filled "Add to Day" card shares .wbx-cancel: there it sits in one row with Add (Cancel hugs, Add fills). */
:is(html.wb-new .lmp-card, html.lb-app #m-itin-draft, html.lb-app #m-itin-event) .wbx-cf-bar > .wbx-cancel {
  align-self: center !important;
  margin: 0 !important;
}
/* LakBi's action: amber pill. */
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .lmp-card-swap {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  align-self: flex-start !important;
  justify-self: start !important;
  height: var(--lbc-h-btn) !important;
  min-height: var(--lbc-h-btn) !important;
  margin: 6px 0 0 !important;
  padding: 0 20px !important;
  border: 1px solid var(--lbc-lakbi) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-lakbi) !important;
  color: var(--lbc-on-lakbi) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .lmp-card-swap * {
  color: var(--lbc-on-lakbi) !important;
  text-decoration: none !important;
}

/* ——— 3.4 Remove inside a window's footer ———
   MARKUP: "Remove stay" / "Remove this stay" / "Remove place" move INTO the footer bar as its first button and get
   class="lb-foot-remove" (they keep their data-… attribute and their words):
     app  hotel   .nu-he-bar          > button.nu-he-remove.lb-foot-remove[data-hotel-remove]   (drop <p class="nu-he-removerow">)
     web  hotel   .nu-hotel-win-foot  > button.nu-he-remove.lb-foot-remove[data-remove-hotel]   (drop .nu-he-remove-foot)
     web  food    .food-win-foot      > button.lb-foot-remove[data-remove-food]                 (drop <p class="food-win-remove">)
     app  food    .food-win-foot      > button.lb-foot-remove[data-food-remove]                 (drop <p class="food-win-remove">)
     web  flight  .nu-flight-win-foot > button.pw-remove.lb-foot-remove[data-flight-remove]    (js/workbook-new.js)
     app  flight  .flight-edit-done   > button.pw-remove[data-flight-remove]                   (mobile/www/js/flights-model.js)
     both Prep    .lb-cf-actions.has-remove > button.pw-remove.lb-foot-remove                  (shared/prep-win.js, prep-lists.js)
   Done 2026-11-11 (markup moved in the sources). Emergency numbers keep a Remove per row: it removes that row, not the window's thing. */
:is(html.wb-new, html.lb-app) .lb-foot-remove,
html.lb-app .flight-edit-done > .pw-remove {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: none !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: left !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

/* Prep's item / list windows are confirm cards: with a Remove the footer is Remove · Cancel · Save in one row. */
.lb-cf-actions.has-remove {
  grid-template-columns: auto auto minmax(0, 1fr) !important; /* Remove and Cancel hug their words, Save takes the rest */
  align-items: center !important;
}
.lb-cf-actions.has-remove > .lb-cf-btn {
  white-space: nowrap !important;
}

/* ═════════════════════════ 4. Website (html.wb-new) ═════════════════════════ */

/* ——— 4.1 Buttons ——— */

/* Secondary: surface fill, control border, theme text, pill, 44px.
   Not .nu-btn.is-danger (red words, below) and not .nu-btn.is-icon (the Library's round ↓); :where() keeps the weight
   of the rule so .is-solid still wins. Day recap's .dr-btn keeps its own look (shared/day-recap.css) on web and app. */
html.wb-new .nu-btn:where(:not(.is-danger):not(.is-icon)),
html.wb-new .wbx-soft,
html.wb-new .lb-plan-opt-btn,
html.wb-new .lm-plan-geo-btn,
html.wb-new .nu-sp-mini-acts > button,
html.wb-new .nu-sp-mini-acts > a,
html.wb-new #wb-options-modal .btn-quiet,
html.wb-new #wb-options-modal .btn-solid,
html.wb-new #wb-options-modal .btn-danger,
html.wb-new .pass-modal .pass-actions .btn-quiet,
html.wb-new .pass-modal .pass-actions .btn-solid,
html.wb-new .wbx-edit-foot .btn-solid {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  height: auto !important;
  padding: 0 18px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  white-space: nowrap;
}
/* Primary: theme fill, white text. */
html.wb-new .nu-btn.is-solid,
html.wb-new #wb-options-modal .btn-solid,
html.wb-new .pass-modal .pass-actions .btn-solid,
html.wb-new .wbx-edit-foot .btn-solid,
html.wb-new .nu-sp-mini-acts > button.is-solid {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* A link that is a button (Open map) centres its label like one. */
html.wb-new .nu-sp-mini-acts > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}
html.wb-new .nu-sp-mini-acts {
  align-items: center !important;
  gap: 10px !important;
}

/* Floating add / edit buttons: same height and type as every primary; the bar itself does not grow. */
html.wb-new .exp-fab {
  min-height: 44px !important;
  min-width: 44px !important;
}
html.wb-new .exp-fab.exp-fab-edit,
html.wb-new .exp-fab.exp-fab-add {
  width: auto !important;
  padding: 0 20px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}
html.wb-new .exp-fab-stack {
  padding: 2px !important;
  gap: 2px !important;
}

/* The planner's own Done (on the dark bar): secondary pill; Back is a 44px circle. */
html.wb-new .wbp-topbar .lmp-done {
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
html.wb-new .wbp-topbar .wbp-back {
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--lbc-r-pill) !important;
}

/* Remove: red words, no box. */
html.wb-new .wbx-remove,
html.wb-new .nu-btn.is-danger,
html.wb-new .nu-he-remove,
html.wb-new dialog.lpd-formwin [data-remove-food],
html.wb-new #wb-options-modal .btn-danger {
  min-height: var(--lbc-h-btn) !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: transparent !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
/* Red words sit flush with the labels and fields. */
html.wb-new .nu-he-remove,
html.wb-new dialog.lpd-formwin [data-remove-food] {
  padding: 0 !important;
  text-align: left !important;
}

/* Disabled. */
html.wb-new .nu-btn:disabled,
html.wb-new .pass-modal button:disabled,
html.wb-new #wb-options-modal button:disabled {
  opacity: 0.5 !important;
}

/* ——— 4.2 Window footers ———
   Divider, then Cancel and the main action LAST. Wide: the pair sits right, each at least 132px.
   Narrow web (under 48rem): Cancel hugs its word and the main action fills the rest, like the app. */
html.wb-new .nu-hotel-win-foot,
html.wb-new .nu-flight-win-foot,
html.wb-new .food-win-foot,
html.wb-new dialog.pass-modal .pass-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
}
html.wb-new .nu-hotel-win-foot .nu-btn,
html.wb-new .nu-flight-win-foot .nu-btn,
html.wb-new .food-win-foot .nu-btn,
html.wb-new dialog.pass-modal .pass-actions .btn-quiet,
html.wb-new dialog.pass-modal .pass-actions .btn-solid {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 132px !important;
  max-width: none !important;
  min-height: var(--lbc-h-foot) !important;
  margin: 0 !important;
  padding: 0 22px !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
html.wb-new .food-win-foot,
html.wb-new dialog.pass-modal .pass-actions {
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--lbc-line-soft) !important;
}
html.wb-new dialog.lpd-formwin .food-win-foot {
  margin-top: 8px !important;
}
@media (max-width: 47.99rem) {
  html.wb-new .nu-hotel-win-foot,
  html.wb-new .nu-flight-win-foot,
  html.wb-new .food-win-foot,
  html.wb-new dialog.pass-modal .pass-actions {
    justify-content: flex-start !important;
    gap: 10px !important;
  }
  html.wb-new .nu-hotel-win-foot .nu-btn:not(.is-solid),
  html.wb-new .nu-flight-win-foot .nu-btn:not(.is-solid),
  html.wb-new .food-win-foot .nu-btn:not(.is-solid),
  html.wb-new dialog.pass-modal .pass-actions .btn-quiet {
    min-width: 104px !important;
  }
  html.wb-new .nu-hotel-win-foot .nu-btn.is-solid,
  html.wb-new .nu-flight-win-foot .nu-btn.is-solid,
  html.wb-new .food-win-foot .nu-btn.is-solid,
  html.wb-new dialog.pass-modal .pass-actions .btn-solid {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  /* One button alone (Trip settings' Close) fills the row, like the app's. */
  html.wb-new dialog.pass-modal .pass-actions > :is(.btn-quiet, .btn-solid):only-child,
  html.wb-new #wb-options-modal .pass-actions > .btn-quiet:only-child {
    flex: 1 1 0 !important;
  }
}

/* ——— 4.3 Fields ———
   The pickers mount inside the open window, so their own inputs (the time read-out, a list's search, the hex box)
   are left out by class: they keep the look they have on every other page. */
html.wb-new dialog.lpd-formwin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not(.lbt-type):not(.lbsel-search):not(.lbc-hex),
html.wb-new dialog.lpd-formwin select,
html.wb-new dialog.lpd-formwin textarea,
html.wb-new dialog.pass-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not(.lbt-type):not(.lbsel-search):not(.lbc-hex),
html.wb-new dialog.pass-modal select,
html.wb-new dialog.pass-modal textarea,
html.wb-new .lmp-card .wb-field > input:not(.lmp-card-name):not([type="checkbox"]),
html.wb-new .lmp-card .wb-field > select:not(.lmp-chip),
html.wb-new .lmp-card .geo-input-row > input {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background-color: var(--lbc-white) !important;
  color: var(--lbc-ink) !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis !important; /* a long placeholder ends in …, as in the app */
  box-shadow: none !important;
}
html.wb-new dialog.lpd-formwin select,
html.wb-new dialog.pass-modal select,
html.wb-new .lmp-card .wb-field > select:not(.lmp-chip) {
  padding-right: 34px !important;
}
html.wb-new dialog.lpd-formwin textarea,
html.wb-new dialog.pass-modal textarea {
  min-height: 84px !important;
  padding: 11px 14px !important;
  line-height: 1.45 !important;
}
html.wb-new dialog.lpd-formwin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not(.lbt-type):not(.lbsel-search):not(.lbc-hex):focus,
html.wb-new dialog.lpd-formwin select:focus,
html.wb-new dialog.lpd-formwin textarea:focus,
html.wb-new dialog.pass-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not(.lbt-type):not(.lbsel-search):not(.lbc-hex):focus,
html.wb-new dialog.pass-modal select:focus,
html.wb-new dialog.pass-modal textarea:focus,
html.wb-new .lmp-card .wb-field > input:not(.lmp-card-name):not([type="checkbox"]):focus,
html.wb-new .lmp-card .wb-field > select:not(.lmp-chip):focus,
html.wb-new .lmp-card .geo-input-row > input:focus {
  border-color: var(--lbc-brand) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
}
/* A wrong or missing field keeps its cue over the field look (and over focus). The stop editor's empty required
   field is amber as before; the food window's address and any .is-invalid field are red. App twin: 5.6.
   (.settle-field.is-empty / .wb-field.is-invalid draw an outline, which the field rule never touched.) */
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wb-field.is-empty > :is(input:not(.lmp-card-name), select:not(.lmp-chip)):not(#_) {
  border-color: #e2a48c !important;
  background-color: #fffaf6 !important;
}
html.wb-new :is(dialog.lpd-formwin, .lmp-card) [data-geo-root].is-invalid [data-geo-input]:not(#_),
html.wb-new :is(dialog.lpd-formwin, dialog.pass-modal) :is(input, select).is-invalid:not(#_) {
  border-color: var(--lbc-danger) !important;
  box-shadow: 0 0 0 3px rgba(179, 65, 43, 0.16) !important;
}
/* The amount field with its currency tag: one 46px field, the tag inside its right end. */
html.wb-new .pass-modal .cost-entry {
  box-sizing: border-box !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background: var(--lbc-white) !important;
  align-items: center !important;
}
html.wb-new dialog.pass-modal .cost-entry input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not(.lbt-type):not(.lbsel-search):not(.lbc-hex) {
  height: 44px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html.wb-new .pass-modal .cost-entry > em {
  align-self: center !important;
  padding: 0 14px 0 6px !important;
}
html.wb-new .pass-modal .cost-entry:focus-within {
  border-color: var(--lbc-brand) !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
}
/* The stop card's two chips (time · type) stay pills, on the secondary surface and border. */
html.wb-new .lmp-card .lmp-chip {
  min-height: var(--lbc-h-btn) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  background-color: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}
/* Night notes: each night's small label sits with its own field, not under the one above. */
html.wb-new dialog.lpd-formwin details.nu-he-more.nu-he-wide > .wb-field + .wb-field {
  margin-top: 12px !important;
}
/* Room for the taller fields: the row grows, nothing is squeezed. */
html.wb-new .nu-hotel-win .nu-he-grid {
  row-gap: 16px !important;
}
html.wb-new dialog.lpd-formwin .food-card-field,
html.wb-new dialog.pass-modal .settle-field {
  row-gap: 6px !important;
}
html.wb-new .lb-hotel-plan-tick {
  gap: 10px !important;
  min-height: 28px !important;
  align-items: center !important;
}
/* The address field is as wide as its neighbours when its map button is hidden: the gap belongs to the button. */
html.wb-new dialog .geo-input-row,
html.wb-new .lmp-card .geo-input-row {
  column-gap: 0 !important;
}
html.wb-new dialog .geo-input-row > button:not([hidden]),
html.wb-new .lmp-card .geo-input-row > button:not([hidden]) {
  margin-left: 0.4rem !important;
}
html.wb-new #wb-options-modal .wb-share-row input {
  margin: 0 !important;
}
html.wb-new #group-modal .exp-who {
  margin-top: 12px !important;
}

/* ——— 4.4 Segmented control ——— */
html.wb-new .nu-views,
html.wb-new .nu-exp-tabs,
html.wb-new .plc-sub-tabs {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  gap: 2px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
  box-shadow: none !important;
}
html.wb-new .nu-views button,
html.wb-new .nu-exp-tabs button,
html.wb-new .plc-sub-tabs .plc-sub-tab {
  min-height: 36px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: transparent !important;
  color: var(--lbc-ink-soft) !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
html.wb-new .nu-views button[aria-pressed="true"],
html.wb-new .nu-exp-tabs button.is-active,
html.wb-new .nu-exp-tabs button[aria-selected="true"],
html.wb-new .plc-sub-tabs .plc-sub-tab.is-on {
  background: var(--lbc-white) !important;
  color: var(--lbc-brand) !important;
  font-weight: 600 !important;
  box-shadow: var(--lbc-sh-thumb) !important;
}
/* Length stepper (− Shorter | 2 h | + Longer): the same tray, 46px like the fields around it. */
html.wb-new .lmp-card .event-fit {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-field) !important;
  gap: 8px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
}
html.wb-new .lmp-card .event-fit .btn-quiet {
  box-sizing: border-box !important;
  min-height: 38px !important;
  height: auto !important;
  min-width: 104px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-white) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: var(--lbc-sh-thumb) !important;
  white-space: nowrap !important;
}
html.wb-new .lmp-card .event-fit [data-event-duration] {
  color: var(--lbc-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* ——— 4.5 Chips ——— */
html.wb-new .wbx-chip,
html.wb-new .exp-chip {
  min-height: var(--lbc-h-chip) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-size: 0.86rem !important; /* the same chip type as the app (5.8) */
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
html.wb-new .wbx-chip.is-on,
html.wb-new .exp-chip.is-on {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* Search & filters, Open map, Add receipt: 44px secondary pills (the spending level's Hide / Show is a round arrow beside its ?). */
html.wb-new .lb-fold-btn,
html.wb-new dialog.lpd-formwin .food-map-btn,
html.wb-new dialog.pass-modal .settle-receipt-actions > button {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 18px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
html.wb-new dialog.lpd-formwin .food-map-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html.wb-new dialog.lpd-formwin .food-card-actions {
  display: flex !important;
  justify-content: flex-start !important;
}
html.wb-new dialog.lpd-formwin .food-card-actions > .food-map-btn {
  flex: 0 0 auto !important;
  width: auto !important;
}
html.wb-new .lbt-level-head .stat-help-btn,
html.wb-new .lbt-fold {
  box-sizing: border-box !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}
html.wb-new .lbt-level-tools {
  gap: 10px !important;
}

/* ——— 4.6 Windows ——— */
html.wb-new dialog.lpd-formwin,
html.wb-new dialog.pass-modal {
  max-height: 90vh !important;
  max-height: min(90vh, calc(100vh - 48px)) !important; /* never taller than the screen minus 48px; the body scrolls */
  border-radius: var(--lbc-r-win) !important;
  background: var(--lbc-surface) !important;
  box-shadow: var(--lbc-sh-win) !important;
}
html.wb-new dialog.lpd-formwin::backdrop,
html.wb-new dialog.pass-modal::backdrop {
  background: rgba(19, 37, 30, 0.5) !important; /* a ::backdrop does not inherit custom properties on old Chrome */
}
html.wb-new .exp-win-x {
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--lbc-r-pill) !important;
}
/* The stop editor: no orange outline (the app's has none). */
html.wb-new #detail-slot > .detail.lmp-card.wbx-edit,
html.wb-new #detail-slot > .detail.lmp-card.wbx-confirm {
  border-color: var(--lbc-line) !important;
}
/* Disclosure rows (Night notes · More): theme colour, one chevron. */
html.wb-new dialog.lpd-formwin details.nu-he-more > summary,
html.wb-new dialog.pass-modal details.exp-more > summary {
  color: var(--lbc-brand) !important;
}
html.wb-new dialog.lpd-formwin details.nu-he-more > summary::after,
html.wb-new dialog.pass-modal details.exp-more > summary::after {
  content: "" !important;
  flex: none !important;
  width: 0.5rem !important;
  height: 0.5rem !important;
  margin-left: auto !important;
  margin-right: 0.35rem !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  font-size: 0 !important;
  transform: translateY(-0.12rem) rotate(45deg) !important;
}
html.wb-new dialog.lpd-formwin details.nu-he-more[open] > summary::after,
html.wb-new dialog.pass-modal details.exp-more[open] > summary::after {
  transform: translateY(0.12rem) rotate(-135deg) !important;
}

/* ——— 4.7 Trip settings ——— */
html.wb-new #wb-options-modal .wb-share-row {
  align-items: center !important;
  gap: 10px !important;
}
html.wb-new #wb-options-modal .wb-share-row .btn-quiet,
html.wb-new #wb-options-modal .wb-share-row .btn-solid {
  min-height: var(--lbc-h-field) !important;
  flex: none !important;
}
/* Audit trail is a compact pill on the left, Delete trip (red words) sits apart on the right, Close is the one footer button. */
html.wb-new #wb-options-modal .wb-opt-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
html.wb-new #wb-options-modal .wb-opt-actions .btn-quiet {
  flex: 0 0 auto !important;
  width: auto !important;
}
html.wb-new #wb-options-modal .btn-danger {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 !important;
}
html.wb-new #wb-options-modal .pass-actions .btn-quiet {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 132px !important;
  min-height: var(--lbc-h-foot) !important;
  margin: 0 !important;
  padding: 0 22px !important;
}
html.wb-new #group-modal .pass-actions .btn-quiet,
html.wb-new #group-modal .pass-actions .btn-solid {
  min-width: 132px !important;
}

/* ——— 4.8 Toast ——— */
html.wb-new .exp-toast:not([hidden]):not(.is-warn) {
  padding: 12px 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-toast) !important;
  color: #fff !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: var(--lbc-sh-toast) !important;
}

/* ==== leftovers: web ==== */
/* Website screens the first build left on their old look (2026-11-12). Same looks as 4.1 – 4.6, no new ones. */

/* ——— L.1 Detail windows (Destinations · Travellers · Cover): the one footer ———
   MARKUP (src/web/player/08-paint-welcome-from-card.js): Cancel and Save moved out of the header into
   <footer class="nu-edit-win-foot">, after the body; the header keeps the title. Same data-detail-win-* hooks. */
html.wb-new .nu-edit-win-head {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}
html.wb-new .nu-edit-win-foot {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 20px 16px !important;
  border-top: 1px solid var(--lbc-line-soft) !important;
  background: var(--lbc-surface) !important;
  border-radius: 0 0 var(--lbc-r-win) var(--lbc-r-win) !important;
}
html.wb-new .nu-edit-win-foot > :is(.btn-quiet, .btn-solid) {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 132px !important;
  min-height: var(--lbc-h-foot) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
html.wb-new .nu-edit-win-foot > .btn-solid {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.wb-new .nu-edit-win-foot > :is(.btn-quiet, .btn-solid):disabled {
  opacity: 0.5 !important;
}
html.wb-new dialog.nu-edit-win {
  border-radius: var(--lbc-r-win) !important;
  box-shadow: var(--lbc-sh-win) !important;
}
html.wb-new dialog.nu-edit-win::backdrop {
  background: rgba(19, 37, 30, 0.5) !important; /* a ::backdrop does not inherit custom properties on old Chrome */
}
html.wb-new .nu-edit-win-body {
  padding-bottom: 24px !important;
}
@media (max-width: 47.99rem) {
  html.wb-new .nu-edit-win-foot {
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 12px 16px 16px !important;
  }
  html.wb-new .nu-edit-win-foot > .btn-quiet {
    min-width: 104px !important;
  }
  html.wb-new .nu-edit-win-foot > .btn-solid {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}
@media (max-width: 640px) {
  html.wb-new dialog.nu-edit-win,
  html.wb-new .nu-edit-win-foot {
    border-radius: 0 !important; /* the window is the whole screen here */
  }
}

/* Fields in the Detail windows: the one field (4.3). The pickers' own inputs keep their look. */
html.wb-new dialog.nu-edit-win input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not(.lbt-type):not(.lbsel-search):not(.lbc-hex),
html.wb-new dialog.nu-edit-win select,
html.wb-new dialog.nu-edit-win textarea {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background-color: var(--lbc-white) !important;
  color: var(--lbc-ink) !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
}
html.wb-new dialog.nu-edit-win select {
  padding-right: 34px !important;
}
html.wb-new dialog.nu-edit-win textarea {
  min-height: 84px !important;
  padding: 11px 14px !important;
  line-height: 1.45 !important;
}
html.wb-new dialog.nu-edit-win input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not(.lbt-type):not(.lbsel-search):not(.lbc-hex):focus,
html.wb-new dialog.nu-edit-win select:focus,
html.wb-new dialog.nu-edit-win textarea:focus {
  border-color: var(--lbc-brand) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
}
html.wb-new dialog.nu-edit-win :is(input, select).is-invalid:not(#_),
html.wb-new dialog.nu-edit-win .wb-field.is-invalid :is(input, select):not(#_) {
  border-color: var(--lbc-danger) !important;
  box-shadow: 0 0 0 3px rgba(179, 65, 43, 0.16) !important;
}

/* Buttons inside the Detail windows. Adding a row is a secondary action (Save is the one filled button);
   Send invite is the main action of its own card; Remove is red words. */
html.wb-new dialog.nu-edit-win .add-row:not(#_),
html.wb-new dialog.nu-edit-win [data-add-traveler],
html.wb-new dialog.nu-edit-win .trip-tag-add-btn,
html.wb-new dialog.nu-edit-win .wb-invite-send {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  height: auto !important;
  padding: 0 18px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
html.wb-new dialog.nu-edit-win .wb-invite-send {
  min-height: var(--lbc-h-field) !important; /* sits beside a field */
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.wb-new dialog.nu-edit-win .trip-tag-add-btn {
  min-height: var(--lbc-h-field) !important; /* sits beside a field */
}
html.wb-new dialog.nu-edit-win .detail-person-remove {
  min-height: var(--lbc-h-btn) !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: transparent !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
/* Role chips (Foodie · Planner · Finance · Freeloader): the one chip (4.5). */
html.wb-new dialog.nu-edit-win .wb-role-toggle {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-chip) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
html.wb-new dialog.nu-edit-win .wb-role-toggle.is-on {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}

/* ——— L.2 Segmented controls still on the old look: the one tray (4.4) ———
   The cost window's Split equally / Enter each person, the Detail tab's inner tabs, the Prep tab's inner tabs.
   Prep's "LakBi's guide" tab keeps its own gold look with LakBi's face (owner 2026-11-12; css/workbook-new.css), as in the app (5.7). */
html.wb-new #settle-mode,
html.wb-new .detail-subtabs {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-self: flex-start !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  gap: 2px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
  box-shadow: none !important;
}
html.wb-new #settle-mode > button,
html.wb-new .detail-subtabs > button:not([data-prep-tab="guide"]) {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: transparent !important;
  color: var(--lbc-ink-soft) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
html.wb-new #settle-mode > button.is-on,
html.wb-new #settle-mode > button[aria-pressed="true"],
html.wb-new .detail-subtabs > button:not([data-prep-tab="guide"]).is-on,
html.wb-new .detail-subtabs > button:not([data-prep-tab="guide"])[aria-selected="true"] {
  background: var(--lbc-white) !important;
  color: var(--lbc-brand) !important;
  font-weight: 600 !important;
  box-shadow: var(--lbc-sh-thumb) !important;
}
html.wb-new #settle-mode {
  margin: 0 0 14px !important;
}

/* ——— L.3 "How people pay you" and the other Pay windows (shared/balance-pay.js .bpay-*) ———
   Buttons follow the trip colour (they were a fixed teal), fields are the one field, the footer is the one footer.
   "Remove this QR" stays beside the code it removes (it removes that code, not the window's thing): red words. */
html.wb-new .bpay-btn {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 18px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
html.wb-new .bpay-btn.is-solid {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.wb-new .bpay-btn.is-danger {
  justify-self: start !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--lbc-danger) !important;
}
html.wb-new .bpay-btn:disabled {
  opacity: 0.5 !important;
}
html.wb-new .bpay-two {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--lbc-line-soft) !important;
}
html.wb-new .bpay-two > .bpay-btn {
  flex: 0 0 auto !important;
  min-width: 104px !important;
  min-height: var(--lbc-h-foot) !important;
  padding: 0 22px !important;
}
html.wb-new .bpay-two > .bpay-btn.is-solid {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}
@media (min-width: 48rem) {
  html.wb-new .bpay-two {
    justify-content: flex-end !important;
    gap: 12px !important;
  }
  html.wb-new .bpay-two > .bpay-btn,
  html.wb-new .bpay-two > .bpay-btn.is-solid {
    flex: 0 0 auto !important;
    min-width: 132px !important;
  }
}
html.wb-new .bpay-card {
  gap: 12px !important;
  background: var(--lbc-surface) !important;
}
html.wb-new .bpay-field {
  gap: 6px !important;
}
html.wb-new .bpay-field input,
html.wb-new .bpay-card input[type="text"],
html.wb-new .bpay-card input[type="number"],
html.wb-new .bpay-card textarea {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background: var(--lbc-white) !important;
  color: var(--lbc-ink) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}
html.wb-new .bpay-card textarea {
  padding: 11px 14px !important;
}
html.wb-new .bpay-field input:focus,
html.wb-new .bpay-card input[type="text"]:focus,
html.wb-new .bpay-card input[type="number"]:focus,
html.wb-new .bpay-card textarea:focus {
  border-color: var(--lbc-brand) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
}
/* The "+" tile and the picked code: the trip colour. */
html.wb-new .bpay-qr-add {
  border-color: var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  color: var(--lbc-brand) !important;
}
html.wb-new .bpay-qr-thumb {
  border-radius: var(--lbc-r-field) !important;
}
html.wb-new .bpay-qr-thumb.is-on,
html.wb-new .bpay-qr-add.is-on {
  outline-color: var(--lbc-brand) !important;
}
html.wb-new .bpay-arrow {
  width: 44px !important;
  height: 44px !important;
  background: var(--lbc-tray) !important;
  color: var(--lbc-brand) !important;
}
html.wb-new .bpay-dots i.on {
  background: var(--lbc-brand) !important;
}

/* ——— L.4 Radio (Prep "Edit list" / "New list": shared/prep-lists.js, the same window on web and app) ———
   The one radio: a 20px ring, filled with the trip colour and a white dot when picked. The picked row's outline is
   drawn from the radio (no :has(), Chrome 90). */
:is(html.wb-new, html.lb-app) .prep-sheet-kind {
  position: relative !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 11px 12px !important;
  border-color: var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background: var(--lbc-white) !important;
}
:is(html.wb-new, html.lb-app) .prep-sheet-kind > input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 1.5px solid #c9c0ad !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}
:is(html.wb-new, html.lb-app) .prep-sheet-kind > input[type="radio"]:checked {
  border-color: var(--lbc-brand) !important;
  background: radial-gradient(circle at center, #fff 4px, rgba(255, 255, 255, 0) 4.6px) var(--lbc-brand) !important;
}
:is(html.wb-new, html.lb-app) .prep-sheet-kind > input[type="radio"]:focus-visible {
  outline: 2px solid var(--lbc-brand) !important;
  outline-offset: 2px !important;
}
:is(html.wb-new, html.lb-app) .prep-sheet-kind > input[type="radio"]:checked + span::after {
  content: "" !important;
  position: absolute !important;
  top: -1px !important;
  right: -1px !important;
  bottom: -1px !important;
  left: -1px !important;
  border: 1.5px solid var(--lbc-brand) !important;
  border-radius: var(--lbc-r-field) !important;
  pointer-events: none !important;
}

/* ——— L.5 Other website pages (they load this sheet without html.wb-new) ———
   Sign in / Sign up (login.html): the one field (white, control border, 46px, the brand focus ring); a locked e-mail
   keeps its tint. Profile and account header buttons (.pfh-btn): 44px like every other pill. */
body.auth-page .auth-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border-color: var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  font-size: 16px !important;
}
body.auth-page .auth-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.is-locked):not([readonly]) {
  background-color: var(--lbc-white) !important;
}
body.auth-page .auth-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus {
  border-color: var(--lbc-brand) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
}
body.auth-page .auth-card #auth-submit,
body.auth-page .auth-card .btn-google {
  min-height: var(--lbc-h-foot) !important;
}
body.account-page .pfh-btn {
  min-height: var(--lbc-h-btn) !important;
  font-size: 0.9rem !important;
}

/* ——— L.6 Found by the check of the leftovers (2026-11-12): web, and web + app where the part is shared ——— */
/* A stop's Remove in the Destinations window: red words, like a traveller's Remove (it was a small boxed button). */
html.wb-new dialog.nu-edit-win [data-remove-stop] {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: transparent !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
/* Cover's tags: the one chip (36px). A suggestion is the plain chip, a chosen tag is in the trip colour. */
:is(html.wb-new dialog.nu-edit-win, html.lb-app .mw-edit-win) .trip-tag {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-chip) !important;
  padding: 0 14px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
:is(html.wb-new dialog.nu-edit-win, html.lb-app .mw-edit-win) .trip-tag.is-preset {
  border: 1px solid var(--lbc-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
}
:is(html.wb-new dialog.nu-edit-win, html.lb-app .mw-edit-win) .trip-tag.is-chosen {
  padding-right: 6px !important;
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
:is(html.wb-new dialog.nu-edit-win, html.lb-app .mw-edit-win) .trip-tags-chosen,
:is(html.wb-new dialog.nu-edit-win, html.lb-app .mw-edit-win) .trip-tags-presets {
  gap: 8px !important;
}
/* The flight window's "Who's on this flight?" chips (shared/flight-crew.js): the one chip, picked in the trip colour
   (it was a fixed green). */
:is(html.wb-new, html.lb-app) dialog.nu-flight-win .fc-chip {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-chip) !important;
  border: 1px solid var(--lbc-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
:is(html.wb-new, html.lb-app) dialog.nu-flight-win .fc-chip.is-on {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
:is(html.wb-new, html.lb-app) dialog.nu-flight-win .fc-chip.is-on .fc-av {
  background: var(--lbc-white) !important;
  color: var(--lbc-brand) !important;
}
/* Balance: the Pay button that opens the Pay window, the amount in it and the "+ Photo" tile were a fixed teal. */
:is(html.wb-new, html.lb-app) .bal-pay {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 18px !important;
  border: 1px solid var(--lbc-brand) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
:is(html.wb-new, html.lb-app) .bal-pay:not(:disabled):active {
  border-color: var(--lbc-brand-deep) !important;
  background: var(--lbc-brand-deep) !important;
}
:is(html.wb-new, html.lb-app) .bal-mark.is-pay {
  border-color: var(--lbc-brand) !important;
  color: var(--lbc-brand) !important;
}
:is(html.wb-new, html.lb-app) .bpay-big {
  color: var(--lbc-brand) !important;
}
:is(html.wb-new, html.lb-app) .bpay-proof-add {
  border-color: var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  color: var(--lbc-brand) !important;
}

/* ═════════════════════════ 5. App (html.lb-app) ═════════════════════════ */

/* ——— 5.1 Buttons ——— */

/* One shape: pill, 44px, DM Sans 600 0.9rem, sentence case. */
html.lb-app .exp-fab-dock .exp-fab-edit,
html.lb-app #m-itin-event .wbx-done,
html.lb-app #m-itin-event .wbx-soft,
html.lb-app #m-itin-event .lb-plan-opt-btn,
html.lb-app .lb-plan-opt .lb-plan-opt-btn,
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-cancel,
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-done,
html.lb-app .hotel-action-btn,
html.lb-app .sheet-modal .sheet-modal-panel .btn-primary,
html.lb-app .sheet-modal .sheet-modal-panel .plan-btn-quiet,
html.lb-app .sheet-modal .sheet-modal-panel .plan-btn-danger,
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-cancel,
html.lb-app .exp-empty-add,
html.lb-app .onb-tip .onb-tip-close {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  height: var(--lbc-h-btn) !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: none !important;
}
/* Primary: theme fill, white text. */
html.lb-app .exp-fab-dock .exp-fab-edit,
html.lb-app .exp-fab-dock .exp-fab-add,
html.lb-app #m-itin-event .wbx-done,
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-done,
html.lb-app .sheet-modal .sheet-modal-panel .btn-primary,
html.lb-app .exp-empty-add,
html.lb-app .onb-tip .onb-tip-close {
  background: var(--lbc-brand) !important;
  border: 1px solid var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* Secondary: surface fill, control border, theme text. */
html.lb-app #m-itin-event .wbx-soft,
html.lb-app #m-itin-event .lb-plan-opt-btn,
html.lb-app .lb-plan-opt .lb-plan-opt-btn,
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-cancel,
html.lb-app .hotel-action-btn,
html.lb-app .sheet-modal .sheet-modal-panel .plan-btn-quiet,
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-cancel {
  background: var(--lbc-surface) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  color: var(--lbc-brand) !important;
}
/* Two buttons in an empty state (Flights: + Add flight · Scan a ticket): the first is the main action, the next secondary. */
html.lb-app .lb-empty-acts > .exp-empty-add + .exp-empty-add:not(#_) {
  background: var(--lbc-surface) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  color: var(--lbc-brand) !important;
}
/* Website empty states: the same pair as the app (main action solid, the next one secondary). */
html.wb-new .exp-empty-add {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-brand) !important;
  border: 1px solid var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}
html.wb-new .lb-empty-acts > .exp-empty-add + .exp-empty-add:not(#_) {
  background: var(--lbc-surface) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  color: var(--lbc-brand) !important;
}
/* Buttons this build does not restyle keep their look, but are pills like the rest (shape only). */
html.lb-app :is(.nu-btn, .ss-invite-btn, .my-list-add-btn),
html.wb-new .my-list-add-btn,
html.wb-new .nu-edit-win-head > :is(.btn-quiet, .btn-solid) {
  border-radius: var(--lbc-r-pill) !important;
}
/* Remove: red words, no box. "Delete trip" only opens the confirm window, so it is red words too
   (solid red is the confirm window's last step). */
html.lb-app .nu-hotel-edit .nu-he-remove,
html.lb-app .hotel-card [data-hotel-remove] {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
/* Food place window (app): the one footer. Remove place · Cancel · Save (Save fills the rest), pills, 48px. */
html.lb-app .food-win-foot,
html.lb-app .flight-edit-done {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
}
/* Add / Edit a flight (app): the same footer, with the divider the other windows have. */
html.lb-app .flight-edit-done {
  margin-top: 4px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--lbc-line) !important;
}
html.lb-app .food-win-foot > .nu-btn,
html.lb-app .flight-edit-done > .nu-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
html.lb-app .food-win-foot > .nu-btn:not(.is-solid),
html.lb-app .flight-edit-done > .nu-btn:not(.is-solid) {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
html.lb-app .food-win-foot > .nu-btn.is-solid,
html.lb-app .flight-edit-done > .nu-btn.is-solid {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 96px !important;
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.lb-app .food-card-actions .food-map-btn {
  border-radius: var(--lbc-r-pill) !important;
}
html.lb-app .sheet-modal .sheet-modal-panel .plan-btn-danger {
  background: none !important;
  border: 0 !important;
  color: var(--lbc-danger) !important;
}
/* Disabled: half strength; a disabled secondary keeps its border so it still reads as a button, only the words fade. */
html.lb-app :is(.btn-primary, .wbx-done, .nu-he-done, .exp-fab):is(:disabled, [aria-disabled="true"]) {
  opacity: 0.5 !important;
}
html.lb-app :is(.plan-btn-quiet, .wbx-soft, .nu-he-cancel):is(:disabled, [aria-disabled="true"]),
html.lb-app .sheet-modal .sheet-modal-panel :is(.plan-btn-quiet, .nu-ed-cancel):is(:disabled, [aria-disabled="true"]),
html.lb-app #m-itin-event :is(.wbx-soft, .lb-plan-opt-btn):is(:disabled, [aria-disabled="true"]),
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-cancel:is(:disabled, [aria-disabled="true"]) {
  opacity: 1 !important;
  color: #9aa59e !important;
}

/* ——— 5.2 Window / sheet footers: 48px; Cancel hugs its word, the main action LAST and filling the rest ——— */
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-cancel,
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-done,
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-bar > button,
html.lb-app .sheet-modal .sheet-modal-panel > .sheet-modal-actions > button {
  min-height: var(--lbc-h-foot) !important;
  height: var(--lbc-h-foot) !important;
}
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-bar,
html.lb-app .nu-hotel-edit .nu-he-bar {
  gap: 10px !important;
  align-items: center !important;
}
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-cancel,
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-bar > .nu-ed-cancel {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  max-width: none !important;
}
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-done,
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-bar > .btn-primary {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
/* Hotel window: the footer has the divider and room the other windows have (Remove stay joins it: see 3.4). */
html.lb-app .nu-hotel-edit .nu-he-bar {
  margin: 14px 0 0 !important;
  padding: 12px 16px 14px !important;
  border-top: 1px solid var(--lbc-line) !important;
}
html.lb-app .sheet-modal .sheet-modal-panel > .sheet-modal-actions,
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-bar {
  background: var(--lbc-surface) !important;
}

/* ——— 5.3 Dock: 44px targets; Edit is the primary pill ——— */
html.lb-app .exp-fab-dock {
  padding: 5px !important;
  gap: 2px !important;
  align-items: center !important;
  border-color: var(--lbc-line) !important;
}
html.lb-app .exp-fab-dock .exp-fab {
  min-width: 44px !important;
  min-height: 44px !important;
  height: 44px !important;
  border-radius: var(--lbc-r-pill) !important;
}
html.lb-app .exp-fab-dock .exp-fab:not(.exp-fab-edit) {
  width: 44px !important;
}
html.lb-app .exp-fab-dock .exp-fab-edit {
  padding: 0 20px !important;
}
html.lb-app .exp-fab-dock .exp-fab-edit .exp-fab-label {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* ——— 5.4 Trip settings ——— */
html.lb-app .wb-options-panel .wb-publish-btn {
  flex: 0 0 auto !important;
}
html.lb-app .wb-options-panel .wb-share-row {
  gap: 10px !important;
  align-items: stretch !important;
}
html.lb-app .wb-options-panel .wb-share-row > #m-wb-share-copy {
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  align-self: stretch !important;
}
html.lb-app .wb-options-panel .wb-opt-actions > .plan-btn-danger {
  margin-top: 2px !important;
}
html.lb-app .wb-options-panel > .sheet-modal-actions {
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--lbc-line) !important;
}
html.lb-app .wb-options-panel .wb-opt-actions {
  display: grid !important;
  gap: 10px !important;
}
html.lb-app .wb-options-panel .wb-opt-actions > button,
html.lb-app .wb-options-panel #m-wb-share-make {
  width: 100% !important;
}

/* ——— 5.5 Small tray buttons (Shorter / Longer, Hide, the spending level "?") ——— */
html.lb-app #m-itin-event .event-fit {
  box-sizing: border-box !important;
  min-height: 44px !important;
  padding: 4px !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
}
html.lb-app #m-itin-event .event-fit > .btn-quiet {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html.lb-app .lbt-level-head .lbt-level-tools {
  align-items: center !important;
  gap: 8px !important;
}
html.lb-app .lbt-level-head .stat-help {
  display: inline-flex !important;
  align-items: center !important;
}
html.lb-app .lbt-level-head .stat-help-btn,
html.lb-app .lbt-fold {
  box-sizing: border-box !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: 50% !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

/* ——— 5.6 Fields ——— */
html.lb-app .mw-field > :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea),
html.lb-app .wb-field > :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select:not(.lmp-chip), textarea),
html.lb-app .geo-field .geo-input-row > input,
html.lb-app #m-itin-event .lmp-card-name,
html.lb-app #m-wb-share-url,
html.lb-app .exp-filters .exp-filter {
  box-sizing: border-box !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background-color: var(--lbc-white) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-text-fill-color: currentColor;
}
html.lb-app :is(.mw-field, .wb-field) > textarea:not(#_):not(#_) {
  height: auto !important;
  min-height: 96px !important;
  padding: 12px 14px !important;
  line-height: 1.4 !important;
}
/* Select face: one chevron everywhere. */
html.lb-app .mw-field > select,
html.lb-app .wb-field > select:not(.lmp-chip),
html.lb-app .exp-filters select.exp-filter {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 40px !important;
  background-image: var(--lbc-chev-down) !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  text-overflow: ellipsis !important;
}
html.lb-app :is(.mw-field, .wb-field) > :is(input, select, textarea)::placeholder,
html.lb-app .geo-field .geo-input-row > input::placeholder,
html.lb-app #m-wb-share-url::placeholder,
html.lb-app .exp-filters .exp-filter::placeholder {
  color: var(--lbc-ink-faint) !important;
  opacity: 1 !important;
}
/* Focus: theme border + soft ring. */
html.lb-app .mw-field > :is(input, select, textarea):focus:not(#_),
html.lb-app .wb-field > :is(input, select:not(.lmp-chip), textarea):focus:not(#_),
html.lb-app .geo-field .geo-input-row > input:focus,
html.lb-app #m-itin-event .lmp-card-name:focus,
html.lb-app #m-wb-share-url:focus,
html.lb-app .exp-filters .exp-filter:focus {
  border-color: var(--lbc-brand) !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
  outline: none !important;
}
/* A wrong or missing field keeps its red cue over the field look (and over focus). The older sheets drew it without
   !important (.is-invalid / .is-empty set by the save checks); validation itself is untouched. Website twin: 4.3. */
html.lb-app :is(.mw-field, .wb-field).is-invalid > :is(input, select, textarea):not(#_),
html.lb-app .mw-field.is-empty > :is(input, select):not(#_),
html.lb-app .sheet-modal-panel :is(.mw-field, .wb-field) > :is(input, select).is-invalid:not(#_) {
  border-color: var(--lbc-danger) !important;
  box-shadow: 0 0 0 3px rgba(179, 65, 43, 0.16) !important;
}
/* Search field keeps its magnifier. */
html.lb-app .exp-filters input.exp-filter[type="search"]:not(#_) {
  padding-left: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f685f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 14px center !important;
  background-size: 16px 16px !important;
}
/* The stop card's time / type are chips (pills) at the field height; the type chip runs to the content edge. */
html.lb-app #m-itin-event .lmp-card-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}
html.lb-app #m-itin-event .lmp-card-chips > .lmp-chip.is-time {
  flex: 0 0 auto !important;
}
html.lb-app #m-itin-event .lmp-card-chips > .lmp-chip-select {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
}
html.lb-app #m-itin-event .lmp-card-chips > .lmp-chip-select > select.lmp-chip {
  width: 100% !important;
  max-width: none !important;
}
html.lb-app #m-itin-event .lmp-chip {
  box-sizing: border-box !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  background-color: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-weight: 600 !important;
}
html.lb-app .lb-hotel-plan-tick {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 44px !important;
}
/* the tick's second line: the rows need both times (UAT 2026-12-01); stays are in a trip, always light */
html.wb-new .nu-he-grid .lb-hotel-plan-tick > span { display: block !important; }
.lb-hotel-plan-tick .lb-hotel-plan-hint { display: block; margin-top: 2px; color: #6b7069; font-size: 0.78rem; font-weight: 400; line-height: 1.3; }
/* Hotel window: the read-only Nights value is a locked field, not a pill. */
html.lb-app .nu-hotel-edit .nu-he-nights .hotel-nights-read {
  box-sizing: border-box !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-field) !important;
  background: var(--lbc-surface-2) !important;
  color: var(--lbc-ink-soft) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
/* One field-group rhythm in the cost window: 18px above each label, 8px under it. */
html.lb-app #m-exp-group .exp-ed-panel > .mw-field,
html.lb-app #m-exp-group .exp-more > .mw-field {
  display: grid !important;
  gap: 8px !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}
html.lb-app #m-exp-group .exp-ed-panel > .plan-error + .mw-field {
  margin-top: 8px !important;
}
html.lb-app #m-exp-group .exp-more {
  margin-top: 18px !important;
}

/* ——— 5.7 Segmented control ———
   Prep's "LakBi's guide" tab keeps its own gold look (owner 2026-11-12; mobile/www/css/workbook-new.css .prep-tab-lakbi). */
html.lb-app .exp-subtabs {
  box-sizing: border-box !important;
  padding: 4px !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
}
html.lb-app .exp-subtabs > button:not(.prep-tab-lakbi) {
  min-height: 40px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: transparent !important;
  color: var(--lbc-ink-soft) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
html.lb-app .exp-subtabs > button:not(.prep-tab-lakbi).is-on,
html.lb-app .exp-subtabs > button:not(.prep-tab-lakbi)[aria-selected="true"] {
  background: var(--lbc-white) !important;
  color: var(--lbc-brand) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(19, 37, 30, 0.1), 0 2px 8px rgba(19, 37, 30, 0.1) !important;
}

/* ——— 5.8 Filter chips ——— */
html.lb-app .exp-chip,
html.lb-app .exp-status-seg > button,
html.lb-app .lb-fold-btn {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-chip) !important;
  height: var(--lbc-h-chip) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html.lb-app .exp-chip.is-on,
html.lb-app .exp-status-seg > button[aria-pressed="true"] {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
/* Unpaid / Paid keep a light amber / green tint. */
html.lb-app .exp-status-seg > button.is-due:not([aria-pressed="true"]) {
  background: #fdf4e6 !important;
  border-color: #f0d6ae !important;
}
html.lb-app .exp-status-seg > button.is-paid:not([aria-pressed="true"]) {
  background: #ecf6ef !important;
  border-color: #bfe0cc !important;
}
html.lb-app .exp-status-seg > button.is-due:not([aria-pressed="true"]) i {
  background: #d9822b !important;
}
html.lb-app .exp-status-seg > button.is-paid:not([aria-pressed="true"]) i {
  background: #2f7d57 !important;
}
html.lb-app .exp-status-seg > button[aria-pressed="true"] i {
  background: #fff !important;
}
html.lb-app .exp-status-seg {
  gap: 8px !important;
}
html.lb-app .exp-filters {
  background: var(--lbc-surface-2) !important;
}

/* ——— 5.9 Windows, sheets, cards ——— */

/* Bottom sheets: 22px top corners. */
html.lb-app .sheet-modal .sheet-modal-panel,
html.lb-app #pnd-sheet .pnd-card,
html.lb-app #m-itin-event:not(.sheet-modal) {
  background-color: var(--lbc-surface) !important;
  border-radius: var(--lbc-r-sheet) var(--lbc-r-sheet) 0 0 !important;
  box-shadow: var(--lbc-sh-win) !important;
}
/* The planner's stop editor card only: as a stop's VIEW sheet #m-itin-event is the full-screen .sheet-modal holder. */
html.lb-app #m-itin-event:not(.sheet-modal) {
  border: 0 !important;
  box-shadow: 0 0 0 100vmax var(--lbc-dim), var(--lbc-sh-win) !important;
}
/* The planner's "Add to Day" card is the same sheet as the stop editor: no dark outline. */
html.lb-app #m-itin-draft.lb-plan-card {
  border: 0 !important;
  border-radius: var(--lbc-r-sheet) var(--lbc-r-sheet) 0 0 !important;
  background-color: var(--lbc-surface) !important;
  box-shadow: 0 0 0 100vmax var(--lbc-dim), var(--lbc-sh-win) !important;
}
/* Centred windows: 20px. */
html.lb-app dialog.lpd-formwin {
  border: 0 !important;
  border-radius: var(--lbc-r-win) !important;
  background: var(--lbc-surface) !important;
  box-shadow: var(--lbc-sh-win) !important;
  outline: none !important;
}
html.lb-app dialog.lpd-formwin > .nu-hotel-edit {
  background: var(--lbc-surface) !important;
  border-radius: var(--lbc-r-win) !important;
}
/* Dim behind a window; the lighter dim behind a second layer (in the app a picker always sits over a sheet or window). */
html.lb-app .sheet-modal > .sheet-modal-scrim {
  background-color: var(--lbc-dim) !important;
}
html.lb-app dialog.lpd-formwin::backdrop {
  background: rgba(19, 37, 30, 0.5) !important;
}
html.lb-app .lbsel:not(.is-pop) .lbsel-scrim,
html.lb-app .lbr .lbr-backdrop {
  background: var(--lbc-dim-2) !important;
}
/* Cards inside windows: 16px. */
html.lb-app .wb-options-panel .wb-opt-block:not(.wb-opt-actions),
html.lb-app .nu-hotel-edit .nu-he-card,
html.lb-app #m-itin-event .lb-plan-opt,
html.lb-app .exp-filters {
  border-radius: var(--lbc-r-card) !important;
  border-color: var(--lbc-line) !important;
}
html.lb-app #m-itin-event .lb-plan-opt {
  background: var(--lbc-surface-2) !important;
  align-items: center !important;
}
/* Window close (×): the same quiet round button as the pickers'. */
html.lb-app .sheet-modal .sheet-modal-panel .nu-ed-x {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
  color: var(--lbc-ink) !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
/* Expand rows (Night notes, More): ink words, the shared chevron on the right. */
html.lb-app .nu-he-more > summary,
html.lb-app .exp-more > summary {
  min-height: var(--lbc-h-field) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
html.lb-app .nu-he-more > summary::after,
html.lb-app .exp-more > summary::after {
  content: "" !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  margin-left: auto !important;
  background: var(--lbc-chev-down) center / 16px 16px no-repeat !important;
}
html.lb-app .nu-he-more[open] > summary::after,
html.lb-app .exp-more[open] > summary::after {
  transform: rotate(180deg) !important;
}
html.lb-app .nu-he-more,
html.lb-app .exp-more {
  border-top-color: var(--lbc-line) !important;
}
/* Word links (Add receipt) in the theme colour. */
html.lb-app .sheet-modal .sheet-modal-panel .pw-word:not(.is-danger) {
  color: var(--lbc-brand) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  min-height: 44px !important;
}

/* ——— 5.10 Toast ——— */
html.lb-app .toast {
  padding: 12px 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  color: #fff !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: var(--lbc-sh-toast) !important;
}
/* A warning toast keeps its own red (css/workbook-new.css .toast.is-warn), as on the website. */
html.lb-app .toast:not(.is-warn) {
  background: var(--lbc-toast) !important;
}

/* ==== leftovers: app ==== */
/* Screens the first pass left on their old look (2026-11-12). App only; looks only: every control keeps its id, data
   hooks and handlers. L1 Travel documents · L2 the two dropdowns (Library "Related to", Travellers "Access") ·
   L3 Detail's edit window (Destinations / Travellers / Cover) and its one footer · L4 Balance Pay sheets
   ("How people pay you", "You paid …") · L5 the flight window's More fields · L6 pressed. */

/* ——— L1 Travel documents (You → Travel documents; src/app/app/09a-travel-docs.js) + the field look for L2–L4 ——— */
html.lb-app .stack.is-travel-docs .td-field > select,
html.lb-app .stack.is-travel-docs .td-field > input[type="date"],
html.lb-app .traveller-tool > input,
html.lb-app .traveller-tool > select,
html.lb-app .sheet-modal .sheet-modal-panel .files-related-value,
html.lb-app .sheet-modal .sheet-modal-panel .files-related-search,
html.lb-app .bpay-sheet .bpay-field > input {
  box-sizing: border-box !important;
  width: 100% !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background-color: var(--lbc-white) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-text-fill-color: currentColor;
}
/* The one dropdown face: the shared chevron on the right (native selects stay native; "Related to" is a button that
   opens its list under it, so it gets the same face and its chevron turns while the list is open). */
html.lb-app .stack.is-travel-docs .td-field > select,
html.lb-app .traveller-tool > select,
html.lb-app .sheet-modal .sheet-modal-panel .files-related-value {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 40px !important;
  background-image: var(--lbc-chev-down) !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
html.lb-app .sheet-modal .sheet-modal-panel .files-related-value.is-open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231e3a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10l4-4 4 4'/%3E%3C/svg%3E") !important;
}
html.lb-app .stack.is-travel-docs .td-field > :is(select, input):focus,
html.lb-app .traveller-tool > :is(input, select):focus,
html.lb-app .sheet-modal .sheet-modal-panel :is(.files-related-value, .files-related-search):focus,
html.lb-app .bpay-sheet .bpay-field > input:focus {
  border-color: var(--lbc-brand) !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
  outline: none !important;
}
html.lb-app .stack.is-travel-docs .td-field > :is(select, input):disabled {
  background-color: var(--lbc-surface-2) !important;
  color: var(--lbc-ink-soft) !important;
}
html.lb-app .traveller-tool > input::placeholder,
html.lb-app .sheet-modal .sheet-modal-panel .files-related-search::placeholder,
html.lb-app .bpay-sheet .bpay-field > input::placeholder {
  color: var(--lbc-ink-faint) !important;
  opacity: 1 !important;
}
html.lb-app .stack.is-travel-docs .td-field {
  gap: 8px !important;
}
html.lb-app .stack.is-travel-docs .td-passport {
  gap: 14px !important;
}
/* Save: the page's one main action, filling the row. */
html.lb-app .stack.is-travel-docs #td-save,
html.lb-app .stack.is-travel-docs #td-add2 {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
html.lb-app .stack.is-travel-docs #td-save {
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.lb-app .stack.is-travel-docs #td-save:disabled {
  opacity: 0.5 !important;
}
/* "+ Add a second passport": a secondary pill (its words may wrap on a small phone, so the height is a floor). */
html.lb-app .stack.is-travel-docs #td-add2 {
  min-height: var(--lbc-h-btn) !important;
  padding: 8px 20px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
html.lb-app .stack.is-travel-docs #td-add2[hidden] {
  display: none !important;
}
html.lb-app .stack.is-travel-docs #td-add2:disabled {
  color: #9aa59e !important;
}
/* "Remove second passport": red words, no box. */
html.lb-app .stack.is-travel-docs #td-remove2 {
  justify-self: start !important;
  min-height: var(--lbc-h-btn) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
html.lb-app .stack.is-travel-docs #td-remove2:disabled {
  opacity: 0.5 !important;
}

/* ——— L2 The two dropdowns ——— */
/* Travellers: Search + Access share a narrow row, so their side padding is a little tighter. */
html.lb-app .traveller-tools {
  gap: 10px !important;
}
html.lb-app .traveller-tool {
  gap: 8px !important;
}
html.lb-app .traveller-tool > input,
html.lb-app .traveller-tool > select {
  padding-left: 12px !important;
}
html.lb-app .traveller-tool > select {
  padding-right: 32px !important;
  background-position: right 10px center !important;
}
/* Library "Related to": the list that opens under the face. */
html.lb-app .sheet-modal .sheet-modal-panel .files-related {
  gap: 8px !important;
}
html.lb-app .sheet-modal .sheet-modal-panel .files-related-picker {
  gap: 12px !important;
  margin-top: 4px !important;
}
html.lb-app .sheet-modal .sheet-modal-panel .files-related-list {
  border-color: var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
}
/* Its chips, and "What is this?" above it: the one chip (36px; the chosen one in the trip colour). */
html.lb-app .sheet-modal .sheet-modal-panel .set-chip.files-type-chip {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  height: var(--lbc-h-chip) !important;
  min-height: var(--lbc-h-chip) !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html.lb-app .sheet-modal .sheet-modal-panel .set-chip.files-type-chip.is-on {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.lb-app .sheet-modal .sheet-modal-panel :is(.files-type-chips, .files-related-groups) {
  gap: 8px !important;
}

/* ——— L3 Detail's edit window (Destinations / Travellers / Cover; src/app/app/04-focus-itin-ratings.js) ———
   MARKUP 2026-11-12: Cancel and Save moved out of the top bar into <footer class="mw-edit-win-foot"> (Cancel, then
   Save LAST; same buttons and data hooks). The top bar keeps the window's title. */
html.lb-app .mw-edit-win-head {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 52px !important;
}
html.lb-app .mw-edit-win-foot {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px calc(12px + var(--safe-bot, env(safe-area-inset-bottom, 0px))) !important;
  border-top: 1px solid var(--lbc-line) !important;
  background: var(--lbc-surface) !important;
}
html.lb-app .mw-edit-win-foot > .nu-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
html.lb-app .mw-edit-win-foot > .nu-btn:not(.is-solid) {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
html.lb-app .mw-edit-win-foot > .nu-btn.is-solid {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.lb-app .mw-edit-win-foot > .nu-btn.is-solid:disabled {
  opacity: 0.5 !important;
}
/* The body ends just above the footer now (the footer keeps the room for the phone's home bar). */
html.lb-app .mw-edit-win .mw-edit-win-body {
  padding-bottom: 24px !important;
}
/* The scrolling body can take focus when the window opens: no ring round the whole form. */
html.lb-app .mw-edit-win .mw-edit-win-body:focus,
html.lb-app .mw-edit-win .mw-edit-win-body:focus-visible {
  outline: none !important;
}
/* Fields that are not a direct child of .mw-field (country / city, a traveller's name, the invite box, a custom tag):
   the same field as the dates beside them. They keep their own width in their row. */
html.lb-app .mw-edit-win .detail-stop .combo > input,
html.lb-app .mw-edit-win .mw-person-id > input,
html.lb-app .mw-edit-win .wb-invite-row-form > input,
html.lb-app .mw-edit-win .trip-tags-add > input {
  box-sizing: border-box !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  background-color: var(--lbc-white) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-text-fill-color: currentColor;
}
html.lb-app .mw-edit-win .detail-stop .combo > input::placeholder,
html.lb-app .mw-edit-win .mw-person-id > input::placeholder,
html.lb-app .mw-edit-win .wb-invite-row-form > input::placeholder,
html.lb-app .mw-edit-win .trip-tags-add > input::placeholder {
  color: var(--lbc-ink-faint) !important;
  opacity: 1 !important;
}
html.lb-app .mw-edit-win .detail-stop .combo > input:focus,
html.lb-app .mw-edit-win .mw-person-id > input:focus,
html.lb-app .mw-edit-win .wb-invite-row-form > input:focus,
html.lb-app .mw-edit-win .trip-tags-add > input:focus {
  border-color: var(--lbc-brand) !important;
  box-shadow: 0 0 0 3px var(--lbc-brand-ring) !important;
}
html.lb-app .mw-edit-win .detail-stop .combo > input:disabled,
html.lb-app .mw-edit-win .detail-stop .combo > input[readonly] {
  background-color: var(--lbc-surface-2) !important;
  color: var(--lbc-ink-soft) !important;
}
/* A wrong or missing one keeps its red cue (set by Detail's save checks; untouched). */
html.lb-app .mw-edit-win .detail-stop .combo > input.is-invalid:not(#_),
html.lb-app .mw-edit-win .mw-person.is-empty .mw-person-id > input:not(#_),
html.lb-app .mw-edit-win .wb-invite-row-form.is-invalid > input:not(#_) {
  border-color: var(--lbc-danger) !important;
  box-shadow: 0 0 0 3px rgba(179, 65, 43, 0.16) !important;
}
/* Send invite: the main action of its row, at the field's height. "Add" (a custom tag): the secondary one. */
html.lb-app .mw-edit-win .wb-invite-row-form {
  gap: 10px !important;
  align-items: center !important;
}
/* The invite field takes what Send invite leaves (an input is as wide as 20 letters by itself and would widen the card). */
html.lb-app .mw-edit-win .wb-invite-row-form > input {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
}
/* A traveller name fills its column without widening the row (an input is as wide as 20 letters by itself). */
html.lb-app .mw-edit-win .mw-person-id > input {
  width: 0 !important;
  min-width: 100% !important;
}
html.lb-app .mw-edit-win .wb-invite-send,
html.lb-app .mw-edit-win .trip-tag-add-btn {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lbc-h-field) !important;
  min-height: var(--lbc-h-field) !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
html.lb-app .mw-edit-win .wb-invite-send {
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.lb-app .mw-edit-win .trip-tag-add-btn {
  border: 1px solid var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
html.lb-app .mw-edit-win .wb-invite-send:disabled {
  opacity: 0.5 !important;
}
html.lb-app .mw-edit-win .trip-tags-add {
  gap: 10px !important;
}
/* Remove beside a traveller: red words, no box (it removes that row, so it stays in the row). */
html.lb-app .mw-edit-win .detail-people .detail-person-remove {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: none !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
/* "+ Add destination" / "+ Add traveller": a secondary pill across the window. */
html.lb-app .mw-edit-win .plan-btn-add {
  box-sizing: border-box !important;
  width: 100% !important;
  height: var(--lbc-h-btn) !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 20px !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html.lb-app .mw-edit-win .plan-btn-add:disabled {
  color: #9aa59e !important;
}
/* How you get here / home: the one chip; the chosen one in the trip colour ("Automatic" keeps its gold). */
html.lb-app .mw-edit-win .nu-legpick > div {
  gap: 8px !important;
}
html.lb-app .mw-edit-win .nu-legpick-chip {
  box-sizing: border-box !important;
  height: var(--lbc-h-chip) !important;
  min-height: var(--lbc-h-chip) !important;
  padding: 0 14px !important;
  border: 1px solid var(--lbc-line) !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-ink) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
html.lb-app .mw-edit-win .nu-legpick-chip[aria-pressed="true"]:not([data-leg-mode=""]) {
  border-color: var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.lb-app .mw-edit-win .nu-legpick-chip[data-leg-mode=""][aria-pressed="true"] {
  border-color: #c8a960 !important;
  background: #f6ecd3 !important;
  color: #6b5313 !important;
}

/* ——— L4 Balance Pay sheets (shared/balance-pay.js: "How people pay you", "You paid …", the Pay sheet) ———
   Their teal buttons become the one set in the trip colour. Footer: Cancel hugs its word, the main action LAST and
   filling the rest. "Remove this QR" stays beside the code it removes (one code out of up to three, not the sheet's
   thing), as red words. */
html.lb-app .bpay-sheet .bpay-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: var(--lbc-h-btn) !important;
  min-height: var(--lbc-h-btn) !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
html.lb-app .bpay-sheet .bpay-btn.is-solid {
  border: 1px solid var(--lbc-brand) !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand) !important;
}
html.lb-app .bpay-sheet .bpay-btn.is-quiet {
  border: 1px solid var(--lbc-ctl-line) !important;
  background: var(--lbc-surface) !important;
  color: var(--lbc-brand) !important;
}
html.lb-app .bpay-sheet .bpay-btn.is-danger {
  justify-self: start !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--lbc-danger) !important;
}
html.lb-app .bpay-sheet .bpay-btn.is-solid:disabled {
  opacity: 0.5 !important;
}
html.lb-app .bpay-sheet .bpay-btn.is-quiet:disabled {
  opacity: 1 !important;
  color: #9aa59e !important;
}
html.lb-app .bpay-sheet .bpay-two {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--lbc-line) !important;
}
html.lb-app .bpay-sheet .bpay-two > .bpay-btn {
  height: var(--lbc-h-foot) !important;
  min-height: var(--lbc-h-foot) !important;
}
html.lb-app .bpay-sheet .bpay-two > .bpay-btn.is-quiet {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
}
html.lb-app .bpay-sheet .bpay-two > .bpay-btn.is-solid {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
}
html.lb-app .bpay-sheet .bpay-field {
  gap: 8px !important;
  margin-top: 6px !important;
}
html.lb-app .bpay-sheet .bpay-card {
  background-color: var(--lbc-surface) !important;
}
html.lb-app .bpay-sheet .bpay-qr-row {
  margin-top: 8px !important;
}
html.lb-app .bpay-sheet .bpay-pick {
  gap: 8px !important;
  margin: 8px 0 !important;
}

/* ——— L5 The flight window (mobile/www/js/flights-model.js): already the one set; only the room under "More" ——— */
html.lb-app dialog.nu-flight-win .flight-more > .mw-field,
html.lb-app dialog.nu-flight-win .flight-more > .mw-row-2 {
  margin-top: 14px !important;
}

/* ——— L5b Found by the check of the leftovers (2026-11-12) ——— */
/* A stop's Remove in the Destinations window: red words at the size of a traveller's Remove (it was 40px, small type). */
html.lb-app .mw-edit-win .plan-stop-remove {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: none !important;
  color: var(--lbc-danger) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
/* "Upload cover photo": the secondary pill at its full size (it was 42px with small type). */
html.lb-app .mw-edit-win .mw-edit-win-body .nu-btn:not(.is-solid) {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  padding: 0 18px !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
/* Pay codes: the "+" tile, the picked code, the arrows and dots follow the trip colour, as on the website (L.3). */
html.lb-app .bpay-qr-add {
  border-color: var(--lbc-ctl-line) !important;
  border-radius: var(--lbc-r-field) !important;
  color: var(--lbc-brand) !important;
}
html.lb-app .bpay-qr-thumb {
  border-radius: var(--lbc-r-field) !important;
}
html.lb-app .bpay-qr-thumb.is-on,
html.lb-app .bpay-qr-add.is-on {
  outline-color: var(--lbc-brand) !important;
}
html.lb-app .bpay-arrow {
  width: 44px !important;
  height: 44px !important;
  background: var(--lbc-tray) !important;
  color: var(--lbc-brand) !important;
}
html.lb-app .bpay-dots i.on {
  background: var(--lbc-brand) !important;
}

/* ——— L6 Pressed / hover for the main actions above (same as section 6) ——— */
@media (hover: hover) and (pointer: fine) {
  html.lb-app .stack.is-travel-docs #td-save:not(:disabled):hover,
  html.lb-app .mw-edit-win-foot > .nu-btn.is-solid:not(:disabled):hover,
  html.lb-app .bpay-sheet .bpay-btn.is-solid:not(:disabled):hover {
    border-color: var(--lbc-brand-deep) !important;
    background: var(--lbc-brand-deep) !important;
  }
}
html.lb-app .stack.is-travel-docs #td-save:not(:disabled):active,
html.lb-app .mw-edit-win-foot > .nu-btn.is-solid:not(:disabled):active,
html.lb-app .bpay-sheet .bpay-btn.is-solid:not(:disabled):active {
  border-color: var(--lbc-brand-deep) !important;
  background: var(--lbc-brand-deep) !important;
}

/* ═════════════════════════ 6. Hover and pressed ═════════════════════════
   The main action darkens under a real pointer (never after a tap) and while it is pressed. The press scale is in
   shared/motion.css. */
@media (hover: hover) and (pointer: fine) {
  .lbsel .lbc-btn:not(.is-quiet):not(:disabled):hover,
  .lbr .lbr-btn.is-go:not(:disabled):hover,
  #pnd-sheet .pnd-btn.is-solid:not(:disabled):hover,
  :is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-edit-foot > .wbx-done:not(:disabled):hover,
  html.wb-new .nu-btn.is-solid:not(:disabled):hover,
  html.wb-new #wb-options-modal .btn-solid:not(:disabled):hover,
  html.wb-new .pass-modal .pass-actions .btn-solid:not(:disabled):hover,
  html.wb-new .nu-sp-mini-acts > button.is-solid:not(:disabled):hover,
  html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-done:not(:disabled):hover,
  html.lb-app .sheet-modal .sheet-modal-panel .btn-primary:not(:disabled):hover,
  html.lb-app .exp-empty-add:not(:disabled):hover {
    border-color: var(--lbc-brand-deep) !important;
    background: var(--lbc-brand-deep) !important;
  }
}
.lbsel .lbc-btn:not(.is-quiet):not(:disabled):active,
.lbr .lbr-btn.is-go:not(:disabled):active,
#pnd-sheet .pnd-btn.is-solid:not(:disabled):active,
:is(html.wb-new .lmp-card, html.lb-app #m-itin-event) .wbx-edit-foot > .wbx-done:not(:disabled):active,
html.wb-new .nu-btn.is-solid:not(:disabled):active,
html.wb-new #wb-options-modal .btn-solid:not(:disabled):active,
html.wb-new .pass-modal .pass-actions .btn-solid:not(:disabled):active,
html.wb-new .nu-sp-mini-acts > button.is-solid:not(:disabled):active,
html.lb-app .nu-hotel-edit .nu-he-bar > .nu-he-done:not(:disabled):active,
html.lb-app .sheet-modal .sheet-modal-panel .btn-primary:not(:disabled):active,
html.lb-app .exp-empty-add:not(:disabled):active {
  border-color: var(--lbc-brand-deep) !important;
  background: var(--lbc-brand-deep) !important;
}

/* ——— One icon style (shared/icons.js, owner 2026-11-12) ———
   Every line icon the screens draw with LakbayIcons.svg / lbIco carries .lb-ico: it sits on the text's line at the
   text's size and takes the text's colour (so the trip's colour wherever the words have it). A place that already
   sizes its own svg (a tab, a tile) keeps that size: those rules are more specific than this one.
   The --lb-ico-* pictures are the same drawings for the few places a style sheet draws the icon (::before): painted
   with a mask in currentColor. */
.lb-ico {
  display: inline-block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}
:root {
  --lb-ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.5 7-11a7 7 0 1 0-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --lb-ico-money: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6.2 12h.01'/%3E%3Cpath d='M17.8 12h.01'/%3E%3C/svg%3E");
  --lb-ico-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5h12v19l-2-1.4-2 1.4-2-1.4-2 1.4-2-1.4-2 1.4z'/%3E%3Cpath d='M9 7.5h6'/%3E%3Cpath d='M9 11h6'/%3E%3Cpath d='M9 14.5h4'/%3E%3C/svg%3E");
  --lb-ico-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='17' rx='2'/%3E%3Cpath d='M16 2.5v4'/%3E%3Cpath d='M8 2.5v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  --lb-ico-world: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
  --lb-ico-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h14v11l-5.5 6H5z'/%3E%3Cpath d='M13.5 20.5v-6H19'/%3E%3Cpath d='M8.5 8h7'/%3E%3Cpath d='M8.5 11.5h4'/%3E%3C/svg%3E");
  --lb-ico-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 18h5'/%3E%3Cpath d='M10.5 21h3'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.7 10.7c.7.6 1.2 1.4 1.2 2.3h5c0-.9.5-1.7 1.2-2.3A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}

/* ==== bottom bar: one rule ==== */
/* Owner 2026-11-12 ("the bar differs tab by tab"): ONE bottom bar on every tab, app and website.
   Order (markup): [LakBi] [the tab's small actions, same-size icon buttons] [one main action] [Map last].
   - every button 44px tall; icon buttons 44 x 44 with a 20px icon; the words stay as aria-label / title
   - the main add is one round "+" in the trip colour (owner decision 2026-11-12), Edit the same round button with a
     pencil; Save / Cancel / Copy / Day Tour / "Saving…" stay word pills
   - one gap (6px) and one inner padding (6px): no holes, nothing outside the bar
   - app: centred with equal sides at every width; website: its corner, the same spot on every tab
   html:not(#lb-bb) only lifts these rules over the older per-tab ones (an id beats classes); #lb-bb never exists.
   LakBi docking: mobile/www/js/lakbi-chat.js dockLaunch, js/lakbi-chat.js lakbiDockLift. */
:root {
  --bb-btn: 44px;
  --bb-ico: 20px;
  --bb-gap: 6px;
  --bb-pad: 6px;
  --bb-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
/* the bar */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: var(--bb-gap) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: var(--bb-pad) !important;
  border: 1px solid var(--lbc-line, #e6e2d8) !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, 0.94) !important;
  box-shadow: 0 12px 28px -12px rgba(19, 37, 30, 0.45), 0 2px 6px rgba(19, 37, 30, 0.08) !important;
  pointer-events: auto;
}
/* app: centred, equal sides at every width (a 4.25rem side from 401px up squeezed the bar: items stuck out, off centre) */
html.lb-app:not(#lb-bb) .exp-fab-wrap:not(.is-editing) {
  left: max(12px, var(--safe-left, 0px)) !important;
  right: max(12px, var(--safe-right, 0px)) !important;
  justify-content: center !important;
}
/* every item: 44px tall, no margins of its own (the bar's gap spaces them) */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab, .lakbi-chat-launch.is-docked) {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  height: var(--bb-btn) !important;
  min-height: var(--bb-btn) !important;
  max-height: var(--bb-btn) !important;
  margin: 0 !important;
}
/* LakBi: first, a 44px circle */
html:not(#lb-bb) .exp-fab-wrap > :is(.exp-fab-dock, .exp-fab-stack) > .lakbi-chat-launch.is-docked {
  width: var(--bb-btn) !important;
  min-width: var(--bb-btn) !important;
  max-width: var(--bb-btn) !important;
  padding: 0 !important;
  border-radius: 50% !important;
}
html:not(#lb-bb) .exp-fab-wrap > :is(.exp-fab-dock, .exp-fab-stack) > .lakbi-chat-launch.is-docked .lakbi-mascot {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
}
/* in the bar LakBi goes with the bar: never faded out on its own (it left a hole in the bar while scrolling) */
html:not(#lb-bb) .exp-fab-wrap .lakbi-chat-launch.is-docked.is-scroll-away {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* icon buttons (Save a place, PDF, Quick cost, scan / upload, Map) and the round "+": 44 x 44, no words showing */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab-place, .plc-float, .exp-fab-export, .exp-fab-quick, .exp-fab-scan, .exp-fab-upload, .exp-fab-live-map, .exp-fab-map),
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > button:is(.exp-fab-add, .exp-fab-add-file):not(.is-saving) {
  position: relative !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: var(--bb-btn) !important;
  min-width: var(--bb-btn) !important;
  max-width: var(--bb-btn) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab-place, .plc-float, .exp-fab-export, .exp-fab-quick, .exp-fab-scan, .exp-fab-upload, .exp-fab-live-map, .exp-fab-map, .exp-fab-tour) .exp-fab-label, /* Day Tour: its word sits under the icon like the others (it showed twice — owner 2026-11-15) */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > button:is(.exp-fab-add, .exp-fab-add-file):not(.is-saving) .exp-fab-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* icon buttons: the trip colour on the bar, no box */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab-place, .plc-float, .exp-fab-export, .exp-fab-quick, .exp-fab-scan, .exp-fab-upload, .exp-fab-live-map, .exp-fab-map) {
  background: transparent !important;
  color: var(--lbc-brand) !important;
  box-shadow: none !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab-place, .plc-float, .exp-fab-export, .exp-fab-quick, .exp-fab-scan, .exp-fab-upload, .exp-fab-live-map, .exp-fab-map):not(:disabled):hover {
  background: rgba(19, 37, 30, 0.06) !important;
}
/* one icon size: 20px */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab-place, .plc-float, .exp-fab-export, .exp-fab-quick, .exp-fab-scan, .exp-fab-upload, .exp-fab-live-map, .exp-fab-map) .exp-fab-ico {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: var(--bb-ico) !important;
  height: var(--bb-ico) !important;
  margin: 0 !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab-place, .plc-float, .exp-fab-export, .exp-fab-quick, .exp-fab-scan, .exp-fab-upload, .exp-fab-live-map, .exp-fab-map) svg {
  flex: none !important;
  width: var(--bb-ico) !important;
  height: var(--bb-ico) !important;
  margin: 0 !important;
  vertical-align: middle;
}
/* Save a place on the website: its pin is the svg in the button (no second, masked pin) */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .plc-float::before {
  content: none !important;
  display: none !important;
}
/* the main add: one round "+" in the trip colour */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > button:is(.exp-fab-add, .exp-fab-add-file):not(.is-saving) {
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand, #fff) !important;
  box-shadow: 0 4px 12px -4px rgba(19, 37, 30, 0.45) !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > button:is(.exp-fab-add, .exp-fab-add-file):not(.is-saving):not(:disabled):hover {
  background: var(--lbc-brand-deep) !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > button:is(.exp-fab-add, .exp-fab-add-file):not(.is-saving):disabled {
  opacity: 0.45 !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > button:is(.exp-fab-add, .exp-fab-add-file):not(.is-saving)::before {
  content: "" !important;
  display: block !important;
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--bb-plus) center / 22px 22px no-repeat;
  mask: var(--bb-plus) center / 22px 22px no-repeat;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > button:is(.exp-fab-add, .exp-fab-add-file):not(.is-saving)::after {
  content: none !important;
}
/* Edit (Itinerary, Detail): the "+" slot's round trip-colour button with a pencil line icon, no words — the word stays
   its name / aria-label (bug hunt 2026-11-12: an 87px "Edit" pill broke the bar rule) */
:root {
  --bb-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .exp-fab-edit {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: var(--bb-btn) !important;
  min-width: var(--bb-btn) !important;
  max-width: var(--bb-btn) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--lbc-brand) !important;
  color: var(--lbc-on-brand, #fff) !important;
  box-shadow: 0 4px 12px -4px rgba(19, 37, 30, 0.45) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .exp-fab-edit:not(:disabled):hover {
  background: var(--lbc-brand-deep) !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .exp-fab-edit > * {
  display: none !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .exp-fab-edit::before {
  content: "" !important;
  display: block !important;
  flex: none;
  width: var(--bb-ico);
  height: var(--bb-ico);
  background: currentColor;
  -webkit-mask: var(--bb-pencil) center / var(--bb-ico) var(--bb-ico) no-repeat;
  mask: var(--bb-pencil) center / var(--bb-ico) var(--bb-ico) no-repeat;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .exp-fab-edit::after {
  content: none !important;
}
/* word pills: Save, Cancel / Undo, Copy, Day Tour, Saving… — 44px tall */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > :is(.exp-fab-save, .exp-fab-undo, .exp-fab-copy, .exp-fab-tour, .exp-fab.is-saving) {
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: var(--bb-btn) !important;
  max-width: none !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

/* ——— Fix pass 2026-11-12 (windows + planner) ——— */
/* The map planner's New stop sheet (src/app/app/11l-trip-itin-draft.js): rises in once, slides back down on Cancel / × /
   tap outside / Esc, its dim fades with it (app hunt H3: it vanished in one frame). The app's other sheets: ctxMotion. */
@media (prefers-reduced-motion: no-preference) {
  html.lb-app .sheet-modal.lb-plan-sheet-in:not(.ctx-enter) > .sheet-modal-panel {
    animation: lb-plan-sheet-up 260ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--lb-plan-delay, 0ms) both;
  }
  html.lb-app .sheet-modal.lb-plan-sheet-in:not(.ctx-enter) > .sheet-modal-scrim {
    animation: lb-plan-dim-in 220ms ease var(--lb-plan-delay, 0ms) both;
  }
  html.lb-app .sheet-modal.lb-plan-sheet-out > .sheet-modal-panel {
    animation: lb-plan-sheet-down 220ms cubic-bezier(0.4, 0, 1, 1) both;
  }
  html.lb-app .sheet-modal.lb-plan-sheet-out > .sheet-modal-scrim {
    animation: lb-plan-dim-out 220ms ease both;
  }
}
html.lb-app .sheet-modal.lb-plan-sheet-out {
  pointer-events: none;
}
@keyframes lb-plan-sheet-up {
  from {
    transform: translate3d(0, 100%, 0);
  }
  to {
    transform: none;
  }
}
@keyframes lb-plan-sheet-down {
  from {
    transform: none;
  }
  to {
    transform: translate3d(0, 100%, 0);
  }
}
@keyframes lb-plan-dim-in {
  from {
    opacity: 0;
  }
}
@keyframes lb-plan-dim-out {
  to {
    opacity: 0;
  }
}

/* The one window head, web + app (controls mock 2026-11-11 "Edit window"; app hunt M4 2026-11-12: every window had its
   own head). The title in the middle, × on the right in the same 36px round button, in every window: Add cost, Quick
   cost, Add a flight, New / Edit stay, the scans, New / Edit list, Add to Emergency, Add file, Destinations, Save a place.
   Markup: <div class="… lb-win-head"><h2>Title</h2>lbWinX(hooks)</div> (shared/icons.js winX). */
html:not(#_) .lb-win-head {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 36px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: auto !important; /* the 36px x sets one line's height; a fixed one clipped a two-line title in a grid window */
  margin: 0 !important;
  text-align: center !important;
}
html:not(#_) .lb-win-head > :is(h1, h2, h3) {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 1.3rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--lbc-ink) !important;
  overflow-wrap: anywhere;
}
html:not(#_) .lb-win-head > .lb-win-x {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
}
html:not(#_) .lb-win-x {
  position: relative !important;
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--lbc-r-pill) !important;
  background: var(--lbc-tray) !important;
  color: var(--lbc-ink) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 90ms ease, background-color 160ms ease;
}
html:not(#_) .lb-win-x::after {
  content: "";
  position: absolute;
  inset: -4px; /* a 44px tap target */
}
html:not(#_) .lb-win-x > .lb-ico {
  width: 20px !important;
  height: 20px !important;
}
html:not(#_) .lb-win-x:active {
  transform: scale(0.92);
}
html:not(#_) .lb-win-x:focus-visible {
  outline: 2px solid var(--lbc-brand) !important;
  outline-offset: 2px !important;
}

/* Field labels in a window: sentence case, small and soft (mock .lbl: 600 .8rem), never small capitals (hunt M4). */
html:not(#_) :is(.sheet-modal-panel, dialog.lpd-formwin, dialog.mw-edit-win, dialog.pass-modal, .lb-cf-card, .flight-scan-modal, dialog.plc-add, .pnd-sheet, dialog.nu-edit-win, .lb-win-body)
  :is(.mw-field, .mw-label, .mw-field-label, .mw-label-meta, .nu-he-card-label, .nu-hs-card-label, .fc-label, .settle-field, .settle-field-label, .filter-label, .wb-field > span, fieldset > legend, .lb-cf-field > span) {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html:not(#_) :is(.sheet-modal-panel, dialog.lpd-formwin, dialog.mw-edit-win, dialog.pass-modal, .lb-cf-card, .flight-scan-modal, dialog.plc-add, .pnd-sheet, dialog.nu-edit-win, .lb-win-body)
  :is(.mw-field, .mw-label, .mw-field-label, .nu-he-card-label, .nu-hs-card-label, .fc-label, .settle-field, .settle-field-label, .filter-label, .wb-field > span, fieldset > legend, .lb-cf-field > span) {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--lbc-ink-soft) !important;
}

/* The scans (Add a flight from your ticket, Add a stay from your booking): the same window — title in the middle, × in
   the head's place, no dark band, Cancel pinned at the foot while the card scrolls. App .flight-scan-dialog, website
   dialog#flight-scan-modal. */
html:not(#_) .flight-scan-dialog,
html.wb-new:not(#_) dialog#flight-scan-modal {
  padding: 22px !important;
  border: 0 !important;
  border-radius: var(--lbc-r-win) !important;
  background: var(--lbc-surface) !important;
  box-shadow: var(--lbc-sh-win) !important;
}
html:not(#_) .flight-scan-modal .flight-scan-x.lb-win-x {
  position: absolute !important;
  top: 22px !important;
  right: 22px !important;
  z-index: 2;
}
html:not(#_) :is(.flight-scan-dialog, #flight-scan-body) > :is(h2, h3)#flight-scan-title,
html:not(#_) .flight-scan-modal.is-hotel-scan .nu-hs-band h2 {
  display: block !important;
  /* no min-height: in the dialog's grid a fixed one became the row's height and a two-line title ran into the text */
  min-height: auto !important;
  margin: 0 !important;
  padding: 5px 44px !important; /* one line sits level with the 36px x; a long title wraps between the gutters */
  white-space: normal !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  text-align: center !important;
  font-size: 1.3rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--lbc-ink) !important;
}
html:not(#_) .flight-scan-modal :is(.pass-kicker, .flight-scan-kicker) {
  padding: 0 44px !important;
  text-align: center !important;
}
html:not(#_) .flight-scan-modal.is-hotel-scan .nu-hs-band {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--lbc-ink) !important;
  text-align: center;
}
html:not(#_) .flight-scan-modal.is-hotel-scan .nu-hs-band .flight-scan-lead {
  margin: 10px 0 0 !important;
  color: var(--lbc-ink-soft) !important;
}
html:not(#_) .flight-scan-modal.is-hotel-scan .flight-scan-x.lb-win-x {
  border: 0 !important;
  background: var(--lbc-tray) !important;
  color: var(--lbc-ink) !important;
}
/* Cancel (and the scan's next step) stay in reach at the foot while the long card scrolls. Sticky counts from inside
   the window's 22px padding, so bottom: -22px lands the bar on the window's own edge (bottom: 0 left a 22px strip
   under it where the scrolled text showed through, and lifted it over the last box when nothing scrolled). */
html:not(#_) .flight-scan-dialog > .flight-scan-actions:last-child,
html.wb-new:not(#_) #flight-scan-body > .pass-actions:last-child {
  position: sticky !important;
  bottom: -22px !important;
  z-index: 1;
  margin: 0 -22px -22px !important;
  padding: 14px 22px 22px !important;
  border-top: 1px solid var(--lbc-line) !important;
  background: var(--lbc-surface) !important;
}
/* The scans' buttons are the windows' own pair (Add cost, Add file, New list): Cancel the outlined pill, Choose file the
   filled one, both in sentence case — the stay scan's Cancel was bare text, the website's buttons said CHOOSE FILE. */
html:not(#_) .flight-scan-dialog .flight-scan-actions > :is(.btn-ghost, .btn-primary),
html:not(#_) .flight-scan-dialog .flight-dropzone .flight-scan-choose {
  box-sizing: border-box !important;
  min-height: var(--lbc-h-btn) !important;
  height: var(--lbc-h-btn) !important;
  padding: 0 20px !important;
  border-radius: var(--lbc-r-pill) !important;
  font-family: var(--lbc-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html:not(#_) .flight-scan-dialog .flight-scan-actions > .btn-ghost {
  background: var(--lbc-surface) !important;
  border: 1px solid var(--lbc-ctl-line) !important;
  color: var(--lbc-brand) !important;
}
html.wb-new:not(#_) :is(#flight-scan-body [data-flight-pick], #flight-scan-body .pass-actions > button, #crew-file-pick) {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* One window padding: 22px from the window's edge to its title row, fields and footer (controls mock .win; hunt M4:
   17 – 34px before). Windows with cards inside keep the cards' own inset. */
html:not(#_) .sheet-modal-panel.exp-win,
html:not(#_) #m-crew-file > .sheet-modal-panel {
  padding-left: 22px !important;
  padding-right: 22px !important;
}
html:not(#_) .sheet-modal-panel.exp-win > .exp-win-head.lb-win-head {
  padding: 22px 0 10px !important;
}
html:not(#_) #m-crew-file > .sheet-modal-panel > .lb-win-head {
  padding: 12px 0 6px !important;
}
html:not(#_) #pnd-sheet .pnd-card,
html:not(#_) .lb-cf-card {
  padding: 22px !important;
}
html:not(#_) #pnd-sheet .pnd-card {
  padding-bottom: max(22px, var(--safe-bot, env(safe-area-inset-bottom, 0px))) !important;
}
html:not(#_) dialog.lpd-formwin > .nu-win-head.lb-win-head,
html.lb-app:not(#_) dialog.lpd-formwin .nu-hotel-edit > .lb-win-head {
  padding: 22px 22px 10px !important;
}
/* the website's stay window: its card is the window's body, so the head sits in its padding */
html.wb-new:not(#_) dialog.nu-hotel-win .nu-hotel-edit {
  padding: 22px 22px 12px !important;
}
html.wb-new:not(#_) dialog.nu-hotel-win .nu-hotel-edit > .lb-win-head {
  padding: 0 0 12px !important;
}
html.wb-new:not(#_) dialog#crew-file-modal {
  padding: 22px !important;
}
html:not(#_) dialog.nu-flight-win .flight-edit-card.nu-pass-form {
  padding-left: 22px !important;
  padding-right: 22px !important;
}
/* the top bar clears the iPhone notch / camera (owner 2026-11-15: "Travellers" sat under it, the close X cut off) */
html:not(#_) :is(.mw-edit-win-head, .nu-edit-win-head).lb-win-head {
  padding: calc(12px + var(--safe-top, env(safe-area-inset-top, 0px))) 22px 12px !important;
}
html:not(#_) dialog.plc-add .plc-add-left {
  padding: 22px !important;
}
html:not(#_) .sheet-modal-panel.exp-win > :is(.mw-field, .exp-more, .exp-receipt-line, .plan-error) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html:not(#_) .sheet-modal-panel.exp-win > .nu-ed-bar,
html:not(#_) #m-crew-file > .sheet-modal-panel > .sheet-modal-actions {
  margin-left: -22px !important;
  margin-right: -22px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

/* Date and time fields in a window read "9 Dec 2026" / "2:00 PM" (shared/lb-picker.js faces; hunt M9 2026-11-12):
   the browser's "12/09/2026" / "mm/dd/yyyy" is hidden under the face. The value and the picker are unchanged. */
html:not(#_) input.lb-faced {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
html:not(#_) input.lb-faced::-webkit-datetime-edit {
  opacity: 0;
}
.lb-face {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin: 0;
  overflow: hidden;
  color: var(--lbc-ink);
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
}
.lb-face[hidden] {
  display: none;
}
.lb-face.is-empty {
  color: #8f968b;
}
.lb-face.is-off {
  opacity: 0.55;
}

/* Drag handles (Prep ⋮⋮, Library, LakBi's plan, the planner's grips): the finger lands on the handle itself, never on
   its drawn icon. touch-action isn't inherited, so a touch starting on the icon's svg scrolled the page and the drag
   broke on phones (owner 2026-11-14: "dragging to update order crashed the app"). */
.prep-drag svg,
.lib-drag svg,
.lbpd-drag svg,
[data-prep-drag] svg,
[data-lib-drag] svg,
[data-lib-list-drag] svg,
[data-lbpd-drag] svg {
  pointer-events: none;
}

/* ——— Words under the tray's icons (owner-approved mock 2026-11-14; shared/tray-words.js sets data-word and marks the bar
   .lb-has-words — no :has(), Chrome 90 floor) ———
   Every tab's tray: a short word under each icon, the bottom tabs' way ("Map", "Save place", "Add cost"). One button size
   for every item, shrinking with the screen so five fit on a 320px phone; the icon keeps 20px; the main add / Edit stay
   the trip colour (a rounded tile, its word in white). Save / Cancel pills (editing) are untouched. */
:root { --bb-wbtn: min(70px, calc((100vw - 44px) / 5)); --bb-wh: 56px; --bb-wfont: 10.5px; --bb-wls: 0px; }
@media (max-width: 380px) { :root { --bb-wfont: 10px; } }
@media (max-width: 340px) { :root { --bb-wh: 52px; --bb-wfont: 9.5px; --bb-wls: -0.2px; } }
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack).lb-has-words {
  border-radius: 24px !important;
  padding: 5px !important;
  gap: 2px !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > [data-word]:is(.exp-fab, .lakbi-chat-launch.is-docked) {
  position: relative !important;
  flex: 0 0 var(--bb-wbtn) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: var(--bb-wbtn) !important;
  min-width: var(--bb-wbtn) !important;
  max-width: var(--bb-wbtn) !important;
  height: var(--bb-wh) !important;
  min-height: var(--bb-wh) !important;
  max-height: var(--bb-wh) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 19px !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > [data-word]:is(.exp-fab, .lakbi-chat-launch.is-docked)::after {
  content: attr(data-word) !important;
  position: static !important;
  inset: auto !important;
  transform: none !important; /* an older hint rule centres its ::after with translateX(-50%) */
  translate: none !important;
  opacity: 1 !important;
  visibility: inherit !important; /* follows the tray: a window that hides the tray hides its words too (2026-11-16) */
  pointer-events: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  animation: none !important;
  display: block !important;
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  font: 700 var(--bb-wfont)/1.15 var(--lbc-sans, "DM Sans", system-ui, sans-serif) !important;
  letter-spacing: var(--bb-wls) !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  color: inherit !important;
}
/* the icon zone: one height on every button, so the words sit on one line across the bar */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > [data-word].exp-fab .exp-fab-ico,
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > [data-word]:is(.exp-fab-add, .exp-fab-add-file, .exp-fab-edit)::before {
  flex: none !important;
  width: 24px !important;
  height: 24px !important;
  -webkit-mask-size: 22px 22px !important;
  mask-size: 22px 22px !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .lakbi-chat-launch.is-docked[data-word] {
  color: var(--lbc-brand, #1f3d30) !important;
  background: transparent !important;
  box-shadow: none !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .lakbi-chat-launch.is-docked[data-word] .lakbi-mascot {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .lakbi-chat-launch.is-docked[data-word] .lakbi-mascot img { width: 24px !important; height: 24px !important; }
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .lakbi-chat-launch.is-docked[data-word] :is(.lakbi-launch-text, .lakbi-launch-dot) { display: none !important; }

/* ——— Travellers window (owner 2026-11-15: "what kind of trash ui is this?") ———
   The roles folded into one quiet line (shared/trip-core.js crewRoleLegendHtml); the email its own grey line under the
   name, no brackets. Web + app. */
html:not(#_) details.wb-role-legend { margin: 0 0 14px; font-size: 0.86rem; line-height: 1.4; color: var(--ink-soft, #66706a); }
html:not(#_) details.wb-role-legend > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; font-weight: 600; color: var(--lbc-accent, #1f6b45); list-style: none; }
html:not(#_) details.wb-role-legend > summary::-webkit-details-marker { display: none; }
html:not(#_) details.wb-role-legend > summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
html:not(#_) details.wb-role-legend[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
html:not(#_) details.wb-role-legend > ul { display: grid; gap: 8px; margin: 6px 0 0; padding: 12px 14px; list-style: none; border: 1px solid var(--lbc-line, #e8e0cf); border-radius: 12px; background: var(--lbc-surface, #fffdf8); }
html:not(#_) details.wb-role-legend li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 10px; }
html:not(#_) details.wb-role-legend li b { color: var(--ink, #1f2a24); font-weight: 600; }
html:not(#_) :is(.mw-person-id, .detail-person-id) > small.traveller-email { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 400; color: var(--ink-soft, #66706a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Day Tour in the tray: its ▶ the size of the tray's other icons (it was smaller than PDF's — 2026-11-15) */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > :is(.exp-fab-dock, .exp-fab-stack) > .exp-fab-tour[data-word] svg {
  width: var(--bb-ico, 22px) !important;
  height: var(--bb-ico, 22px) !important;
}

/* The day's "Tonight · <stay>" row opens that stay's details (Insights 2026-11-16). Web + app. */
.nu-dp-hotel.is-tappable { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.15s ease; }
.nu-dp-hotel.is-tappable:active { background-color: rgba(31, 61, 48, 0.06); }
.nu-dp-hotel.is-tappable:focus-visible { outline: 2px solid var(--forest, #1f3d30); outline-offset: 2px; }

/* six buttons (the owner of an Official guide: LakBi, the plan, Save place, PDF, Edit, Map): each a little narrower, so
   the last one is never cut off (bug hunt 2026-11-26) */
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > .exp-fab-dock > :first-child:nth-last-child(n + 6),
html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > .exp-fab-dock > :first-child:nth-last-child(n + 6) ~ * {
  --bb-wbtn: min(62px, calc((100vw - 46px) / 6));
  --bb-wls: -0.2px;
}
@media (max-width: 380px) {
  html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > .exp-fab-dock > :first-child:nth-last-child(n + 6),
  html:not(#lb-bb) .exp-fab-wrap:not(.is-editing) > .exp-fab-dock > :first-child:nth-last-child(n + 6) ~ * { --bb-wfont: 9px; --bb-wls: -0.3px; }
}
