/* Personal itinerary editor.  The jp- prefix keeps this layer separate from
   the existing Sian schedule and shared trip lock styles. */

/* Card gestures move a visit; editable fields retain native text selection. */
body.journey-app .jp-row,
body.journey-app .jp-row * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
body.journey-app .jp-row :is(input,textarea,[contenteditable=true]) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* App-wide selection lock (owner 2026-09-14): the journey app behaves like a
   native app — no text selection, no callout/magnifier anywhere; only form
   fields and editable regions keep selection. Copy affordances arrive later
   as explicit copy buttons where the owner asks for them. */
body.journey-app,
body.journey-app * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
body.journey-app :is(input,textarea,[contenteditable=true]) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

:root {
  --jp-ink: #20302d;
  --jp-muted: #64716a;
  --jp-line: #d9e3dd;
  --jp-paper: #fbfcf8;
  --jp-surface: #ffffff;
  --jp-ground: #f1f5f1;
  --jp-sea: #176761;
  --jp-sea-soft: #edf7f5;
  --jp-orange: #d85c27;
  --jp-orange-soft: #fff0e8;
  --jp-danger: #a5392b;
  --jp-radius: 14px;
}

body.journey-app .jp-editor,
body.journey-app .jp-dialog,
body.journey-app .jp-toast {
  color: var(--jp-ink);
  font-family: inherit;
}

body.journey-app .jp-editor {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--jp-line);
}

body.journey-app .jp-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0 10px;
}

body.journey-app .jp-kicker {
  margin: 0 0 3px;
  color: var(--jp-sea);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.journey-app .jp-editor h2,
body.journey-app .jp-dialog h2 {
  margin: 0;
  color: var(--jp-ink);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
}

body.journey-app .jp-route-summary {
  margin: 4px 0 0;
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.journey-app .jp-head-actions,
body.journey-app .jp-editor-foot,
body.journey-app .jp-row-minus,
body.journey-app .jp-dialog-actions,
body.journey-app .jp-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

body.journey-app .jp-head-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

body.journey-app .jp-head-actions button,
body.journey-app .jp-editor-foot button,
body.journey-app .jp-empty .jp-add,
body.journey-app .jp-row-minus,
body.journey-app .jp-dialog button,
body.journey-app .jp-filter {
  /* Pass-2 C3: the 44px target gate applies on desktop too, not only ≤560px. */
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--jp-line);
  border-radius: 10px;
  background: var(--jp-surface);
  color: var(--jp-sea);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

body.journey-app .jp-head-actions button:hover,
body.journey-app .jp-editor-foot button:hover,
body.journey-app .jp-empty .jp-add:hover,
body.journey-app .jp-row-minus:hover,
body.journey-app .jp-dialog button:hover,
body.journey-app .jp-filter:hover {
  border-color: var(--jp-sea);
}

body.journey-app .jp-head-actions .jp-undo,
body.journey-app .jp-editor-foot .jp-add,
body.journey-app .jp-empty .jp-add,
body.journey-app .jp-dialog .jp-primary {
  border-color: var(--jp-sea);
  background: var(--jp-sea);
  color: #fff;
}

body.journey-app .jp-head-actions .jp-undo:hover,
body.journey-app .jp-editor-foot .jp-add:hover,
body.journey-app .jp-empty .jp-add:hover,
body.journey-app .jp-dialog .jp-primary:hover {
  background: #104e4b;
}

body.journey-app .jp-local-note {
  margin: 0 0 12px;
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.journey-app .jp-list {
  display: grid;
  gap: 9px;
}

/* Finger-first rows: vertical panning stays native until a hold lifts the
   row; the lifted row then owns the gesture (see onTouchMove). */
body.journey-app .jp-row {
  position: relative;
  min-width: 0;
  padding: 11px 12px 10px;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-surface);
  box-shadow: 0 4px 14px rgba(32, 48, 45, .045);
  touch-action: pan-y;
  transition: transform .18s ease;
}

body.journey-app .jp-row.jp-lifted {
  position: relative;
  z-index: 3;
  transform: scale(1.012);
  box-shadow: 0 10px 24px rgba(32, 48, 45, .16);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Swipe-to-reveal delete (owner 2026-09-14): sliding the row content left
   exposes a fixed-width delete button. The underlay is a TRANSPARENT frame
   carrying the row's own padding, so a closed row shows zero red — the first
   full-bleed red layer bled through the padding ring and painted a permanent
   red border on every row. The button itself is the only red surface. */
body.journey-app .jp-row.jp-swiping,
body.journey-app .jp-row.jp-swipe-open { overflow: hidden; }

body.journey-app .jp-row-under {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 11px 12px 10px; /* .jp-row padding — the button lives in the content box */
}

body.journey-app .jp-row-under button {
  width: 88px;
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--jp-danger);
  color: #fff;
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.journey-app .jp-row .jp-row-main {
  position: relative;
  z-index: 1;
  background: var(--jp-surface);
  border-radius: inherit;
  transition: transform .18s ease;
}

body.journey-app .jp-row.jp-swiping .jp-row-main { transition: none; }

body.journey-app .jp-row.jp-swiping {
  transition: none;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.journey-app #jto-update-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: #143836;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  font-size: 14px;
}

body.journey-app #jto-update-bar button {
  border: 0;
  border-radius: 999px;
  background: #ffb454;
  color: #143836;
  font: inherit;
  font-weight: 800;
  padding: 8px 14px;
}

/* No armed-state paint (owner 2026-09-14: the red border read as an error and
   cluttered the drag); the sliding row plus the revealed red delete button are
   feedback enough. The jp-swipe-armed class stays on the row for logic/tests. */

body.journey-app .jp-row:focus-visible {
  outline: 3px solid var(--jp-sea);
  outline-offset: 2px;
}

body.journey-app #day-tabs button.jp-day-drop {
  outline: 3px solid var(--jp-orange);
  outline-offset: 1px;
  background: var(--jp-orange-soft);
}

body.journey-app .jp-row.jp-row-locked {
  border-color: #c8d7d1;
  background: #f7faf8;
}

body.journey-app .jp-row.jp-drop-before,
body.journey-app .jp-row.jp-drop-after {
  position: relative;
}
body.journey-app .jp-row.jp-drop-before::before,
body.journey-app .jp-row.jp-drop-after::after {
  position: absolute;
  right: 8px;
  left: 8px;
  height: 4px;
  border-radius: 4px;
  background: var(--jp-orange);
  content: "";
  pointer-events: none;
}
body.journey-app .jp-row.jp-drop-before::before { top: -7px; }
body.journey-app .jp-row.jp-drop-after::after { bottom: -7px; }

body.journey-app .jp-row-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 44px;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

body.journey-app .jp-row-minus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--jp-danger);
  font-size: 24px;
  line-height: 1;
}

body.journey-app .jp-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 38px;
  border-radius: 50%;
  background: var(--jp-orange-soft);
  color: var(--jp-orange);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

body.journey-app .jp-row-copy { min-width: 0; }

body.journey-app .jp-row-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.journey-app .jp-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

body.journey-app .jp-row-top h3 {
  min-width: 0;
  margin: 1px 0 0;
  overflow-wrap: anywhere;
  color: var(--jp-ink);
  font-size: var(--fs-title);
  font-weight: 850;
  line-height: 1.35;
}

body.journey-app .jp-row-time {
  flex: 0 0 auto;
  max-width: 48%;
  color: var(--jp-sea);
  font-size: var(--fs-caption, 12px);
  line-height: 1.4;
  text-align: right;
}

body.journey-app .jp-time {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid var(--jp-line);
  border-radius: var(--chip-radius, 999px);
  background: var(--jp-sea-soft);
  color: var(--jp-sea);
  cursor: pointer;
  font-size: var(--fs-caption, 12px);
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

body.journey-app .jp-time:hover { border-color: var(--jp-sea); }
body.journey-app .jp-time-readonly { display: inline-flex; align-items: center; cursor: default; }

body.journey-app .jp-row-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}

body.journey-app .jp-status-label { display: inline-flex; }

body.journey-app .jp-status-label select {
  display: inline-block;
  /* Native select exception: the row keeps one status control (Pass-1 C4);
     the 44px hit area is enforced here instead of swapping the element. */
  min-height: 44px;
  padding: 4px 26px 4px 8px;
  border: 1px solid var(--jp-line);
  border-radius: var(--chip-radius, 999px);
  background: var(--jp-surface);
  color: var(--jp-sea);
  cursor: pointer;
  font-size: var(--fs-caption, 12px);
  font-weight: 800;
}

body.journey-app .jp-status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 8px;
  border-radius: var(--chip-radius, 999px);
  background: #e7eeeb;
  color: var(--jp-muted);
  font-size: var(--fs-caption, 12px);
  font-weight: 850;
}

body.journey-app .jp-status-locked { background: #dfeae5; color: var(--jp-ink); }

body.journey-app .jp-stay {
  color: var(--jp-muted);
  font-size: var(--fs-caption, 12px);
}

body.journey-app .jp-fact {
  margin: 6px 0 0;
  color: var(--jp-muted);
  font-size: var(--fs-body, 13px);
  line-height: 1.45;
}

/* Desktop control alignment: the time, detail and TMAP controls share one
   44px border-box geometry so their top and bottom edges match within the
   row-links flex line. inline-flex centers labels without baseline offsets;
   long labels wrap taller instead of clipping. Mobile already enforces 44px. */
body.journey-app .jp-map {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--jp-line);
  border-radius: 10px;
  background: var(--jp-surface);
  color: var(--jp-sea);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

body.journey-app .jp-map:hover { border-color: var(--jp-sea); }

/* One-tap confirmation of a candidate lives beside the row's other controls.
   It borrows the same 44px border-box geometry; only the fill marks it as the
   affirmative action, and edit mode never renders it. */
body.journey-app .jp-confirm {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--jp-sea);
  border-radius: 10px;
  background: var(--jp-sea);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.journey-app .jp-confirm:hover { filter: brightness(1.05); }

body.journey-app .jp-tmap {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid #cf9e4c;
  border-radius: 10px;
  background: #fff8e8;
  color: #8a5a0a;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

body.journey-app .jp-tmap:hover { border-color: #8a5a0a; }

body.journey-app .jp-readonly-badge,
body.journey-app .jp-readonly-note {
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.journey-app .jp-empty {
  display: grid;
  gap: 3px;
  padding: 17px 14px;
  border: 1px dashed var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-ground);
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.journey-app .jp-empty strong { color: var(--jp-ink); font-size: 14px; }

body.journey-app .jp-empty .jp-add { min-height: 44px; justify-self: start; margin-top: 8px; }

body.journey-app .jp-recovery {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-ground);
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.45;
}
body.journey-app .jp-recovery summary {
  color: var(--jp-sea);
  cursor: pointer;
  font-weight: 850;
}
body.journey-app .jp-recovery p { margin: 8px 0 4px; }
body.journey-app .jp-recovery ul { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
body.journey-app .jp-recovery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
body.journey-app .jp-recovery-row button {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--jp-line);
  border-radius: 10px;
  background: var(--jp-surface);
  color: var(--jp-sea);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

body.journey-app .jp-gesture-hint {
  margin: 0 0 10px;
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (hover: hover) {
  body.journey-app .jp-hint-touch { display: none; }
}

body.journey-app .jp-add-row {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border: 1px dashed var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-ground);
  color: var(--jp-sea);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

body.journey-app .jp-add-row:hover { border-color: var(--jp-sea); }

body.journey-app .jp-time-advanced summary {
  cursor: pointer;
  color: var(--jp-sea);
  font-size: 12px;
  font-weight: 800;
}

body.journey-app .jp-editor-foot {
  justify-content: space-between;
  margin-top: 12px;
}

body.journey-app .jp-count {
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

body.journey-app .jp-dialog {
  width: min(520px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(86dvh, 720px);
  margin: auto;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--jp-line);
  border-radius: 16px;
  background: var(--jp-paper);
  box-shadow: 0 20px 60px rgba(32, 48, 45, .24);
}

body.journey-app .jp-dialog::backdrop { background: rgba(20, 36, 33, .42); }

body.journey-app .jp-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.journey-app .jp-dialog-head > div { min-width: 0; }
body.journey-app .jp-dialog-head p:not(.jp-kicker) { margin: 3px 0 0; color: var(--jp-muted); font-size: 12px; line-height: 1.45; }

body.journey-app .jp-dialog-close {
  flex: 0 0 auto;
  min-height: 44px !important;
  padding: 7px 10px !important;
}

body.journey-app .jp-search { display: block; margin-bottom: 10px; }

body.journey-app .jp-search input,
body.journey-app .jp-time-fields input,
body.journey-app .jp-time-fields select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--jp-line);
  border-radius: 10px;
  background: var(--jp-surface);
  color: var(--jp-ink);
  font-size: 14px;
}

body.journey-app .jp-search input:focus,
body.journey-app .jp-time-fields input:focus,
body.journey-app .jp-time-fields select:focus { border-color: var(--jp-sea); }

body.journey-app .jp-filters {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 2px 0 5px;
  scrollbar-width: none;
}

body.journey-app .jp-filters::-webkit-scrollbar { display: none; }
body.journey-app .jp-filter { flex: 0 0 auto; }
body.journey-app .jp-filter.is-active { border-color: var(--jp-sea); background: var(--jp-sea); color: #fff; }

body.journey-app .jp-picker-count {
  min-height: 22px;
  margin: 4px 0 8px;
  color: var(--jp-muted);
  font-size: 12px;
}

body.journey-app .jp-picker-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.journey-app .jp-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--jp-line);
  border-radius: 10px;
  background: var(--jp-surface);
}

body.journey-app .jp-picker-row > div { min-width: 0; }
body.journey-app .jp-picker-row strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
body.journey-app .jp-picker-row span { display: block; margin-top: 2px; color: var(--jp-muted); font-size: 12px; }
body.journey-app .jp-picker-row button { flex: 0 0 auto; }
body.journey-app .jp-picker-row button:disabled { background: var(--jp-ground); color: var(--jp-muted); cursor: default; opacity: .8; }
body.journey-app .jp-picker-empty { padding: 20px 10px; color: var(--jp-muted); font-size: 13px; text-align: center; }

body.journey-app .jp-time-fields {
  display: grid;
  gap: 11px;
}

body.journey-app .jp-time-fields label {
  display: grid;
  gap: 4px;
  color: var(--jp-ink);
  font-size: 12px;
  font-weight: 800;
}

body.journey-app .jp-input-hint {
  margin-left: 5px;
  color: var(--jp-muted);
  font-size: 12px;
  font-weight: 500;
}

body.journey-app .jp-dialog-error {
  margin: 10px 0 0;
  color: var(--jp-danger);
  font-size: 12px;
  line-height: 1.45;
}

body.journey-app .jp-dialog-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

body.journey-app .jp-dialog .jp-secondary { color: var(--jp-muted); }

body.journey-app .jp-day-options {
  display: grid;
  gap: 8px;
}

body.journey-app .jp-day-options button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
}

body.journey-app .jp-day-options span { color: var(--jp-muted); font-size: 12px; font-weight: 500; }

body.journey-app .jp-toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--journey-nav-h, 78px) + 16px);
  z-index: 150;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 13px;
  border: 1px solid var(--jp-line);
  border-radius: 10px;
  background: var(--jp-ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(32, 48, 45, .2);
}

body.journey-app .jp-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.journey-app .jp-editor :is(button, select, input):focus-visible,
body.journey-app .jp-dialog :is(button, select, input):focus-visible {
  outline: 3px solid var(--jp-sea);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  body.journey-app .jp-editor button,
  body.journey-app .jp-editor select,
  body.journey-app .jp-editor input,
  body.journey-app .jp-editor a,
  body.journey-app .jp-dialog button,
  body.journey-app .jp-dialog select,
  body.journey-app .jp-dialog input,
  body.journey-app .jp-dialog a,
  body.journey-app .jp-filter {
    min-height: 44px;
  }

  body.journey-app .jp-editor-head { display: grid; grid-template-columns: 1fr; }
  body.journey-app .jp-head-actions { justify-content: flex-start; }
  body.journey-app .jp-row-main { grid-template-columns: 25px minmax(0, 1fr) 44px; }
  body.journey-app .jp-number { width: 25px; }
  body.journey-app .jp-row-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  body.journey-app .jp-row-time {
    max-width: none;
    text-align: left;
  }
  body.journey-app .jp-row-links {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 8px;
  }
  body.journey-app .jp-status-label select,
  body.journey-app .jp-search input,
  body.journey-app .jp-time-fields input,
  body.journey-app .jp-time-fields select { font-size: 16px; }
  body.journey-app .jp-editor-foot { align-items: flex-start; flex-direction: column; }
  body.journey-app .jp-count { text-align: left; }
  body.journey-app .jp-dialog {
    align-self: end;
    width: 100%;
    max-width: 100%;
    max-height: min(88dvh, 720px);
    margin: auto 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }
  body.journey-app .jp-toast { right: 12px; bottom: calc(var(--journey-nav-h, 78px) + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  body.journey-app .jp-toast { transition: none; }
}

.jp-place-summary{font-size:12px;line-height:1.45;margin-top:5px}.jp-place-summary p{margin:3px 0}.jp-place-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.jp-place-review{color:var(--muted,#586573)}

/* The connecting leg belongs to the adjacent stop pair, outside the draggable row. */
body.journey-app .jp-leg { display:flex; gap:12px; margin:0 12px; padding:8px 12px; color:var(--sn-ink2,#36454f); font-size:13px; line-height:1.5; }
body.journey-app .jp-leg > span:first-child { color:var(--sn-blue,#176b87); font-size:20px; }
body.journey-app .jp-leg small { display:block; color:var(--sn-mute,#647078); font-size:12px; }

/* Shared place action: same operation from discovery, pick rails and map sheet. */
body.journey-app .jp-place-plan {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--sn-line2, #d6d9df);
  border-radius: 10px; background: var(--sn-blue-soft, #e8f0ff);
  color: var(--sn-blue, #2b6de9); font: inherit; font-size: 13px; font-weight: 700;
  line-height: 1.4; white-space: normal; text-align: center;
}
body.journey-app .c-acts:has(.jp-place-plan) { flex-wrap: wrap; gap: 6px 12px; }
body.journey-app .jp-placement { margin: 8px 0 0; color: var(--sn-ink2, #4b5563); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
body.journey-app .jp-place-note { margin: 4px 0 14px; color: var(--sn-ink2, #4b5563); font-size: 13px; line-height: 1.6; }
body.journey-app .jp-place-days { display: grid; gap: 10px; }
body.journey-app .jp-place-day { border: 1px solid var(--sn-line, #e6e8ec); border-radius: 12px; padding: 12px; }
body.journey-app .jp-place-day h3 { margin: 0 0 8px; font-size: 15px; }
body.journey-app .jp-placement-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 6px; }
body.journey-app .jp-placement-row span { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
body.journey-app .jp-place-add,
body.journey-app .jp-placement-row button {
  min-height: 44px; padding: 9px 12px; border: 1px solid var(--sn-line2, #d6d9df);
  border-radius: 10px; color: var(--sn-blue, #2b6de9); background: var(--sn-blue-soft, #e8f0ff);
  font: inherit; font-size: 14px; font-weight: 700;
}
body.journey-app .jp-place-add { width: 100%; }
body.journey-app .jp-place-add:disabled { opacity: .55; cursor: not-allowed; }
body.journey-app .jp-place-result { min-height: 24px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
body.journey-app #schedule-spine .jp-row { scroll-margin-block: 100px; }
@media (max-width: 360px) {
  body.journey-app .jp-placement-row { grid-template-columns: minmax(0, 1fr); }
}

/* Pass-6 (D2 S1/S2): one batch add per surface. The day choice itself is the
   itinerary's existing dialog, so these only carry the entry control. */
.disc-compare-add,
.disc-batch {
  display: block; width: 100%; min-height: 44px; margin: 12px 0 0; padding: 10px 12px;
  border: 1px solid var(--sn-line2, #d6d9df); border-radius: 10px; background: var(--sn-blue-soft, #e8f0ff);
  color: var(--sn-blue, #2b6de9); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4;
}
.disc-compare-add[hidden],
.disc-fav-batch[hidden] { display: none; }
body.journey-app .disc-fav-batch { margin: 0 32px; }
@media (max-width: 900px) {
  body.journey-app .disc-fav-batch { margin: 0 16px; }
}

/* Compact itinerary: the row carries orientation; its sheet carries actions. */
body.journey-app .jp-row {
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
}
body.journey-app .jp-row-main { grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 6px; }
body.journey-app .jp-row-main--tools { grid-template-columns: minmax(0, 1fr) auto 44px; }
body.journey-app .jp-row-tools { display: flex; align-items: center; gap: 2px; }
body.journey-app .jp-tool {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; min-width: 34px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 8px; background: none;
  color: var(--jp-muted); font-size: 17px; line-height: 1; font-weight: 700; cursor: pointer;
}
body.journey-app .jp-tool:hover { background: var(--jp-ground); color: var(--jp-ink); }
body.journey-app .jp-tool:disabled { opacity: .35; cursor: default; }
body.journey-app .jp-tool:disabled:hover { background: none; color: var(--jp-muted); }
body.journey-app .jp-tool-remove { color: var(--jp-danger); font-size: 20px; }
body.journey-app .jp-row-copy > h3 {
  margin: 0;
  color: var(--jp-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 22px;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.journey-app .jp-row-meta { margin: 0; gap: 8px; flex-wrap: nowrap; min-width: 0; }
body.journey-app .jp-row .jp-time {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 12px;
  font-weight: 650;
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  flex-shrink: 1;
}
body.journey-app .jp-compact-status,
body.journey-app .jp-compact-stay { color: var(--jp-muted); font-size: 12px; white-space: nowrap; }
body.journey-app .jp-row-menu {
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 4px; background: none;
  color: var(--jp-muted); font-size: 13px; letter-spacing: 2px; cursor: pointer;
}
body.journey-app .jp-row-menu:hover { background: var(--jp-ground); color: var(--jp-ink); }
body.journey-app .jp-row.jp-lifted {
  z-index: 10; pointer-events: none; transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(32,48,45,.18); transition: none;
}
body.journey-app .jp-leg { transition: transform .18s ease; }
body.journey-app .jp-row.jp-lifted + .jp-leg { visibility: hidden; }
body.journey-app .jp-actions-dialog,
body.journey-app .jp-time-dialog {
  position: fixed; inset: auto 0 0; margin: auto auto 0;
  box-sizing: border-box; width: min(100%, 560px); max-width: 100%;
  max-height: 88dvh; padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0; border-bottom: 0;
  overscroll-behavior: contain;
}
body.journey-app .jp-actions-dialog[open],
body.journey-app .jp-time-dialog[open] { animation: jp-sheet-in .18s ease-out; }
@keyframes jp-sheet-in { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
body.journey-app .jp-action-list { display: grid; }
body.journey-app .jp-action-list :is(button,a) {
  box-sizing: border-box; display: flex; justify-content: flex-start; align-items: center;
  min-height: 48px; width: 100%; margin: 0; padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--jp-line); border-radius: 0;
  color: var(--jp-ink); background: none; font: inherit; font-size: 14px; font-weight: 650;
  text-align: left; text-decoration: none; white-space: normal;
}
body.journey-app .jp-action-list .jp-row-minus { color: var(--jp-danger); }
body.journey-app .jp-action-list small { margin-left: auto; padding-left: 10px; color: var(--jp-muted); font-size: 12px; font-weight: 500; }
body.journey-app .jp-action-facts { margin-top: 14px; color: var(--jp-muted); font-size: 12px; line-height: 1.5; }
body.journey-app .jp-actions-dialog .jto-row { margin-top: 12px; }
body.journey-app .jp-time-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
body.journey-app .jp-time-presets button { padding: 8px 4px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
body.journey-app .jp-time-presets button[aria-pressed="true"] { border-color: var(--jp-orange); color: var(--jp-orange); }
@media (max-width:560px) {
  body.journey-app .jp-row .jp-time { min-height: 44px; }
  body.journey-app .jp-row-copy > h3 { font-size: 14px; }
}
@media (max-width:360px) {
  body.journey-app .jp-compact-stay { display: none; }
  body.journey-app .jp-tool { width: 28px; min-width: 28px; font-size: 15px; }
  body.journey-app .jp-actions-dialog,
  body.journey-app .jp-time-dialog { padding-inline: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  body.journey-app .jp-row, body.journey-app .jp-leg { transition: none; }
  body.journey-app .jp-actions-dialog[open], body.journey-app .jp-time-dialog[open] { animation: none; }
}

/* Shared place detail retains its originating tab and list underneath. */
body.journey-app #map-sheet.jp-context-detail {
  display: flex; flex-direction: column; position: fixed;
  inset: var(--jp-detail-top, 76px) max(12px, calc((100vw - 760px) / 2)) calc(var(--journey-nav-h, 78px) + env(safe-area-inset-bottom) + 8px);
  max-height: none; width: auto; margin: 0; padding: 20px;
  overflow-y: auto; overscroll-behavior: contain; z-index: 120;
  border: 1px solid var(--border-hairline); border-radius: 16px;
  box-shadow: 0 8px 36px #183d3820; animation: none;
}
body.journey-app #map-sheet.jp-context-detail .grab,
body.journey-app #map-sheet.jp-context-detail .sheet-list { display: none; }
body.journey-app #map-sheet.jp-context-detail .sheet-head { order: 0; flex-shrink: 0; gap: 12px; }
body.journey-app #map-sheet.jp-context-detail .sheet-close { order: -1; min-width: 44px; min-height: 44px; font-size: 30px; }
body.journey-app #map-sheet.jp-context-detail .sheet-title-group { flex: 1; }
body.journey-app #map-sheet.jp-context-detail h3 { font-size: 22px; line-height: 1.35; }
body.journey-app #map-sheet.jp-context-detail .acts { order: 1; flex-shrink: 0; margin: 16px 0 8px; }
body.journey-app #map-sheet.jp-context-detail .fact { order: 2; flex-shrink: 0; }
body.journey-app #map-sheet.jp-context-detail .sheet-detail { display: grid; order: 3; }
body.journey-app #map-sheet.jp-context-detail .jp-view-map { background: var(--journey-sea, #24675e); color: white; }
body.journey-app .jp-row .jp-time { padding: 0 8px; border: 1px solid #356b6030; border-radius: 10px; background: #edf5f1; color: #225b50; }
body.journey-app .jp-placement-row { grid-template-columns: minmax(0, 1fr) auto auto; }
@media(max-width:560px) {
  body.journey-app .jp-placement-row { grid-template-columns: 1fr 1fr; }
  body.journey-app .jp-placement-row > span { grid-column: 1 / -1; }
  body.journey-app #map-sheet.jp-context-detail { padding: 16px; }
}
body.journey-app #map-sheet.jp-context-detail .acts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
body.journey-app #map-sheet.jp-context-detail .acts > :is(a,button) {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid #356b6028;
  border-radius: 12px; background: #f2f7f4; color: #225b50;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4;
  text-align: center; text-decoration: none; white-space: nowrap;
}
body.journey-app #map-sheet.jp-context-detail .acts > .jp-place-plan { background: #225b50; color: #fff; }
body.journey-app #map-sheet.jp-context-detail .sn-place-name { display: none; }
body.journey-app #map-sheet.jp-context-detail .sheet-head { position: sticky; top: -16px; padding: 8px 0; background: var(--paper); z-index: 2; }

/* Browse controls keep the result list and every applied condition legible. */
body.journey-app #day-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: visible; }
body.journey-app #day-tabs button { min-width: 0; min-height: 48px; padding: 10px 2px; white-space: nowrap; font-size: 13px; }
body.journey-app .jp-toast { pointer-events: none; }
body.journey-app #disc-view > .journey-screen-head { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:20px 20px 12px; }
body.journey-app #disc-view > .journey-screen-head h1 { margin:0;font-size:26px; }
body.journey-app #disc-view > .journey-screen-head .journey-actions { grid-column:1/-1;grid-row:2;margin:0;gap:8px; }
body.journey-app #disc-view .disc-map-link { grid-column:2;grid-row:1;min-height:44px;border:0;background:none;color:var(--journey-sea);font:inherit;font-size:13px;font-weight:700; }
body.journey-app #disc-view .disc-head { display:flex;flex-wrap:wrap;align-items:center;gap:8px;position:sticky;top:0;z-index:25;margin:0;padding:10px 20px;background:var(--paper);border-bottom:1px solid var(--journey-line); }
body.journey-app #disc-view .disc-head:focus-within { position:static; }
body.journey-app #disc-view .disc-head > label.sr-only { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }
body.journey-app #disc-view #disc-q { order:0;margin:0;min-width:0;width:100%; }
body.journey-app #disc-view #disc-cats { order:1;flex-basis:100%;margin:0;padding:0 0 2px; }
body.journey-app #disc-view .journey-filters { order:2;flex:1 1 120px;min-width:0;margin:0;padding:0 10px;border-radius:10px; }
body.journey-app #disc-view .journey-filters summary { min-height:44px;gap:8px;font-size:13px; }
body.journey-app #disc-view .journey-filters[open] { flex-basis:100%; }
body.journey-app #disc-view .journey-filters :is(#disc-tags,#disc-dates) { margin:0; }
body.journey-app #disc-view .disc-meta { display:contents; }
body.journey-app #disc-view #disc-sort[hidden],body.journey-app #disc-view #disc-reset[hidden],body.journey-app #disc-view .disc-active-filters[hidden] { display:none!important; }
body.journey-app #disc-view .disc-sort-choice { order:3;flex:1 1 120px;min-width:0;max-width:100%;min-height:46px;border:1px solid var(--journey-line);border-radius:10px;padding:0 24px 0 10px;background:var(--journey-surface);color:var(--journey-ink);font:inherit;font-size:13px; }
body.journey-app #disc-view #disc-count { order:4;flex:1 1 120px;min-width:0;color:var(--journey-muted);font-size:12px; }
body.journey-app #disc-view #disc-reset { order:5;min-height:44px;padding:0 8px;border:0;background:none; }
body.journey-app #disc-view .disc-active-filters { order:6;display:flex;gap:6px;flex-wrap:wrap;width:100%; }
body.journey-app #disc-view .disc-applied { min-height:44px;max-width:100%;border:1px solid var(--journey-line);border-radius:10px;padding:7px 10px;background:var(--journey-tangerine-pale);color:var(--journey-ink);font:inherit;font-size:12px;text-align:left;overflow-wrap:anywhere; }
body.journey-app #disc-view .disc-compare-bar { order:7;flex-basis:100%; }
body.journey-app #disc-view .disc-top > div { flex:1;min-width:0; }
body.journey-app #disc-view .disc-photo-open { display:block;width:100%;border:0;background:none;padding:0;cursor:pointer; }
body.journey-app #disc-view .disc-name-open { display:block;max-width:100%;min-height:44px;border:0;background:none;color:inherit;padding:0;text-align:left;font:inherit;font-weight:800;cursor:pointer; }
body.journey-app #disc-view .disc-review-details { margin-top:4px; }
body.journey-app #disc-view .disc-review-details > summary { display:flex;align-items:center;gap:6px;min-height:44px;color:var(--journey-muted);font-size:12px;cursor:pointer;list-style:none; }
body.journey-app #disc-view .disc-review-details > summary::after { content:'⌄'; }
body.journey-app #disc-view .disc-review-details[open] > summary::after { content:'⌃'; }
body.journey-app #disc-view .disc-review-details .dbadge { max-width:100%;white-space:normal;overflow-wrap:anywhere; }
body.journey-app #disc-view :is(.disc-sort-choice,.disc-applied,.disc-photo-open,.disc-name-open,.disc-map-link):focus-visible { outline:2px solid var(--journey-sea);outline-offset:3px; }
@media(min-width:768px){
  body.journey-app #disc-view .disc-head { padding:12px 32px; }
  body.journey-app #disc-view > .journey-screen-head { padding:24px 32px 12px; }
}
body.journey-app #disc-view > .journey-screen-head { grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center; }
body.journey-app #disc-view > .journey-screen-head .journey-actions { grid-column:2;grid-row:1; }
body.journey-app #disc-view > .journey-screen-head .journey-actions button { padding:8px 10px;font-size:12px; }
body.journey-app #disc-view .disc-map-link { grid-column:3;font-size:12px; }
body.journey-app #disc-view .disc-note-panel { margin:4px 20px; }
body.journey-app #disc-view .disc-note-panel > summary { display:flex;align-items:center;min-height:44px;color:var(--journey-muted);font-size:12px;cursor:pointer; }
body.journey-app #disc-view .disc-note-panel > summary::after { content:'⌄';margin-left:8px; }
body.journey-app #disc-view .disc-note-panel .disc-note { margin:0 0 8px; }
@media(min-width:768px){body.journey-app #disc-view .disc-note-panel { margin:4px 32px; }}

/* Reuse the existing light app palette and native dialog. No parallel nav. */
body.journey-app .jto-section { display: block !important; margin: 18px 16px; padding: 18px; border: 1px solid var(--border-hairline); border-radius: 14px; background: var(--paper); }
body.journey-app .pin.joint { background: var(--sea); border: 2px solid var(--sea); color: #fff; }
body.journey-app .pin.joint .pin-label, body.journey-app .pin.joint .pin-marker { color: #fff; }
body.journey-app .mb-k.joint { background: var(--sea); color: #fff; }
body.journey-app .jto-section h2 { font-size: var(--fs-title); margin: 0 0 12px; }
body.journey-app .jto-section p, body.journey-app .jto-dialog p { margin: 9px 0; font-size: var(--fs-body-strong); line-height: 1.6; }
body.journey-app .jto-hint { color: var(--ink); font-size: var(--fs-body); line-height: 1.6; }
body.journey-app .jto-prefs summary { list-style: none; min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--sea); font-weight: 650; }
body.journey-app .jto-prefs summary::-webkit-details-marker { display: none; }
body.journey-app .jto-prefs summary::after { content: "＋"; margin-left: auto; font-size: var(--fs-title); font-weight: 700; }
body.journey-app .jto-prefs[open] summary::after { content: "−"; }
body.journey-app .jto-actions, body.journey-app .jto-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
body.journey-app [data-jto] { min-height: 44px; padding: 9px 12px; border: 1px solid var(--border-hairline); border-radius: 10px; color: var(--sea); background: var(--paper); font-size: 13px; font-weight: 650; line-height: 1.4; }
body.journey-app [data-jto]:disabled { opacity: .5; cursor: not-allowed; }
body.journey-app [data-jto][aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
body.journey-app .jto-tools { padding: 10px 14px; margin-bottom: 12px; background: var(--surface-ground); border-radius: 12px; }
body.journey-app .jto-install-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.journey-app .jto-install-row > [data-jto] { margin-left: auto; }
body.journey-app .jto-install > .sn-tiny { display: block; margin-top: 2px; }
body.journey-app .jto-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 12px 0 80px; padding-top: 9px; border-top: 1px solid var(--border-hairline); font-size: 12px; }
body.journey-app .jto-margin { padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--border-hairline); border-left: 4px solid var(--sea); border-radius: 12px; background: var(--surface-ground); }
body.journey-app .jto-margin h3 { margin: 0 0 6px; font-size: var(--fs-title); }
body.journey-app .jto-margin p { margin: 6px 0; font-size: var(--fs-body); line-height: 1.6; }
body.journey-app .jto-margin .jto-margin-line { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink); }
body.journey-app .jto-margin a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border-hairline); border-radius: 10px; color: var(--sea); background: var(--paper); font-size: 13px; font-weight: 650; text-decoration: none; }
body.journey-app .jto-form { display: grid; gap: 14px; margin: 16px 0; }
body.journey-app .jto-form label, body.journey-app .jto-file { display: grid; gap: 7px; font-size: 13px; font-weight: 650; }
body.journey-app .jto-form input, body.journey-app .jto-form select, body.journey-app .jto-form textarea,
body.journey-app .jto-file input { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: 10px; border: 1px solid var(--border-hairline); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
body.journey-app .jto-form textarea { min-height: 130px; resize: vertical; }
body.journey-app .jto-dialog { max-width: 680px; overscroll-behavior: contain; }
body.journey-app .jto-dialog > .jp-dialog-head { position: sticky; top: -18px; z-index: 2; background: var(--paper); padding: 10px 0; }
body.journey-app .jto-dialog h3 { font-size: 16px; }
body.journey-app .jto-proposal, body.journey-app .jto-record { padding: 14px 0; border-top: 1px solid var(--border-hairline); }
body.journey-app .jto-proposal ol { padding-left: 24px; margin: 10px 0; font-size: 13px; line-height: 1.7; }
body.journey-app .jto-record pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; font-size: 12px; background: var(--surface-ground); padding: 10px; }
body.journey-app .jto-verbatim, body.journey-app .share-op-badge .m { white-space: pre-wrap; }
body.journey-app .jto-total { font-size: 24px; font-weight: 800; color: var(--sea); }
body.journey-app .jto-settle { font-size: 17px; font-weight: 750; color: var(--ink); padding: 10px 12px; border: 1px solid var(--sea); border-radius: 10px; background: var(--surface-ground); }
body.journey-app .jto-closeout-open { display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--sea); color: #fff; font-size: 13px; font-weight: 750; }
body.journey-app .jto-closeout-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; font-size: 12px; background: var(--surface-ground); padding: 10px; }
body.journey-app .jto-sub { font-size: var(--fs-title); margin: 18px 0 6px; }
body.journey-app .jto-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
body.journey-app .jto-quick-row > .jto-hint { flex-basis: 100%; margin: 0; }
body.journey-app .jto-quick + .jto-quick-row { margin-top: 4px; }
body.journey-app .jto-current a.jp-tmap, body.journey-app .jto-actions a[data-jto-nav] { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border-hairline); border-radius: 10px; color: var(--sea); background: var(--paper); font-size: 13px; font-weight: 650; text-decoration: none; }
body.journey-app .jto-message { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(var(--journey-nav-h, 78px) + 8px); max-width: 650px; margin: auto; padding: 10px 12px; border: 1px solid var(--border-hairline); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 12px; pointer-events: none; box-shadow: 0 2px 10px #0001; }
body.journey-app .jto-message:empty { display: none; }
body.journey-app [data-jto-feedback] { color: var(--sea); font-weight: 650; }
body.journey-app .share-op-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
body.journey-app .share-op-row { flex-wrap: wrap; }
body.journey-app .share-op input { font-size: 16px; }
@media (min-width: 768px) {
  body.journey-app .jto-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.journey-app .jto-form label:has(textarea) { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body.journey-app .jto-row { margin-left: 12px; }
  body.journey-app .jto-dialog { width: 100%; max-width: 100%; max-height: 88dvh; }
  body.journey-app .jto-dialog > .jp-dialog-head { top: -12px; }
}

/* Hotel activity rows: card list with breathing room (owner 다닥다닥 fix). */
body.journey-app .jto-acts { display: grid; gap: 8px; margin: 14px 0; }
body.journey-app .jto-act-row { display: grid; gap: 2px; margin: 0; padding: 11px 12px; border: 1px solid var(--border-hairline); border-radius: 10px; background: var(--surface-ground); font-size: 13px; line-height: 1.5; }
body.journey-app .jto-act-row strong { font-size: var(--fs-body-strong); }
body.journey-app .jto-act-cnt { color: var(--ink); font-size: var(--fs-body); font-variant-numeric: tabular-nums; }

/* Home weather button: keep its label on one line (owner vertical-stack report). */
body.journey-app [data-jto="weather"] { white-space: nowrap; flex-shrink: 0; }

/* One contained task surface; the five destination tabs remain intact. */
.jc-dialog{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-width:100%;max-height:calc(100dvh - 24px);padding:0;border:1px solid #dadbd5;border-radius:24px;background:#fafbf8;color:#263731;box-shadow:0 24px 90px #152c3538;overflow:hidden;overscroll-behavior:contain}
.jc-dialog::backdrop{background:#12261fcc;backdrop-filter:blur(3px)}
.jc-dialog *{box-sizing:border-box}
.jc-dialog button,.jc-dialog input,.jc-dialog select,.jc-dialog textarea{font:inherit}
.jc-dialog button,.jc-dialog select,.jc-dialog input{min-height:40px}
.jc-dialog button{border:1px solid #c8d3cd;border-radius:12px;background:#fff;color:#244537;padding:8px 12px;font-size:14px;font-weight:650;cursor:pointer}
.jc-dialog button:disabled{opacity:.5;cursor:default}
.jc-dialog :focus-visible:not(.jc-textarea){outline:3px solid #2a7964;outline-offset:3px}
.jc-dialog button.jc-primary{background:#255f4d;color:white;border-color:#255f4d}
.jc-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;height:min(860px,calc(100dvh - 24px));overflow:hidden;width:min(620px,calc(100% - 24px));max-width:100%}

.jc-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid #dce4db;background:#f4f7f2;border-radius:24px 24px 0 0;position:relative;z-index:2;min-width:0;max-width:100%;overflow:hidden}
.jc-header-brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 0;overflow:hidden}
.jc-header-avatar{width:36px;height:36px;min-width:36px;border-radius:50%;background:linear-gradient(135deg,#255f4d,#194537);color:#fff;display:grid;place-items:center;box-shadow:0 3px 8px rgba(37,95,77,.28);flex-shrink:0}
.jc-header-text{min-width:0;flex:1 1 0;overflow:hidden;display:flex;flex-direction:column}
.jc-header-text h2{font-size:16px;font-weight:750;letter-spacing:-.4px;color:#173e32;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.jc-eyebrow{font-size:10px;font-weight:750;letter-spacing:.8px;color:#507564;margin:0 0 1px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.jc-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.jc-dialog button.jc-sound{font-size:11.5px;padding:0 10px;border:1px solid #c8d8ce;border-radius:999px;background:#fff;color:#255f4d;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:32px;min-height:32px;white-space:nowrap;flex-shrink:0;transition:all .15s}
.jc-dialog button.jc-sound:hover{background:#eaf2ec}
.jc-dialog button.jc-sound[aria-pressed=true]{background:#255f4d;color:#fff;border-color:#255f4d}
.jc-dialog button.jc-sound[aria-pressed=true]:hover{background:#1a4638}
.jc-dialog button.jc-close{display:grid;place-items:center;width:32px;height:32px;min-height:32px;min-width:32px;border-radius:50%;border:1px solid #c8d8ce;background:#fff;color:#4c6056;padding:0;cursor:pointer;flex-shrink:0;transition:all .15s}
.jc-dialog button.jc-close:hover{background:#e8f1eb;color:#173e32}

/* Pinned Segmented Day Switcher */
.jc-day-nav{background:#f4f7f2;padding:6px 16px 10px;border-bottom:1px solid #dce4db;width:100%;min-width:0;max-width:100%;overflow:hidden}
.jc-dialog .jc-day-pills{display:flex;gap:3px;background:#e3ede5;border-radius:12px;padding:3px;border:1px solid #cfded3;min-width:0}
.jc-dialog button.jc-day-pill{flex:1;min-height:34px;height:34px;padding:0 2px;border-radius:9px;border:none!important;background:transparent;color:#496557;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s}
.jc-dialog button.jc-day-pill.active,.jc-dialog button.jc-day-pill[aria-selected=true]{background:#255f4d!important;color:#ffffff!important;font-weight:750;box-shadow:0 1.5px 5px rgba(37,95,77,.25)}
.jc-day-native{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}

/* Body & Welcome */
.jc-body{padding:14px 16px 8px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding:12px;min-width:0;max-width:100%}
.jc-welcome{display:flex;gap:10px;margin:4px 0 16px;max-width:100%;min-width:0}
.jc-welcome[hidden]{display:none!important}
.jc-welcome-avatar{width:36px;height:36px;min-width:36px;border-radius:50%;background:#eef5f0;border:1px solid #d2e2d6;color:#255f4d;display:grid;place-items:center;flex-shrink:0;margin-top:2px}
.jc-welcome-bubble{background:#fff;border:1px solid #dbe6dd;border-radius:4px 20px 20px 20px;padding:14px 16px;box-shadow:0 2px 10px rgba(0,0,0,.03);display:flex;flex-direction:column;gap:10px;width:100%;min-width:0}
.jc-welcome-meta{display:flex;align-items:center;gap:8px}
.jc-welcome-name{font-size:13.5px;font-weight:750;color:#173e32}
.jc-welcome-badge{font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:#eef5f0;color:#255f4d;border:1px solid #d2e2d6}
.jc-welcome-desc{font-size:13.5px;line-height:1.6;color:#374f44;margin:0;word-break:keep-all}
.jc-welcome-amenities{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin-top:4px}
.jc-dialog button.jc-amenity-chip{font-size:12px;font-weight:650;padding:8px 10px;min-height:36px;height:auto;border-radius:12px;background:#f8fbf9;border:1px solid #d2e4d7;color:#255f4d;cursor:pointer;transition:all .12s;text-align:left;display:flex;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jc-dialog button.jc-amenity-chip:hover{background:#e8f4eb;border-color:#255f4d}

/* Starters */
.jc-starters{display:flex;gap:6px;overflow-x:auto;padding:4px 0 10px;margin:0 0 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch;max-width:100%}
.jc-starters[hidden]{display:none!important}
.jc-starters::-webkit-scrollbar{display:none}
.jc-dialog button.jc-starters-btn,.jc-starters button{flex-shrink:0;font-size:12.5px;font-weight:650;padding:6px 14px;min-height:36px;height:36px;border-radius:999px;border:1px solid #cfded4;background:#fff;color:#255f4d;white-space:nowrap;cursor:pointer;transition:all .12s;box-shadow:0 1px 4px rgba(0,0,0,.03)}
.jc-starters button:hover{background:#eef6f0;border-color:#255f4d}
.jc-starter-manual{border-color:#a8c4b2!important;background:#f3f9f4!important;font-weight:700!important}

/* Messages */
.jc-log{display:flex;flex-direction:column;gap:14px;padding:4px 0 16px}
.jc-message{display:flex;flex-direction:column;gap:2px;max-width:84%;background:transparent;margin:0;padding:0;border-radius:0}
.jc-message.jc-user{align-self:flex-end;align-items:flex-end}
.jc-message.jc-assistant{align-self:flex-start;align-items:flex-start}
.jc-speaker{display:none!important}
.jc-message p{white-space:pre-wrap;line-height:1.6;margin:0;padding:12px 16px;border-radius:20px;font-size:14.5px;overflow-wrap:anywhere}
.jc-user p{background:#255f4d;color:#fff;border-bottom-right-radius:4px;box-shadow:0 2px 8px rgba(37,95,77,.2)}
.jc-assistant p{background:#fff;border:1px solid #dbe6dc;color:#1c3629;border-bottom-left-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.jc-stream p::after{content:'▍';animation:jc-blink 1s steps(2) infinite;color:#255f4d}
@keyframes jc-blink{50%{opacity:0}}
.jc-speak{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;border:1px solid #d8e5db;background:#fff;color:#436655;font-size:11px;font-weight:600;cursor:pointer;margin-top:4px;box-shadow:0 1px 3px rgba(0,0,0,.03);transition:all .15s}
.jc-speak:hover{background:#eef6f0;border-color:#255f4d;color:#255f4d}
.jc-speak svg{width:12px;height:12px;flex-shrink:0}

/* Interactive review cards */
.jc-review:has(h3){border:1px solid #c9ded0;background:#fff;border-radius:20px;padding:18px 20px;margin:12px 0 16px;box-shadow:0 4px 20px rgba(18,58,56,.06)}
.jc-review h3{font-size:16px;font-weight:750;letter-spacing:-.3px;color:#173e32;margin:0 0 12px;display:flex;align-items:center;gap:6px}
.jc-changes{padding-left:20px;font-size:14px;line-height:1.7;color:#243d32}
.jc-changes li+li{margin-top:8px}
.jc-expense{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.jc-expense .jc-field:first-child{grid-column:1/-1}
.jc-expense p{grid-column:1/-1}
.jc-field{display:grid;gap:6px;font-size:13px;font-weight:650;min-width:0;color:#355345}
.jc-field input,.jc-field select{width:100%;border:1px solid #c4d7cc;border-radius:12px;padding:10px 12px;background:#fbfdfb;color:#1a382b;font-size:14px;font-weight:500;min-width:0;transition:all .15s}
.jc-field input:focus,.jc-field select:focus{border-color:#255f4d;background:#fff;outline:2px solid rgba(37,95,77,.2)}
.jc-hint,.jc-warning{font-size:12px;line-height:1.6;color:#536455;margin:8px 0}
.jc-warning{color:#9a3412;background:#fff8eb;padding:10px 14px;border-radius:12px;border:1px solid #fde0b2;font-size:12.5px;line-height:1.5}
.jc-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.jc-actions button{flex:1;min-height:44px;height:44px;border-radius:14px;font-size:14px;font-weight:700}
.jc-actions button.jc-primary{background:#255f4d;color:#fff;border:1px solid #255f4d;box-shadow:0 2px 8px rgba(37,95,77,.25)}
.jc-actions button.jc-primary:hover{background:#1a4638}
.jc-actions button:not(.jc-primary){background:#f4f7f3;color:#486154;border:1px solid #cfded4}
.jc-actions button:not(.jc-primary):hover{background:#e8f0e9;color:#1c382b}
.jc-choices{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.jc-choices button{font-size:13px;padding:8px 14px;border-radius:999px;border:1px solid #c8d8ce;background:#fff;color:#255f4d;font-weight:650}
.jc-saved{border-top:1px solid #d4e2d4;padding-top:16px}
.jc-saved strong{color:#1f3d2e}

/* Navigation card */
.jc-navcard{display:flex;flex-direction:column;gap:8px;border:1px solid #b7cbbd;background:#f6faf3;border-radius:16px;padding:14px 16px;margin:12px 0}
.jc-navcard strong{font-size:16px;color:#1f3d2e}
.jc-nav-eta{font-size:12px;color:#5c7268}
.jc-navrow{display:flex;gap:8px;flex-wrap:wrap}
.jc-navcta{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:12px;background:#255f4d;color:#fff;font-weight:800;text-decoration:none}
.jc-navweb{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:12px;border:1px solid #b7cbbd;color:#255f4d;font-weight:700;text-decoration:none;background:#fff}

/* Modern Capsule Composer */
.jc-composer{padding:10px 16px 14px;border-top:1px solid #e5eee6;background:#fafbf8;display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%;overflow:hidden}
.jc-input-capsule{display:flex;align-items:center;gap:6px;padding:4px 6px 4px 12px;border-radius:28px;border:1.5px solid #cbded2;background:#fff;box-shadow:0 2px 10px rgba(18,58,56,.05);transition:all .15s ease-in-out;min-width:0;max-width:100%}
.jc-input-capsule:focus-within{border-color:#255f4d;box-shadow:0 0 0 3px rgba(37,95,77,.14)}
.jc-textarea{flex:1 1 0;min-width:0;width:100%;min-height:24px;max-height:120px;border:none!important;outline:none!important;box-shadow:none!important;background:transparent;padding:6px 4px;font-size:15px;line-height:1.5;color:#17382a;resize:none;font-family:inherit}
.jc-textarea::placeholder{color:#8fa699;font-size:14px}
.jc-textarea:focus,.jc-textarea:focus-visible{outline:none!important;box-shadow:none!important;border:none!important}
.jc-dialog button.jc-mic-btn{display:grid;place-items:center;width:36px;height:36px;min-height:36px;min-width:36px;padding:0;border-radius:50%;border:1px solid #d4e2d7;background:#f4f8f5;color:#255f4d;font-size:0;line-height:0;overflow:hidden;flex-shrink:0;cursor:pointer;transition:all .15s}
.jc-dialog button.jc-mic-btn:hover{background:#e2f0e6;border-color:#255f4d}
.jc-dialog button.jc-mic-btn svg{width:18px;height:18px}
.jc-dialog button.jc-mic-btn:not(:has(svg)){width:auto;min-width:auto;padding:0 12px;border-radius:999px;background:#fef2f2;border:1px solid #f87171;color:#dc2626;font-size:12px;line-height:normal;font-weight:700;animation:jc-pulse 1.2s infinite}
.jc-dialog button.jc-send-btn{display:grid;place-items:center;width:36px;height:36px;min-height:36px;min-width:36px;padding:0;border-radius:50%;background:#255f4d;color:#fff;border:none;flex-shrink:0;cursor:pointer;transition:all .15s;box-shadow:0 2px 6px rgba(37,95,77,.28)}
.jc-dialog button.jc-send-btn:hover:not(:disabled){background:#194637;transform:scale(1.05)}
.jc-dialog button.jc-send-btn:disabled{background:#d8e5dd;color:#a0b6a8;box-shadow:none;opacity:.7;cursor:default}
.jc-dialog button.jc-stop-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;height:36px;padding:0 12px;border-radius:999px;border:1px solid #f87171;background:#fef2f2;color:#b91c1c;font-size:12px;font-weight:700;flex-shrink:0;cursor:pointer}
.jc-compose-hidden{display:none!important}
.jc-status{font-size:12px;line-height:1.4;margin:4px 0 0;color:#3d654c;min-height:0}
.jc-status:empty{display:none}
.jc-data-note{font-size:11px;line-height:1.4;color:#728476;margin:2px 0 0}
.jc-data-note:empty{display:none}
.jc-data-note[data-saved=false]{color:#b45309}
.jc-privacy{font-size:11px;line-height:1.4;color:#809285;margin-top:4px;text-align:center}
.jc-privacy summary{cursor:pointer;padding:2px 0;display:inline-block;color:#728a7c}
.jc-privacy p{margin:4px 0 0;padding:6px 10px;background:#f0f5f1;border-radius:8px;text-align:left}
.jc-image{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.jc-image img{width:80px;height:100px;object-fit:contain;background:#e4e9e2;border-radius:10px;border:1px solid #d0ded4}
.jc-dialog [hidden]{display:none!important}
.jc-receipt-thumb{display:block;width:90px;height:112px;object-fit:contain;background:#f0f3ee;border-radius:8px;margin-bottom:14px}

@media(max-width:480px){
  .jc-dialog{width:100%;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0;border:0;overflow-x:hidden}
  .jc-dialog[open]{height:100dvh;max-height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;width:100%;max-width:100vw;overflow-x:hidden}
  .jc-header{border-radius:0;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 8px}
  .jc-header h2{font-size:16px}
  .jc-day-nav{padding:4px 12px 8px}
  .jc-body{padding:10px 12px 6px}
  .jc-composer{padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px))}
  .jc-day-pill{font-size:12px;padding:6px 2px;min-height:34px}
  .jc-message.jc-user{margin-left:14px}
  .jc-expense{gap:12px}
  .jc-review:has(h3){padding:14px 12px}
}
@media(prefers-reduced-motion:reduce){.jc-dialog{scroll-behavior:auto}}

.jc-quick{position:fixed;z-index:125;right:max(16px,calc((100vw - 1200px)/2));bottom:calc(var(--jc-nav-bottom,var(--journey-nav-h,78px)) + 12px);width:54px;height:54px;min-height:54px;padding:0;border:1px solid #f5fff0;border-radius:50%;background:#255f4d;color:#fff;display:grid;place-items:center;box-shadow:0 4px 16px #123a3830;cursor:pointer;touch-action:manipulation}
.jc-quick:focus-visible{outline:3px solid #72b4a0;outline-offset:3px}
.jc-quick svg{width:26px;height:26px;pointer-events:none}
.jc-quick[aria-expanded=true]{background:#173e32}
body.journey-app .jc-quick{color:#fff}
body.journey-app:has(.jc-quick){padding-bottom:68px}
body.journey-app:has(.jc-quick) :is(.jp-toast,.jto-message,#mona-onboard){bottom:calc(var(--jc-nav-bottom,var(--journey-nav-h,78px)) + 72px)}
body.journey-app:has(.jc-quick) #map-sheet.jp-context-detail{bottom:calc(var(--jc-nav-bottom,var(--journey-nav-h,78px)) + 72px)}
@media(max-width:760px){body.journey-app:has(.jc-quick) .map-view-wrapper #map-sheet{bottom:calc(var(--jc-nav-bottom,var(--journey-nav-h,78px)) + 72px)}}
body.journey-app:has(#jc-quick[aria-expanded=true]) :is(.jp-toast,.jto-message,#mona-onboard){bottom:calc(var(--jc-nav-bottom,var(--journey-nav-h,78px)) + var(--jc-options-height,110px) + 90px)}
.jc-quick-options{position:fixed;z-index:126;right:max(16px,calc((100vw - 1200px)/2));bottom:calc(var(--jc-nav-bottom,var(--journey-nav-h,78px)) + 78px);width:204px;max-width:calc(100vw - 32px);padding:6px;border:1px solid #c8d3cd;border-radius:18px;background:#fff;box-shadow:0 8px 28px #123a382e;font-family:inherit}
.jc-quick-options[hidden]{display:none!important}
.jc-quick-options button{display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:#244537;font-family:inherit;font-size:14px;font-weight:650;text-align:left;cursor:pointer}
.jc-quick-options button:hover{background:#eef5eb}
.jc-quick-options svg{flex:none;width:22px;height:22px;pointer-events:none}
.jc-quick-options :focus-visible{outline:3px solid #2a7964;outline-offset:-3px}

/* Live Voice Mode (The Siena Resort Quiet Luxury Voice UI) */
.jc-live-dialog{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:0;border:none;background:radial-gradient(circle at 50% 25%,#183328 0%,#0e2019 50%,#06100c 100%);color:#f7faf7;overflow:hidden;text-align:center}
@media (min-width:640px){.jc-live-dialog{inset:auto;width:min(440px,calc(100% - 32px));height:min(740px,92dvh);max-width:440px;max-height:92dvh;margin:auto;border-radius:36px;border:1px solid rgba(255,255,255,.14);box-shadow:0 32px 100px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.05)}}
.jc-live-dialog::backdrop{background:rgba(6,16,12,.86);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.jc-live-body{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:100%;padding:calc(16px + env(safe-area-inset-top,0px)) 24px calc(24px + env(safe-area-inset-bottom,0px))}
.jc-live-top{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:44px}
.jc-live-badge-wrap{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:9999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(8px)}
.jc-live-dot{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 10px #4ade80;animation:jc-pulse 2s infinite ease-in-out}
.jc-live-badge{font-size:12px;font-weight:700;letter-spacing:.8px;color:#d1fae5;text-transform:uppercase}
.jc-live-close-btn{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#cbd5e1;font-size:16px;cursor:pointer;transition:background .15s,color .15s,transform .1s}
.jc-live-close-btn:hover{background:rgba(255,255,255,.16);color:#fff}
.jc-live-close-btn:active{transform:scale(.95)}
.jc-live-stage{position:relative;width:220px;height:220px;display:grid;place-items:center;margin:10px 0 6px}
.jc-live-ring{position:absolute;border-radius:50%;border:1px solid rgba(167,243,208,.2);pointer-events:none}
.jc-live-ring-1{width:140px;height:140px;animation:jc-ring-pulse 3s infinite cubic-bezier(.4,0,.6,1)}
.jc-live-ring-2{width:190px;height:190px;animation:jc-ring-pulse 3s infinite 1s cubic-bezier(.4,0,.6,1)}
.jc-live-aura{position:absolute;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,rgba(74,222,128,.28) 0%,rgba(37,95,77,0) 70%);filter:blur(16px);animation:jc-pulse 2.4s infinite ease-in-out;pointer-events:none}
.jc-live-orb{position:relative;z-index:2;width:92px;height:92px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#52b788 0%,#255f4d 50%,#133329 100%);box-shadow:0 0 45px rgba(37,95,77,.65),inset 0 2px 4px rgba(255,255,255,.6);transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s ease,background .3s ease;animation:jc-orb-float 4s infinite ease-in-out}
.jc-live-orb[data-state=listening]{background:radial-gradient(circle at 35% 30%,#6ee7b7 0%,#255f4d 60%,#0f2e24 100%);box-shadow:0 0 50px rgba(110,231,183,.55),inset 0 2px 5px rgba(255,255,255,.7)}
.jc-live-orb[data-state=speaking]{background:radial-gradient(circle at 35% 30%,#fef08a 0%,#d4af37 45%,#854d0e 100%);box-shadow:0 0 55px rgba(212,175,55,.65),inset 0 2px 5px rgba(255,255,255,.8);animation:jc-orb-speak .8s infinite alternate cubic-bezier(.45,.05,.55,.95)}
.jc-live-orb[data-state=thinking]{background:radial-gradient(circle at 35% 30%,#fed7aa 0%,#c26d36 50%,#7c2d12 100%);box-shadow:0 0 45px rgba(194,109,54,.55),inset 0 2px 4px rgba(255,255,255,.7);animation:jc-pulse .9s infinite ease-in-out}
.jc-live-orb[data-state=muted]{background:radial-gradient(circle at 35% 30%,#94a3b8 0%,#475569 60%,#1e293b 100%);box-shadow:0 0 25px rgba(100,116,139,.3),inset 0 2px 4px rgba(255,255,255,.3);animation:none}
.jc-live-orb[data-state=error]{background:radial-gradient(circle at 35% 30%,#fca5a5 0%,#dc2626 60%,#7f1d1d 100%);box-shadow:0 0 40px rgba(220,38,38,.5),inset 0 2px 4px rgba(255,255,255,.5);animation:none}
@keyframes jc-ring-pulse{0%{transform:scale(0.85);opacity:.6}50%{transform:scale(1.1);opacity:.2}100%{transform:scale(1.25);opacity:0}}
@keyframes jc-orb-float{0%,100%{transform:translateY(0px) scale(1)}50%{transform:translateY(-6px) scale(1.02)}}
@keyframes jc-orb-speak{0%{transform:scale(0.96)}100%{transform:scale(1.14)}}
@keyframes jc-pulse{0%,100%{transform:scale(0.92);opacity:.6}50%{transform:scale(1.15);opacity:1}}
.jc-live-status-box{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:2px}
.jc-live-status{font-size:20px;font-weight:800;letter-spacing:-.4px;color:#f8fafc;margin:0}
.jc-live-sub{font-size:13px;line-height:1.5;color:#cbd5e1;max-width:320px;margin:0;word-break:keep-all;text-align:center}
.jc-live-feed{box-sizing:border-box;width:100%;max-width:360px;flex:1 1 auto;max-height:160px;min-height:70px;margin:12px 0;padding:8px 12px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);mask-image:linear-gradient(to bottom,transparent 0%,black 12%,black 88%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0%,black 12%,black 88%,transparent 100%);text-align:left}
.jc-live-feed:empty{display:none}
.jc-live-feed-item{font-size:13px;line-height:1.5;word-break:break-word;padding:2px 4px}
.jc-user-speak{color:#a7f3d0;font-weight:500}
.jc-ai-speak{color:#fef3c7;font-weight:600}
.jc-live-actions{width:100%;display:flex;align-items:center;justify-content:center;gap:36px;padding-top:8px}
.jc-live-btn-col{display:flex;flex-direction:column;align-items:center;gap:8px}
.jc-live-btn{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:#f8fafc;cursor:pointer;transition:background .15s,transform .12s,box-shadow .15s;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.jc-live-btn:hover{background:rgba(255,255,255,.18);transform:translateY(-2px)}
.jc-live-btn:active{transform:scale(.94)}
.jc-live-mute.jc-muted{background:rgba(220,38,38,.25);border-color:#dc2626;color:#fca5a5}
.jc-live-end{background:#991b1b;border-color:#b91c1c;color:#fff;box-shadow:0 8px 24px rgba(153,27,27,.45)}
.jc-live-end:hover{background:#7f1d1d;box-shadow:0 10px 28px rgba(153,27,27,.6)}
.jc-live-btn-lbl{font-size:12px;font-weight:600;color:#94a3b8;letter-spacing:-.2px}
.jc-live-card{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);margin:4px 0;text-align:left}
.jc-live-card strong{font-size:14px;color:#f8fafc}
.jc-live-card-desc{font-size:12px;line-height:1.45;color:#d1fae5;margin:0}
.jc-live-card-btns{display:flex;gap:8px;margin-top:6px}
.jc-live-apply-btn{min-height:36px;padding:6px 14px;border-radius:10px;border:none;background:#255f4d;color:#fff;font-weight:700;font-size:12px;cursor:pointer}
.jc-live-apply-btn:hover{background:#1e4d3e}
.jc-live-cancel-btn{min-height:36px;padding:6px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#cbd5e1;font-size:12px;cursor:pointer}
.jc-live-card-ok{font-size:12px;font-weight:700;color:#4ade80}

/* Photo intake sheet: travel-album continuity in the app's sage/sienna tone. */
.jc-psheet{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #d5dcd2;border-radius:24px;background:#fafbf8;color:#263731;overflow:auto;overscroll-behavior:contain}
.jc-psheet[open]{display:flex;flex-direction:column}
.jc-psheet::backdrop{background:#12261fcc;backdrop-filter:blur(3px)}
.jc-psheet *{box-sizing:border-box}
.jc-psheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 14px;border-bottom:1px solid #dce4db;background:#f2f6ee;border-radius:24px 24px 0 0}
.jc-psheet-head h2{font-size:22px;letter-spacing:-.6px;margin:2px 0}
.jc-psheet button{font:inherit;min-height:44px;border:1px solid #c8d3cd;border-radius:12px;background:#fff;color:#244537;padding:9px 13px;font-size:14px;font-weight:650;cursor:pointer}
.jc-psheet button.jc-primary{background:#255f4d;color:#fff;border-color:#255f4d}
.jc-psheet button:disabled{opacity:.5;cursor:default}
.jc-psheet :focus-visible{outline:3px solid #2a7964;outline-offset:2px}
.jc-psheet-progress{font-size:14px;font-weight:650;color:#2f5d4b;margin:14px 22px 0;min-height:21px}
.jc-psheet-hint{font-size:12px;line-height:1.6;color:#647566;margin:6px 22px 0}
.jc-psheet-list{display:flex;flex-direction:column;gap:10px;padding:14px 22px;overflow-y:auto}
.jc-pcard{display:flex;gap:12px;border:1px solid #d5e0d3;border-radius:16px;background:#f6faf3;padding:12px}
.jc-pcard[data-state=error]{background:#fbf7f0;border-color:#e8dcc8}
.jc-pcard-img{width:64px;height:64px;object-fit:cover;border-radius:12px;background:#e4e9e2;flex:none}
.jc-pcard-body{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.jc-pcard-title{font-size:14px;color:#1f3d2e;overflow-wrap:anywhere}
.jc-pcard-desc{font-size:13px;line-height:1.55;color:#4c6056;margin:0;overflow-wrap:anywhere}
.jc-pcard-note{font-size:12px;color:#824b16;margin:0}
.jc-pcard-form{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.jc-pcard-form .jc-field{font-size:12px}
.jc-pcard-form :is(input,select){min-height:40px;border:1px solid #bdccc1;border-radius:10px;padding:8px 10px;background:#fff;color:#24392b;font:inherit;width:100%}
.jc-pcard-form .jc-field:first-child{grid-column:1/-1}
.jc-chip{align-self:flex-start;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:#e3eee0;color:#255f4d;border:1px solid #c8d9c4}
.jc-chip-warn{background:#fff3e0;color:#8a5a16;border-color:#ead9b8}
.jc-chip-place{background:#dcebe2;color:#1f4d3a;border-color:#bcd6c8}
.jc-chip-tag{background:#eef3ed;color:#547467;border-color:#d3e0d3}
.jc-pcard-tags{display:flex;flex-wrap:wrap;gap:6px}
.jc-pcard-tags .jc-chip{align-self:auto}
.jc-psheet-foot{display:flex;gap:8px;justify-content:flex-end;padding:14px 22px 18px;border-top:1px solid #dce4db;background:#fafbf8;margin-top:auto}
.jc-psheet-foot button{min-width:96px}
@media(max-width:480px){.jc-psheet{width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0;border:0}.jc-psheet-head{border-radius:0;padding:calc(15px + env(safe-area-inset-top)) 16px 12px}.jc-psheet-list{padding:12px 16px}.jc-psheet-progress,.jc-psheet-hint{margin-left:16px;margin-right:16px}.jc-psheet-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}}

