:root {
  --bg-canvas: #FBF3E9;
  --bg-surface: #FFFFFF;
  --bg-muted: #F3E8DA;
  /* Back to the PRD's original vibrant coral/sage (not the darkened
     "safe" versions from the first accessibility pass — those read as
     muddy/brownish, especially in dark mode, per user feedback after
     real-device testing). Contrast is instead solved by pairing these
     bright fills with --on-brand-text (dark charcoal, fixed regardless
     of theme) instead of white — 5.65:1 / 5.70:1, comfortably AA. */
  --brand-primary: #FF8A5B;
  --brand-primary-dark: #E4653A;
  --brand-secondary: #7FB6A2;
  --brand-tertiary: #F4C95D;
  --accent-berry: #C9629B;
  /* PRD's original #8FB8DE only hit 2.08:1 as link text on white (needs
     4.5:1) — darkened for light mode; the dark-mode override below keeps
     the original lighter tone, which already passes fine (7.13:1) against
     dark surfaces. This one stays a text color, not a filled background,
     so it doesn't have the same "muddy fill" problem as the buttons did. */
  --accent-sky: #3E6FA0;
  /* PRD's original #D9694F ("destructive actions only") only hit 3.45:1
     as text on white — darkened for light mode, same reasoning as
     text-secondary/accent-sky above. */
  --danger: #C1502F;
  --text-primary: #3A2E27;
  /* PRD's original #8A7A6D only hit 4.13:1 on white / 3.76:1 on the cream
     canvas — under the 4.5:1 AA floor the PRD itself requires (Section
     2.1). Darkened while keeping the same warm-tan hue: 6.14:1 / 5.59:1. */
  --text-secondary: #6E5F51;
  /* Fixed dark text/icon color for anything sitting on a brand-color
     fill (buttons, active chips, badges) — deliberately NOT swapped by
     the dark-mode override below, since the brand fills themselves don't
     change between themes either. */
  --on-brand-text: #2B211B;
  /* Display: headlines, prompts, day titles, Walkie's voice (Section 2.3).
     Body: everything functional — place names, addresses, buttons. */
  --font-display: "Fredoka", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

/* System default applies unless the in-app toggle has set data-theme
   explicitly — :not([data-theme="light"]) lets a forced light choice win
   even when the system itself is dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-canvas: #221C18;
    --bg-surface: #2E2620;
    --bg-muted: #3A2E27;
    --text-primary: #F3E8DA;
    --text-secondary: #C9B8A8;
    --accent-sky: #8FB8DE;
    --danger: #E27A62;
  }
}

/* Forced dark wins regardless of system preference. */
:root[data-theme="dark"] {
  --bg-canvas: #221C18;
  --bg-surface: #2E2620;
  --bg-muted: #3A2E27;
  --text-primary: #F3E8DA;
  --text-secondary: #C9B8A8;
  --accent-sky: #8FB8DE;
  --danger: #E27A62;
}

* { box-sizing: border-box; }

/* Author rules that set `display` (e.g. .pp-chip { display: flex }) otherwise
   silently beat the UA stylesheet's [hidden] { display: none }, since author
   styles always outrank UA styles at equal specificity — so anything with
   both a `hidden` attribute and a class that sets `display` would stay
   visible. This keeps `hidden` authoritative everywhere. */
[hidden] { display: none !important; }

.pp-icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-canvas);
  color: var(--text-primary);
}

.pp-header {
  position: relative;
  padding: 18px 16px 10px;
  text-align: center;
}
.pp-logo { margin: 0; font-size: 26px; font-family: var(--font-display); font-weight: 600; }
.pp-tagline { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; }
/* Once the user is inside a trip (the "My trips" back-link is showing),
   the tagline is redundant chrome repeated on every screen of a deep,
   multi-step mobile flow — dropping it gives real content more room
   above the fold, which was part of the "feels cramped" feedback. */
.pp-header:has(#btn-my-trips:not([hidden])) .pp-tagline { display: none; }
.pp-header:has(#btn-my-trips:not([hidden])) { padding-bottom: 4px; }

/* Symmetric header corners: back button top-left, theme toggle top-right
   — replaces a plain text link that used to float above the logo (read as
   a stray line of text, not a navigation control). */
.pp-theme-toggle,
.pp-header-back {
  position: absolute;
  top: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(58,46,39,.1);
  cursor: pointer;
}
.pp-theme-toggle { right: 16px; }
.pp-header-back { left: 16px; }

.pp-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.pp-search { margin-bottom: 12px; }

.pp-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--bg-surface);
  box-shadow: inset 0 1px 3px rgba(58,46,39,.12);
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 150ms ease;
}
.pp-input:focus { outline: none; border-color: var(--brand-primary); }
.pp-input::placeholder { color: var(--text-secondary); opacity: 1; }

.pp-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--bg-muted);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 150ms ease;
}
.pp-chip.is-active {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--on-brand-text);
  font-weight: 600;
  animation: pp-chip-bounce 320ms ease;
}
@keyframes pp-chip-bounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.pp-map-wrap { position: relative; margin: 16px 0; }
.pp-map {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  background: var(--bg-muted);
}
@media (min-width: 768px) {
  .pp-map { height: 320px; }
}
.pp-search-area-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(58,46,39,.25);
  cursor: pointer;
}

.pp-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .pp-results { grid-template-columns: 1fr 1fr; }
}

.pp-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(58,46,39,.08);
  cursor: pointer;
}
/* Photo bleeds to the card edges via negative margin, keeping the same
   18px padding for the text content below it. */
.pp-card-photo-wrap {
  margin: -18px -18px 12px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  height: 140px;
  background: var(--bg-muted);
}
.pp-card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-card h3 { margin: 0 0 6px; font-size: 17px; }
.pp-card-meta { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* Tactile press feedback on tap — no hover/lift (removed: on touch
   screens :hover triggers on tap and then sticks until the next tap
   elsewhere, which read as a stuck, glitchy card rather than a helpful
   affordance). :active releases the instant the finger lifts, so it
   can't get stuck the same way. */
.pp-card,
.pp-trip-card-main,
.pp-option-card,
.pp-stop-card {
  transition: transform 100ms ease;
}
.pp-card:active,
.pp-stop-card:active {
  transform: scale(0.98);
}

button { font: inherit; }
button:active { transform: scale(0.97); }

/* ---- Buttons ---- */
.pp-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(58,46,39,.18);
  transition: box-shadow 100ms ease, opacity 100ms ease;
}
.pp-btn:active { box-shadow: 0 1px 2px rgba(58,46,39,.18); }
.pp-btn-primary { background: var(--brand-primary); color: var(--on-brand-text); }
.pp-btn-secondary { background: var(--brand-secondary); color: var(--on-brand-text); }
.pp-btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--bg-muted); box-shadow: none; }
/* A clearly-bordered, unmistakably-clickable secondary style — .pp-btn-ghost's
   border is nearly invisible against the surface, which reads as "disabled"
   more than "tappable." Used where two options need equal weight but must
   still look pressable (e.g. Google Maps / Apple Maps side by side). */
.pp-btn-outline { background: var(--bg-surface); color: var(--text-primary); border: 2px solid var(--text-secondary); box-shadow: none; }
.pp-btn-outline:active { background: var(--bg-muted); }
/* Destructive actions only (PRD Section 2.2). Outline, not filled — a
   solid fill needs a single text color that passes contrast in both
   light and dark mode simultaneously, which this hue can't do (white
   clears light mode but fails dark; the dark charcoal token is the
   reverse) — easier to sidestep than chase, and a red outline/text
   reads seriously enough without needing a heavy fill. */
.pp-btn-danger { border-color: var(--danger); color: var(--danger); }
/* Disabled: dim the button's own colors via opacity instead of swapping
   to a muted neutral fill — a muted-on-muted swap made these nearly
   invisible against a dark canvas (real bug found in phone testing).
   Opacity preserves the fill/text contrast ratio to each other, so the
   pill shape stays legible as "a button, just not tappable yet". */
.pp-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---- View sections ---- */
.pp-view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pp-view-title { margin: 0; font-size: 21px; font-family: var(--font-display); font-weight: 600; }
.pp-prompt { text-align: center; font-size: 20px; font-weight: 600; margin: 8px 0 24px; font-family: var(--font-display); }
.pp-status { text-align: center; color: var(--text-secondary); min-height: 20px; margin-top: 12px; font-size: 15px; }

/* ---- Step 9: trip list ---- */
.pp-trip-list { display: flex; flex-direction: column; gap: 12px; }
/* Wrapper (not itself clickable) holding the "open trip" button and the
   options kebab side by side — a <button> can't nest another <button>,
   which is why this isn't one button anymore now that it has two
   independent actions. */
.pp-trip-card {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(58,46,39,.08);
}
.pp-trip-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 8px 0;
}
.pp-trip-card-title { margin: 0 0 4px; font-size: 17px; }
.pp-trip-card-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-secondary); }
.pp-mode-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pp-mode-dot.dream { background: var(--brand-tertiary); }
.pp-mode-dot.planning { background: var(--brand-secondary); }

/* Generic round icon-only button — kebab menus, etc. */
.pp-icon-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
}
.pp-icon-btn:active { background: var(--bg-muted); }

.pp-plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.pp-plan-trip-title { margin: 0; font-size: 19px; font-family: var(--font-display); font-weight: 600; }

/* ---- Step 1: start a trip ---- */
.pp-option-cards { display: flex; flex-direction: column; gap: 12px; }
.pp-option-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 22px;
  border: none;
  border-radius: 24px;
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(58,46,39,.08);
  cursor: pointer;
}
.pp-option-title { font-size: 18px; font-weight: 600; font-family: var(--font-display); }
.pp-option-sub { font-size: 15px; color: var(--text-secondary); }
.pp-dream-input { display: flex; gap: 8px; margin-top: 16px; }
.pp-dream-input .pp-input { flex: 1; }

/* ---- Step 2: mood chips ---- */
.pp-chips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
.pp-chips-grid .pp-chip { justify-content: center; padding: 14px 10px; }
.pp-skip-link {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: underline;
  padding: 8px 0;
  margin-top: 4px;
}
button.pp-skip-link { border: none; background: none; cursor: pointer; font: inherit; width: 100%; }

/* ---- Step 3: discovery ---- */
.pp-plan-pill {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: var(--on-brand-text);
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  min-height: 46px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(58,46,39,.25);
  cursor: pointer;
  z-index: 20;
}
.pp-card-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  border: none;
  background: var(--bg-muted);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pp-card-save.is-saved { background: var(--brand-secondary); color: var(--on-brand-text); }

/* ---- Steps 4-7: itinerary plan ---- */
.pp-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pp-day-tabs { display: flex; gap: 8px; overflow-x: auto; }
.pp-day-tab {
  border: 1px solid var(--bg-muted);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 10px 18px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}
.pp-day-tab.is-active { background: var(--brand-secondary); border-color: var(--brand-secondary); color: var(--on-brand-text); }
.pp-empty { text-align: center; color: var(--text-secondary); font-size: 15px; padding: 40px 16px; }

/* A visible gap (not just no-margin stacking) both reads clearer and
   gives drag-and-drop room to show where a card will land, plus more
   forgiving tap targets between adjacent cards. */
.pp-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pp-stop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(58,46,39,.08);
  cursor: pointer;
}
/* The badge deliberately hangs slightly off the thumbnail's edge, so it
   can't live inside the same element that clips the photo to its rounded
   corners — overflow:hidden there was cropping the badge along with it.
   Wrap (unclipped, positions the badge) > thumb (clipped, holds the photo). */
.pp-stop-thumb-wrap { position: relative; flex: 0 0 auto; width: 52px; height: 52px; }
.pp-stop-thumb {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-muted);
}
.pp-stop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.pp-stop-thumb-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--on-brand-text);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}
.pp-stop-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--on-brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.pp-stop-info { flex: 1; min-width: 0; }
.pp-stop-info h4 { margin: 0 0 2px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-stop-meta { margin: 0; font-size: 14px; color: var(--text-secondary); }
.pp-stop-move-group { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.pp-stop-move-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--bg-muted);
  color: var(--text-primary);
  cursor: pointer;
}
.pp-stop-move-btn:disabled { opacity: .35; cursor: not-allowed; }
.pp-stop-remove {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-muted);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.sortable-ghost .pp-stop-card { border: 2px dashed var(--brand-primary); opacity: .6; }

.pp-plan-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; flex-wrap: wrap; }
.pp-optimize-preview { margin-top: 16px; background: var(--bg-muted); border-radius: 20px; padding: 18px; }
.pp-optimize-summary { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.pp-optimize-actions { display: flex; gap: 12px; }
.pp-plan-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; flex-wrap: wrap; }
.pp-add-date { display: flex; flex-direction: column; gap: 6px; }
.pp-add-date .pp-skip-link { margin: 0; text-align: left; padding: 0; }
.pp-date-input { padding: 12px 14px; min-height: 44px; border-radius: 12px; border: 1px solid var(--bg-muted); font-size: 16px; background: var(--bg-surface); color: var(--text-primary); }

/* ---- Navigation handoff sheet ---- */
.pp-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: flex-end;
  z-index: 50;
}
.pp-sheet-inner {
  background: var(--bg-surface);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-sheet-title { margin: 0 0 8px; font-weight: 600; font-size: 16px; text-align: center; }
#trip-options-body { display: flex; flex-direction: column; gap: 10px; }
#trip-options-body p { margin: 0 0 4px; text-align: center; }

/* Three-zone sheet: header (photo + close, never scrolls) / body (the
   actual reading content, scrolls) / footer (save + navigate, always
   reachable without scrolling to the bottom of a long review). */
.pp-detail-sheet-inner {
  background: var(--bg-surface);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  /* dvh accounts for mobile browser chrome (URL bars, in-app-browser
     toolbars) that vh doesn't — vh is computed against the full device
     height even when a toolbar is covering part of the screen, which was
     making the sheet read as cramped inside e.g. an in-app browser. vh
     stays as the fallback for the few browsers without dvh support. */
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Close floats over the photo (frosted-glass circle, legible against any
   image) instead of taking its own header row — reclaims vertical space
   so real content (name, rating, facts) shows without scrolling. Photo
   is deliberately short: a small preview, not the point of the sheet. */
.pp-detail-header { position: relative; flex: 0 0 auto; min-height: 52px; }
.pp-detail-photo-wrap { width: 100%; height: 130px; background: var(--bg-muted); }
.pp-detail-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #2B211B;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  cursor: pointer;
}
.pp-detail-close:active { background: rgba(255,255,255,.95); }

.pp-detail-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 20px 4px; }
.pp-detail-body h3 { margin: 0 0 4px; font-size: 20px; }
.pp-detail-body .pp-card-meta { margin: 0 0 12px; }
.pp-detail-summary { font-style: italic; color: var(--text-secondary); font-size: 15px; margin: 0 0 14px; }

/* Address/phone/website grouped as one visually distinct "facts" panel,
   set apart from the description and reviews rather than reading as one
   undifferentiated stack of paragraphs. */
.pp-detail-facts { background: var(--bg-muted); border-radius: 16px; padding: 12px 14px 2px; margin: 0 0 14px; }
.pp-detail-row { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.pp-detail-row .pp-icon { margin-top: 2px; color: var(--text-secondary); }
.pp-detail-row a { color: var(--accent-sky); }

.pp-detail-accordion { border-radius: 14px; background: var(--bg-muted); padding: 0 14px; margin: 0 0 10px; }
.pp-detail-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
.pp-detail-accordion summary::-webkit-details-marker { display: none; }
.pp-accordion-chevron { transition: transform 150ms ease; color: var(--text-secondary); }
.pp-detail-accordion[open] .pp-accordion-chevron { transform: rotate(180deg); }
.pp-detail-accordion-body { padding: 0 0 14px; }
.pp-detail-accordion-body p { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary); }
.pp-detail-review { font-size: 14px; color: var(--text-secondary); margin: 0 0 10px; }

.pp-detail-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--bg-muted);
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-detail-footer .pp-btn { width: 100%; }
.pp-detail-nav-row { display: flex; gap: 10px; }
.pp-detail-nav-row .pp-btn { flex: 1; min-height: 44px; padding: 10px 12px; font-size: 14px; }
