/* What is particular to 262Travel. The colours, type and basic pieces come from base.css (the brand, docs/BRAND.md);
   light and dark (Block 56): no colour of its own, only the tokens, whose night values are in base.css and at the end of this file. */

/* On a phone the closed side menu sits just off the screen: its shadow should only show when it is open. */
@media (max-width: 860px) {
  .sidebar { box-shadow: none; }
  .app.menu-open .sidebar { box-shadow: var(--shadow-l); }
}

.stack { display: flex; flex-direction: column; }
.stack .field:last-of-type { margin-bottom: var(--space-5); }
.stack .button + .button { margin-top: var(--space-2); }
.stack-short { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); margin-top: var(--space-3); }
.full-width { width: 100%; justify-content: center; }
.centered { text-align: center; }
.spaced { margin-bottom: var(--space-5); }
.person-details { flex: 1; min-width: 0; }
.person-name { font-weight: 500; }

/* Catalogue and Settings */
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow-y: auto; font-size: var(--t-s); }
.record-name { overflow-wrap: anywhere; }
.table td.wraps, .table.stacked td.wraps { white-space: normal; overflow-wrap: anywhere; }
.notice-box + .notice-box { margin-top: var(--space-3); }
.notice-stack { margin-bottom: var(--space-5); }
.card.spaced, .notice-box.spaced { margin-bottom: var(--space-5); }
.upload-zone { display: block; }
.progress-bar { width: 100%; height: 12px; }
.end-actions { justify-content: flex-end; }
.tab-link { text-decoration: none; }
.filter-check { white-space: nowrap; }
.sticky-actions { position: sticky; bottom: 0; padding: var(--space-3) 0; background: var(--surface); }
.error-text { color: var(--text); margin-top: var(--space-2); padding-left: var(--space-3); border-left: 4px solid var(--danger); }
.centered-actions { justify-content: center; }

/* Visitor pages: a plain top bar, as visitors have no menu */
.visitor-top { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--border); background: var(--surface); }
.visitor-brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--text); text-decoration: none; }
.visitor-nav { display: flex; flex-wrap: wrap; column-gap: var(--space-3); flex: 1; min-width: 0; }
.visitor-nav a { color: var(--text-2); font-weight: 500; text-decoration: none; padding: 6px 2px; }
.visitor-nav a:hover { color: var(--text); text-decoration: underline; }
.visitor-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--text), inset 0 -4px 0 var(--accent); }
.visitor-content { margin: 0 auto; }
.visitor-content.narrow { max-width: 720px; }
.visitor-loading { height: 320px; border-radius: var(--radius); }
@media (max-width: 860px) {
  .visitor-top { padding: var(--space-3) var(--space-4); gap: var(--space-2) var(--space-3); }
  .visitor-nav { order: 3; flex-basis: 100%; }
  .visitor-top .button { margin-left: auto; }
  .visitor-content { padding: var(--space-4); }
}

/* The "Your trip" step before the questions, and its one-line summary afterwards */
.trip-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); color: var(--text); overflow-wrap: anywhere; }
.trip-summary span { flex: 1 1 auto; }
.trip-past { margin: calc(-1 * var(--space-2)) 0 var(--space-4); }

/* The questionnaire */
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.question-title { display: block; padding: 0; font-size: var(--t-l); font-weight: 600; color: var(--text); margin-bottom: var(--space-4); }
.choices { display: flex; flex-direction: column; gap: var(--space-2); }
.choice { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-s); cursor: pointer; font-weight: 400; color: var(--text); }
.choice input { flex: none; }
.choice:hover { background: var(--surface-2); }
.choice:has(input:checked) { border-color: var(--text); background: var(--accent-soft); }
.wizard-buttons { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.wizard-buttons .button.primary { margin-left: auto; }
.profile-label { display: block; font-weight: 500; color: var(--text); font-size: var(--t-s); margin-bottom: var(--space-1); }
.field[data-key] { margin-bottom: var(--space-5); }
.field[data-key]:last-child { margin-bottom: 0; }

/* Suggestions */
.visitor-content.medium { max-width: 920px; }
.section-title { font-size: var(--t-l); margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2); }
.suggestion-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.suggestion-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.suggestion-heading { min-width: 0; flex: 1 1 280px; }
.suggestion-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.suggestion-what { color: var(--text-2); margin-bottom: var(--space-4); overflow-wrap: anywhere; }
.suggestion-facts { margin-top: var(--space-3); overflow-wrap: anywhere; }
.suggestion-columns { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-5); }
.suggestion-columns > :only-child { grid-column: 1 / -1; }
.plain-lines.one-line { list-style: none; padding-left: 0; }
.list-summary { font-weight: 500; color: var(--text); }
#left-out-box { scroll-margin-top: var(--space-4); }
.chat-heading { margin-bottom: var(--space-2); }
.chat-choice { flex-wrap: wrap; }
.chat-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.chat-line { max-width: 85%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); overflow-wrap: anywhere; white-space: pre-wrap; color: var(--text); }
.chat-line.assistant { align-self: flex-start; background: var(--surface-2); }
.chat-line.person { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--border); }
.chat-thinking { margin-top: var(--space-3); }
.chat-answer { border-top: 1px solid var(--border); }
.chat-way-out { margin-top: var(--space-3); }
.taste-summary { background: var(--accent-soft); border-left: 4px solid var(--text); border-radius: var(--radius-s); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5); color: var(--text); overflow-wrap: anywhere; }
.suggestion-columns h4 { font-size: var(--t-s); color: var(--text-2); margin-bottom: var(--space-2); }
.plain-lines { margin: 0; padding-left: var(--space-4); font-size: var(--t-s); overflow-wrap: anywhere; }
.plain-lines li + li { margin-top: var(--space-1); }
.from-notes { margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.from-notes blockquote { margin: var(--space-1) 0 0; padding-left: var(--space-3); border-left: 4px solid var(--accent); overflow-wrap: anywhere; }
.list-detail.wraps { white-space: normal; overflow-wrap: anywhere; }
.notice-box.warning.spaced { display: block; }
@media (max-width: 640px) {
  .suggestion-columns { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Settings: the questionnaire */
.question-editor { border: 1px solid var(--border); border-radius: var(--radius-s); padding: var(--space-4); margin-bottom: var(--space-3); }

/* Your verdict */
.verdict-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.verdict-choice[aria-pressed="true"] { background: var(--accent); border-color: var(--text); color: var(--on-accent); }
.verdict-reason { margin-bottom: 0; }
.verdict-choices.in-row { margin: 0; gap: var(--space-1); }
.row-detail { margin-top: var(--space-1); }
.removed-list { margin: var(--space-2) 0 0; padding-left: var(--space-4); overflow-wrap: anywhere; }
.other-note-source { margin: var(--space-4) 0 var(--space-2); }

/* --- The consumer pages: landing, what comes next, checkout. The same brand as the rest: Lexend, aguamarina, navy. --- */
.landing {
  --l-paper: var(--background); --l-paper-2: var(--surface-2); --l-card: var(--surface); --l-ink: var(--text); --l-ink-2: var(--text-2); --l-line: var(--border);
  --l-deep: var(--nav-bg); --l-on-deep: var(--nav-text); --l-on-deep-2: var(--nav-text-2);
  background: var(--background); color: var(--text-2); font-size: 1rem; line-height: 1.5;
}
.l-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
.landing h1, .landing .l-title, .l-story h2, .v-demo h2, .l-result h2, .v-summary h2 { font-weight: 600; letter-spacing: -.01em; text-align: left; }
.l-eyebrow { display: inline-block; background: var(--accent); color: var(--on-accent); border: 1px solid var(--on-accent); border-radius: 999px; padding: 4px 14px; font-size: var(--t-s); font-weight: 500; margin-bottom: var(--space-4); }
.l-lede { font-size: 1.125rem; color: var(--l-ink-2); max-width: 36em; }
.l-cta-note { color: var(--l-ink-2); font-size: var(--t-s); }
.l-button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: var(--radius-s); background: var(--accent); color: var(--on-accent); border: 1px solid var(--text); font-weight: 500; font-size: 1rem; text-decoration: none; transition: background .15s; }
.l-button:hover { background: var(--accent-strong); text-decoration: none; }
.l-button:focus-visible, .l-nav a:focus-visible, .l-signin:focus-visible { outline: none; box-shadow: var(--ring); }
.l-title { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.2; margin-bottom: var(--space-4); max-width: 24em; }
.l-sub { color: var(--l-ink-2); margin-bottom: var(--space-6); max-width: 40em; }
.l-places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.l-places li { padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: var(--t-s); }

/* --- The landing page (Block 20): the look of the "Painted postcards" mock-up and the content of "Product first".
   Paintings on white mats with a slight tilt, handwritten captions in Caveat, app cards drawn in HTML. Only on the landing
   page (body.l-home); what comes next and the checkout keep the rules above. Never text on a painting. --- */
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("fonts/caveat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.l-home {
  --l-hand-font: "Caveat", var(--font);
  --l-float: 0 1px 2px color-mix(in srgb, var(--shade) 10%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--shade) 38%, transparent);
  --l-line-soft: color-mix(in srgb, var(--border) 60%, var(--surface));
}
.l-home .l-wrap, .l-home .l-top { max-width: 1200px; padding-left: 40px; padding-right: 40px; }
.l-home .l-title { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.015em; max-width: 19em; }
.l-home .l-sub { font-size: 1.125rem; max-width: 36em; margin-bottom: 44px; color: var(--text-2); }
.l-hand { font-family: var(--l-hand-font); font-weight: 500; font-size: 1.5rem; line-height: 1.1; color: var(--text-3); text-align: center; }

/* Top bar */
.l-top { margin: 0 auto; padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: var(--space-5); }
.l-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.l-nav { display: flex; gap: 28px; margin-left: auto; }
.l-nav a { color: var(--text-2); font-weight: 500; text-decoration: none; padding: 10px 2px; }
.l-nav a:hover { text-decoration: underline; }
.l-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--text); border-radius: 999px; color: var(--text); font-weight: 500; text-decoration: none; }
.l-signin:hover { background: var(--surface); }
.l-nav a:focus-visible, .l-signin:focus-visible, .l-ghost:focus-visible { outline: none; box-shadow: var(--ring); }

/* Buttons: a pill, as in the mock-up */
.l-home .l-button { min-height: 52px; padding: 0 28px; border-radius: 999px; border-width: 1.5px; font-size: 1.0625rem; }
.l-ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; color: var(--text); font-weight: 500; text-underline-offset: 4px; }
.l-ghost:hover { text-decoration-thickness: 2px; }

/* Hero */
.l-hero { padding: 40px 0 88px; }
.l-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.l-home .l-eyebrow { background: var(--surface); color: var(--text); border-color: var(--border); padding: 6px 14px; margin-bottom: 22px; }
.l-hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 22px; }
.l-hero h1 em { font-style: normal; font-weight: inherit; background: linear-gradient(transparent 62%, var(--marker) 62%); }
.l-hero .l-lede { font-size: 1.1875rem; color: var(--text-2); max-width: 32em; margin-bottom: 30px; }
.l-hero .l-cta { margin-top: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.l-hero .l-cta-note { margin-top: 14px; color: var(--text-3); }
.l-chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.l-chips li { display: flex; }
/* Review 44: each chip opens the trip questions with its country chosen. */
.l-chips a { display: inline-flex; align-items: center; min-height: 30px; font-size: var(--t-s); font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.l-chips a:hover { border-color: var(--text); text-decoration: none; }
.l-chips a:focus-visible, .l-d-link:focus-visible { outline: none; box-shadow: var(--ring); }

/* A white mat around a painting */
.l-postcard { margin: 0; background: var(--paper); padding: 14px 14px 10px; border-radius: 4px; box-shadow: var(--l-float); }
.l-postcard img { display: block; width: 100%; height: auto; border-radius: 2px; }
.l-postcard .l-hand { margin-top: 6px; }

/* Two postcards of our own trips, and over them the example trip's three app cards, labelled as one group */
.l-scene { position: relative; height: 740px; }
.l-stack { position: absolute; inset: 0; }
.l-stack .l-postcard { position: absolute; }
.l-pc-main { width: 290px; left: 215px; top: 10px; transform: rotate(-3deg); z-index: 2; }
.l-pc-right { width: 190px; right: 0; top: 110px; transform: rotate(7deg); z-index: 1; padding-bottom: 14px; }
.l-apps .l-app { position: absolute; }
.l-app { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--l-float); font-size: var(--t-s); }
.l-app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; padding: 12px 18px; border-bottom: 1px solid var(--l-line-soft); font-weight: 600; color: var(--text); }
.l-app-head small { font-size: var(--t-s); font-weight: 400; color: var(--text-3); }
.l-app-body { list-style: none; margin: 0; padding: 10px 18px 14px; }
.l-app-route { left: 0; top: 118px; width: 300px; z-index: 3; }
.l-app-day { left: 0; top: 442px; width: 330px; z-index: 4; }
.l-app-budget { right: 0; top: 470px; width: 268px; z-index: 5; }
.l-stops li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 6px 0; border-bottom: 1px dashed var(--border); }
.l-stops li:last-child { border-bottom: 0; }
.l-stops b, .l-items b { font-weight: 500; color: var(--text); }
.l-nights { white-space: nowrap; color: var(--text-2); }
.l-items li { display: flex; gap: 12px; padding: 7px 0; }
.l-time { width: 46px; flex: none; color: var(--text-3); }
.l-items b { display: block; }
.l-item-note { display: block; color: var(--text-3); }
.l-pill { display: inline-block; font-size: var(--t-s); font-weight: 500; line-height: 1.4; padding: 0 8px; border-radius: 999px; background: var(--danger-soft); color: var(--text); margin-left: 4px; white-space: nowrap; }
.l-pill-ok { background: var(--accent-soft); }
.l-row { display: flex; justify-content: space-between; gap: var(--space-2); }
.l-bar { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 4px 0 10px; }
.l-bar i { display: block; height: 100%; background: var(--text); }
.l-bar i.l-bar-accent { background: var(--accent); box-shadow: inset 0 0 0 1px var(--text); }
.l-w7 { width: 7%; } .l-w24 { width: 24%; } .l-w40 { width: 40%; } .l-w68 { width: 68%; } .l-w80 { width: 80%; }
.l-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-2); font-weight: 600; color: var(--text); border-top: 1px solid var(--l-line-soft); padding-top: 10px; margin-top: 2px; }
.l-example { position: absolute; left: 14px; top: 58px; margin: 0; font-size: 1.75rem; color: var(--text-2); transform: rotate(-4deg); text-align: left; }
.l-example::after { content: " \2193"; }

/* Sections */
.l-section { padding: 96px 0; }
.l-band { background: var(--surface); border-top: 1px solid var(--l-line-soft); border-bottom: 1px solid var(--l-line-soft); padding: 88px 0; }

/* What it does */
.l-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.l-features h3 { font-size: 1.25rem; margin: 26px 0 8px; }
.l-mat { background: var(--paper); padding: 14px; border-radius: 4px; box-shadow: var(--l-float); transform: rotate(-1.5deg); }
.l-features li:nth-child(even) .l-mat { transform: rotate(1.5deg); }
.l-mini { background: var(--background); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: var(--t-s); min-height: 168px; }
.l-mini-head { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.l-mini-route { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.l-mini-route::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; border-left: 2px dotted var(--text); }
.l-mini-route li { position: relative; display: flex; justify-content: space-between; gap: var(--space-2); padding: 5px 0; }
.l-mini-route li::before { content: ""; position: absolute; left: -18px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--text); }
.l-mini-route li span:first-child { color: var(--text); font-weight: 500; }
.l-mini-days { list-style: none; margin: 0; padding: 0; }
.l-mini-days li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 5px 0; border-top: 1px dashed var(--border); }
.l-mini-days li:first-child { border-top: 0; }
.l-mini-days li span:first-child { color: var(--text-3); width: 44px; }
.l-mini-days li span:nth-child(2) { color: var(--text); flex: 1; min-width: 0; }
.l-mini-days .l-pill { margin-left: 54px; }

/* What we leave out */
.l-left-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.l-left-grid .l-sub { margin-bottom: 0; }
.l-results { display: grid; gap: 14px; }
.l-result { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--radius-l); padding: 20px 22px; }
.l-result h3 { font-size: 1.125rem; margin-bottom: 8px; }
.l-result h3 s { text-decoration-thickness: 2px; text-decoration-color: var(--danger-strong); }
.l-result-tag { display: flex; align-items: center; gap: var(--space-2); font-size: var(--t-s); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.l-result-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px var(--text); flex: none; }
.l-kept::before { background: var(--accent); }
.l-out::before { background: var(--danger); }
.l-result dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: var(--t-s); }
.l-result dt { font-weight: 500; color: var(--text); }
.l-result dd { margin: 0; }

/* Where you can plan: every country a postcard on its white mat; one with no painting yet is the brand tile (Review 43).
   Review 43: the server gives the list how many cards a row holds (src/landing-countries.js columnsFor), so no row ends with one card
   alone: l-wide-N on a wide window, l-middle-N from 901 to 1099 px; a card is never wider than a painting needs (200 px). Under 900 px
   the cards are one row that scrolls sideways. */
.l-dest { --l-cols: 6; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--l-cols), minmax(0, 1fr)); gap: 22px; max-width: calc(var(--l-cols) * 200px + (var(--l-cols) - 1) * 22px); }
.l-wide-1 { --l-cols: 1; } .l-wide-2 { --l-cols: 2; } .l-wide-3 { --l-cols: 3; } .l-wide-4 { --l-cols: 4; } .l-wide-5 { --l-cols: 5; } .l-wide-6 { --l-cols: 6; } .l-wide-7 { --l-cols: 7; }
@media (max-width: 1099px) {
  .l-middle-1 { --l-cols: 1; } .l-middle-2 { --l-cols: 2; } .l-middle-3 { --l-cols: 3; } .l-middle-4 { --l-cols: 4; } .l-middle-5 { --l-cols: 5; }
}
.l-d { position: relative; background: var(--paper); padding: 10px 10px 0; border-radius: 4px; box-shadow: var(--l-float); display: flex; flex-direction: column; transform: rotate(-1.2deg); }
.l-d:nth-child(even) { transform: rotate(1.2deg); }
/* Review 44: the whole card is the link to the trip questions with its country chosen. */
.l-d-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; border-radius: 2px; }
.l-d-link:hover { text-decoration: none; }
.l-d-link:hover .l-d-name { text-decoration: underline; text-underline-offset: 3px; }
.l-d img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
/* Review 43: the brand tile of a country with no painting yet (the landing and /countries): the navy of the bands with the trip
   band's glow and dots, the 262 mark, an aguamarina rule and the name set large, the size of a painting; the same by day and by night
   (the navy tokens have both values). Its words scale with the tile (cqi), so a long name still fits. */
.l-tile { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: 12% 11%; border-radius: 2px; overflow: hidden; container-type: inline-size;
  color: var(--nav-text); background-color: var(--nav-bg);
  background-image:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent) 0, transparent 46%),
    radial-gradient(circle at 0% 112%, color-mix(in srgb, var(--island-glow) 80%, transparent) 0, transparent 58%),
    radial-gradient(color-mix(in srgb, var(--nav-text) 9%, transparent) 1px, transparent 1.6px);
  background-size: auto, auto, 14px 14px; }
.l-tile-mark { align-self: flex-start; padding: 1px 6px; border: 1.5px solid var(--accent); border-radius: 6px; color: var(--accent); font-weight: 600; font-size: var(--t-xs); line-height: 1.35; letter-spacing: .02em; }
.l-tile-name { font-weight: 600; font-size: 15cqi; line-height: 1.08; letter-spacing: -.01em; color: var(--nav-text); overflow-wrap: anywhere; hyphens: auto; }
.l-tile-name::before { content: ""; display: block; width: 30%; height: 4px; margin-bottom: 9cqi; border-radius: 2px; background: var(--accent); }
.l-d-name { padding: 10px 4px 12px; font-weight: 600; color: var(--text); font-size: var(--t-m); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.l-mid-cta { margin: 44px 0 0; }

/* Painted from our own trips */
.l-strip { list-style: none; margin: 0; padding: 0 0 14px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.l-strip .l-postcard { padding: 10px 10px 6px; }
.l-strip .l-postcard:nth-child(odd) { transform: rotate(-1.5deg); }
.l-strip .l-postcard:nth-child(even) { transform: rotate(1.5deg) translateY(14px); }
.l-strip img { aspect-ratio: 5 / 7; object-fit: cover; }
.l-strip .l-hand { font-size: 1.375rem; margin-top: 4px; }

/* How it starts */
.l-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.l-steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 20px; }
.l-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); border: 1px solid var(--on-accent); font-weight: 600; line-height: 1; color: var(--on-accent); margin-bottom: 14px; }
.l-steps h3 { font-size: 1.25rem; margin-bottom: 8px; }

/* Our story */
.l-story { background: var(--l-deep); color: var(--l-on-deep); padding: 104px 0; }
.l-story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.l-story-card { max-width: 340px; transform: rotate(-2deg); box-shadow: none; }
.l-story h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.15; margin-bottom: 22px; color: var(--l-on-deep); }
.l-story-text p { margin-bottom: 14px; font-size: 1.0625rem; color: var(--l-on-deep); max-width: 36em; }
.l-story-text em { color: var(--l-on-deep); }

/* The last call, and the footer */
.l-final { padding: 104px 0; }
.l-final .l-sub { margin-bottom: 32px; }
.l-footer { border-top: 1px solid var(--l-line-soft); padding: 28px 0; font-size: var(--t-s); color: var(--text-3); }
.l-footer .l-wrap { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

/* A phone, and a narrow window: what the mock-ups' 900 px branch gives. Postcards first, the cards stacked under them. */
@media (max-width: 900px) {
  .l-home .l-wrap, .l-home .l-top { padding-left: 16px; padding-right: 16px; }
  .l-top { padding-top: 14px; padding-bottom: 14px; }
  .l-nav { display: none; }
  .l-signin { margin-left: auto; }
  .l-hero { padding: 16px 0 56px; }
  .l-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .l-hero h1 { font-size: 2.375rem; }
  .l-hero .l-lede { font-size: 1.0625rem; }
  /* The first screen holds the headline, the button and a painting: the text and the scene lose their boxes, so the
     main postcard sits beside the lede; the back postcard is left out, and the example's cards come after the chips. */
  .l-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 0 16px; align-items: start;
    grid-template-areas: "eyebrow eyebrow" "title title" "lede card" "cta cta" "note note" "chips chips" "apps apps"; }
  .l-hero-text, .l-scene, .l-stack { display: contents; }
  .l-hero .l-eyebrow { grid-area: eyebrow; justify-self: start; margin-bottom: 14px; }
  .l-hero h1 { grid-area: title; margin-bottom: 18px; }
  .l-hero .l-lede { grid-area: lede; margin-bottom: 22px; }
  .l-stack .l-pc-main { grid-area: card; position: static; width: auto; padding: 8px 8px 6px; transform: rotate(3deg); margin-top: 4px; }
  .l-pc-main .l-hand { font-size: 1.125rem; }
  .l-pc-right { display: none; }
  .l-hero .l-cta { grid-area: cta; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .l-hero .l-cta .l-button { width: 100%; }
  .l-hero .l-cta .l-ghost { justify-content: center; }
  .l-hero .l-cta-note { grid-area: note; margin-top: 4px; text-align: center; }
  .l-hero .l-chips { grid-area: chips; }
  .l-apps { grid-area: apps; display: grid; gap: 14px; margin-top: 36px; }
  .l-apps .l-app { position: static; width: auto; }
  .l-example { position: static; transform: rotate(-2deg); margin: 0 0 -4px 6px; }
  .l-features .l-mat { display: none; }
  .l-features h3 { margin-top: 0; }
  .l-section, .l-band, .l-final { padding: 64px 0; }
  .l-story { padding: 64px 0; }
  .l-home .l-sub { font-size: 1.0625rem; margin-bottom: 32px; }
  .l-features, .l-left-grid, .l-steps, .l-story-grid { grid-template-columns: minmax(0, 1fr); }
  .l-left-grid { gap: 32px; }
  .l-features { gap: 28px; }
  .l-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  /* Review 43: one row of cards that scrolls sideways, each card stopping at the edge, a part of the next in sight. Its own padding
     keeps the tilted cards' corners and shadows inside it. */
  .l-dest { display: flex; gap: 14px; max-width: none; margin: 0 -16px; padding: 10px 16px 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; }
  .l-dest > .l-d { flex: 0 0 clamp(128px, 38%, 200px); scroll-snap-align: start; }
  .l-dest:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius); }
  .l-strip { row-gap: 24px; }
  .l-d { padding: 6px 6px 0; }
  .l-d-name { padding: 8px 2px 10px; font-size: var(--t-s); }
  .l-strip .l-hand { font-size: 1.125rem; }
  .l-mid-cta .l-button { width: 100%; }
  .l-story-card { max-width: 300px; margin: 0 auto; }
}


/* What comes next, and the checkout */
.visitor-page .visitor-top { background: transparent; border-bottom-color: var(--l-line); }
.v-main { max-width: 1040px; margin: 0 auto; padding: var(--space-7) var(--space-6) 72px; }
.v-main h1 { font-size: clamp(1.75rem, 3.8vw, 2.625rem); line-height: 1.15; margin-bottom: var(--space-4); }
.v-loading { margin-top: var(--space-5); height: 140px; }
.v-go-back { margin-top: var(--space-5); }
.v-build { margin-top: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.v-build p { margin: 0; }
.v-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-6); padding: var(--space-5) 0; border-top: 3px solid var(--l-ink); border-bottom: 1px solid var(--l-line); }
.v-numbers > div { display: flex; flex-direction: column; color: var(--l-ink-2); font-size: var(--t-s); }
.v-number { font-size: 2.5rem; font-weight: 600; line-height: 1.15; color: var(--text); }
.v-detail { margin-top: var(--space-6); }
.v-detail h2 { font-size: 1.125rem; margin-bottom: var(--space-3); }
.v-chips li { color: var(--text); }
.v-names { margin: 0; padding-left: var(--space-5); overflow-wrap: anywhere; }
.v-left-out { list-style: none; margin: 0; padding: 0; }
.v-left-out li { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px dashed var(--text-3); overflow-wrap: anywhere; }
.v-left-out strong { font-weight: 500; text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.v-left-out span { color: var(--l-ink-2); }
.v-left-out .v-left-out-more { display: block; }
.v-section { margin-top: 72px; }
.v-adds { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.v-adds > div { padding-top: var(--space-4); border-top: 3px solid var(--text); }
.v-adds h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.v-adds p { color: var(--l-ink-2); font-size: var(--t-s); }
.v-join { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-5); align-items: start; }
.v-form { background: var(--l-card); border: 1px solid var(--l-line); border-radius: var(--radius-l); padding: var(--space-6); min-width: 0; }
.v-form h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.v-form .field { margin-bottom: var(--space-5); }
.v-form .l-sub { margin-bottom: var(--space-5); }
.v-form .field > label, .v-form .profile-label { font-size: var(--t-m); font-weight: 500; color: var(--l-ink); }
.v-form .profile-label { margin-bottom: var(--space-3); }
.v-form .button.primary { padding: 12px 24px; height: auto; font-size: 1rem; white-space: normal; }
.v-saved { margin-top: var(--space-4); }
.v-demo { padding: var(--space-6); background: var(--l-deep); color: var(--l-on-deep); border-radius: var(--radius-l); }
.v-demo p.l-eyebrow { margin-bottom: var(--space-2); color: var(--on-accent); }
.v-demo h2 { font-size: 1.375rem; margin-bottom: var(--space-2); color: var(--l-on-deep); }
.v-demo p { margin-bottom: var(--space-4); color: var(--l-on-deep); }
.v-demo p.small { color: var(--l-on-deep-2); margin: var(--space-2) 0 0; }
.v-demo .button { background: var(--accent); border-color: var(--accent); color: var(--on-accent); height: auto; padding: 10px 20px; --ring: 0 0 0 2px var(--nav-bg), 0 0 0 4px var(--accent); }
.v-demo .button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.v-checkout { padding-top: var(--space-5); }
.v-demo-banner { padding: var(--space-3) var(--space-4); background: var(--accent-soft); border: 1px solid var(--border); border-left: 4px solid var(--text); border-radius: var(--radius); color: var(--text); margin-bottom: var(--space-5); }
.v-checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5); align-items: start; }
.v-buy { width: 100%; justify-content: center; }
.v-summary { padding: var(--space-5); background: var(--l-paper-2); border-radius: var(--radius-l); }
.v-summary h2 { font-size: 1.25rem; margin-bottom: var(--space-3); }
.v-summary-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.v-summary-list li { display: flex; flex-direction: column; padding: var(--space-3) 0; border-top: 1px dashed var(--text-3); }
.v-summary-list span { color: var(--l-ink-2); font-size: var(--t-s); }
.v-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-3); border-top: 3px solid var(--l-ink); margin-bottom: var(--space-2); }
.v-total strong { font-size: 1.375rem; font-weight: 600; }
.v-summary p.small { color: var(--l-ink-2); }
/* Block 16: the checkout's three steps */
.v-checkout > .l-sub { margin-bottom: var(--space-5); }
.v-step + .v-step { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--l-line); }
.v-step-title { display: flex; align-items: center; gap: var(--space-3); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-4); }
.v-step-number { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1rem; }
.v-step .form-grid { margin-bottom: var(--space-2); }
.v-step .form-grid .field { margin-bottom: var(--space-3); min-width: 0; }
.v-fixed-dates { margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.v-step-intro { margin-bottom: var(--space-4); }
.v-price { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-bottom: var(--space-2); overflow-wrap: anywhere; }
.v-adds-small { grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-3); }
/* Block 28: the two ways to buy at the Price step */
.v-options { margin-top: var(--space-4); }
.v-options-legend { padding: 0; font-size: var(--t-l); font-weight: 600; color: var(--text); margin-bottom: var(--space-3); }
.v-option-list { display: flex; flex-direction: column; gap: var(--space-3); } /* One above the other: the checkout column is narrow, and Premium has more to say */
.v-option { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; color: var(--text); min-width: 0; font-weight: 400; }
.v-option input { flex: none; margin-top: 5px; width: 18px; height: 18px; accent-color: var(--text); }
@media (hover: hover) { .v-option:hover { background: var(--surface-2); } }
.v-option:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--text); }
.v-option:has(input:focus-visible) { box-shadow: var(--ring); }
.v-option-body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.v-option-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-3); }
.v-option-name { font-size: var(--t-l); font-weight: 600; }
.v-option-price { font-size: var(--t-xl); font-weight: 600; overflow-wrap: anywhere; }
.v-option-text { color: var(--text-2); overflow-wrap: anywhere; }
.v-option-points { margin: 0; padding-left: var(--space-5); color: var(--text-2); display: flex; flex-direction: column; gap: var(--space-1); }
.v-adds-title { font-size: var(--t-l); font-weight: 600; color: var(--text); margin-top: var(--space-6); } /* Review 19: as "Choose how we make your trip" */
#price-changed { margin-bottom: var(--space-3); }
/* Review 19: on a phone the Premium card stays short: the radio's indent is enough, so the list's own is small */
@media (max-width: 480px) {
  .v-option { padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); gap: var(--space-2); }
  .v-option-body { gap: var(--space-1); }
  .v-option-points { padding-left: var(--space-4); gap: 2px; }
}
/* Review 19: what is odd but allowed in Settings, said under the field (never a refusal) */
.field-warning { margin: var(--space-1) 0 0; padding: var(--space-2) var(--space-3); }
.table-note { margin-top: var(--space-2); }
/* Block 46: the Premium card on a client's Overview: its support line and what Premium brings */
.premium-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.premium-points li { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--text); overflow-wrap: anywhere; }
.premium-points li .icon { flex: none; margin-top: 3px; }
.v-pay-note { margin-top: var(--space-2); }
.v-summary .v-total strong { overflow-wrap: anywhere; text-align: right; }

@media (max-width: 860px) {
  .l-button { width: 100%; }
  .v-main { padding: var(--space-5) var(--space-5) var(--space-7); }
  .v-numbers { gap: var(--space-3); }
  .v-number { font-size: 2rem; }
  .v-numbers > div { font-size: var(--t-s); }
  .v-left-out li { grid-template-columns: 1fr; gap: var(--space-1); }
  .v-section { margin-top: var(--space-7); }
  .v-adds { grid-template-columns: 1fr 1fr; }
  .v-join, .v-checkout-grid { grid-template-columns: 1fr; }
  .v-form { padding: var(--space-5) var(--space-4); }
  .v-demo { padding: var(--space-5); }
}
@media (max-width: 480px) {
  .v-adds { grid-template-columns: 1fr; }
  .v-step .form-grid { grid-template-columns: 1fr; }
}

/* Block 16: how far finishing a bought trip got, on /app */
.trip-build { display: flex; align-items: flex-start; gap: var(--space-2); flex-direction: column; margin-bottom: var(--space-4); overflow-wrap: anywhere; }
.trip-build:not(:has(ul)) { flex-direction: row; align-items: center; }
.trip-build p { margin: 0; }
.trip-build ul { margin: 0; padding-left: var(--space-5); }
.trip-build-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: trip-build-pulse 1.2s ease-in-out infinite; }
@keyframes trip-build-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .trip-build-dot { animation: none; } }

/* The customer's top bar */
.client-gap { flex: 1; }
@media (max-width: 640px) {
  .client-gap { display: none; }
  .visitor-top .person { order: 3; flex-basis: 100%; }
  .visitor-top .person + .button { margin-left: auto; }
  .visitor-top { gap: var(--space-1) var(--space-2); }
  .visitor-top .button.small { padding: 0 var(--space-2); }
}

/* Sales results */
.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.funnel-text { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--t-s); }
.funnel-label { overflow-wrap: anywhere; }
.funnel-bar { display: block; width: 100%; height: 12px; margin-top: 2px; }
.results-filters { padding: var(--space-3) var(--space-4) 0; }
.sales-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); }
.sales-step .value { font-size: var(--t-xl); font-weight: 600; color: var(--text); }
.sales-step .caption { font-size: var(--t-s); color: var(--text-2); }
.next-box { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

/* Google Maps links, and the translated insight on a record */
.row-maps { margin-top: var(--space-2); }
.maps-link { color: var(--text); text-decoration: underline; white-space: nowrap; font-weight: 400; }
.maps-link:hover { text-decoration-thickness: 2px; }
.place-in-notes { margin-top: var(--space-1); }
.insight-heading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); }
.insight-heading label { margin: 0; }
.insight-original { margin-top: var(--space-2); }

/* The customer area */
.wraps-text { overflow-wrap: anywhere; }
.trip-link { color: inherit; text-decoration: underline; }
.trip-link:hover { text-decoration-thickness: 2px; }
.trip-card-header { align-items: flex-start; gap: var(--space-3); }
/* Review 19: the stage and, on a Premium trip, its tag; side by side, or one under the other when the name is long */
.trip-shared-line { margin: var(--space-2) 0 0; } /* Review 21: "Shared by María N." under the trip's name. */
.trip-card-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-1) var(--space-2); flex: none; max-width: 50%; }
.trip-card-actions { margin-top: var(--space-4); flex-wrap: wrap; }
.pending-list { margin-bottom: var(--space-4); }
.pending-list > li, .flush-list > li { padding-left: 0; padding-right: 0; }
.flush-list > li { flex-wrap: wrap; }
.flush-list .list-main { flex: 1 1 220px; min-width: 0; }
.pending-title { font-weight: 500; color: var(--text); font-size: var(--t-s); }
.section-with-action { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.section-with-action .section-title { margin-bottom: var(--space-1); }
.rejected-line { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.rejected-line:not(:has(> :not([hidden]))) { display: none; }
.card-body > .pending-list:last-child { margin-bottom: 0; }
/* The trip form is tall on a phone: its buttons stay in view while the fields scroll. */
.trip-dialog[open] { display: flex; }
.trip-dialog form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.trip-dialog .dialog-body { flex: 1 1 auto; min-height: 0; }

/* The day-by-day plan */
.content.plan-page { max-width: 1560px; }
.plan-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.plan-layout[hidden] { display: none; }
.plan-side { position: sticky; top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); max-height: calc(100vh - 2 * var(--space-4)); max-height: calc(100dvh - 2 * var(--space-4)); overflow-y: auto; }
.plan-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.plan-layout .column { min-height: 0; display: flex; flex-direction: column; min-width: 0; }
.plan-layout .plan-day { min-height: 110px; }
.plan-box summary { cursor: pointer; }
.plan-layout details.plan-box { display: block; }
.plan-layout .column-header { gap: var(--space-2); }
.plan-column-title { font-size: var(--t-m); font-weight: 600; margin: 0; }
.plan-day-number { color: var(--text-3); font-weight: 500; margin-left: var(--space-1); }
.plan-cards { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.plan-empty { padding: 0 var(--space-2) var(--space-3); }
.plan-add { align-self: flex-start; }
.plan-card { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.plan-card .card-title { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.plan-card-title { display: flex; align-items: baseline; gap: var(--space-2); }
.plan-time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); flex: none; }
.plan-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.plan-notes { white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.plan-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: calc(-1 * var(--space-2)); }
.plan-more { position: relative; align-self: flex-start; }
.plan-more summary { list-style: none; cursor: pointer; }
.plan-more summary::-webkit-details-marker { display: none; }
.plan-more .menu { left: 0; top: calc(100% + 4px); }
.plan-more .menu button { min-height: 44px; justify-content: flex-start; width: 100%; }
.plan-card-actions .button { padding-inline: var(--space-2); }
.plan-today-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.plan-day.is-today { box-shadow: inset 0 0 0 2px var(--text); }
.plan-day { scroll-margin-top: var(--space-4); }
.plan-drop-line { height: 4px; flex: none; margin: 0 0 var(--space-2); border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 1px var(--text); }
.plan-days-form { display: flex; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.plan-days-form .field { margin: 0; text-align: left; }
.plan-days-form input { width: 120px; }
.plan-days-form .button { margin-top: calc(var(--t-s) * 1.5 + var(--space-1)); }
#days-bar .plan-days-form { justify-content: flex-start; margin-bottom: var(--space-4); }
.plan-first { grid-column: 1 / -1; }
/* The itinerary on the plan: a stop's header above its days, the base of a day under its name, a summary, and ideas nearby. */
.plan-stop-header { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); flex-wrap: wrap; margin-top: var(--space-3); padding-bottom: var(--space-2); border-bottom: 2px solid var(--text); }
.plan-stop-header:first-child { margin-top: 0; }
.plan-stop-header h2 { margin: 0; font-size: var(--t-m); font-weight: 600; overflow-wrap: anywhere; }
.plan-day-base { display: block; font-size: var(--t-s); font-weight: 500; color: var(--text-3); }
.plan-day-summary { margin: 0 var(--space-2) var(--space-3); }
.plan-ideas { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--surface-2); border-radius: var(--radius); }
.plan-ideas h3 { margin: 0; font-size: var(--t-s); font-weight: 600; color: var(--text-2); }
.plan-idea { display: flex; flex-direction: column; gap: var(--space-1); }
.plan-idea-name { font-weight: 500; overflow-wrap: anywhere; }
/* Review 17: the voice tag is as wide as its words, with the note or verdict beside it. */
.plan-voice { margin: 0; overflow-wrap: anywhere; }
.plan-voice .tag { display: inline-flex; width: auto; vertical-align: 1px; }
.plan-voice q { font-style: italic; }
.plan-idea-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.plan-build-result { white-space: pre-line; }
.plan-dialog-inner { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.plan-choices { display: flex; flex-direction: column; gap: var(--space-2); flex: 1 1 auto; min-height: 0; }
.plan-choice { flex: none; justify-content: space-between; width: 100%; min-height: 44px; text-align: left; white-space: normal; }
.plan-delete { margin-right: auto; }
@media (max-width: 860px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .plan-side { position: static; max-height: none; overflow: visible; }
  .plan-days { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .plan-layout .plan-day { min-height: 0; }
  .plan-day .plan-empty { display: none; }
  /* An empty day with nothing to say is one line on a phone, so a long trip stays quick to scroll. A day of the itinerary keeps
     its summary and ideas under its name. */
  .plan-layout .plan-day:has(.plan-empty):not(:has(.plan-day-summary, .plan-ideas)) { flex-direction: row; align-items: center; justify-content: space-between; }
  .plan-day:has(.plan-empty):not(:has(.plan-day-summary, .plan-ideas)) .column-header { padding: 0 var(--space-2); }
  .plan-day:has(.plan-empty) .plan-cards { flex: none; }
  .plan-card-actions .button, .plan-add { min-height: 40px; }
}

/* ---------- The Budget (Block 18): the estimate built with the itinerary ---------- */
.content.estimate-page { max-width: 1100px; }
.estimate-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4) var(--space-6); align-items: center; padding: var(--space-5); border-radius: var(--radius-l); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.estimate-head p { margin: 0; }
.estimate-main { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.estimate-total { font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.estimate-who { font-size: 1.0625rem; }
.estimate-unknown { margin-top: var(--space-2) !important; }
.estimate-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.estimate-styles { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); }
.estimate-style-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.estimate-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-4); }
.estimate-value { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.estimate-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate-amount { display: block; font-weight: 500; color: var(--text); }
.estimate-home { display: block; font-size: 0.875rem; color: var(--text-3); }
.estimate-line-title { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.estimate-line-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-top: var(--space-1); }
.estimate-day th, .estimate-day td { background: var(--surface-2); font-weight: 600; color: var(--text); }
.estimate-day-total { font-variant-numeric: tabular-nums; }
.estimate-page .card-header { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.estimate-flights td { color: var(--text-3); }
/* Review 10: the Budget by city, each a card that opens into its days */
.estimate-cities { display: flex; flex-direction: column; }
/* Block 37: each country's part of the Budget. */
.estimate-countries td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate-countries td[data-label="Country"] .tag { margin: 2px 0 0 var(--space-1); }
.estimate-countries-note { margin: 0; padding: var(--space-3) var(--space-5) var(--space-4); }
.today-border { margin-top: var(--space-5); }
.today-border .card-header { background: var(--accent-soft); }
.today-border .card-body > p { margin: 0 0 var(--space-3); }
.today-border .today-needs { flex-direction: row; flex-wrap: wrap; gap: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
.today-border .today-need { flex: 1 1 240px; min-width: 0; }
.today-border a { color: var(--text); text-underline-offset: 3px; }
.estimate-city + .estimate-city { border-top: 1px solid var(--border); }
.estimate-city-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-5); min-height: 56px; cursor: pointer; list-style: none; }
.estimate-city-head::-webkit-details-marker { display: none; }
.estimate-city-head::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(-45deg); transition: transform .15s; margin-right: var(--space-1); }
.estimate-city[open] > .estimate-city-head::before { transform: rotate(45deg); }
.estimate-city-head:hover { background: var(--surface-2); }
.estimate-city-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 14rem; }
.estimate-city-title { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.estimate-city-flags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.estimate-city .table-wrap { border-top: 1px solid var(--border); }
.estimate-city-table tr.estimate-day th, .estimate-city-table tr.estimate-day td { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.budget-vs-spent { font-weight: 500; color: var(--text); }
.budget-vs-spent a { margin-left: var(--space-2); font-weight: 400; }
#line-form .field[hidden] { display: none; }
@media (max-width: 860px) {
  .estimate-head { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .estimate-total { font-size: 1.625rem; }
  .estimate-side, .estimate-styles { align-items: flex-start; }
  .estimate-style-buttons { justify-content: flex-start; }
  .estimate-style-buttons .button { min-height: 40px; }
  .estimate-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .table.stacked tr.estimate-day { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); background: var(--surface-2); padding: var(--space-2) var(--space-4); }
  .table.stacked tr.estimate-day th, .table.stacked tr.estimate-day td { display: block; border: 0; padding: 0; background: transparent; }
  .estimate-money { text-align: right; }
  .table.stacked tr.estimate-day td::before { display: none; }
  .table.stacked tr.estimate-day td.estimate-day-end { display: none; }
  /* Review 10: compact rows inside a city: the title and its amount on one line, the buttons under them, no kind or "Amount" label */
  .estimate-city-head { padding: var(--space-3) var(--space-4); }
  .table.stacked.estimate-city-table tr.estimate-day { padding: var(--space-2) var(--space-4); flex-wrap: nowrap; }
  .table.stacked.estimate-city-table tr.estimate-day th { flex: 1 1 auto; min-width: 0; width: auto; }
  .table.stacked.estimate-city-table tr.estimate-day td { flex: none; width: auto; }
  .table.stacked.estimate-city-table tr[data-line] { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); padding: var(--space-2) var(--space-4); }
  .table.stacked.estimate-city-table tr[data-line] td { padding: 0; }
  .table.stacked.estimate-city-table tr[data-line] td:first-child { grid-column: 1; grid-row: 1; padding: 0; }
  .table.stacked.estimate-city-table tr[data-line] td.num { grid-column: 2; grid-row: 1; display: block; }
  .table.stacked.estimate-city-table tr[data-line] td.num::before { display: none; }
  .table.stacked.estimate-city-table tr[data-line] td.row-actions-cell { grid-column: 1 / -1; grid-row: 2; display: block; }
  .table.stacked.estimate-city-table tr[data-line] td.row-actions-cell::before { display: none; }
  .table.stacked.estimate-city-table .row-actions { justify-content: flex-start; margin-left: calc(-1 * var(--space-2)); }
  .estimate-city-table .estimate-line-kind { display: none; }
}

/* ---------- The budget ---------- */
.content.budget-page { max-width: 1240px; }
.budget-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.budget-value { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.budget-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.budget-column { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.budget-lines summary { cursor: pointer; }
#box-day .table-wrap { max-height: 460px; overflow-y: auto; }
.budget-lines details:not([open]) summary { border-bottom: 0; }
.budget-title { margin: 0; }
.budget-page .table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget-filters { padding-bottom: 0; }
.budget-cost-title { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.budget-cost-detail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-top: var(--space-1); font-weight: 400; }
.row-actions-cell .row-actions { justify-content: flex-end; }
.budget-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-3); }
.budget-pair > .field { min-width: 0; }
.budget-pair [hidden] { display: none; }
.budget-refund { margin: 0 0 var(--space-4); align-items: flex-start; }
.budget-refund input { flex: none; margin-top: 3px; }
.budget-rate-help { margin: calc(-1 * var(--space-2)) 0 var(--space-4); }
.budget-rate-help[hidden] { display: none; }
.budget-dialog-footer { flex-wrap: wrap; }
.plan-tags a.tag { text-decoration: none; }
@media (max-width: 860px) {
  .budget-page { padding-bottom: 88px; }
  .budget-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }

  .budget-lines { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .budget-column { gap: var(--space-3); }
  /* Fast entry is the point on a phone: the button is always under the thumb, in a bar of its own, so it covers no words. */
  .budget-add { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; padding: var(--space-2) var(--space-4); background: var(--surface); border-top: 1px solid var(--border); }
  .budget-add .button { width: 100%; justify-content: center; min-height: 48px; }
  .budget-currency { grid-template-columns: minmax(0, 1fr); }
  .budget-pair input, .budget-pair select { min-height: 44px; }
  .budget-dialog-footer .button { flex: 1 1 auto; min-height: 44px; }
  #box-day .table-wrap { max-height: none; }
  .table.stacked td.row-actions-cell { justify-content: flex-end; }
  .table.stacked td.row-actions-cell::before { display: none; }
  .row-actions-cell .button { min-height: 40px; }
}

/* Lexend is wide: a region name must not be cut in the middle of a word, and emphasis is not slanted (Lexend has no italic). */
.table td.wraps[data-label="Region"] { min-width: 9.5rem; }
em, i { font-style: normal; font-weight: 500; }
#pending > .button + .button { margin-left: var(--space-2); }

/* Administration's trips: curating and reading one, and what the client sees from the curator */
.trip-attention, .trip-found { margin-top: var(--space-1); }
.trip-attention .tag { margin-right: var(--space-1); }
.curate-empty { padding: var(--space-4) var(--space-5); text-align: left; }
.curate-empty p { max-width: none; margin: 0; }
.table td.wraps[data-label="Client"] { min-width: 15rem; }
.curate-notes { margin-top: var(--space-4); }
.curator-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.curator-note { padding-left: var(--space-3); border-left: 4px solid var(--accent); }
.curator-note-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); margin: 0 0 var(--space-1); }
.curator-note-from { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.curator-history .what, .curator-history .change { white-space: pre-wrap; overflow-wrap: anywhere; }
.curator-changes summary { cursor: pointer; font-weight: 500; color: var(--text); }
.curator-changes .history { margin-top: var(--space-3); }
.curator-again { margin-bottom: var(--space-4); }
#curator-notes[hidden] { display: none; }
.taste-read { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.taste-read dt { font-size: var(--t-s); font-weight: 500; color: var(--text-2); }
.taste-read dd { margin: 0; color: var(--text); }
.purchase-read { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purchase-still { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
@media (max-width: 860px) { .purchase-read { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .purchase-read { grid-template-columns: 1fr; } }
.taste-read[hidden] { display: none; }
.board-card.read-only { cursor: default; }
.board-card.read-only:hover { border-color: var(--border); }
.read-notes { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.plan-day-read { min-height: 0; min-width: 0; }
.temporary-password { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-4); background: var(--accent-soft); border: 1px solid var(--text); border-radius: var(--radius-s); }
.temporary-password code { font-size: 1.125rem; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .taste-read { grid-template-columns: minmax(0, 1fr); }
}
/* On a phone a long trip's days do not push the costs far down. */
@media (max-width: 860px) {
  #panel-costs #box-day .table-wrap { max-height: 460px; overflow-y: auto; }
}

/* A record: the way through the list it came from */
.record-way { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }

/* On a phone a trip's six tabs scroll sideways in one row (Review 6) rather than wrapping into three. */
@media (max-width: 640px) {
  #tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  #tabs a { padding: 8px var(--space-2) 11px; flex: none; }
}
/* The gaps card folded to one line */
.guide-gaps-folded { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
/* One column on a phone must be able to shrink: base.css's 1fr grows to the widest thing inside, and the whole page with it */
@media (max-width: 1024px) { .grid.side { grid-template-columns: minmax(0, 1fr); } }
/* A tag can hold a whole reason in someone's own words */
.suggestion-tags .tag { white-space: normal; max-width: 100%; overflow-wrap: anywhere; height: auto; }

/* Bases and connections (block 12): the dialog's checkbox grids, and room for the region names Lexend widens */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--space-2) var(--space-3); }
.base-dialog { width: min(680px, calc(100vw - 32px)); }
/* Block 18: a suggested route, with the cities editor inside. */
.route-dialog { width: min(760px, calc(100vw - 32px)); }
.month-grid { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.route-why { margin: 0 0 var(--space-3); }
.draft-line { margin: calc(-1 * var(--space-3)) 0 var(--space-4); }
.table td.wraps[data-label="Regions covered"] { min-width: 10rem; }
.table td[data-label="Actions"] .row-actions { flex-wrap: wrap; }

/* --- The destination guide (block 14): Administration's screen and the customer's Guide tab --- */
.guide-costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.guide-cost { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.guide-cost-head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.guide-cost-head h3 { margin: 0; font-size: var(--t-m); }
.guide-cost .form-grid .field { margin-bottom: var(--space-3); }
.guide-sections .guide-section-form + .guide-section-form { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.guide-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-4); flex-wrap: wrap; }
.guide-section-head h3 { margin: 0; font-size: var(--t-m); overflow-wrap: anywhere; }
.guide-definition { margin: var(--space-2) 0 var(--space-3); }
.guide-month-field { max-width: 280px; }
.guide-section-form textarea { width: 100%; font-family: var(--font); }
.guide-section-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.guide-section-foot .field { margin-bottom: 0; }
.guide-group .card-header { flex-wrap: wrap; }
.guide-intro { margin-bottom: var(--space-3); color: var(--text-2); }
.guide-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.guide-nav a { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: var(--t-s); font-weight: 500; }
.guide-nav a:hover { border-color: var(--text-3); }
.guide-section + .guide-section { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.guide-section h3 { margin: 0 0 var(--space-2); font-size: var(--t-m); overflow-wrap: anywhere; }
.guide-section h4 { margin: var(--space-4) 0 var(--space-2); font-size: var(--t-s); font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.guide-lead { font-weight: 500; margin: 0 0 var(--space-3); }
.guide-text p { margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
.guide-checked { margin: 0; }
.guide-lines { margin: 0 0 var(--space-3); padding-left: 1.25rem; }
.guide-lines li { margin-bottom: 4px; overflow-wrap: anywhere; }
.guide-estimate { padding: var(--space-4); border-radius: var(--radius); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); margin-bottom: var(--space-3); }
.guide-estimate-main { display: flex; align-items: baseline; gap: var(--space-2) var(--space-3); flex-wrap: wrap; }
.guide-estimate-range { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.guide-estimate-home { font-size: 1.125rem; font-weight: 500; color: var(--text-2); }
.guide-figures { margin-bottom: var(--space-3); }
.guide-this-trip td { background: var(--accent-soft); }
.guide-places { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.guide-places li { padding: var(--space-2) 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.guide-places li:first-child { border-top: 0; }
/* Block 37: a trip across several countries: "Crossing borders", one button per country, the chosen country's name. */
.guide-borders .card-header { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.guide-border-list { list-style: none; margin: 0; padding: 0; }
.guide-border + .guide-border { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.guide-border h3 { margin: 0; font-size: var(--t-m); overflow-wrap: anywhere; }
.guide-border-city { font-weight: 400; }
.guide-border > p { margin: 2px 0 var(--space-2); }
.guide-border-changes { margin: 0; padding-left: 1.25rem; }
.guide-border-changes li { margin-bottom: 4px; overflow-wrap: anywhere; }
.guide-country-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.button.guide-country { flex-direction: column; align-items: flex-start; gap: 0; height: auto; min-height: 44px; padding-top: 6px; padding-bottom: 6px; line-height: 1.3; text-align: left; }
.guide-country-days { font-weight: 400; }
.guide-country-head { margin-bottom: var(--space-3); }
.guide-country-head h2 { margin: 0; }
.guide-country-head p { margin: 2px 0 0; }
@media (max-width: 860px) {
  .guide-costs { grid-template-columns: 1fr; }
  .guide-cost .form-grid { grid-template-columns: 1fr; }
  .guide-section-foot { align-items: stretch; flex-direction: column; }
  .guide-estimate-range { font-size: 1.25rem; }
}
.v-guide { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--l-line); }
.v-guide h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.v-guide .l-sub { margin-bottom: var(--space-4); }
.v-guide-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.v-guide-groups h4 { font-size: var(--t-s); font-weight: 600; margin-bottom: var(--space-2); }
.v-guide-groups ul { list-style: none; margin: 0; padding: 0; color: var(--l-ink-2); font-size: var(--t-s); }
.v-guide-groups li { margin-bottom: 4px; }
@media (max-width: 860px) { .v-guide-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .v-guide-groups { grid-template-columns: 1fr; } }

/* What a source did to a row (block 15): the "From" line and, folded, each changed field before and after. Administration only. */
.source-line { margin-top: var(--space-1); overflow-wrap: anywhere; }
.source-changes { margin-top: var(--space-2); font-size: var(--t-s); color: var(--text-2); }
.source-changes summary { cursor: pointer; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.source-changes dl { display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); background: var(--surface-2); border-radius: var(--radius-s); }
.source-change dt { font-weight: 500; color: var(--text-2); }
.source-change dd { display: flex; flex-direction: column; gap: var(--space-1); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-change dd.source-inline { display: block; }
.source-before { color: var(--text-3); }
.source-after { color: var(--text); }
.source-change b { font-weight: 500; color: var(--text-2); }
.source-filter { margin: 0 0 var(--space-4); }
.guide-section-form > .source-line, .guide-section-form > .source-changes, .guide-cost > .source-line, .guide-cost > .source-changes { margin-bottom: var(--space-3); }

/* Review 8: a destination that is not ready yet, on /next and /purchase. */
.v-not-ready { margin: var(--space-4) 0; }
.v-not-ready p + p { margin-top: var(--space-3); }
.more-days-asked { display: inline-block; margin-left: var(--space-2); }
.trip-fixed { margin: var(--space-1) 0 0; }
.help-above { display: block; margin-bottom: var(--space-1); }

/* Block 17: the cities and nights editor (route-editor.js), on /route, the Plan tab and Administration's trip screen. */
.route-stops { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.route-stop { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: var(--space-3) var(--space-4); }
.route-stop-field { margin: 0; }
.route-stop-line { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.route-stop-number { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--text); font-size: var(--t-s); font-weight: 600; }
.route-stop-name { flex: 1 1 14rem; min-width: 0; }
.route-city { margin: 0; font-size: var(--t-m); font-weight: 600; overflow-wrap: anywhere; }
.route-stop-name p { margin: 2px 0 0; overflow-wrap: anywhere; }
.route-controls { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.route-nights { display: flex; align-items: center; gap: var(--space-2); }
.route-nights .button { flex: none; font-size: 1.1rem; }
.route-nights input.route-nights-input { flex: none; width: 4rem; text-align: center; -moz-appearance: textfield; }
.route-nights-input::-webkit-inner-spin-button, .route-nights-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.route-nights-word { min-width: 3.25rem; color: var(--text-2); }
.route-moves { display: flex; align-items: center; gap: var(--space-1); }
.route-arrow { width: 16px; height: 16px; }
.route-stop-warnings:empty { display: none; }
.route-stop-warnings { margin-top: var(--space-2); }
.route-warning { margin: 0; }
.route-travel { margin: 0 0 var(--space-2); color: var(--text-2); overflow-wrap: anywhere; }
.route-warning + .route-warning { margin-top: var(--space-2); }
.route-status { margin-bottom: var(--space-4); }
.route-counter { font-weight: 500; margin: 0 0 var(--space-2); }
.route-stops-field { margin: 0; }
.route-warnings:not(:empty) { margin-top: var(--space-2); }
.route-add { display: flex; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.route-add .field { flex: 1 1 18rem; min-width: 0; margin-bottom: 0; }
.route-add .field select { width: 100%; }
.route-add > .button { margin-top: 26px; }
/* Block 60: "Add a city of your own", under the catalogue's cities; an own city says so on its card. */
.route-own { margin-top: var(--space-4); }
.route-own-fields { margin-top: var(--space-2); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.route-own-title { margin: 0 0 var(--space-1); font-size: var(--t-m); }
.route-own-fields > p { margin: 0 0 var(--space-3); }
.route-own-fields .field { max-width: 32rem; }
.route-own-nights input { width: 6rem; }
.route-own-fields .button-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.route-own-tag { margin: 4px 0 0; }
.route-own-tag .tag { white-space: normal; }
.plan-own-note, .map-own-missing, .guide-own-cities, .picks-own-cities { overflow-wrap: anywhere; }
.route-buttons { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.route-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.route-panel-bar h2 { margin: 0; font-size: var(--t-m); }
.route-panel-summary { overflow-wrap: anywhere; }
.route-source { margin-bottom: var(--space-3); }
@media (max-width: 640px) {
  .route-stop { padding: var(--space-3); }
  .route-controls { flex-basis: 100%; justify-content: space-between; }
  .route-add > .button { margin-top: 0; }
  .route-buttons .button { flex: 1 1 auto; }
}
.suggestion-list.by-city { gap: var(--space-2); }
.suggestion-group > .suggestion-list { margin-bottom: var(--space-4); }
.suggestion-group > p { margin: 0 0 var(--space-5); }
.route-not-on { align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--space-3); }
.route-fit { margin: 0 0 var(--space-3); }
.price-line .nowrap { white-space: nowrap; }

/* Block 19: select many (public/bulk-select.js) and filters that fold on a phone */
.bulk-bar { margin-bottom: var(--space-3); }
.bulk-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
/* Review 11: while something is ticked (or Undo is offered) the bar stays in view under the top bar, on desktop and on a phone. */
.bulk-bar.is-sticky, .bulk-holder.is-sticky { position: sticky; top: var(--bulk-top, 61px); z-index: 5; }
.bulk-bar.is-sticky .bulk-line, .bulk-holder.is-sticky .bulk-line { box-shadow: var(--shadow-l); }
.bulk-holder.is-sticky { padding-top: var(--space-2); padding-bottom: var(--space-2); background: var(--surface); border-radius: var(--radius-l); }
.bulk-holder .bulk-bar { margin-bottom: 0; }
.bulk-bar.has-selection .bulk-line { border-color: var(--text); }
.bulk-undo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.bulk-undo[hidden] { display: none; }
.bulk-undo-text { font-weight: 500; color: var(--text); }
/* A tick with room for a finger (30 px at least, as the visual guide asks). */
.bulk-tick-area { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 32px; min-height: 32px; margin: -6px var(--space-1) -6px -6px; cursor: pointer; border-radius: var(--radius); }
.bulk-tick-area .bulk-tick { margin: 0; }
.bulk-count { font-weight: 500; color: var(--text); }
.bulk-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }
.bulk-result { margin: 0 0 var(--space-3); }
.bulk-refused { margin: var(--space-1) 0 0; padding-left: var(--space-5); overflow-wrap: anywhere; }
.bulk-tick { width: 20px; height: 20px; margin: 0 var(--space-2) 0 0; vertical-align: -4px; accent-color: var(--text); cursor: pointer; flex: none; }
.pick-name { display: flex; align-items: flex-start; gap: var(--space-1); }
.pick-name > :last-child { min-width: 0; }
.filter-toggle { display: none; }
.filters .filter-clear { margin-left: auto; }
@media (max-width: 640px) {
  .filter-toggle { display: inline-flex; }
  .filters.foldable:not(.open) > :not(.search):not(.filter-toggle) { display: none; }
  .filters.foldable { align-items: stretch; }
  .filters.foldable.open > select, .filters.foldable.open > .filter-check { flex: 1 1 45%; min-width: 0; }
  .filters.foldable .search { flex-basis: 100%; order: -1; }
  .bulk-actions { margin-left: 0; }
}
.bulk-holder { padding-bottom: 0; }
.bulk-holder:has(> .bulk-bar[hidden]) { display: none; }
/* Block 19: a card's title row with counts wraps on a phone, and a price cell is one block beside its label. */
@media (max-width: 640px) {
  #with-bases .card-header { flex-wrap: wrap; }
  .table.stacked td .price-cell { min-width: 0; }
  .price-cell .tag { white-space: normal; }
}
/* Block 19: with a tick in the first cell, words in the Bases tables are never split; the table scrolls sideways instead. */
@media (min-width: 641px) { #with-bases .table td.wraps { overflow-wrap: break-word; } #with-bases .table .tag { white-space: normal; } }

/* =====================================================================================================================
   Block 20 part 2: the landing page's look inside the app, as one design system (no paintings, no Caveat, light only).
   Tokens first, then the shared pieces every screen uses (type, cards, buttons, inputs, tags, tabs, top bar), then the
   trip's Plan. It sits last so it wins over base.css and the older rules above; a screen's own rules only place things.
   ===================================================================================================================== */
:root {
  /* Type scale: body 15 px with 1.5 line height; small 14 px (the least for reading text, docs/BRAND.md); 13 px only for
     counts and labels that are never sentences. */
  --t-xs: .8125rem; --t-s: .875rem; --t-m: .9375rem; --t-l: 1.125rem; --t-xl: 1.3125rem; --t-2xl: 1.75rem;
  --t-page: clamp(1.625rem, 1.2rem + 1.3vw, 2.125rem);   /* a page's title */
  --t-section: 1.25rem;                                   /* a section's title */
  --t-card: 1.0625rem;                                    /* a card's title */
  /* Spacing steps stay base.css's (4, 8, 12, 16, 24, 32, 48), plus 40 for the landing's generous page edges. */
  --space-8: 40px;
  /* One card: white on the icy canvas, a hairline edge, rounded like the landing's app cards. */
  --border: color-mix(in srgb, var(--text-3) 14%, var(--background));              /* card edges and dividers (decorative, never the edge of a control) */
  --line-soft: color-mix(in srgb, var(--text-3) 8%, var(--surface));           /* the light lines inside a card */
  --radius-s: 10px; --radius: 12px; --radius-l: 16px; --radius-pill: 999px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--shade) 4%, transparent);                                              /* every card: barely there */
  --shadow-lift: 0 1px 2px color-mix(in srgb, var(--shade) 8%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--shade) 32%, transparent); /* the landing's postcard shadow */
  --shadow-l: var(--shadow-lift);                                                         /* dialogs, menus, the sticky bar */
  /* Tags: the landing's pills. "Still to do" is a soft coral, as "To book" on the landing; the text is always navy. */
  --warning-soft: color-mix(in srgb, var(--danger) 11%, var(--surface)); --warning-line: color-mix(in srgb, var(--danger) 50%, var(--surface));
  --control-h: 42px; --control-h-s: 34px;
}

/* ---------- Type ---------- */
body { font-size: var(--t-m); line-height: 1.5; }
h1 { font-size: var(--t-page); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: var(--t-section); line-height: 1.25; }
h3 { font-size: var(--t-card); }
.page-header { margin-bottom: var(--space-6); gap: var(--space-4) var(--space-5); }
.page-header p { margin-top: var(--space-2); }
.greeting h1 { font-size: var(--t-page); }
.breadcrumbs { margin-bottom: var(--space-3); }
.section-title { font-size: var(--t-section); }
.content { padding: var(--space-8); }

/* ---------- Cards ---------- */
.card { border-radius: var(--radius-l); border-color: var(--border); box-shadow: var(--shadow); }
.card-header { padding: var(--space-4) var(--space-5); border-bottom-color: var(--line-soft); min-height: 64px; }
.card-header h2, .card-header h3 { font-size: var(--t-card); }
.card-body { padding: var(--space-5); }
.list > li { border-top-color: var(--line-soft); padding-top: 14px; padding-bottom: 14px; }
.stat { padding: var(--space-5); }
.stat .value { font-size: 2rem; margin-top: var(--space-2); }
.stat .caption { color: var(--text); }
.table-wrap { border-radius: var(--radius-l); border-color: var(--border); box-shadow: var(--shadow); }
.card .table-wrap { box-shadow: none; }
.table th { background: var(--background); border-bottom-color: var(--border); padding: 12px var(--space-4); }
.table td { border-bottom-color: var(--line-soft); padding: 14px var(--space-4); }
.notice-box { border-radius: var(--radius); padding: 14px var(--space-4); }
.empty .empty-icon { border-radius: var(--radius-pill); }
dialog.dialog { border-radius: 20px; border-color: var(--border); }
.menu { border-radius: var(--radius); }
.board-card { border-radius: var(--radius); border-color: var(--border); }
.column { border-radius: var(--radius-l); }
.choice, .question-editor, .route-stop, .trip-summary, .bulk-line, .bulk-undo, .temporary-password, .guide-cost { border-radius: var(--radius); }
.choice { border-color: var(--border); }

/* ---------- Buttons: the landing's pills ---------- */
/* Primary: aquamarine with navy text and a navy edge. Secondary: white with a navy edge. Danger: coral with navy text.
   Quiet (ghost): no edge. Every one a pill; on a phone none is under 44 px high. */
.button { min-height: var(--control-h); padding: 0 18px; border-radius: var(--radius-pill); border-width: 1.5px; }
.button.small { min-height: var(--control-h-s); padding: 0 14px; }
.button.icon { width: var(--control-h); padding: 0; }
.button.icon.small { width: var(--control-h-s); }
.button:not(.primary, .danger, .ghost):hover { background: var(--background); }
.button.ghost { color: var(--text); }
.button:focus-visible { box-shadow: var(--ring); border-radius: var(--radius-pill); }
.l-button { border-radius: var(--radius-pill); border-width: 1.5px; }

/* ---------- Inputs ---------- */
.input, input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), select, textarea {
  min-height: var(--control-h); border-radius: var(--radius-s);
}
textarea { min-height: 104px; }

/* ---------- Tags: one family of pills with navy text; the words carry the meaning, the colour only helps ---------- */
.tag { padding: 3px 10px; line-height: 1.35; }
.tag.warning { background: var(--warning-soft); box-shadow: inset 0 0 0 1px var(--warning-line); }
.tag.warning::before { background: var(--danger); box-shadow: 0 0 0 1px var(--text); }
.tag.danger { background: var(--danger-soft); box-shadow: inset 0 0 0 1.5px var(--danger); }
.tag.info { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.tag.no-dot:not(.ok, .accent, .warning, .danger, .info) { background: var(--background); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- Tabs: pills in a white strip; the chosen one is navy, as the brand's inverted navigation ---------- */
.tabs { gap: 2px; margin-bottom: var(--space-6); padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); width: max-content; max-width: 100%; }
.tabs a, .tabs button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); color: var(--text-2); }
.tabs a:hover, .tabs button:hover { background: var(--background); color: var(--text); }
.tabs [aria-selected="true"], .tabs [aria-current="page"],
.tabs [aria-selected="true"]:hover, .tabs [aria-current="page"]:hover { background: var(--text); color: var(--background); box-shadow: none; }
.tabs [aria-selected="true"] .count, .tabs [aria-current="page"] .count { color: color-mix(in srgb, var(--background) 80%, var(--text)); }
.tabs :focus-visible { box-shadow: var(--ring); border-radius: var(--radius-pill); }

/* ---------- Top bars ---------- */
.visitor-top, .topbar { padding: 14px var(--space-8); border-bottom-color: var(--line-soft); }
.visitor-brand { font-size: 1.125rem; }

/* ---------- The trip's Plan: days as white cards, a time column, room to read ---------- */
.plan-layout { gap: var(--space-6); }
/* Each day is as tall as what it holds, so a quiet day is not a big empty card beside a full one. */
.plan-days { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-5); align-items: start; }
.plan-layout .column { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: var(--space-4) var(--space-5) var(--space-3); }
.plan-layout .column-header { padding: 0 0 var(--space-3); align-items: flex-start; border-bottom: 1px solid var(--line-soft); margin-bottom: var(--space-1); }
.plan-layout .column-header .count { flex: none; min-width: 28px; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--background); color: var(--text-2); text-align: center; }
.plan-column-title { font-size: var(--t-card); line-height: 1.3; }
.plan-day-number { font-size: var(--t-s); margin-left: var(--space-2); }
.plan-day-base { margin-top: 2px; color: var(--text-2); }
.plan-day-summary { margin: var(--space-2) 0 var(--space-1); }
.plan-empty { padding: var(--space-3) 0; }
.plan-side summary.column-header { font-weight: 600; font-size: var(--t-card); color: var(--text); }
.plan-side .plan-box:not([open]) summary.column-header { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
/* An entry is a row of its day, as in the landing's "Day 5" card, with its time in a column of its own. */
.plan-layout .plan-card { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; margin: 0; padding: var(--space-4) 0; gap: var(--space-2); background: transparent; }
.plan-layout .plan-cards > .plan-card:first-child, .plan-layout .plan-cards > .plan-drop-line:first-child + .plan-card { border-top: 0; }
.plan-layout .plan-card:hover { border-color: var(--line-soft); }
.plan-days .plan-card { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-2); align-items: start; }
.plan-days .plan-card > * { grid-column: 2; }
.plan-days .plan-card-title { display: contents; }
.plan-days .plan-time { grid-column: 1; grid-row: 1; font-size: var(--t-m); line-height: 1.35; }
.plan-days .plan-card-title .card-title { grid-column: 2; }
.plan-card .card-title { font-size: var(--t-card); font-weight: 500; line-height: 1.35; }
.plan-card-actions { margin-left: -14px; gap: 0; }
.plan-add { margin-top: var(--space-1); margin-left: -14px; }
.plan-ideas { background: var(--background); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: var(--space-2) 0 var(--space-1); gap: var(--space-3); }
.plan-ideas h3 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; }
.plan-idea + .plan-idea { padding-top: var(--space-3); border-top: 1px solid var(--border); }
.plan-idea-name { color: var(--text); }
.plan-idea-actions .button { margin-left: -14px; }
.plan-stop-header { margin-top: var(--space-5); padding-bottom: var(--space-3); }
.plan-stop-header h2 { font-size: var(--t-section); }
.plan-day.is-today { box-shadow: var(--shadow), inset 0 0 0 2px var(--text); }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .content { padding: var(--space-5) var(--space-4); }
  .visitor-top, .topbar { padding: var(--space-3) var(--space-4); }
  .plan-layout { gap: var(--space-4); }
  .plan-days { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .plan-layout .column { padding: var(--space-4); }
  .plan-layout .plan-day:has(.plan-empty):not(:has(.plan-day-summary, .plan-ideas)) .column-header { border-bottom: 0; margin: 0; padding: 0; }
  .plan-days .plan-card { grid-template-columns: 3.25rem minmax(0, 1fr); }
  /* On a phone an entry with no time takes the whole width; those with a time keep the column. */
  .plan-days .plan-card:not(:has(.plan-time)) { grid-template-columns: minmax(0, 1fr); }
  .plan-days .plan-card:not(:has(.plan-time)) > * { grid-column: 1; }
  .plan-days .plan-card:not(:has(.plan-time)) .plan-card-title .card-title { grid-column: 1; }
  .plan-card-actions .button, .plan-add, .plan-more summary { min-height: 44px; }
  .tabs { margin-bottom: var(--space-5); }
}
@media (max-width: 640px) {
  /* Every button a finger can reach is at least 44 px high (the ticks in bulk lists keep their 32 px area, Review 11). */
  .button, .button.small { min-height: 44px; }
  .button.icon, .button.icon.small { width: 44px; }
  input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), select { min-height: 44px; }
  .stat { padding: var(--space-4); }
  .stat .value { font-size: var(--t-xl); }
  .card-header { padding: var(--space-3) var(--space-4); min-height: 0; }
  .card-body { padding: var(--space-4); }
  .tabs a, .tabs button, #tabs a { min-height: 44px; padding: 0 14px; }
}
.column-header .count:empty { display: none; }
.route-panel-bar h2 { font-size: var(--t-card); }
/* A trip on "My trips" is the page's main card: its name reads as a title. */
.trip-card-header { padding-top: var(--space-5); padding-bottom: var(--space-4); }
.trip-card-header h2 { font-size: var(--t-section); line-height: 1.3; }
.trip-card-header p { margin-top: var(--space-1); }
.pending-title { font-size: var(--t-m); }
.table tr.estimate-day th, .table tr.estimate-day td { background: var(--background); }
/* The trip's overview: its buttons wrap in even rows, none pushed in from the left. */
#pending > .button, #pending > .button + .button { margin: var(--space-2) var(--space-2) 0 0; }
/* With a mouse, the verdict buttons in a table row stay compact so a row stays one glance; on a phone they are 44 px. */
@media (min-width: 641px) { .verdict-choices.in-row .button.small { min-height: 30px; padding: 0 10px; } }
/* On a phone the costs page keeps room under its last line for the fixed "Add a cost" bar. */
@media (max-width: 860px) { .content.budget-page { padding-bottom: 88px; } }
/* A tag that may wrap onto two lines (a reason, a long status in a narrow cell) is a rounded box, not a stretched pill. */
.suggestion-tags .tag, .price-cell .tag, #with-bases .table .tag { border-radius: var(--radius-s); }

/* ---------- Review 12 ---------- */
/* Every trip tab has the same page width, so the title, the buttons and the tab row never move when switching tabs;
   what is under the tabs keeps its own reading width, from the same left edge. */
.content.trip-page { max-width: 1560px; }
.trip-page > :not(.breadcrumbs, .page-header, .tabs) { max-width: var(--trip-column, none); }
.trip-page.medium { --trip-column: 920px; }
.trip-page.estimate-page { --trip-column: 1100px; }
.trip-page.budget-page { --trip-column: 1240px; }
/* A delete that is not the page's main action: coral edge, white inside (it still asks before deleting). */
.button.danger.outline { background: var(--surface); border-color: var(--danger-strong); color: var(--text); }
.button.danger.outline:hover { background: var(--danger-soft); }
/* The verdicts are one choice among several: a segmented switch, not a row of pill buttons like "Approve". */
.verdict-choices { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--background); }
.verdict-choices .verdict-choice { border-color: transparent; border-radius: 7px; background: transparent; color: var(--text-2); font-weight: 400; }
.verdict-choices .verdict-choice:hover { background: var(--surface); color: var(--text); }
.verdict-choices .verdict-choice[aria-pressed="true"] { background: var(--accent); border-color: var(--text); color: var(--on-accent); font-weight: 600; }
.verdict-choices.in-row { gap: 2px; }
/* "Cities and nights" on the Plan: each city goes to its first day; the day's header clears the top when jumped to. */
.route-panel-summary a { color: var(--text); text-underline-offset: 3px; }
.plan-stop-header { scroll-margin-top: var(--space-5); }
/* The budget's day row: one line under the whole row, and its total in the amounts column. */
.table tr.estimate-day th, .table tr.estimate-day td { border-bottom-color: var(--border); }

/* =====================================================================================================================
   Block 21: planning mode. Icons (Lucide, one sprite), the drawn photo slots, the Plan's map, "Only to book" and Overview's
   "Before you go". Only the Block 20 part 2 tokens: no colour of its own.
   ===================================================================================================================== */
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; vertical-align: -0.15em; }
.tabs a .icon { margin-right: var(--space-2); width: 18px; height: 18px; }
.tag .icon { width: 14px; height: 14px; margin-right: 2px; }
.plan-type .icon { color: var(--text-2); }

/* Photo slots: the app's own photo when there is one, else a soft brand panel with an icon (and a name on the big ones). */
.photo { display: block; flex: none; border-radius: var(--radius); object-fit: cover; overflow: hidden; }
.photo-slot { display: flex; align-items: center; justify-content: center; gap: var(--space-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.photo-slot.tint-0 { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.photo-slot.tint-1 { background: color-mix(in srgb, var(--accent) 12%, var(--background)); }
.photo-slot.tint-2 { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.photo-slot.tint-3 { background: color-mix(in srgb, var(--text-3) 12%, var(--surface)); }
.photo-slot .photo-icon { width: 22px; height: 22px; color: var(--text-2); }
.photo-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.trip-banner { margin-bottom: var(--space-4); }
.trip-page > .trip-banner { max-width: none; }
.photo-banner { width: 100%; height: 64px; border-radius: var(--radius-l); }
img.photo-banner { height: 160px; }
.photo-banner.photo-slot { justify-content: flex-start; padding: 0 var(--space-5); font-size: var(--t-l); }
.photo-banner .photo-icon { width: 28px; height: 28px; }
.photo-stop { width: 56px; height: 56px; align-self: center; }
.photo-stop .photo-name { display: none; }
.photo-card { width: 44px; height: 44px; }
.plan-stop-header:has(.photo) { align-items: center; }
.plan-stop-header:has(.photo) h2 { flex: 1 1 200px; }
.plan-side .plan-card.has-photo .plan-card-title { align-items: center; gap: var(--space-3); }
.plan-days .plan-card .photo { grid-column: 1; grid-row: 2; }
.suggestion-top.has-photo > .photo { width: 72px; height: 72px; }
.suggestion-top.has-photo > .photo .photo-icon { width: 28px; height: 28px; }

/* The Plan's map: the map beside its list on a computer, under "Show map" on a phone. */
.plan-map .card-header { flex-wrap: wrap; gap: var(--space-3); }
.plan-map-header p { margin: 2px 0 0; }
.plan-map-tools { display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.plan-map-day { display: flex; flex-direction: row; align-items: center; gap: var(--space-2); margin: 0; }
.plan-map-day label { margin: 0; }
.plan-map-day select { min-width: 200px; }
.plan-map-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-4); padding: var(--space-4) var(--space-5) var(--space-5); }
.plan-map-body[hidden] { display: none; }
.plan-map-canvas { height: 420px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); background: var(--background); z-index: 0; font-family: var(--font); }
.plan-map-canvas[hidden] { display: none; }
.plan-map-failed { margin: 0; padding: var(--space-5); border-radius: var(--radius); background: var(--background); }
.plan-map-side { min-width: 0; max-height: 420px; overflow-y: auto; }
.plan-map-list-title { margin: 0 0 var(--space-2); font-size: var(--t-s); font-weight: 600; color: var(--text-2); }
.plan-map-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.map-list-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: var(--space-3); align-items: center; width: 100%; padding: var(--space-2); border: 0; border-radius: var(--radius-s); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.map-list-item:hover { background: var(--background); }
.map-list-item:focus-visible { box-shadow: var(--ring); outline: none; }
.map-list-item .map-number { grid-row: 1 / span 2; }
.map-list-name { font-weight: 500; overflow-wrap: anywhere; }
.map-list-item .small { grid-column: 2; }
.plan-map-missing { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line-soft); }
.plan-map-missing summary { cursor: pointer; font-weight: 500; }
.plan-map-missing ul { margin-top: var(--space-2); }
/* A pin and its number in the list: the stop's colour, navy text on the light ones and white on the dark ones. */
.map-number, .map-pin { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-pill); font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--text); }
.leaflet-container .map-pin { font-family: var(--font); line-height: 30px; }
.stop-c0 { background: var(--accent); color: var(--on-accent); }
.stop-c1 { background: var(--danger); color: var(--on-danger); }
.stop-c2 { background: var(--text); color: var(--surface); }
.stop-c3 { background: color-mix(in srgb, var(--accent) 38%, var(--surface)); color: var(--text); } /* Block 60: 38% (was 45%), 5.3:1 by night. */
.stop-c4 { background: color-mix(in srgb, var(--danger) 40%, var(--surface)); color: var(--text); }
.stop-c5 { background: var(--text-3); color: var(--surface); }
.stop-none { background: var(--surface); color: var(--text); }
.leaflet-container path.map-route { stroke: var(--on-paper); stroke-width: 2.5; stroke-dasharray: 6 6; stroke-opacity: .7; fill: none; }
.leaflet-container .leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow-l); }
.leaflet-container .leaflet-popup-content { margin: var(--space-3) var(--space-4); font-family: var(--font); font-size: var(--t-s); }
.map-popup { display: flex; flex-direction: column; gap: var(--space-1); color: var(--text); }
.leaflet-container a.maps-link { color: var(--text); }
.leaflet-container .leaflet-control-attribution { font-size: var(--t-xs); }
.leaflet-container .leaflet-control-attribution a { color: var(--text); }

/* "Only to book" and the day a link asked for. */
.plan-tools { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.plan-tools[hidden] { display: none; }
.plan-tools .button[aria-pressed="true"] { background: var(--accent); border-color: var(--text); color: var(--on-accent); }
.plan-all-booked { grid-column: 1 / -1; }
.plan-day.is-asked { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.plan-day { scroll-margin-top: var(--space-5); }

/* Overview's "Before you go". */
.before-you-go .card-header .count { min-width: 28px; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--warning-soft); box-shadow: inset 0 0 0 1px var(--warning-line); color: var(--text); text-align: center; font-weight: 600; }
.before-group + .before-group, .before-done + .before-group { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line-soft); }
.before-group h3 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: var(--t-m); }
.before-group h3 .icon { width: 18px; height: 18px; }
.before-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.before-list p { margin: var(--space-1) 0 0; }
.before-entries { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.before-entries li { display: flex; align-items: baseline; gap: var(--space-2); color: var(--text-2); }
.before-entries .icon { align-self: center; color: var(--text-3); }
.before-days { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.before-you-go a { color: var(--text); text-underline-offset: 3px; }
.before-done { display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--accent-soft); font-weight: 500; }
.before-done .icon { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .plan-map-body { grid-template-columns: minmax(0, 1fr); padding: var(--space-3) var(--space-4) var(--space-4); }
  .plan-map-canvas { height: 320px; }
  .plan-map-side { max-height: none; }
  .plan-map-tools, .plan-map-day { width: 100%; }
  .plan-map-day select { flex: 1; min-width: 0; }
  #map-toggle { width: 100%; min-height: 44px; }
  .map-list-item { min-height: 44px; }
  .photo-banner { height: 56px; }
  .plan-days .plan-card:not(:has(.plan-time)) .photo { display: none; }
  .tabs a .icon { margin-right: 6px; }
}

/* =====================================================================================================================
   Block 22: travel mode. The "Planning / Travelling" switch in a trip's header, Today and Contacts. Only the Block 20 part 2
   tokens: no colour of its own.
   ===================================================================================================================== */
.mode-switch { display: inline-flex; gap: 2px; padding: 3px; margin-top: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--background); }
.mode-switch .mode-choice { min-height: var(--control-h-s); padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; color: var(--text-2); font: inherit; font-size: var(--t-s); cursor: pointer; }
.mode-switch .mode-choice:hover { background: var(--surface); color: var(--text); }
.mode-switch .mode-choice:focus-visible { box-shadow: var(--ring); outline: none; }
.mode-switch .mode-choice[aria-pressed="true"] { background: var(--pressed); color: var(--on-pressed); font-weight: 600; }
.trip-contacts-link a { color: var(--text); text-underline-offset: 3px; font-weight: 500; }

/* Today: the day's header with its city photo and the arrows, then the day beside what you need, tomorrow and help. */
.today-head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); flex-wrap: wrap; }
.today-head .photo-stop { width: 72px; height: 72px; }
.today-when { flex: 1 1 260px; min-width: 0; }
.today-when p { margin: 0; }
.today-date { color: var(--text-2); font-size: var(--t-s); }
.today-title { margin: 2px 0 var(--space-1); font-size: var(--t-xl); overflow-wrap: anywhere; }
.today-arrows { display: flex; gap: var(--space-2); }
.today-arrows .button { gap: var(--space-1); }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; margin-top: var(--space-5); }
.today-main, .today-side { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.today-items { list-style: none; margin: 0; padding: 0; }
.today-item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--line-soft); }
.today-item:first-child { border-top: 0; padding-top: 0; }
.today-item .plan-time { font-size: var(--t-m); line-height: 1.35; font-variant-numeric: tabular-nums; }
.today-item-main { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.today-item-title { display: flex; align-items: center; gap: var(--space-2); }
.today-item-title .card-title { font-size: var(--t-card); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.today-item-title .icon { color: var(--text-2); }
.today-item .plan-notes { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.today-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.today-item-actions .button { margin-left: -14px; }
.small-number { width: 24px; height: 24px; flex: none; font-size: var(--t-xs); box-shadow: 0 0 0 1px var(--text); }
.today-nothing p { margin: 0 0 var(--space-3); color: var(--text-2); }
.today-map-box { padding: 0 var(--space-5) var(--space-5); }
.today-map-box[hidden] { display: none; }
.today-map { height: 280px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); background: var(--background); z-index: 0; font-family: var(--font); }
.today-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.today-need { display: flex; gap: var(--space-3); align-items: flex-start; }
.today-need > .icon, .today-emoji { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--text-2); font-size: var(--t-l); line-height: 1; text-align: center; }
.today-need p { margin: 2px 0 0; }
.today-need a, .today-side .card-body a:not(.button), .contacts-page .card-body a:not(.button) { color: var(--text); text-underline-offset: 3px; }
.today-next-when { margin: 0 0 var(--space-2); }
.today-move { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--accent-soft); overflow-wrap: anywhere; }
.today-next { margin-bottom: var(--space-3); }
.today-to-book { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-s); background: var(--warning-soft); box-shadow: inset 0 0 0 1px var(--warning-line); }
.today-to-book > .icon { margin-top: 3px; }
.today-to-book p { margin: 2px 0 0; }
.today-emergency p, .contacts-emergency p { margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.today-own { margin: var(--space-3) 0; }
.today-own li { overflow-wrap: anywhere; }
.today-own[hidden] { display: none; }
a.phone-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; color: var(--text); font-weight: 600; text-underline-offset: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Contacts: the guide's numbers, then your own, each with its phone one tap away. */
.contacts-title { display: flex; align-items: center; gap: var(--space-2); }
.contacts-title .icon { width: 20px; height: 20px; }
.contacts-list .contact { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.contacts-list .list-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contacts-list .list-main p { margin: var(--space-1) 0 0; }
.contact-actions { display: flex; gap: var(--space-2); }
.contacts-page .count:empty { display: none; }

@media (max-width: 860px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .today-head { padding: var(--space-4); flex-wrap: wrap; }
  .today-head .photo-stop { width: 56px; height: 56px; }
  .today-when { flex: 1 1 0; }
  .today-arrows { width: 100%; }
  .today-arrows .button { flex: 1; justify-content: center; min-height: 44px; }
  .today-map { height: 220px; }
  .mode-switch .mode-choice { min-height: 40px; }
  a.phone-link { min-height: 44px; }
  .contact-actions .button { min-height: 44px; }
}

/* =====================================================================================================================
   Review 13: travel mode on a phone (a compact trip header so the day is on the first screen), help one tap away, call
   buttons, the tab strip's hint, the slimmer placeholders. Only the Block 20 part 2 tokens: no colour of its own.
   ===================================================================================================================== */
/* "‹ My trips": only where the breadcrumb gives way to it (a phone in travel mode, below). */
.trip-back { display: none; align-items: center; gap: 2px; margin: 0 0 var(--space-2) -4px; color: var(--text-2); font-size: var(--t-s); text-decoration: none; }
.trip-back:hover { color: var(--text); text-decoration: underline; }
.trip-back .icon { width: 16px; height: 16px; }

/* The drawn country banner is a slim strip (its name is the country, said once); a real photo keeps its height. */
.photo-banner.photo-slot { height: 44px; padding: 0 var(--space-4); font-size: var(--t-m); }
.photo-banner .photo-icon { width: 20px; height: 20px; }
/* The drawn slots in the brand's own tints, with a soft dotted pattern, never the coral one. */
.photo-slot { background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.5px); background-size: 12px 12px; }
.photo-slot.tint-2 { background-color: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.photo-slot.tint-3 { background-color: color-mix(in srgb, var(--accent) 8%, var(--background)); }

/* The tabs scroll sideways on a narrow screen: room at both ends, and a fade on the side that has more. */
#tabs { position: relative; scroll-padding-inline: var(--space-4); scrollbar-width: none; }
#tabs::-webkit-scrollbar { display: none; }
#tabs.more-after { mask-image: linear-gradient(to right, var(--text) calc(100% - 40px), transparent); }
#tabs.more-before { mask-image: linear-gradient(to left, var(--text) calc(100% - 40px), transparent); }
#tabs.more-before.more-after { mask-image: linear-gradient(to right, transparent, var(--text) 40px, var(--text) calc(100% - 40px), transparent); }
.tab-label { display: inline-flex; align-items: center; }

/* Phone numbers inside the guide's words keep the line's own height; the numbers to tap are the call buttons above them. */
.today-emergency a.phone-link, .contacts-emergency a.phone-link { display: inline; min-height: 0; }
.call-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); }
.button.call-button { min-height: 44px; gap: var(--space-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.button.call-button .icon { width: 18px; height: 18px; }
.today-emergency p, .contacts-emergency p { line-height: 1.55; }

/* Today's header: "Help" and the emergency number beside the day; "Add a cost" in the day's own card. */
.today-quick { display: flex; flex-wrap: wrap; gap: var(--space-2); flex-basis: 100%; }
.today-quick .button { gap: var(--space-2); }
.today-quick .icon { width: 16px; height: 16px; }
.today-no-dates { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); flex-basis: 100%; padding: var(--space-3); border-radius: var(--radius-s); background: var(--warning-soft); box-shadow: inset 0 0 0 1px var(--warning-line); }
.today-no-dates[hidden] { display: none; }
.today-no-dates p { margin: 0; }
.today-items-header { gap: var(--space-3); }
.today-items-header h2 { margin-right: auto; }
.today-help:focus { outline: none; }
.today-help:focus-visible { box-shadow: var(--ring); }
.today-help { scroll-margin-top: var(--space-4); }
.today-to-book-list { margin: var(--space-1) 0 var(--space-2); padding-left: 1.1em; display: flex; flex-direction: column; gap: 2px; }
.today-to-book-list li { overflow-wrap: anywhere; }
.today-to-book p { margin: 0; }
/* My trips: the day a trip under way is in. */
.trip-today { margin: 0 0 var(--space-4); font-weight: 600; }
.trip-today a { color: var(--text); text-underline-offset: 3px; }

@media (max-width: 900px) {
  /* Travel mode: the day you are in comes first. No banner or breadcrumb, the name on one line beside the switch. */
  .mode-travel .trip-page > .breadcrumbs, .mode-travel #trip-banner, .mode-travel #trip-line { display: none; }
  .mode-travel .trip-back { display: inline-flex; }
  .mode-travel .trip-page .page-header { margin-bottom: var(--space-3); gap: var(--space-2); align-items: center; }
  .mode-travel .trip-page .page-header > div:first-child { display: flex; align-items: center; gap: var(--space-3); flex: 1 1 100%; min-width: 0; }
  .mode-travel #trip-name { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--t-l); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mode-travel .mode-switch { margin-top: 0; flex: none; }
  .mode-travel .trip-tools { margin-top: 0; flex: none; gap: var(--space-2); }
  .mode-travel .mode-switch .mode-choice { padding: 0 var(--space-3); }
  .mode-travel .tabs { margin-bottom: var(--space-3); }
  /* Today on a phone: the day and its arrows on one row, help under them, the drawn photo left out. */
  .today-page .today-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4); }
  .today-page .today-photo:has(.photo-slot) { display: none; }
  .today-page .today-photo:has(img) { grid-column: 1 / -1; }
  .today-page .today-photo img.photo-stop { width: 100%; height: 120px; }
  .today-page .today-title { font-size: var(--t-l); margin: 0; }
  .today-page .today-arrows { width: auto; }
  .today-page .today-arrows .button { flex: none; width: 44px; padding: 0; }
  .today-page .today-arrows .arrow-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .today-page .today-quick, .today-page .today-no-dates { grid-column: 1 / -1; }
  .today-page .today-grid { margin-top: var(--space-3); }
}
@media (max-width: 640px) {
  /* Travel mode's tabs on a phone: each icon with a short word under it (Review 17: Budget's wallet and Costs' receipt alone were
     hard to tell apart). */
  .mode-travel #tabs a { flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 10px; border-radius: var(--radius); }
  .mode-travel #tabs a .icon { margin-right: 0; }
  .mode-travel #tabs a .tab-label { font-size: var(--t-xs); line-height: 1.15; white-space: nowrap; }
  .mode-travel #tabs a .tab-label .count { display: none; }
  .photo-banner.photo-slot { height: 40px; }
}
@media (max-width: 640px) {
  /* Travel mode on a phone: the top bar on one row (the name cut if it must, whole in its tooltip); "Change password" is on every
     other screen. Less room above and between the day's cards, so today's first entry is in the top half of the screen. */
  .mode-travel .visitor-top { flex-wrap: nowrap; }
  .mode-travel .visitor-top .visitor-brand { flex: none; }
  .mode-travel .visitor-top .person { order: 0; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .mode-travel .visitor-top a[href="/change-password"] { display: none; }
  .mode-travel .visitor-top .person + .button, .mode-travel .visitor-top .button { margin-left: 0; flex: none; }
  .mode-travel .content.trip-page { padding-top: var(--space-3); }
  .mode-travel .trip-back { margin-bottom: 2px; }
  .mode-travel .trip-page .page-header { margin-bottom: var(--space-2); }
  .today-page .today-head.spaced { margin-bottom: 0; }
  .today-page .today-items-header { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .today-page .today-items-header + .card-body { padding-top: var(--space-3); }
}
@media (max-width: 640px) {
  .mode-travel .content.trip-page { padding-top: var(--space-2); }
  .mode-travel .trip-back { font-size: var(--t-xs); line-height: 1.2; }
  .today-page .today-head { padding-top: 10px; padding-bottom: 10px; }
  .today-page .today-grid { margin-top: var(--space-2); }
  .today-page .today-items-header { padding-top: 4px; padding-bottom: 4px; }
  .today-page .today-items-header + .card-body { padding-top: var(--space-2); }
}
/* Review 13: Administration sets the trip's status in its header: the label, the list and Save on one row. */
.admin-trip-status { display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap; margin-top: var(--space-3); }
.admin-trip-status .field { display: flex; flex-direction: row; align-items: center; gap: var(--space-2); margin: 0; }
.admin-trip-status label { margin: 0; color: var(--text-2); font-size: var(--t-s); }
.admin-trip-status select { min-width: 160px; }

/* ---------------------------------------------------------------------------------------------------------------------------------
   Block 23: legal basics. The privacy and legal pages, their marked placeholders, the "Privacy · Legal notice" footer of the inside
   screens, the checkout's age tick and the maps' "Show map" box. Only the Block 20 part 2 tokens: no colour of its own.
   --------------------------------------------------------------------------------------------------------------------------------- */
.legal-main { max-width: 760px; }
.legal-main .l-lede { margin-bottom: var(--space-6); }
.legal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: var(--space-5); margin-bottom: var(--space-6); }
.legal-card h2 { font-size: var(--t-section); margin: 0 0 var(--space-3); }
.legal-card p { margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.legal-details { display: grid; gap: var(--space-3); margin: 0; }
.legal-details div { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-3); }
.legal-details dt { color: var(--text-2); font-size: var(--t-s); }
.legal-details dd { margin: 0; overflow-wrap: anywhere; }
.legal-text h2 { font-size: var(--t-section); margin: var(--space-6) 0 var(--space-2); }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { line-height: 1.6; color: var(--text); }
.legal-text p + p:not(.legal-updated) { margin-top: var(--space-2); } /* Review 28: a section of several paragraphs ("Deleting your account"). */
.legal-text ul { padding-left: 1.25em; margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.legal-missing { background: var(--warning-soft); border-radius: 4px; padding: 0 4px; color: var(--text); }
.l-footer a { color: inherit; }
@media (max-width: 640px) {
  .legal-details div { grid-template-columns: 1fr; gap: 2px; }
  .legal-card { padding: var(--space-4); }
}
.legal-footer { display: flex; justify-content: center; gap: var(--space-4); padding: var(--space-5) var(--space-4) var(--space-6); color: var(--text-3); }
.legal-footer a { color: var(--text-2); }

/* The checkout's age tick, with the two pages beside it and under the pay button. */
.v-adult { margin: var(--space-4) 0 var(--space-3); }
.v-adult .choice { align-items: flex-start; }
.v-legal-links { margin-top: var(--space-2); }

/* The maps wait for "Show map" (the Plan's and Today's). */
.map-ask { display: grid; gap: var(--space-3); justify-items: start; align-content: center; padding: var(--space-5); background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius); min-height: 180px; }
.map-ask p { margin: 0; color: var(--text-2); font-size: var(--t-s); max-width: 52ch; }
.map-ask .choice { font-size: var(--t-s); }
.map-always { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); color: var(--text-3); font-size: var(--t-xs); }
.map-list-row { display: flex; align-items: center; gap: var(--space-2); padding: 6px 0; flex-wrap: wrap; }
.signin-legal { margin: var(--space-4) 0 0; text-align: center; }
.today-map-box .map-ask { min-height: 140px; }
div.map-list-item .map-number { grid-row: 1 / span 3; }

/* Review 14: the maps' "always" choice as a link-looking button; Today's compact "Show map"; the Plan's list keeps its Google Maps
   links beside the buttons; /privacy's section list; the email placeholder, not a link until filled; Settings landing on #legal. */
.link-button { display: inline; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { text-decoration-thickness: 2px; }
.link-button:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 2px; }
.map-always { color: var(--text-2); }
.map-ask.compact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-height: 0; padding: var(--space-3) var(--space-4); }
.today-map-box .map-ask.compact { min-height: 0; }
.map-ask.compact p { flex: 1 1 16em; font-size: var(--t-xs); }
.today-map:focus-visible { outline: none; box-shadow: var(--ring); }
.map-list-entry { display: flex; flex-direction: column; }
.map-list-maps { padding: 0 var(--space-2) var(--space-2) calc(30px + var(--space-3) + var(--space-2)); margin-top: calc(-1 * var(--space-1)); }
div.map-list-item .map-number { grid-row: 1 / span 2; }
.legal-sections { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: calc(-1 * var(--space-4)) 0 var(--space-6); }
.legal-sections a { color: var(--text); text-underline-offset: 3px; }
.legal-main h2[id] { scroll-margin-top: var(--space-5); }
.legal-updated { margin-top: var(--space-6); }
a.legal-missing:not([href]) { text-decoration: none; cursor: text; }
#legal { scroll-margin-top: 72px; } /* Below the sticky top bar. */
#legal h2:focus, #legal h2:focus-visible { outline: none; box-shadow: none; }
#legal .end-actions { margin-top: var(--space-4); }
@media (max-width: 860px) {
  .map-ask.compact p { flex-basis: 100%; }
  .map-always .link-button { padding: var(--space-2) 0; }
}

/* Block 24: "Book on <partner>" on a "To book" entry (Plan and Today), its discount code with Copy, and the commission line; the
   partner screen's preview link. */
.partner-box { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-strong) 45%, var(--border)); }
.partner-box.compact { margin-top: var(--space-1); padding: var(--space-1) var(--space-2); background: none; box-shadow: none; }
.partner-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.partner-book { max-width: 100%; white-space: normal; text-align: left; }
.partner-code { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-size: var(--t-s); color: var(--text-2); }
.partner-code .mono { color: var(--text); letter-spacing: .02em; }
.partner-note { margin: 0; }
.partner-note a { color: var(--text-2); text-underline-offset: 3px; }
.merchant-dialog { width: min(760px, calc(100vw - 2 * var(--space-4))); }
.merchant-preview .preview-link { margin: var(--space-1) 0 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--surface-2); overflow-wrap: anywhere; }
.merchant-preview .preview-link.preview-problem { background: var(--danger-soft); color: var(--text); font-family: var(--font); }

/* Review 15: the code and Copy kept together (a small outlined button), what the code gives after them; one commission line per
   Plan day and under Tomorrow's list; the partner form's help for the link, its hints and the rows' notes. */
.partner-code-pair { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.partner-copy { min-height: 26px; padding: 0 var(--space-2); font-weight: 500; background: var(--surface); }
.partner-code-note { overflow-wrap: anywhere; }
.plan-partner-note { margin: var(--space-1) 0 0; padding: 0 var(--space-1); }
.today-to-book .partner-box.compact { padding: 2px 0 0; }
.today-to-book .partner-note { margin-top: var(--space-1); }
.link-hints:empty { display: none; }
.link-hints { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-1); }
.link-hints .notice-box, .category-hint { margin: var(--space-1) 0 0; padding: var(--space-2) var(--space-3); }
.word-help { margin-top: var(--space-2); }
.word-help p { margin: 0 0 var(--space-1); }
.word-list { margin: 0; padding-left: 1.1em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--space-4); }
.word-list li { overflow-wrap: anywhere; }
.row-note { margin-top: 2px; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 860px) { .word-list { grid-template-columns: 1fr; } }

/* Block 25: the trip chat. A button at the bottom right of every trip page; a 360 px panel on a computer and a full-screen sheet on
   a phone. Only the Block 20 part 2 tokens: no colour of its own. */
.chat-open { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 40; gap: var(--space-2); border-radius: var(--radius-pill); box-shadow: var(--shadow-lift); padding: 0 var(--space-4); }
.chat-open .icon { width: 18px; height: 18px; }
body.chat-is-open .chat-open { display: none; }
.chat-panel { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 50; width: 360px; max-width: calc(100vw - 2 * var(--space-4)); height: min(640px, calc(100vh - 2 * var(--space-4))); height: min(640px, calc(100dvh - 2 * var(--space-4)));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-soft); }
.chat-title { margin: 0; font-size: var(--t-card); }
.chat-close { min-width: var(--control-h-s); padding: 0; justify-content: center; }
.chat-close .icon { width: 18px; height: 18px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3) var(--space-4); overflow-y: auto; }
.chat-lead { margin: 0 0 var(--space-2); }
/* Review 16: the AI line is pinned under the title, outside the scrolling log, so it is read whatever was said before. */
.chat-ai-line { margin: 0; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.chat-ai-line[hidden] { display: none; }
.chat-log { display: flex; flex-direction: column; gap: var(--space-3); }
.chat-log:empty { display: none; }
.chat-message { max-width: 88%; padding: var(--space-2) var(--space-3); border-radius: var(--radius); font-size: var(--t-m); line-height: 1.5; overflow-wrap: anywhere; }
.chat-message.from-client { align-self: flex-end; background: var(--accent-soft); color: var(--text); border-bottom-right-radius: var(--radius-s); }
.chat-message.from-us { align-self: flex-start; background: var(--surface-2); color: var(--text-2); border-bottom-left-radius: var(--radius-s); }
.chat-text { margin: 0; white-space: pre-wrap; }
.chat-pending { opacity: .75; }
.chat-thinking { margin: 0; }
.chat-proposal { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent-strong) 55%, var(--border)); }
.chat-question { margin: 0 0 var(--space-2); font-weight: 500; color: var(--text); }
.chat-proposal-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chat-proposal-actions .button { min-width: 64px; justify-content: center; }
.chat-state { margin: 0; color: var(--text-2); }
.chat-see-it { display: inline-block; margin-top: var(--space-1); font-size: var(--t-s); color: var(--text); }
.chat-empty p { margin: 0 0 var(--space-2); }
.chat-examples { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chat-example { white-space: normal; text-align: left; }
.chat-unavailable { margin: 0; }
.chat-form { display: flex; align-items: flex-end; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line-soft); }
.chat-form[hidden] { display: none; }
.chat-form .field { flex: 1; margin: 0; }
.chat-input { width: 100%; resize: none; min-height: var(--control-h); max-height: 120px; }
.chat-send { flex: none; gap: var(--space-1); }
.chat-send .icon { width: 16px; height: 16px; }
/* Milestone 36: a list for a pick list beside the message (pasted, or its photo or PDF), and the pick list cards. Tokens only. */
.chat-form { flex-wrap: wrap; }
.chat-attach { flex: 1 1 100%; display: grid; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px dashed var(--border); border-radius: var(--radius-s); background: var(--surface-2); }
/* Review 39: the list box with a file's error under it never pushes Send off a 900 px screen: past this height it scrolls. */
.chat-attach { max-height: min(16rem, 36vh); max-height: min(16rem, 36dvh); overflow-y: auto; }
.chat-attach[hidden] { display: none; }
.chat-attach .field { margin: 0; }
.chat-attach .field[hidden] { display: none; }
.chat-list { width: 100%; min-height: 72px; max-height: 160px; resize: vertical; }
.chat-file-field { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.chat-file-chip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; overflow-wrap: anywhere; color: var(--text); }
.chat-file-chip[hidden], .chat-file-button[hidden] { display: none; }
.chat-kept-note { margin: 0; }
.chat-kept-note[hidden] { display: none; }
.chat-form .field { flex: 1 1 100%; } /* The question box has the whole width; "Add a list" and Send go under it. */
.chat-form-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex: 1 1 100%; }
.chat-attach-open, .chat-file-button { gap: var(--space-1); }
.chat-attach-open[hidden] { display: none; }
.chat-attach-open .icon, .chat-file-button .icon { width: 16px; height: 16px; }
.chat-pick { display: grid; gap: var(--space-1); margin-bottom: var(--space-2); }
.chat-pick p { margin: 0; }
.chat-pick-sample { margin: 0; padding-left: var(--space-4); }
.chat-pick-name { color: var(--text); }
.chat-pick-ai { color: var(--text); font-weight: 500; }
@media (max-width: 600px) {
  /* Review 16: on a phone the button is round with the icon only; its words stay for screen readers (aria-label and the clipped span). */
  .chat-open { right: var(--space-3); bottom: var(--space-3); width: 56px; height: 56px; min-height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .chat-open .icon { width: 24px; height: 24px; }
  .chat-open .chat-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .chat-panel { inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  body.chat-is-open { overflow: hidden; }
  .chat-message { max-width: 92%; }
}
.trip-page { padding-bottom: calc(var(--space-7) + var(--space-5)); } /* Block 25: room under the last card for the chat button. */
/* Review 21: the Planning / Travelling switch and the chat button share a row in the trip's header. On a computer the button still
   floats at the bottom right; on a phone it stays in this row, round, so it never covers a filter, a field or a button. */
.trip-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.trip-tools .mode-switch { margin-top: 0; }
@media (max-width: 600px) {
  .trip-tools .chat-open { position: static; width: 44px; height: 44px; min-height: 44px; flex: none; box-shadow: none; }
  .trip-tools .chat-open .icon { width: 22px; height: 22px; }
  .trip-page { padding-bottom: var(--space-6); }
}
.admin-chat { max-width: 640px; } .admin-chat .chat-who { margin: 0 0 2px; }
/* Block 25: on a phone, Costs keeps its "Add a cost" bar at the bottom; the chat button sits just above it, never on top of it. */
@media (max-width: 860px) {
  body:has(.budget-add) .chat-open { bottom: calc(48px + 2 * var(--space-2) + var(--space-3)); }
  body:has(.budget-add) .budget-page { padding-bottom: calc(88px + var(--control-h) + var(--space-3)); }
}

/* Block 26: the admin home's "What each country still lacks", and the Questions screen's fixed question. */
.country-gaps .gap-lines { margin: var(--space-1) 0 var(--space-2); padding-left: var(--space-5); overflow-wrap: anywhere; }
.country-gaps .list-title .tag { margin-left: var(--space-2); vertical-align: 1px; }
.question-fixed { margin: 0 0 var(--space-1); }

/* Review 17: a notice whose text and buttons stack (text first, buttons under it), with the usual gap below; the quiet info tint. */
.notice-box.stacked-notice { flex-direction: column; align-items: stretch; gap: var(--space-2); margin-bottom: var(--space-4); }
.notice-box.stacked-notice p { margin: 0; }
.notice-box.stacked-notice .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Block 58 (Milestone 40): a country not ready yet, said where it is chosen (public/country-not-ready.js). */
.country-not-ready { margin: var(--space-2) 0 0; }
.country-not-ready-list:empty { display: none; }
.country-not-ready-list { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.country-not-ready-list .country-not-ready { margin: 0; }
.profile-soon { border-radius: 0; border-left-width: 4px; }
/* A help line that warns (the default country is Coming soon). */
.help.warning-help { color: var(--text); font-weight: 500; }

/* Block 27: on a phone with the app on its home screen there is no browser bar, so the notch and the home bar are kept clear
   (viewport-fit=cover on every page; env() is 0 everywhere else). */
.visitor-top, .topbar { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.chat-open { bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); right: calc(var(--space-4) + env(safe-area-inset-right, 0px)); }
.chat-panel { bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 860px) {
  .visitor-top, .topbar { padding-top: calc(var(--space-3) + env(safe-area-inset-top, 0px)); }
  .budget-add { padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px)); }
  body:has(.budget-add) .chat-open { bottom: calc(48px + 2 * var(--space-2) + var(--space-3) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
  .chat-open { bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); right: calc(var(--space-3) + env(safe-area-inset-right, 0px)); }
  .chat-panel { bottom: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* Block 27: the trip on a phone. "Put your trip on your home screen", the offline notice and Today's "Ready offline" line; with no
   connection, what needs the server is switched off (public/offline.js) and the map's box says it needs one. */
.home-screen-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); }
.home-screen-mark { width: 40px; height: 40px; }
.home-screen-title { margin: 0; font-size: var(--t-m); }
.home-screen-how { margin: 2px 0 0; }
/* Review 18: the chat panel's close icon at 20 px (a "×" letter took .button.small's 14 px, which wins over one class); the tap area
   stays 44 × 44 on a phone. */
.home-screen-close { align-self: start; min-width: var(--control-h-s); justify-content: center; padding: 0; color: var(--text); }
.home-screen-close .icon { width: 20px; height: 20px; }
.home-screen-add { grid-column: 2 / 4; justify-self: start; }
.home-screen-add[hidden] { display: none; }
.today-page .home-screen-card { margin-top: var(--space-5); }
.offline-notice { margin: 0 0 var(--space-4); }
/* Review 18: on My trips with no connection, whether each trip can be read on this device; the chat button goes (it can do nothing),
   and Costs drops "Add the rate" while that button is off. */
.offline-trip { margin: 0 0 var(--space-3); color: var(--text-2); font-weight: 500; }
.offline-trip.is-ready { color: var(--text); }
.offline-trip.is-ready::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--space-2); border-radius: 50%; background: var(--accent); vertical-align: middle; }
body.is-offline .chat-open { display: none; }
body.is-offline .left-out-do { display: none; }
.offline-ready { margin: var(--space-1) 0 0; }
.map-offline { display: none; }
body.is-offline .map-offline { display: block; color: var(--text); font-weight: 500; }
a.button.is-off, .tabs a.is-off, [data-trip-card] a.is-off { opacity: .55; cursor: not-allowed; }
/* Review 18: Clients, under each name, whether they are signed in: a quiet second line, also where a stacked row makes the name bold. */
.client-signed-in, .table.stacked td .client-signed-in { margin-top: 2px; font-weight: 400; color: var(--text-2); }
/* Block 27: a stacked row with three actions (Clients: Reset password, Sign out of every device, Delete) wraps them on a phone instead
   of pushing the first off the card. */
@media (max-width: 860px) {
  .table.stacked td.row-actions-cell { min-width: 0; }
  .table.stacked td.row-actions-cell .row-actions { flex-wrap: wrap; min-width: 0; }
}
.premium-help { margin: var(--space-4) 0 0; }
/* Block 29: ask about anything on your trip. The help meter under the chat's title and on the trip's Overview (% only), a web answer's
   sources, and the refill receipts on My trips. Only the Block 20 part 2 tokens. */
.chat-meter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line-soft); }
.chat-meter[hidden] { display: none; }
.chat-meter-words { margin: 0; font-weight: 500; color: var(--text); }
.chat-meter-bar { flex: 1 1 80px; min-width: 80px; height: 8px; }
.chat-meter .chat-get-more { flex: none; }
.chat-sources { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line-soft); }
.chat-web-note { display: flex; align-items: center; gap: var(--space-1); margin: 0 0 var(--space-1); color: var(--text-2); }
.chat-web-note .icon { width: 14px; height: 14px; flex: none; }
.chat-source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.chat-source { font-size: var(--t-s); color: var(--text); overflow-wrap: anywhere; }
.chat-admin-sources { margin: var(--space-1) 0 0; overflow-wrap: anywhere; }
.chat-admin-sources a { color: var(--text); }
.help-card-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2) var(--space-4); }
.help-line { margin: 0; font-size: var(--t-m); font-weight: 500; }
.help-bar { grid-column: 1 / -1; width: 100%; height: 8px; }
.help-note { grid-column: 1 / -1; margin: 0; }
.help-note[hidden] { display: none; }
.help-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
.refill-list li { padding: var(--space-2) 0; }
@media (max-width: 600px) {
  .help-card-body { grid-template-columns: 1fr; }
  .help-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
.settings-subhead { margin: var(--space-5) 0 var(--space-3); font-size: var(--t-m); }
.settings-subhead.first-subhead { margin-top: 0; } /* The first thing in its card: the card's own padding is its room. */
/* Review 20: the help meter when low (20% or less): the bar in the warning colour (the Block 20 part 2 tokens), on the warning tint, so
   "Running low" is seen and not only read. --danger-strong is 3.2:1 against the white of the empty bar. */
.chat-meter.is-low, .help-card.is-low { background: var(--warning-soft); }
.help-card.is-low { border-color: var(--warning-line); }
.is-low progress::-webkit-progress-value { background: var(--danger-strong); }
.is-low progress::-moz-progress-bar { background: var(--danger-strong); }
/* Review 20: a source is a tap target of 32 px with the ↗ of every outside link; the 0% message and its button sit together. */
.chat-source { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 2px; }
.chat-source-mark { flex: none; text-decoration: none; }
.chat-source-list { row-gap: 0; }
.chat-unavailable { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.chat-unavailable-words { margin: 0; }
/* Review 20: on a phone the fixed top of the chat stays under 150 px at 390 wide (the walkthrough measures it): the meter sits under
   the title, beside the Close button (the head's own box steps aside with display: contents, so the panel lays them out), on one line,
   and the AI line is tighter (still 14 px, the smallest size for reading: tests/brand.test.js). The conversation keeps the rest. */
@media (max-width: 600px) {
  .chat-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
  .chat-head { display: contents; }
  .chat-title { grid-column: 1; grid-row: 1; padding: var(--space-2) 0 2px var(--space-4); }
  .chat-close { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-right: var(--space-2); }
  .chat-meter { grid-column: 1; grid-row: 2; flex-wrap: nowrap; padding: 0 0 var(--space-2) var(--space-4); border-bottom: 0; }
  .chat-meter.is-low { flex-wrap: wrap; background: none; } /* Beside Close the tint would stop short: the bar's colour says it. */
  .chat-ai-line[hidden] + .chat-body { border-top: 1px solid var(--line-soft); }
  .chat-meter-words { white-space: nowrap; line-height: 1.3; }
  .chat-meter-bar { flex: 1 1 60px; min-width: 60px; }
  .chat-ai-line { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid var(--line-soft); padding: 4px var(--space-4) 6px; font-size: var(--t-s); line-height: 1.3; }
  .chat-body { grid-column: 1 / -1; grid-row: 4; }
  .chat-form { grid-column: 1 / -1; grid-row: 5; }
}
/* Review 20: the panel never scrolls as a whole (only its conversation does): focus going back to a button after the refill sheet
   moved the whole panel up on a phone, title and meter out of sight. */
.chat-panel { overflow: clip; }

/* Block 30: travel together. "Can view" sees every button that changes the trip go away (the server refuses anyway); only the
   buyer sees what is the buyer's (deleting the trip, asking for more days). The page says the access once, in body[data-access]
   (public/trip-access.js); the lists are the write buttons public/offline.js switches off without a connection, and the Suggestions
   and Taste tab's own. Review 21: every attribute here is on a button, never on a container: a cost's row is <tr data-cost>, so only
   button[data-cost] goes (tests/viewer-rule.test.js reads every page and script for it). */
body[data-access="view"] :is([id="add-cost"], [id="add-first-cost"], button[data-cost], [id="add-dates"], [data-rate], [data-edit], [data-delete], #build, #build-now,
  #rebuild, #change-dates, [id="add-entry"], #route-open, #countries-open, [data-move], [data-place-it], [data-idea], [data-sort-day], [data-add], [id="add-contact"],
  [id="add-first"], [id="add-line"], [data-change], [data-undo], #edit-trip, [data-keep], [data-reject], [data-keep-after-all], [data-add-city],
  #refresh, #empty-review, #redo-taste, #copy-answers, #save-profile, #profile-form [type="submit"], .chat-proposal-actions, .estimate-style-buttons, .plan-more, .left-out-do,
  [id="add-booking"], [data-add-booking], [data-attach], [data-remove-file], [data-settle], [data-unsettle], [data-cash-pay], [data-cash-cost]) { display: none !important; }
body[data-access]:not([data-access="buyer"]) :is(#delete-trip, #ask-more-days, .get-more-help, [data-buyer-only]) { display: none !important; }
body[data-access="view"] .plan-card { cursor: default; }
body[data-access="view"] #profile-form :is(input, select, textarea) { pointer-events: none; }

/* The Travellers card on a trip's Overview. */
.travellers-list > li { flex-wrap: wrap; padding-left: 0; padding-right: 0; }
.travellers-list .list-main { min-width: 12rem; }
.traveller-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.traveller-actions select { width: auto; min-width: 9rem; }
.travellers-note { margin-top: var(--space-3); }
.invite-link { display: flex; flex-direction: column; gap: var(--space-2); }
.invite-link input { font-family: var(--font-mono); font-size: var(--t-s); }
.invite-link-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.access-choice { display: flex; flex-direction: column; gap: var(--space-2); }
.invite-sees { margin: var(--space-3) 0 0; }
.chat-author { display: block; font-size: var(--t-s); font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.chat-view-only { margin: 0; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line-soft); }
.chat-meter.is-shared .chat-meter-words { white-space: normal; text-wrap: pretty; }
.join-page h1 em { font-style: normal; color: var(--text); }
.join-page #loading { height: 6rem; }
@media (max-width: 600px) { .chat-view-only { grid-column: 1 / -1; grid-row: 6; } }
.trip-shared { background: var(--info-soft); box-shadow: inset 0 0 0 1px var(--border); }
.join-page input[readonly], .invite-link input[readonly] { background: var(--surface-2); }
.join-page .stack > .button + p.small { margin-top: var(--space-2); }
.join-page .stack { gap: var(--space-3); }
.join-page .stack .button + .button { margin-top: 0; }
.travellers-card .actions { margin-top: var(--space-3); }

/* Block 31: who changed what. The small grey line under an entry, a cost, a budget line or a contact; the last change on Overview
   and Today, with the way to the trip's History; History's filter by person. */
.by-line { margin: var(--space-1) 0 0; font-size: var(--t-s); color: var(--text-3); overflow-wrap: anywhere; }
td .by-line { margin-top: 2px; }
/* Review 21: 262Travel's own change, with the brand's small mark that no traveller's name can copy. */
.by-line.by-us { display: flex; align-items: center; gap: var(--space-1); }
.by-us-mark { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.25em; padding: 0 3px; border-radius: 4px; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--text); font-size: var(--t-xs); font-weight: 600; line-height: 1; }
.last-change { margin: 0; font-size: var(--t-s); color: var(--text-2); overflow-wrap: anywhere; }
.last-change.card-foot { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line-soft); }
@media (max-width: 600px) { .last-change.card-foot { padding: var(--space-3) var(--space-4); } }
.last-change a, .curator-changes a { font-weight: 500; }
.history-filters { align-items: center; }
.history-filters label { margin: 0; font-weight: 500; }
.history-filters select { min-width: 12rem; }
.history-page .history { margin-top: var(--space-2); }
.history-page .history .change { white-space: normal; overflow-wrap: anywhere; }

/* Block 32: "Forgot your password?" on the sign-in page, and the pages its emails link to. */
.forgot-link { justify-self: start; margin-top: var(--space-1); }
.signin .spaced-top { margin-top: var(--space-4); }
.signin-back { margin: var(--space-4) 0 0; }

/* Block 32: "Your account". */
.account-form { display: grid; gap: var(--space-4); max-width: 32rem; }
.account-page .spaced-block { margin-bottom: var(--space-4); }
.account-page .pending-email-text { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.account-page .shared-trips { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.account-page .danger-card { border-color: var(--danger); }

/* Block 32: the printed trip (pages/trip-print.html). On screen a plain sheet with the buttons above it; on paper only the sheet,
   in black on white, every day kept whole on its page where it fits. No photos or pictures: ink and paper are the person's. */
.print-page { background: var(--background); }
.print-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); max-width: 60rem; margin: 0 auto; padding: var(--space-4) var(--space-5) 0; }
.print-tip { margin: 0; }
.print-sheet { max-width: 60rem; margin: var(--space-4) auto var(--space-6); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); }
.print-head h1 { margin: var(--space-2) 0 var(--space-1); font-size: var(--t-2xl); overflow-wrap: anywhere; }
.print-brand { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: 600; }
.print-line { margin: 0; color: var(--text-2); }
.print-section { margin-top: var(--space-6); }
.print-section h2 { font-size: var(--t-l); margin: 0 0 var(--space-3); }
.print-day { margin-bottom: var(--space-5); break-inside: avoid; page-break-inside: avoid; }
.print-day h3 { margin: 0 0 var(--space-1); font-size: var(--t-m); }
.print-day .print-day-city { margin: 0 0 var(--space-2); color: var(--text-2); font-size: var(--t-s); }
.print-day .print-empty { margin: 0; color: var(--text-3); font-size: var(--t-s); }
.print-table td { vertical-align: top; overflow-wrap: anywhere; }
.print-table td.print-time { font-variant-numeric: tabular-nums; }
/* The same columns on every day, so the sheet reads as one table. */
.print-entries { table-layout: fixed; }
.print-entries .print-col-time { width: 5.5rem; }
.print-entries .print-col-entry { width: 34%; }
.print-entries .print-col-kind { width: 7.5rem; }
.print-table .print-notes { white-space: pre-line; color: var(--text-2); font-size: var(--t-s); }
.print-stays, .print-budget { margin: 0; padding-left: var(--space-5); }
.print-stays li, .print-budget li { margin-bottom: var(--space-1); }
.print-foot { margin-top: var(--space-6); }
@media (max-width: 640px) {
  .print-bar { padding: var(--space-3) var(--space-3) 0; }
  .print-sheet { margin: var(--space-3) var(--space-3) var(--space-5); padding: var(--space-4); }
  .print-table td.print-time { width: auto; }
}
@media print {
  @page { margin: 14mm; }
  .print-page, .print-sheet { background: var(--surface); }
  .print-bar { display: none !important; }
  .print-sheet { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .print-page, .print-page * { color: var(--text) !important; }
  .print-page .table-wrap { border: 0; box-shadow: none; overflow: visible; }
  .print-page .table th { background: none; border-bottom: 1px solid var(--text); }
  .print-page .table td { border-bottom: 1px solid var(--border); padding: 4px 8px; }
  .print-page .brand-logo { background: none; border: 1px solid var(--text); }
  .print-section h2 { break-after: avoid; page-break-after: avoid; }
}

/* Block 32: the day outside the app (Plan), and Overview's "Take your trip with you". */
.plan-day-out { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.plan-day-out .plan-route { font-weight: 500; }
.outside-actions { margin-top: var(--space-3); }
.account-page .card-body > p { margin: 0 0 var(--space-4); }
/* Block 32: a dialog whose buttons do not fit side by side on a phone puts them on two lines instead of off the screen. */
.dialog-footer { flex-wrap: wrap; }
@media (max-width: 640px) {
  .print-table.stacked td.print-notes { display: block; text-align: left; }
  .print-table.stacked td.print-notes::before { display: block; margin-bottom: 2px; }
  .print-table.stacked td.print-notes:empty { display: none; }
}

/* Block 33: bookings in one place. An entry's booking code with Copy, its files (icon, name, kind and size), "Needs signal" offline,
   and the "Add a booking" dialog's card, which reads like the chat's. */
.entry-code { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: var(--space-1) 0 0; font-size: var(--t-s); }
.entry-code .mono { color: var(--text); letter-spacing: .03em; overflow-wrap: anywhere; }
.entry-code.inline { display: inline-flex; margin: 0 0 0 var(--space-2); vertical-align: middle; }
.entry-files { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.entry-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); min-width: 0; }
.entry-file { display: inline-flex; align-items: center; gap: var(--space-1); min-width: 0; max-width: 100%; font-size: var(--t-s); font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.entry-file .icon { flex: none; }
.entry-file-name { overflow-wrap: anywhere; }
.entry-file-size { white-space: nowrap; }
.entry-file.is-off { color: var(--text-3); text-decoration: none; pointer-events: none; }
.file-signal { padding: 0 var(--space-2); border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.entry-form-files { margin-top: var(--space-3); }
.entry-form-files .label { margin: 0; font-weight: 500; }
.plan-card.is-asked { box-shadow: inset 0 0 0 2px var(--accent-strong); }
.today-items-actions { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.print-code { margin-top: 2px; font-size: var(--t-s); color: var(--text-2); }
.booking-dialog textarea { min-height: 9rem; }
.booking-or { margin: calc(var(--space-2) * -1) 0 var(--space-2); text-align: center; }
.booking-problem { margin-top: var(--space-3); }
.booking-card { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-strong) 55%, var(--border)); }
.booking-question { margin: 0 0 var(--space-2); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.booking-lines { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px var(--space-3); margin: 0 0 var(--space-3); font-size: var(--t-s); }
.booking-lines dt { color: var(--text-2); }
.booking-lines dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.booking-warning { margin: 0 0 var(--space-2); color: var(--text); }
.booking-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
/* Block 33: Today's "Add a booking" sits beside "Add a cost"; on a phone it goes under the day's entries instead, so today's first entry
   stays in the top half of the screen (Review 13). */
.today-booking-bottom { display: none; }
@media (max-width: 600px) {
  .today-booking-top { display: none; }
  .today-booking-bottom { display: flex; margin-top: var(--space-3); }
}

/* Block 34: group money and group choices. "Who owes whom" on Costs, "Split between" in a cost's form, and "I'd like this" on the
   shortlist and the ideas nearby. Only the tokens: no colour of its own. */
.owes-payments { margin: 0 0 var(--space-3); }
.owes-payment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.owes-payment .list-title { white-space: normal; overflow-wrap: anywhere; }
.owes-amount { font-weight: 600; white-space: nowrap; }
.owes-even { margin: 0 0 var(--space-3); font-weight: 500; }
.owes-subtitle { margin: var(--space-4) 0 var(--space-2); font-size: var(--t-s); font-weight: 600; color: var(--text-2); }
.owes-balances { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.owes-balances li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-3); padding: var(--space-1) 0; border-bottom: 1px solid var(--border); }
.owes-balances li:last-child { border-bottom: 0; }
.owes-line { margin: var(--space-3) 0 0; }
.owes-settled li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.owes-notice { margin: 0 0 var(--space-3); }
.split-field { border: 0; margin: var(--space-3) 0 0; padding: 0; min-width: 0; }
.split-field legend { padding: 0; margin-bottom: var(--space-2); font-weight: 500; }
.split-field .split-mode { display: inline-flex; align-self: flex-start; width: auto; margin: 0 0 var(--space-2); }
.split-people { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.split-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); min-height: var(--control-h-s); }
.split-person .checkbox { min-width: 0; overflow-wrap: anywhere; }
.split-field .split-amount { flex: none; width: 7.5rem; max-width: 100%; }
.split-person { flex-wrap: nowrap; }
.split-field .help { margin: var(--space-2) 0 var(--space-3); }
/* Review 24 (E3): a cost from before opens as "Not shared yet", with the way to share it. */
.split-not-shared { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); }
.split-not-shared .button.small { margin-left: var(--space-1); }
.vote { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-width: 0; }
.split-field[aria-invalid="true"] { border: 0; box-shadow: none; outline: 0; }
.button.vote-button[aria-pressed="true"] { background: var(--accent); border-color: var(--text); color: var(--on-accent); }
.vote-words { overflow-wrap: anywhere; }
.row-maps .vote { margin-left: var(--space-3); }
.plan-idea .vote { margin-top: var(--space-1); }
.plan-idea .vote .button { margin-left: -14px; }
.plan-idea .vote .vote-button[aria-pressed="true"] { margin-left: 0; }
.kept-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.kept-head .kept-sort { margin-top: 0; }
.kept-vote-line { margin: 0 0 var(--space-3); }

/* Block 35: after the trip. "How was it?" on Overview and the trip's journal: the three ratings (pressed: aguamarina with a navy edge,
   as every chosen button), one sentence, photos as small tiles that open whole, and a print that leaves the buttons out. */
.how-header { align-items: flex-start; gap: var(--space-3); }
.how-line { margin: var(--space-1) 0 0; }
.rate-list { display: grid; gap: 0; }
.rate-list > .rate-place { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.rate-list > .rate-place:first-child { padding-top: 0; }
.rate-list > .rate-place:last-child { border-bottom: 0; }
.rate-name { margin: 0; font-size: var(--t-m); font-weight: 600; overflow-wrap: anywhere; }
.rate-where { margin: 0 0 var(--space-2); }
.rate-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 0; }
.rate-choice .icon { width: 16px; height: 16px; }
.button.rate-choice[aria-pressed="true"] { background: var(--accent); border-color: var(--text); color: var(--on-accent); font-weight: 600; }
.rate-sentence { display: grid; gap: var(--space-1); margin: var(--space-3) 0 0; max-width: 40rem; }
.rate-sentence-row { display: flex; gap: var(--space-2); align-items: center; }
.rate-sentence-row input { flex: 1; min-width: 0; }
.rate-sentence .help { margin: 0; }
.rate-error { display: block; margin: var(--space-2) 0 0; }
.rate-error[hidden] { display: none; }
.rate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; }
.journal-add-photos .button .icon { width: 16px; height: 16px; }
.how-done { margin: var(--space-3) 0 0; font-weight: 500; }
.how-actions { margin-top: var(--space-4); justify-content: flex-start; }
.journal-card-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.journal-card-title { margin: 0 0 var(--space-1); font-size: var(--t-l); }
.journal-card-body p { margin: 0; }
.journal-photos { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-3); }
.journal-photo { display: grid; gap: var(--space-1); min-width: 0; align-content: start; }
.journal-photo a { display: block; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.journal-photo a:focus-visible { box-shadow: var(--ring); outline: 0; }
.journal-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.journal-photo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-1); min-height: 30px; }
.journal-photo-foot:empty { display: none; }
.journal-photo-by { overflow-wrap: anywhere; min-width: 0; }
.journal-photo-remove.button.small { min-height: 30px; padding: 0 var(--space-2); }
.button.small.rate-add-sentence { margin: var(--space-2) 0 0; padding-left: 0; padding-right: 0; }
.journal-intro { margin: 0 0 var(--space-4); max-width: 46rem; }
.journal-day.is-quiet .card-body { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.journal-day .card-header h2 { font-size: var(--t-l); }
.journal-place { padding: 0 0 var(--space-4); margin: 0 0 var(--space-4); border-bottom: 1px solid var(--border); }
.journal-place-name { margin: 0; font-size: var(--t-l); overflow-wrap: anywhere; }
.journal-place-where { margin: 0 0 var(--space-2); }
.journal-ratings { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.journal-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); }
.journal-rating-text { min-width: 0; overflow-wrap: anywhere; }
.journal-mine-line { display: none; }
.rating-tag { display: inline-flex; align-items: center; gap: var(--space-1); white-space: nowrap; }
.rating-tag .icon { width: 14px; height: 14px; }
.tag.rating-tag.rating-loved { background: var(--accent-soft); border-color: var(--accent-strong); }
.tag.rating-tag.rating-skip { background: var(--danger-soft); border-color: var(--danger); }
.journal-no-rating, .journal-no-places { margin: var(--space-2) 0 0; }
.journal-yours { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); background: var(--surface-2); }
.journal-yours-title { margin: 0; font-weight: 600; }
.journal-yours .rate-choices { margin-top: var(--space-1); }
.journal-day-photos-title { margin: 0; font-weight: 600; }
.journal-day-photos .rate-actions { margin-top: var(--space-2); }
.journal-day-photos:empty { display: none; }
.client-rating-line { display: block; margin-top: var(--space-1); }
.client-ratings-card .client-sentences { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.client-ratings-card .client-sentences li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .rate-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rate-choices .button.small { justify-content: center; padding: 0 6px; gap: 4px; min-width: 0; }
  .journal-photos { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); }
  .journal-yours { padding: var(--space-3); }
  .journal-card-body .button { width: 100%; justify-content: center; }
}
@media print {
  body:has(.journal-page) :is(.visitor-top, .breadcrumbs, .tabs, .trip-back, .mode-switch, .chat-open, .notices, .offline-notice, .offline-trip,
    .journal-yours, .rate-actions, .journal-photo-remove, #print-journal, .plan-map-tools, #map-ask, #map-always, .plan-map-missing, .legal-footer) { display: none !important; }
  body:has(.journal-page) { background: var(--surface); }
  .journal-page .card { border: 0; box-shadow: none; break-inside: auto; }
  .journal-page .journal-mine-line { display: flex; }
  .journal-page .journal-place { break-inside: avoid; page-break-inside: avoid; }
  .journal-page .journal-day .card-header { break-after: avoid; page-break-after: avoid; }
  .journal-page .journal-photos { grid-template-columns: repeat(4, 1fr); }
  .journal-page .journal-day.is-quiet { display: none; }
  /* With no map shown on the screen, the list of places stands alone on paper. */
  .journal-page .plan-map-body:has(#map[hidden]) { display: block; }
  .journal-page .plan-map-stage:has(#map[hidden]) { display: none; }
}

/* =====================================================================================================================
   Design refresh (2026-11-12, docs/design-critique-2026-11-12.md). A second level of colour (base.css: deep teal, tints, navy
   surfaces, the sun accent, one colour per kind of entry), a type scale with eyebrows and big numbers, the trip's navy header, the
   tabs as a bar at the bottom of a phone, "What is pending" as tiles, clickable rows, the Plan as a timeline, and the landing's
   handwriting in a few chosen places. It sits last so it wins; no colour of its own, only the tokens.
   ===================================================================================================================== */
:root {
  --t-display: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);  /* the big numbers */
  --t-title: 1.375rem;
  --hand: "Caveat", var(--font);
  --shadow-raised: 0 1px 2px color-mix(in srgb, var(--shade) 6%, transparent), 0 14px 34px -18px color-mix(in srgb, var(--shade) 32%, transparent);
  --bottom-bar: 0px; /* the height of the phone's tab bar, where there is one */
}

/* ---------- Type: eyebrows, big numbers, the handwriting ---------- */
.eyebrow { margin: 0; font-size: var(--t-xs); font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.hand { font-family: var(--hand); font-weight: 500; }
.table .num, .stat .value, .owes-amount, .tile-number, .estimate-total, .money { font-variant-numeric: tabular-nums; }
/* Links inside sentences: deep teal, underlined (aguamarina is never text). */
:where(.content, .card, .notice-box) a:not([class]) { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 55%, transparent); }
:where(.content, .card, .notice-box) a:not([class]):hover { color: var(--teal-strong); text-decoration-color: currentColor; }
.visitor-content .greeting #greeting { font-family: var(--hand); font-weight: 600; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); line-height: 1; letter-spacing: 0; color: var(--text); }
.greeting p { color: var(--text-2); }

/* ---------- Cards in three levels: hero (navy or a tint), card (white, hairline), inset (canvas inside a card) ---------- */
.card { box-shadow: none; }
.card.raised, .card.is-next { box-shadow: var(--shadow-raised); }
.inset, .notice-box.inset { background: var(--background); border: 0; border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.card-header h2, .card-header h3 { font-weight: 600; letter-spacing: -.005em; }

/* ---------- Buttons: one primary per area; the rest quiet ---------- */
/* Review 24 (E6): a quiet button has a visible edge (navy at 48% on white: 3.4:1), and a "ghost" one a tint, so neither reads as a label. */
.button:not(.primary, .danger, .ghost) { border-width: 1px; border-color: color-mix(in srgb, var(--text) 48%, var(--surface)); background: var(--surface); }
.button:not(.primary, .danger, .ghost):hover { background: var(--accent-50); color: var(--text); }
.button.ghost { background: var(--accent-50); border-color: var(--accent-100); color: var(--text); }
.button.ghost:hover { background: var(--accent-100); border-color: var(--accent-200); }
.button.ghost.danger { background: var(--coral-50); border-color: var(--coral-100); color: var(--text); }
/* On a navy surface (Administration's sidebar) a ghost button keeps the quiet navy look: a tint there would hide its words. */
.sidebar .button.ghost { background: color-mix(in srgb, var(--nav-text) 8%, transparent); border-color: var(--nav-line); color: var(--nav-text); }
.sidebar .button.ghost:hover { background: var(--navy-3); border-color: var(--nav-text-3); color: var(--nav-text); }
.button.vote-button { gap: 6px; }
.button.vote-button .icon { width: 16px; height: 16px; }

/* ---------- Tabs on a computer: quiet words, the chosen one in deep teal with its bar ---------- */
.tabs { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; gap: var(--space-1); width: auto; }
.tabs a, .tabs button { min-height: 48px; padding: 0 14px; border-radius: var(--radius-s) var(--radius-s) 0 0; color: var(--text-2); }
.tabs a:hover, .tabs button:hover { background: var(--accent-50); color: var(--text); }
.tabs [aria-selected="true"], .tabs [aria-current="page"],
.tabs [aria-selected="true"]:hover, .tabs [aria-current="page"]:hover { background: transparent; color: var(--teal); font-weight: 600; box-shadow: inset 0 -3px 0 var(--teal); }
.tabs [aria-selected="true"] .count, .tabs [aria-current="page"] .count { color: var(--teal); }
.tabs a .icon { color: inherit; }
.tabs :focus-visible { box-shadow: var(--ring); border-radius: var(--radius-s); }
.tabs .tabs-more { display: none; }

/* ---------- The customer's top bar: one row, the person a button with a small menu ---------- */
.visitor-top { flex-wrap: nowrap; }
.person-menu { position: relative; margin-left: auto; min-width: 0; flex: 0 1 auto; }
.person-button { display: inline-flex; align-items: center; gap: var(--space-2); max-width: min(340px, 58vw); min-height: 44px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font: 500 var(--t-m)/1.2 var(--font); cursor: pointer; }
.person-button:hover { background: var(--accent-50); border-color: var(--teal); }
.person-button[aria-expanded="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px var(--accent-100); }
.person-button:focus-visible { box-shadow: var(--ring); border-radius: var(--radius-pill); }
.visitor-top .person-button .person { order: 0; flex: 0 1 auto; flex-basis: auto; min-width: 0; }
.person-button .avatar { width: 34px; height: 34px; }
.person-chevron { width: 16px; height: 16px; color: var(--text-2); }
.person-list { right: 0; top: calc(100% + 8px); min-width: 250px; padding: var(--space-2); }
.person-menu-name { margin: 0 0 var(--space-1); padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.menu .person-item { min-height: 44px; gap: var(--space-3); font-weight: 500; }
.menu .person-item .icon { width: 18px; height: 18px; color: var(--teal); }
.menu .person-item:hover { background: var(--accent-50); }
@media (max-width: 640px) {
  .visitor-top { gap: var(--space-2); }
  .visitor-top .client-gap { display: none; }
  .person-button { max-width: 52vw; padding-right: 8px; }
  .person-button .person-name { max-width: 7.5rem; }
  .person-list { min-width: min(280px, calc(100vw - 2 * var(--space-4))); }
}

/* ---------- The trip's header: one navy band ---------- */
.has-trip-hero .trip-page > .breadcrumbs { display: none; }
.trip-page > .trip-hero { max-width: none; }
.trip-hero {
  --text: var(--nav-text); --text-2: var(--nav-text-2); --text-3: var(--nav-text-3); --border: var(--nav-line); --line-soft: var(--nav-line);
  --surface-2: var(--nav-hover); --ring: 0 0 0 2px var(--navy), 0 0 0 4px var(--accent);
  position: relative; overflow: hidden; margin: 0 0 var(--space-5); border-radius: 22px; color: var(--nav-text);
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 96% -20%, color-mix(in srgb, var(--accent) 34%, transparent) 0, transparent 38%),
    radial-gradient(circle at 62% 140%, color-mix(in srgb, var(--island-glow) 70%, transparent) 0, transparent 46%),
    radial-gradient(color-mix(in srgb, var(--nav-text) 8%, transparent) 1px, transparent 1.6px);
  background-size: auto, auto, 16px 16px;
}
.trip-hero-inner { position: relative; z-index: 1; padding: var(--space-4) var(--space-6) var(--space-5); }
.trip-hero.has-art .trip-hero-inner { padding-right: calc(var(--space-6) + 200px); }
.trip-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
body.has-trip-hero .trip-hero .trip-back { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; margin: 0; padding: 0 10px 0 4px; border-radius: var(--radius-pill); color: var(--nav-text-2); font-size: var(--t-s); font-weight: 500; text-decoration: none; }
body.has-trip-hero .trip-hero .trip-back:hover { background: var(--navy-3); color: var(--nav-text); }
.trip-hero #trip-banner { margin: 0; }
.trip-hero #trip-banner:has(img) { display: none; }
.trip-hero .photo-banner.photo-slot { display: inline-flex; width: auto; height: 30px; padding: 0 12px 0 8px; gap: 6px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent) 16%, transparent); background-image: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); color: var(--nav-text); font-size: var(--t-s); }
.trip-hero .photo-banner .photo-icon { width: 16px; height: 16px; color: var(--accent); }
.trip-hero .photo-banner .photo-name { font-weight: 500; color: var(--nav-text); }
body.has-trip-hero .trip-hero .page-header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title fact" "line fact" "people fact" "tools actions";
  gap: var(--space-2) var(--space-6); align-items: end; margin: 0;
}
body.has-trip-hero .trip-hero .page-header > div:first-child { display: contents; }
body.has-trip-hero .trip-hero #trip-name { grid-area: title; max-width: 34ch; margin: 0; font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); line-height: 1.15; color: var(--nav-text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; white-space: normal; }
body.has-trip-hero .trip-hero #trip-line { grid-area: line; margin: 0; color: var(--nav-text-2); }
.trip-people { grid-area: people; display: flex; align-items: center; margin: var(--space-1) 0 0; }
.trip-people[hidden] { display: none; }
.trip-avatar { width: 34px; height: 34px; margin-right: 4px; box-shadow: 0 0 0 2px var(--navy); color: var(--on-accent); }
.trip-avatar.tone-0 { background: var(--accent); }
.trip-avatar.tone-1 { background: var(--sun); }
.trip-avatar.tone-2 { background: var(--coral-100); color: var(--danger-ink); }
.trip-avatar.tone-3 { background: var(--kind-flight-bg); color: var(--kind-flight); }
.trip-fact { grid-area: fact; align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; margin: 0; text-align: right; }
.trip-fact[hidden] { display: none; }
.trip-fact-number { font-size: var(--t-display); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-fact[data-kind="ended"] .trip-fact-number { color: var(--nav-text); }
.trip-fact-words { margin-top: 6px; font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--nav-text-2); white-space: nowrap; }
body.has-trip-hero .trip-hero .trip-tools, body.has-trip-hero .trip-hero .page-header > div > .mode-switch { grid-area: tools; justify-self: start; margin-top: var(--space-3); }
body.has-trip-hero .trip-hero .page-header > .actions { grid-area: actions; justify-self: end; align-self: end; margin-top: var(--space-3); }
/* On a wide screen the switch and the page's buttons share the last row, whatever the width of the buttons. */
@media (min-width: 1100px) {
  body.has-trip-hero .trip-hero .page-header { grid-template-areas: "title fact" "line fact" "people fact" "tools tools"; }
  body.has-trip-hero .trip-hero .page-header > .actions { grid-area: tools; }
}
@media (min-width: 641px) and (max-width: 1099px) {
  body.has-trip-hero .trip-hero .page-header { grid-template-areas: "title fact" "line fact" "people fact" "tools tools" "actions actions"; }
  body.has-trip-hero .trip-hero .page-header > .actions { justify-self: start; }
}
.trip-hero .page-header > .actions:not(:has(.button:not([hidden]))) { display: none; }
.hero-menu { display: contents; }
.hero-more { display: none; }
.trip-hero .mode-switch { background: color-mix(in srgb, var(--nav-text) 7%, transparent); border-color: var(--nav-line); }
.trip-hero .mode-switch .mode-choice { color: var(--nav-text-2); }
.trip-hero .mode-switch .mode-choice:hover { background: var(--navy-3); color: var(--nav-text); }
.trip-hero .mode-switch .mode-choice[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.trip-hero .button:not(.primary, .danger) { background: color-mix(in srgb, var(--nav-text) 6%, transparent); border-color: var(--nav-line); color: var(--nav-text); }
.trip-hero .button:not(.primary, .danger):hover { background: var(--navy-3); border-color: var(--nav-text-3); }
.trip-hero .button.danger.outline { background: transparent; border-color: var(--danger); color: var(--nav-text); }
.trip-hero .button.danger.outline:hover { background: color-mix(in srgb, var(--danger) 18%, transparent); }
.trip-hero .button.primary { border-color: var(--accent); }
/* The painting: a postcard tilted on the right, its place written under it. */
.trip-hero-art { position: absolute; right: var(--space-6); top: 50%; z-index: 1; transform: translateY(-50%) rotate(3deg); }
.trip-hero-art:empty { display: none; }
.painting-card { margin: 0; padding: 8px 8px 4px; background: var(--paper); border-radius: 4px; box-shadow: var(--shadow-raised); }
.painting-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.painting-card figcaption { margin-top: 2px; font-size: 1.375rem; line-height: 1.1; color: var(--on-paper); text-align: center; }
.trip-hero-painting { width: 168px; }
.trip-hero.has-photo .trip-hero-art { inset: 0 0 0 auto; width: 46%; top: 0; transform: none; }
.trip-hero.has-photo .trip-hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; mask-image: linear-gradient(to right, transparent, var(--navy) 45%); }
.trip-hero.has-photo .trip-hero-inner { padding-right: var(--space-6); }

/* ---------- The chat button never covers the page: round at the bottom right, with a lane of its own beside the content ---------- */
@media (min-width: 641px) {
  .chat-open { width: 58px; height: 58px; min-height: 58px; padding: 0; justify-content: center; border-radius: 50%; }
  .chat-open .icon { width: 24px; height: 24px; }
  .chat-open .chat-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .content.trip-page { padding-right: calc(var(--space-8) + 72px); }
}
@media (min-width: 641px) and (max-width: 860px) { .content.trip-page { padding-right: calc(var(--space-4) + 72px); } }

/* ---------- "What is pending" as tiles: a small label, the number made big, the same sentence under it ---------- */
.pending-list.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-4); }
.pending-list.tiles > li.tile { display: block; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pending-list.tiles > li.tile:first-child { border-top: 1px solid var(--border); }
.tile .pending-title { margin-bottom: var(--space-1); }
.tile-number { margin: 0 0 var(--space-1); font-size: 2.25rem; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; color: var(--text); overflow-wrap: anywhere; }
.tile-number.is-money { font-size: var(--t-xl); line-height: 1.25; letter-spacing: -.01em; }
.tile-unit { font-size: var(--t-s); font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.tile .list-detail { color: var(--text-2); font-size: var(--t-s); }
.pending-list.tiles > li.tile.tone-sun { background: var(--sun-100); border-color: var(--sun-200); }
.pending-list.tiles > li.tile.tone-coral { background: var(--coral-50); border-color: var(--coral-100); }
.pending-list.tiles > li.tile.tone-accent { background: var(--accent-50); border-color: var(--accent-200); }
.tile.tone-sun .eyebrow, .tile.tone-coral .eyebrow { color: var(--text); }
.tile-bar { display: block; width: 100%; height: 8px; margin: var(--space-2) 0; border: 0; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--text) 10%, transparent); }
.tile-bar::-webkit-progress-bar { background: color-mix(in srgb, var(--text) 10%, transparent); border-radius: var(--radius-pill); }
.tile-bar::-webkit-progress-value { background: var(--teal); border-radius: var(--radius-pill); }
.tile-bar::-moz-progress-bar { background: var(--teal); border-radius: var(--radius-pill); }
.tile-bar.is-over::-webkit-progress-value { background: var(--danger-strong); }
.tile-bar.is-over::-moz-progress-bar { background: var(--danger-strong); }
#pending { padding-top: var(--space-4); }
#pending .pending-list.tiles { margin-bottom: 0; }
@media (max-width: 640px) {
  .pending-list.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .pending-list.tiles > li.tile { padding: var(--space-3); }
  .tile-number { font-size: 1.75rem; }
  .tile-number.is-money { font-size: var(--t-l); }
}
@media (max-width: 380px) { .pending-list.tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- My trips: the next trip is the page's hero ---------- */
.card.is-next { overflow: hidden; border-color: transparent; }
.card.is-next > .trip-card-header {
  --text: var(--nav-text); --text-2: var(--nav-text-2); --text-3: var(--nav-text-3); --ring: 0 0 0 2px var(--navy), 0 0 0 4px var(--accent);
  position: relative; align-items: flex-start; padding: var(--space-5) var(--space-6); border-bottom: 0; color: var(--nav-text);
  background-color: var(--navy);
  background-image: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 30%, transparent) 0, transparent 40%), radial-gradient(color-mix(in srgb, var(--nav-text) 8%, transparent) 1px, transparent 1.6px);
  background-size: auto, 16px 16px;
}
.card.is-next .trip-card-header .eyebrow { color: var(--accent); margin-bottom: var(--space-1); }
.card.is-next .trip-card-header h2 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; }
.card.is-next .trip-card-header h2 a { color: var(--nav-text); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.card.is-next .trip-card-header p { color: var(--nav-text-2); }
.card.is-next .trip-card-tags { flex-direction: column; align-items: flex-end; gap: var(--space-3); max-width: none; }
.card.is-next .trip-card-tags .tag { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); color: var(--nav-text); }
.home-fact { display: flex; flex-direction: column; align-items: flex-end; margin: 0; text-align: right; }
.home-art:empty { display: none; }
.home-art .painting-card { width: 112px; transform: rotate(-3deg); }
.card.is-next.has-art .trip-card-header { gap: var(--space-5); }
.card.is-next > .card-body { padding-top: var(--space-5); }
@media (max-width: 640px) {
  .card.is-next > .trip-card-header { flex-wrap: wrap; padding: var(--space-4); }
  .card.is-next .trip-card-tags { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; flex-basis: 100%; }
  .home-fact { align-items: flex-start; text-align: left; order: -1; }
  .home-art .painting-card { width: 84px; }
}

/* ---------- Clickable rows (Administration's home): icon, words, a count and a chevron ---------- */
.list > li.row-link { padding: 0; }
.row-link > a { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 64px; padding: var(--space-3) var(--space-5); color: var(--text); text-decoration: none; }
.row-link > a:hover { background: var(--accent-50); }
.row-link > a:hover .list-title { text-decoration: underline; text-underline-offset: 3px; }
.row-link > a:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); border-radius: 0; }
.row-link .list-main { display: flex; flex-direction: column; gap: 2px; }
.row-link .list-title { font-weight: 600; }
.row-icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-100); color: var(--teal); }
.row-icon .icon { width: 20px; height: 20px; }
.row-icon.tone-sun { background: var(--sun-100); color: var(--kind-transport); }
.row-icon.tone-coral { background: var(--coral-100); color: var(--coral-ink); }
.row-icon.tone-accent { background: var(--accent-100); color: var(--teal); }
.row-icon.tone-accent { background: var(--accent-100); color: var(--teal); }
.row-count { flex: none; min-width: 32px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--navy); color: var(--nav-text); font-size: var(--t-s); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.row-chevron { flex: none; width: 18px; height: 18px; color: var(--text-3); }
.list > li.country-gaps { align-items: flex-start; }
.country-gaps > .row-icon { margin-top: 2px; }
.country-gaps .gap-lines { list-style: none; padding-left: 0; display: grid; gap: var(--space-1); }
a.gap-link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 40px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--background); color: var(--text); text-decoration: none; }
a.gap-link:hover { background: var(--accent-50); }
a.gap-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .row-link > a { padding: var(--space-3) var(--space-4); } a.gap-link { min-height: 44px; } }

/* Administration's figures: each with its own colour mark, the number big. */
.grid.four > .card.stat { position: relative; overflow: hidden; }
.grid.four > .card.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); } /* Review 24 (E8): one mark, no colour that means nothing */
.stat .caption { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.stat .value { font-size: var(--t-display); letter-spacing: -.03em; color: var(--text); }
.sales-step { padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--accent-50); }
.sales-step .value { font-size: var(--t-2xl); font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------- One colour per kind of entry: a tint behind a deep icon ---------- */
.kind-chip { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; }
.kind-chip .icon { width: 18px; height: 18px; vertical-align: 0; }
.kind-chip.small-chip { width: 26px; height: 26px; border-radius: 8px; }
.kind-chip.small-chip .icon { width: 15px; height: 15px; }
.kind-flight { background: var(--kind-flight-bg); color: var(--kind-flight); }
.kind-stay { background: var(--kind-stay-bg); color: var(--kind-stay); }
.kind-transport { background: var(--kind-transport-bg); color: var(--kind-transport); }
.kind-tour { background: var(--kind-tour-bg); color: var(--kind-tour); }
.kind-meal { background: var(--kind-meal-bg); color: var(--kind-meal); }
.kind-other { background: var(--kind-other-bg); color: var(--kind-other); }
.today-item-title { align-items: flex-start; gap: var(--space-3); }
.today-item-title .card-title { padding-top: 4px; }
.before-entries li { align-items: center; }

/* ---------- The Plan as a timeline: each day one wide card, a time rail, the kind chips on it ---------- */
body .plan-layout .plan-days { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
/* On a wide screen a day's ideas sit beside its entries, so the day reads across and the Plan stays short. */
@media (min-width: 1200px) {
  body .plan-layout .plan-days .plan-day:has(> .plan-day-side) { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); column-gap: var(--space-6); row-gap: 0; align-content: start; }
  .plan-days .plan-day:has(> .plan-day-side) > * { grid-column: 1; }
  .plan-days .plan-day:has(> .plan-day-side) > .column-header { grid-column: 1 / -1; }
  .plan-days .plan-day > .plan-day-side { grid-column: 2; grid-row: 2 / span 12; align-self: start; padding-top: var(--space-3); }
  .plan-days .plan-day > .plan-day-side .plan-ideas:first-child { margin-top: 0; }
  .plan-days .plan-day:has(> .plan-day-side) > .button { justify-self: start; }
}
/* The kind chip says what an entry is; a drawn placeholder beside it would say it twice (a real photo stays). */
body .plan-layout .plan-days .plan-card .photo-slot { display: none; }
body .plan-layout .plan-days .column { padding: var(--space-4) var(--space-6) var(--space-3); }
.plan-layout .plan-days .column-header { align-items: center; }
.plan-days .plan-column-title { font-size: var(--t-l); }
.plan-days .plan-day-number { display: inline-block; margin-left: var(--space-2); padding: 1px 9px; border-radius: var(--radius-pill); background: var(--accent-100); color: var(--text); font-size: var(--t-xs); font-weight: 600; vertical-align: 2px; }
.plan-days .plan-day-base { display: block; margin-top: 2px; font-size: var(--t-s); font-weight: 500; color: var(--teal); }
.plan-days .plan-cards { position: relative; }
.plan-days .plan-cards:has(.plan-card)::before { content: ""; position: absolute; left: calc(4rem + var(--space-3) + 15px); top: var(--space-5); bottom: var(--space-5); width: 2px; border-radius: 2px; background: var(--accent-100); }
body .plan-layout .plan-days .plan-card { grid-template-columns: 4rem 32px minmax(0, 1fr); column-gap: var(--space-3); position: relative; }
body .plan-layout .plan-days .plan-card > * { grid-column: 3; }
body .plan-layout .plan-days .plan-card .plan-card-title, body .plan-layout .plan-days .plan-card .plan-entry-name { display: contents; }
body .plan-layout .plan-days .plan-card .plan-time { grid-column: 1; grid-row: 1; align-self: start; padding-top: 5px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
body .plan-layout .plan-days .plan-card .kind-chip { grid-column: 2; grid-row: 1; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
body .plan-layout .plan-days .plan-card .plan-entry-name .card-title { grid-column: 3; grid-row: 1; padding-top: 4px; }
body .plan-layout .plan-days .plan-card .photo { grid-column: 1; grid-row: 2 / span 2; }
.plan-days .plan-tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
@media (max-width: 860px) {
  body .plan-layout .plan-days .column { padding: var(--space-4); }
  body .plan-layout .plan-days .plan-card { grid-template-columns: 3rem 28px minmax(0, 1fr); column-gap: var(--space-2); }
  body .plan-layout .plan-days .plan-card .kind-chip { width: 28px; height: 28px; }
  .plan-days .plan-cards:has(.plan-card)::before { left: calc(3rem + var(--space-2) + 13px); }
  body .plan-layout .plan-days .plan-card .photo { display: none; }
}

/* ---------- Empty states: a drawn icon on a tilted stamp, and the heading in handwriting ---------- */
.empty .empty-icon.drawn { width: 68px; height: 68px; border-radius: 18px; background: var(--accent-100); box-shadow: 0 0 0 6px var(--accent-50); color: var(--teal); transform: rotate(-4deg); }
.empty .empty-icon.drawn .icon { width: 30px; height: 30px; }
.visitor-content .empty h3 { font-family: var(--hand); font-weight: 600; font-size: 1.875rem; line-height: 1.1; letter-spacing: 0; color: var(--text); }

/* ---------- The journal: its days' titles in handwriting ---------- */
.journal-day .card-header h2 { font-family: var(--hand); font-weight: 600; font-size: 1.75rem; line-height: 1.1; letter-spacing: 0; }
.journal-card-title { font-family: var(--hand); font-weight: 600; font-size: 1.875rem; letter-spacing: 0; }

/* ---------- Overview's other cards: eyebrows for the section names, the empty days as chips ---------- */
.before-group h3 { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.before-group h3 .icon { color: var(--teal); }
.before-days a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--coral-50); box-shadow: inset 0 0 0 1px var(--coral-100); color: var(--text); text-decoration: none; font-size: var(--t-s); font-weight: 500; }
.before-days a:hover { background: var(--coral-100); }
.before-done { background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-200); }
.help-card .help-line { font-size: var(--t-l); }

/* ---------- Phones: the trip's tabs as a bar at the bottom, the header full width ---------- */
@media (max-width: 640px) {
  body.has-trip-hero { --bottom-bar: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.has-trip-hero .content.trip-page { padding-top: 0; padding-bottom: calc(var(--bottom-bar) + var(--space-6)); }
  .trip-hero { margin: 0 calc(-1 * var(--space-4)) var(--space-4); border-radius: 0 0 22px 22px; }
  .trip-hero-inner, .trip-hero.has-art .trip-hero-inner, .trip-hero.has-photo .trip-hero-inner { padding: var(--space-2) var(--space-4) var(--space-4); }
  .trip-hero.has-art .trip-hero-top { padding-right: 84px; }
  .trip-hero-art { top: var(--space-3); right: var(--space-4); transform: rotate(4deg); }
  .trip-hero-painting { width: 72px; padding: 4px 4px 0; }
  .trip-hero-painting figcaption { font-size: 1rem; }
  .trip-hero.has-photo .trip-hero-art { top: 0; width: 60%; transform: none; }
  .trip-hero-top { margin-bottom: var(--space-2); }
  body.has-trip-hero .trip-hero .page-header { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "line line" "people fact" "tools tools" "actions actions"; gap: var(--space-1) var(--space-3); align-items: center; }
  body.has-trip-hero .trip-hero #trip-name { max-width: none; font-size: clamp(1.25rem, 5.6vw, 1.5rem); -webkit-line-clamp: 2; line-clamp: 2; }
  .trip-fact { justify-self: end; flex-direction: row; align-items: baseline; gap: var(--space-2); margin-top: var(--space-2); text-align: right; }
  .trip-fact-number { font-size: 2rem; }
  .trip-fact-words { margin-top: 0; white-space: normal; }
  body.has-trip-hero .trip-hero .trip-tools, body.has-trip-hero .trip-hero .page-header > div > .mode-switch { justify-self: stretch; margin-top: var(--space-3); }
  body.has-trip-hero .trip-hero .page-header > .actions { justify-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
  body.has-trip-hero .trip-hero .page-header > .actions > .button { width: 100%; min-width: 0; padding: 0 10px; white-space: normal; line-height: 1.2; }
  body.has-trip-hero .trip-hero .page-header > .actions > .button:only-child { grid-column: 1 / -1; }
  /* Review 24 (E2): the page's one main button and "More"; the other buttons open under them, full width. */
  body.has-trip-hero .trip-hero .page-header > .actions:has(> .hero-more:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }
  body.has-trip-hero .trip-hero .page-header > .actions > .hero-more { display: inline-flex; gap: 4px; padding: 0 14px; }
  body.has-trip-hero .trip-hero .page-header > .actions > .hero-more[hidden] { display: none; }
  body.has-trip-hero .trip-hero .page-header > .actions > .hero-more[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  body.has-trip-hero .trip-hero .page-header > .actions > .hero-menu { display: none; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--nav-line); }
  body.has-trip-hero .trip-hero .page-header > .actions > .hero-menu.is-open { display: grid; order: 10; } /* under "More", not above it */
  body.has-trip-hero .trip-hero .page-header > .actions > .hero-menu > .button { width: 100%; min-width: 0; padding: 0 10px; white-space: normal; line-height: 1.2; }
  .trip-hero .trip-tools .chat-open { position: static; width: 44px; height: 44px; min-height: 44px; flex: none; box-shadow: none; border-color: var(--accent); }

  /* The tab bar: four tabs and More, an icon over a short word; More opens the rest above it. */
  body.has-trip-hero #tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; width: auto; max-width: none; margin: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); overflow: visible; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: var(--surface); box-shadow: 0 -10px 30px -18px color-mix(in srgb, var(--shade) 45%, transparent); mask-image: none; }
  body.has-trip-hero #tabs a, body.has-trip-hero #tabs .tabs-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; min-width: 0; padding: 4px 2px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-2); font: 500 var(--t-xs)/1.15 var(--font); box-shadow: none; cursor: pointer; }
  body.has-trip-hero #tabs a .icon, body.has-trip-hero #tabs .tabs-more .icon { width: 22px; height: 22px; margin: 0; }
  body.has-trip-hero #tabs .tab-label { display: block; max-width: 100%; font-size: var(--t-xs); line-height: 1.1; text-align: center; white-space: normal; overflow-wrap: normal; }
  body.has-trip-hero #tabs .tab-label .count { display: none; }
  body.has-trip-hero #tabs a.tab-extra { display: none; }
  body.has-trip-hero #tabs [aria-current="page"], body.has-trip-hero #tabs .tabs-more.has-current { color: var(--teal); background: var(--accent-50); box-shadow: inset 0 3px 0 var(--teal); font-weight: 600; }
  body.has-trip-hero #tabs .tabs-more[aria-expanded="true"] { color: var(--text); background: var(--accent-100); }
  body.has-trip-hero #tabs.is-open { border-radius: 22px 22px 0 0; padding-top: var(--space-3); box-shadow: 0 -18px 50px -10px color-mix(in srgb, var(--shade) 45%, transparent); }
  body.has-trip-hero #tabs.is-open a.tab-extra { display: flex; order: -1; grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-4); font-size: var(--t-m); }
  body.has-trip-hero #tabs.is-open a.tab-extra .tab-label { font-size: var(--t-m); }
  body.has-trip-hero #tabs.is-open a.tab-extra .tab-label .count { display: inline; margin-left: var(--space-2); }
  body.has-trip-hero #tabs.is-open a.tab-extra[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); }
  body.has-trip-hero .tabs-more { display: flex; }
  body.has-trip-hero:has(#tabs.is-open)::after { content: ""; position: fixed; inset: 0; z-index: 44; background: var(--scrim); }
  /* What else sits at the bottom of a phone goes above the bar: Costs' "Add a cost", the notices. */
  body.has-trip-hero .budget-add { bottom: var(--bottom-bar); }
  body.has-trip-hero .notices { bottom: calc(var(--bottom-bar) + var(--space-3)); }
  body.has-trip-hero:has(.budget-add) .budget-page { padding-bottom: calc(var(--bottom-bar) + 88px + var(--space-4)); }
  body.has-trip-hero .legal-footer { padding-bottom: calc(var(--bottom-bar) + var(--space-5)); }

  /* Travelling, and (Review 24 E2) every tab but Overview: a compact band, so the page's content is on the first screen. */
  body.has-trip-hero.hero-compact .trip-hero #trip-line, body.has-trip-hero.hero-compact .trip-people, body.has-trip-hero.hero-compact .trip-hero #trip-banner, body.has-trip-hero.hero-compact .trip-hero-art { display: none; }
  /* One grid for the whole band: "‹ My trips" and the name on the first row, the day and the switch on the second. */
  body.has-trip-hero.hero-compact .trip-hero-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back title title" "fact fact tools"; align-items: center; gap: var(--space-2) var(--space-2); padding-top: var(--space-2); padding-bottom: var(--space-3); }
  body.has-trip-hero.hero-compact .trip-hero-top, body.has-trip-hero.hero-compact .trip-hero .page-header { display: contents; }
  body.has-trip-hero.hero-compact .trip-hero .trip-back { grid-area: back; padding-right: 4px; }
  body.has-trip-hero.hero-compact .trip-hero #trip-name { grid-area: title; }
  body.has-trip-hero.hero-compact .trip-hero .trip-fact { grid-area: fact; }
  body.has-trip-hero.hero-compact .trip-hero .trip-tools, body.has-trip-hero.hero-compact .trip-hero .page-header > div > .mode-switch { grid-area: tools; justify-self: end; margin: 0; gap: var(--space-2); }
  body.has-trip-hero.hero-compact .trip-hero .page-header > .actions { grid-column: 1 / -1; }
  body.has-trip-hero.hero-compact .trip-hero .trip-fact { flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
  body.has-trip-hero.hero-compact .trip-fact-words { margin-top: 2px; white-space: nowrap; letter-spacing: .06em; }
  body.has-trip-hero.hero-compact .mode-switch .mode-choice { padding: 0 var(--space-3); }
  body.has-trip-hero.hero-compact .trip-fact { justify-self: start; text-align: left; }
  body.has-trip-hero.hero-compact .trip-hero .trip-tools { justify-self: end; }
  body.has-trip-hero.hero-compact .trip-hero #trip-name { display: -webkit-box; font-size: var(--t-l); line-height: 1.2; white-space: normal; -webkit-line-clamp: 2; line-clamp: 2; }
  body.has-trip-hero.hero-compact .trip-fact { margin-top: 0; }
  body.has-trip-hero.hero-compact .trip-fact-number { font-size: 1.5rem; }
  body.has-trip-hero.hero-compact .trip-hero .trip-tools { margin-top: 0; }
  body.has-trip-hero.hero-compact .trip-hero-top { margin-bottom: 0; }
}
@media print {
  /* Review 24 (E1): the band's own tokens are its off-white on navy; on paper it is a plain title in the body's colour. */
  .trip-hero { --nav-text: var(--navy); --nav-text-2: var(--navy-2); --nav-text-3: var(--navy-3); --accent: var(--navy); --nav-line: var(--navy); margin: 0 0 8mm; padding: 0; border: 0; border-radius: 0; background: none !important; color: var(--navy); overflow: visible; }
  .trip-hero-inner, .trip-hero.has-art .trip-hero-inner, .trip-hero.has-photo .trip-hero-inner { padding: 0; }
  .trip-hero .page-header, .trip-hero #trip-name, .trip-hero #trip-line, .trip-hero .trip-fact, .trip-fact-number, .trip-fact-words { color: var(--navy) !important; }
  .trip-hero-art, .trip-people, .trip-hero .mode-switch, .trip-hero .page-header > .actions, .trip-hero .trip-back, .trip-hero #trip-banner, .trip-hero .chat-open, .trip-hero .trip-tools { display: none !important; }
  body.has-trip-hero .trip-hero #trip-name { max-width: none; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; display: block; font-size: var(--t-2xl); }
  .trip-hero .trip-fact { align-items: flex-start; text-align: left; }
  .trip-fact-number { font-size: var(--t-xl); }
  .trip-fact-words { font-size: var(--t-xs); }
  #tabs, .tabs-more, .person-menu { display: none !important; }
}

/* Block 36: several countries. The picker (public/country-picker.js), the countries on "Cities and nights", the plan's country headers
   and the map's colours by country. */
.country-picker { display: flex; flex-direction: column; gap: var(--space-3); }
.country-modes { flex-direction: row; flex-wrap: wrap; }
.country-modes .choice { flex: 1 1 14rem; }
.country-several { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--accent-50); }
.country-order { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.country-order:empty { display: none; }
.country-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
.country-name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Asked for on 2026-11-12: the name with "You start here" / "You finish here" under it. */
.country-label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.country-moves { display: flex; align-items: center; gap: var(--space-1); flex: none; }
.country-add .actions { flex-wrap: wrap; gap: var(--space-2); }
.country-add p { margin: 0 0 var(--space-2); }
.route-countries { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); }
.route-country-heading { margin: var(--space-3) 0 var(--space-1); font-size: var(--t-s); font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-country-header { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-5) 0 var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius); background: var(--navy); color: var(--nav-text); }
.plan-country-header h2 { margin: 0; font-size: var(--t-m); color: inherit; }
.plan-country-header .icon { color: var(--accent); }
.map-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--t-s); }
.map-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.map-legend-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.region-gaps .tag { margin-left: var(--space-1); }
@media (max-width: 640px) {
  .country-several { padding: var(--space-3); }
  .country-row { flex-wrap: wrap; }
  .country-moves { margin-left: auto; }
}
.no-wrap-hours { white-space: nowrap; }

/* Review 26: an amount never breaks in the middle of its number ("THB 12,000" stays whole; "€2,106 + THB 16,198" breaks at the plus). */
.one-amount { white-space: nowrap; }
.amount-note { font-size: var(--t-s); font-weight: 400; letter-spacing: 0; color: var(--text-2); white-space: normal; }
.estimate-total, .estimate-value, .estimate-city-title { overflow-wrap: normal; }
.estimate-total.several-amounts { font-size: 1.625rem; }
.stat .value.estimate-value.several-amounts { font-size: var(--t-l); line-height: 1.3; letter-spacing: 0; }
.stat .value.estimate-value.long-amount { font-size: var(--t-2xl); }
.estimate-rate-note { white-space: nowrap; }
@media (max-width: 640px) {
  .estimate-total.several-amounts { font-size: 1.375rem; }
  .stat .value.estimate-value.several-amounts { font-size: var(--t-m); }
  .stat .value.estimate-value.long-amount { font-size: var(--t-l); }
}
/* Review 26: Contacts, one card of emergency numbers per country; the Guide's borders already crossed, folded under the country. */
.contacts-head { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.contacts-when { margin: 0; }
.guide-section-country { font-weight: 400; color: var(--text-2); }
.guide-borders-crossed > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); padding: var(--space-4) var(--space-5); cursor: pointer; font-weight: 600; color: var(--text); }
.guide-borders-crossed > summary .small { font-weight: 400; }
.guide-borders-crossed[open] > summary { border-bottom: 1px solid var(--border); }
.print-country { margin: 0 0 var(--space-3); break-inside: avoid; }
.print-country h3 { margin: 0 0 var(--space-1); font-size: var(--t-m); }
.print-country p { margin: 0 0 2px; }

/* --- Block 38: the public web's pages (How it works, Countries, FAQ), in the landing's look: paintings on mats, Caveat captions,
   navy bands. The header's pages and the footer's links are shared with the landing, /privacy and /legal. --- */
.l-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.l-footer-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.l-footer-links a { color: var(--text-2); }
.l-page-hero { padding: 40px 0 72px; }
.l-page-hero-short { padding-bottom: 32px; }
.l-page-hero h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; max-width: 18em; }
.l-page-hero h1 em { font-style: normal; font-weight: inherit; background: linear-gradient(transparent 62%, var(--marker) 62%); }
.l-page-hero .l-lede { font-size: 1.1875rem; color: var(--text-2); max-width: 34em; margin-bottom: 28px; }
.l-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.l-page-card { max-width: 300px; justify-self: center; transform: rotate(3deg); }
.l-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.l-cta + .l-cta-note { margin-top: 12px; color: var(--text-3); }

/* A navy band: inside it the colour tokens are the inverted ones, as in Administration's sidebar; a white card in it gets them back. */
.l-deep {
  --text: var(--nav-text); --text-2: var(--nav-text-2); --text-3: var(--nav-text-3); --border: var(--nav-line);
  --ring: 0 0 0 2px var(--nav-bg), 0 0 0 4px var(--accent);
  background: var(--l-deep); color: var(--nav-text-2); padding: 88px 0;
}
.l-deep .card { --text: var(--l-ink); --text-2: var(--l-ink-2); --text-3: var(--l-ink-2); --border: var(--l-line); --ring: 0 0 0 1px var(--l-ink), 0 0 0 4px var(--accent); color: var(--l-ink-2); }
/* Review 27: its placeholder is an example, not something typed: clearly lighter than the text, and still easy to read on white. */
.l-deep .card :is(input, textarea)::placeholder { color: color-mix(in srgb, var(--l-ink) 62%, var(--surface)); }
.l-deep .l-steps li { border-top-color: var(--nav-text-3); }
.l-deep .l-steps li::before { color: var(--on-accent); border-color: var(--on-accent); }
.l-deep .l-steps p { color: var(--nav-text-2); }
.l-deep .l-button { border-color: var(--accent); }
.l-deep-note { color: var(--accent); text-align: left; font-size: 1.75rem; margin: 40px 0 0; }
.l-final-deep { padding: 88px 0; }

/* What you get */
.l-gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.l-gets li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 22px 24px; }
.l-gets h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin-bottom: 8px; }
.l-gets h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--text); flex: none; }
.l-gets p { margin: 0; }

/* Who it is for */
.l-who-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 56px; align-items: center; }
.l-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.l-who h3 { font-size: 1.125rem; margin-bottom: 10px; }
.l-who ul { margin: 0; padding-left: 20px; }
.l-who li { margin-bottom: 8px; }
.l-who-card { max-width: 260px; justify-self: center; transform: rotate(-2.5deg); }

/* /countries: every country alike, a painting (or the brand tile) on its mat beside what a trip plan holds (Review 44) */
.l-country-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 28px; }
.l-country { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--radius-l); padding: 20px; align-items: stretch; }
.l-country-mat { align-self: start; }
/* Review 43: on a computer every row of cards is as tall as the tallest card, and "Plan <country>" sits at the foot of each. */
@media (min-width: 901px) {
  .l-country-list { grid-auto-rows: 1fr; }
  .l-country-list .l-country .l-button { margin-top: auto; }
}
.l-country-mat { background: var(--paper); padding: 10px 10px 12px; border-radius: 4px; box-shadow: var(--l-float); transform: rotate(-2deg); }
.l-country-mat img, .l-country-mat .l-tile { display: flex; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.l-country-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.l-country-name { font-size: 1.5rem; }
.l-country-label { margin: 0; font-weight: 500; color: var(--text); }
/* Review 44: a plain list, never drawn as a route with stops: a short aguamarina rule before each line. */
.l-country-holds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.l-country-holds li { display: flex; align-items: baseline; gap: 10px; color: var(--text); }
.l-country-holds li::before { content: ""; flex: none; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); transform: translateY(-3px); }
.l-country-note { margin: 0; font-size: var(--t-s); color: var(--text-3); }
.l-country .l-button { margin-top: 6px; }
.l-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); }

/* Coming soon: the landing's postcards, each with "Ask for …" */
.l-countries-open { padding-top: 32px; }

/* Suggest a country */
.l-suggest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.l-suggest-grid .l-sub { margin-bottom: 0; }
.l-suggest-card { max-width: 480px; width: 100%; justify-self: end; }
.l-suggest-card .actions { margin-top: var(--space-2); }
.l-suggest-card .notice-box { margin: var(--space-4) 0 0; }

/* FAQ */
.l-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 56px; align-items: start; }
.l-faq { display: grid; gap: 12px; margin-top: 8px; max-width: 760px; }
.l-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); }
.l-faq-item[open] { border-color: var(--text); }
.l-faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 500; font-size: 1.0625rem; color: var(--text); border-radius: var(--radius-l); }
.l-faq-item summary::-webkit-details-marker { display: none; }
.l-faq-item summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--text); font-weight: 500; line-height: 1; }
.l-faq-item[open] summary::after { content: "\2212"; background: var(--accent); color: var(--on-accent); }
.l-faq-item summary:focus-visible { outline: none; box-shadow: var(--ring); }
.l-faq-answer { padding: 0 22px 18px; }
.l-faq-answer p { margin: 0 0 12px; max-width: 40em; }
.l-faq-answer p:last-child { margin-bottom: 0; }
.l-faq-aside { position: sticky; top: 24px; }
.l-faq-card { transform: rotate(3deg); }

@media (max-width: 900px) {
  /* On a phone the header's pages are a second row, each easy to tap. */
  .l-top { flex-wrap: wrap; row-gap: 4px; }
  .l-home .l-nav { display: flex; order: 3; width: 100%; margin-left: 0; gap: 22px; }
  .l-home .l-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; }
  .l-page-hero { padding: 16px 0 48px; }
  .l-page-hero-short { padding-bottom: 16px; }
  .l-page-hero h1 { font-size: 2.125rem; }
  .l-page-hero .l-lede { font-size: 1.0625rem; }
  .l-page-hero-grid, .l-who-grid, .l-who, .l-suggest-grid, .l-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .l-page-card { max-width: 220px; }
  .l-who-card { max-width: 220px; }
  .l-deep, .l-final-deep { padding: 56px 0; }
  .l-deep-note { font-size: 1.5rem; margin-top: 28px; }
  .l-country { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 16px; padding: 14px; }
  .l-country-name { font-size: 1.25rem; }
  .l-country .l-button { width: 100%; padding: 12px 14px; text-align: center; overflow-wrap: anywhere; } /* Review 44: "Planificar Tailandia" fits */
  .l-suggest-card { justify-self: stretch; max-width: none; }
  .l-faq-aside { display: none; }
  .l-faq-item summary { padding: 16px 16px; font-size: 1rem; }
  .l-faq-answer { padding: 0 16px 16px; }
  .l-cta .l-button { width: 100%; }
}
.l-footer-note { flex-basis: 100%; }
/* Block 38: Settings → Texts, the FAQ's questions, one block each. */
/* Block 55: Administration → Spanish (a text and its Spanish side by side; one under the other on a phone), and Settings → Spanish. */
.translation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.translation { padding: var(--space-4); }
.translation-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.translation-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.translation-label { margin-bottom: var(--space-1); text-transform: uppercase; letter-spacing: 0.04em; }
.translation-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; margin: 0; }
.translation-text.is-stale { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.translation-form { margin-top: var(--space-3); }
.translation-form textarea { field-sizing: content; min-height: 96px; }
.translation-actions { margin-top: var(--space-3); justify-content: flex-end; }
@media (max-width: 720px) { .translation-pair { grid-template-columns: 1fr; } }
.names-group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.names-group + .names-group { margin-top: var(--space-2); }
.names-group > summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.names-group > summary:focus-visible { box-shadow: var(--ring); border-radius: var(--radius); }
.names-rows { display: grid; gap: var(--space-2); padding: 0 var(--space-4) var(--space-4); }
.names-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); align-items: center; }
.names-row label { overflow-wrap: anywhere; color: var(--text); }
@media (max-width: 720px) { .names-row { grid-template-columns: 1fr; gap: var(--space-1); } .names-row + .names-row { margin-top: var(--space-2); } }
#spanish-names { margin-bottom: var(--space-4); }
/* Block 55: a legal page's Spanish version takes the place of the English text (public/legal-pages.js). */
.legal-main.has-spanish [lang="en"], .legal-main.has-spanish .legal-english-note { display: none; }

.faq-edit-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-4); }
.faq-edit { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); background: var(--surface); }
.faq-edit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.faq-edit-number { font-weight: 600; color: var(--text); }
.faq-edit-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.faq-edit .field + .field { margin-top: var(--space-3); }
/* Review 27: the answer's box is as tall as its text (settings-texts.js sizes it where field-sizing is not known). */
.faq-edit textarea { min-height: 76px; field-sizing: content; resize: vertical; overflow-y: hidden; }

/* Block 39: cash on the trip. "Paid with" in a cost's form, 💵/💳 before a cost's name, Costs → Cash and Today's Cash card. Only the
   tokens: no colour of its own. Lexend is wide: the buttons wrap onto a second line on a phone rather than run off it. */
.paid-with-field { border: 0; margin: var(--space-3) 0 0; padding: 0; min-width: 0; }
.paid-with-field legend { padding: 0; margin-bottom: var(--space-2); font-weight: 500; }
.paid-with-field .paid-with { margin-top: 0; }
.paid-with-field[aria-invalid="true"] { border: 0; box-shadow: none; outline: 0; }
.paid-mark { display: inline-block; margin-right: 2px; font-size: 1em; line-height: 1; }
.cash-mode { margin: var(--space-3) 0; }
.cash-mode-question { margin: 0; font-weight: 500; }
.cash-mode-switch { flex-wrap: wrap; border-radius: var(--radius); }
.cash-mode-switch .mode-choice { border-radius: var(--radius-s); }
.cash-mode p { margin: var(--space-2) 0 0; }
.cash-balances { list-style: none; margin: var(--space-2) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.cash-balance { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cash-amount { font-size: var(--t-xl); font-weight: 600; color: var(--text); white-space: nowrap; }
.cash-balance.is-negative .cash-amount { color: var(--text); text-decoration: underline wavy var(--danger-strong) 2px; text-underline-offset: 4px; }
.cash-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.cash-actions[hidden] { display: none; }
.cash-notes { margin: 0 0 var(--space-2); }
.cash-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.cash-note .list-main { min-width: 0; flex: 1 1 14rem; }
.cash-note .list-title { white-space: normal; overflow-wrap: anywhere; font-weight: 400; }
.cash-note .list-detail { white-space: normal; overflow-wrap: anywhere; }
.cash-difference { font-weight: 600; }
.cash-kind { margin: 0 0 var(--space-3); flex-wrap: wrap; }
.cash-expected { margin: 0 0 var(--space-3); }
.today-cash .card-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.today-cash-actions .button { flex: 1 1 auto; }
@media (max-width: 600px) {
  .cash-actions .button { flex: 1 1 auto; min-height: 44px; }
  .cash-amount { font-size: var(--t-l); }
}
/* Block 40: how much cash to carry, under the balance: one quiet box on Today, one line on Costs → Cash. */
.cash-advice { margin: var(--space-3) 0 0; padding: var(--space-3); border-radius: var(--radius-s); background: var(--surface-2); }
.cash-advice[hidden], .cash-advice-line[hidden] { display: none; }
.cash-advice p { margin: 0; overflow-wrap: anywhere; }
.cash-advice .cash-advice-main { font-weight: 600; }
.cash-advice .cash-advice-more { margin-top: var(--space-1); }
.cash-advice .cash-advice-how { margin-top: var(--space-2); }
.base-cash-line { white-space: nowrap; } /* Block 40: Bases → "Mostly cash" and "No cash machine", one line each. */
.cash-advice-line { margin: var(--space-2) 0 0; overflow-wrap: anywhere; }
.list > li.cash-note { padding: var(--space-3) 0; align-items: flex-start; }
.cash-note-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); flex: none; }
/* Block 41: cash notes made with no signal. Under the balance: "Not sent yet (2)" with each note in a line, and the ones that could
   not be saved, each with its reason, Copy and Remove. */
.cash-held { margin: var(--space-3) 0 0; display: grid; gap: var(--space-3); }
.cash-held[hidden] { display: none; }
.cash-waiting, .cash-failed-box { padding: var(--space-3); border-radius: var(--radius-s); background: var(--surface-2); min-width: 0; }
.cash-waiting-title, .cash-failed-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.cash-waiting-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-1); color: var(--text); overflow-wrap: anywhere; }
.cash-failed-list { margin: var(--space-2) 0 0; }
.list > li.cash-failed { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-3); padding: var(--space-2) 0; }
.cash-failed .list-main { min-width: 0; flex: 1 1 14rem; }
.cash-failed .list-title { white-space: normal; overflow-wrap: anywhere; font-weight: 500; }
.cash-failed-reason { color: var(--text); overflow-wrap: anywhere; margin-top: 2px; }
@media (max-width: 640px) {
  .cash-failed .cash-note-actions { width: 100%; }
  .cash-failed .cash-note-actions .button { flex: 1 1 auto; min-height: 44px; }
}
/* Review 29 (cash): the way to the Cash section from the top of Costs, the words for a locked choice and for the fee, placeholders
   that read as examples, one place for a cash note's buttons, the pairs of a cash dialog one under the other on a phone (the day,
   the currency and the note were cut), and room around "Paid with", the count's line and Today's "One pot…". */
.costs-jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); }
.cash-box { scroll-margin-top: var(--space-4); }
#cash-title:focus { outline: 0; } /* The heading only receives the keyboard after the jump; it is not a control. */
.cash-locked { margin: var(--space-2) 0 0; }
.cash-fee-help { margin: var(--space-1) 0 var(--space-3); }
.cash-dialog-lead { margin: 0 0 var(--space-4); }
.cash-dialog input::placeholder { color: var(--text-3); opacity: .7; font-weight: 300; }
.paid-with-field { margin-bottom: var(--space-4); }
#cash-card-whose { margin: var(--space-3) 0 0; }
#cash-card-whose:empty { display: none; }
.cash-note { flex-wrap: nowrap; }
.cash-note .list-main { flex: 1 1 0; }
.cash-note .cash-note-actions { flex-wrap: nowrap; justify-content: flex-end; }
@media (max-width: 480px) {
  .cash-dialog .budget-pair { grid-template-columns: minmax(0, 1fr); }
}

/* Block 42: the second check for Administration's sign-in: the code pages, the set-up and Settings → Your account. */
.code-input { font-size: var(--t-l); letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }
.code-input.recovery-input { letter-spacing: .08em; text-transform: uppercase; }
.signin.set-up .card { width: min(460px, 100%); }
.set-up-steps { margin: 0 0 var(--space-5); padding-left: var(--space-5); display: grid; gap: var(--space-4); }
.set-up-steps li { padding-left: var(--space-1); }
.set-up-steps li > strong, .set-up-steps label strong { display: block; font-weight: 600; }
.set-up-steps .help { display: block; margin-top: var(--space-1); }
.set-up-steps .field { margin: 0; }
.set-up-steps .actions { margin-top: var(--space-2); }
.qr { width: min(200px, 100%); margin: var(--space-3) 0; padding: 0; background: var(--tile); border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden; }
.qr svg { display: block; width: 100%; height: auto; }
.secret-key { margin: var(--space-2) 0 0; padding: var(--space-3); font-family: var(--font-mono); font-size: var(--t-m); line-height: 1.7; word-spacing: .2em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-s); overflow-wrap: anywhere; user-select: all; }
.recovery-list { list-style: none; margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); font-family: var(--font-mono); font-size: var(--t-m); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-s); }
.recovery-list li { white-space: nowrap; user-select: all; }
@media (max-width: 340px) { .recovery-list { grid-template-columns: minmax(0, 1fr); } }
.account-part { margin: var(--space-5) 0 var(--space-2); font-size: var(--t-m); }
.account-actions, .account-form { margin-top: var(--space-4); }
.account-form { max-width: 32rem; }
.account-form .actions { margin-top: var(--space-3); }
.recovery-print { display: none; }
@media print {
  body.printing-recovery > *:not(.recovery-print) { display: none !important; }
  body.printing-recovery .recovery-print { display: block; padding: 24px; color: var(--text); font-size: 12pt; }
  .recovery-print h1 { font-size: 18pt; margin: 0 0 8pt; }
  .recovery-print ol { margin: 16pt 0 0; padding-left: 24pt; font-family: var(--font-mono); font-size: 14pt; line-height: 1.9; }
}

/* Block 43: the email confirmed with a 6-digit code before paying (the checkout, and a dialog for "Get more help"). */
.email-code { margin: var(--space-5) 0 var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.email-code-title { margin: 0 0 var(--space-2); font-size: var(--t-l); font-weight: 600; color: var(--text); }
.email-code > p.small { margin: 0 0 var(--space-3); }
.v-form .email-code .field { margin-bottom: 0; }
.code-line { margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
.code-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.code-row .code-input { flex: 1 1 9rem; min-width: 0; max-width: 14rem; }
.code-row .button { flex: 0 0 auto; }
.code-dialog .dialog-body .field { margin: 0; }

/* Block 44: Settings -> Discount codes, and "Have a discount code?" at the checkout. */
.discount-dialog { width: min(680px, calc(100vw - 2 * var(--space-4))); }
.discount-choices { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.discount { margin: var(--space-4) 0 0; }
.discount .field { margin: var(--space-2) 0 0; }
.discount-input { flex: 1 1 10rem; min-width: 0; max-width: 16rem; text-transform: uppercase; }
.discount-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin: var(--space-3) 0 0; overflow-wrap: anywhere; }
.discount-line strong { font-weight: 600; }
.discount-problem { margin: var(--space-2) 0 0; }

/* Block 45: Sales results' "Counting since …" with its two buttons, the checkout's second tick, and the problems on the home. */
.counting-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.counting-text { flex: 1 1 22rem; min-width: 0; }
.counting-title { font-size: var(--t-section); margin: 0 0 var(--space-1); }
.counting-text p + p { margin-top: var(--space-1); }
.counting-actions { flex-wrap: wrap; }
.v-adult + .v-waiver { margin-top: 0; }
#problems .list-title { font-weight: 500; }
#problems .list-title, #problems .list-detail { display: block; }
/* Review 30: a problem's line for whoever repairs it, small and grey under the plain words; the counting card's last changes as a
   short list; the set-up page's two ways (the key first on a touch screen); the fieldsets of the "Add code" window keep the space
   every field has under it; a visible label beside a filter. */
.problem-technical { display: block; margin-top: var(--space-1); font-size: var(--t-s); line-height: 1.45; color: var(--text-3); }
.problem-line { font-family: var(--font-mono); margin-right: var(--space-2); }
.problem-technical .link-button { font-size: inherit; }
.counting-history { margin-top: var(--space-2); }
.counting-history-title { display: block; font-weight: 500; }
.counting-history .plain-lines { list-style: none; padding-left: 0; font-size: inherit; }
.set-up-ways { display: flex; flex-direction: column; gap: var(--space-3); }
.set-up .on-phone, .set-up .actions.on-phone { display: none; }
@media (hover: none) and (pointer: coarse) {
  .set-up .on-computer { display: none; }
  .set-up .on-phone { display: block; }
  .set-up .actions.on-phone { display: flex; }
  .set-up-key { order: -1; }
  .set-up-qr .qr { margin-bottom: 0; }
}
.discount-dialog .plain-fieldset.field { margin-bottom: var(--space-4); }
.discount-dialog .plain-fieldset > legend { padding: 0; margin-bottom: 6px; }
.filters .filter-label { font-size: var(--t-s); font-weight: 500; color: var(--text-2); }
.texts-group { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }

/* Block 47: "For agencies" (the public page's form) and Administration's Agencies -> Enquiries (the sales pipeline). */
.l-contact-card { max-width: 560px; }
.l-contact-card .form-grid { gap: 0 var(--space-4); }
.l-contact-card .choice { align-items: flex-start; }
.l-contact-card .choice input { margin-top: 3px; }
.l-contact-card h3 { margin-bottom: var(--space-2); }
.l-contact-note { margin-top: var(--space-4); }
.l-band .l-suggest-grid .l-sub + .l-sub { margin-top: var(--space-4); }
.view-switch { display: inline-flex; gap: var(--space-1); }
.view-switch .button[aria-pressed="true"] { background: var(--pressed); border-color: var(--pressed); color: var(--on-pressed); }
.lead-board { grid-auto-columns: minmax(250px, 1fr); }
.lead-move { position: relative; } /* Its hidden label stays inside the card, not out at the page's edge. */
.lead-board .column { min-height: 120px; }
.lead-card { cursor: default; }
.lead-card .card-title { display: block; text-align: left; margin-bottom: var(--space-1); }
.lead-card .lead-next { margin-top: var(--space-2); color: var(--text-2); }
.lead-card .card-footer { flex-wrap: wrap; }
.lead-move select { width: auto; max-width: 100%; min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: var(--t-s); }
.column-note { margin: var(--space-1) var(--space-2); }
.lead-dialog { width: min(720px, calc(100vw - 2 * var(--space-4))); }
.lead-dialog h4 { margin: var(--space-5) 0 var(--space-3); }
.lead-dialog #lead-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.lead-facts div { grid-template-columns: 170px minmax(0, 1fr); }
.lead-message p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; padding: var(--space-3) var(--space-4); background: var(--surface-2); border-radius: var(--radius); }
.lead-dialog .dialog-footer .danger { margin-right: auto; }
@media (max-width: 900px) {
  /* Four pages in the public header: closer together, and on two rows if a phone is narrow. */
  .l-home .l-nav { flex-wrap: wrap; gap: 0 14px; }
  .l-contact-card { max-width: none; }
}
@media (max-width: 720px) {
  /* On a phone the board's columns go one under another, so nothing is dragged sideways. */
  .lead-board { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
  .lead-board .column { min-height: 0; }
  .lead-facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lead-dialog .dialog-footer { justify-content: flex-start; }
}
/* The list of enquiries: words wrap between words, and each column keeps room to be read. */
#lead-rows td { white-space: normal; vertical-align: top; }
#lead-rows .wraps-text { overflow-wrap: break-word; }
#lead-rows .link-button { text-align: left; }
#lead-rows .lead-email { display: block; }
#lead-rows .lead-received { font-weight: 400; margin-top: 2px; }
@media (max-width: 640px) {
  #lead-rows .wraps-text { overflow-wrap: anywhere; min-width: 0; }
}
@media (min-width: 641px) {
  #lead-rows td[data-label="Agency"] { min-width: 13rem; max-width: 20rem; }
  #lead-rows td[data-label="Contact"] { min-width: 11rem; }
  #lead-rows td[data-label="Size"] { min-width: 9rem; }
  #lead-rows td[data-label="Next step"] { min-width: 13rem; }
}

/* Block 48: the agency's home (/agency) and Administration's Agencies → Accounts. */
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
.inline-form .grow { flex: 1 1 16rem; min-width: 0; }
.inline-form > .button { margin-top: 1.75rem; }
.team-actions { display: flex; flex-wrap: nowrap; gap: var(--space-2); justify-content: flex-end; }
.agency-part { margin-top: var(--space-5); }
.agency-part > h3 { margin: 0 0 var(--space-2); }
.team-table tr.muted-row td { color: var(--text-2); }
.invite-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.agency-tabs a[role="tab"] { text-decoration: none; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.plan-grid fieldset { display: contents; }
.plan-block + .plan-block { margin-top: var(--space-4); }
.plan-block h3 { margin: 0 0 var(--space-2); }
@media (max-width: 760px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form > .button { margin-top: 0; width: 100%; }
  .team-actions { flex-wrap: wrap; }
}

/* Block 49: the agency's home: this month's figures, our trips' filters and rows, and what is pending. */
.month-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); }
.month-figure { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); border-radius: var(--radius); background: var(--accent-50); }
.month-figure b { font-size: var(--t-l, 1.25rem); }
#ai-box .help-bar { display: block; margin-top: var(--space-2); }
.agency-filters input[type="date"] { width: auto; }
.agency-trips tr.muted-row td { color: var(--text-2); }
.pending-list li a { font-weight: 500; }
.agency-new-trip .form-grid .field.full { grid-column: 1 / -1; }
.filter-pair { display: inline-flex; align-items: center; gap: var(--space-2); }
@media (max-width: 760px) {
  .agency-filters .filter-pair { flex: 1 1 45%; min-width: 0; flex-direction: column; align-items: stretch; gap: 2px; }
  .agency-filters .filter-pair > select, .agency-filters .filter-pair > input { width: 100%; min-width: 0; }
  .agency-filters .search { flex-basis: 100%; }
}
.statement-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.statement-row select { width: auto; }
.agency-trips td[data-label="Trip"] { min-width: 14rem; }
.agency-trips td[data-label="Dates"] { white-space: nowrap; }
.agency-trips .team-actions { flex-wrap: wrap; }

/* Block 50: an agency's brand on its trips (top bar, band, printout, join page), with a small "made with 262Travel"; its card on the
   agency's home; Administration's "Looks like business use" and the end of an agency's contract. */
.visitor-top .visitor-brand.agency-brand, .mode-travel .visitor-top .visitor-brand.agency-brand { flex: 0 1 auto; min-width: 0; max-width: min(22rem, 60vw); overflow: hidden; }
.trip-agency .trip-made-with { display: none; font-weight: 400; color: var(--nav-text-3); }
.agency-brand-name { min-width: 0; }
.agency-logo { width: 32px; height: 32px; object-fit: contain; border-radius: var(--radius-s, 6px); background: var(--tile); box-shadow: 0 0 0 1px var(--border); flex: none; }
.agency-logo-big { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius); background: var(--tile); box-shadow: 0 0 0 1px var(--border); flex: none; }
.made-with { font-weight: 400; font-size: var(--t-s); color: var(--text-3); white-space: nowrap; }
.trip-agency { margin: 0; font-size: var(--t-s); font-weight: 600; color: var(--accent); }
.print-agency { flex-wrap: wrap; }
.print-agency .made-with { flex-basis: 100%; }
.join-page .brand.join-agency { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.join-page .brand.join-agency .made-with { flex-basis: 100%; }
.brand-preview { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2, var(--surface)); }
.brand-preview .brand-preview-words { display: flex; flex-direction: column; min-width: 0; }
.brand-preview .brand-preview-name { font-weight: 600; overflow-wrap: anywhere; }
.brand-logo-empty { width: 56px; height: 56px; border-radius: var(--radius); border: 1px dashed var(--border); display: grid; place-items: center; color: var(--text-3); font-size: var(--t-s); text-align: center; flex: none; }
.data-csv-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.business-reasons { margin: 0; padding-left: 1.1em; }
@media (max-width: 640px) {
  body.has-trip-hero.hero-compact .trip-agency { display: none; }
  /* On a phone the top bar has room for the agency's logo and name only: "made with 262Travel" is said in the band instead. */
  .visitor-top #made-with { display: none; }
  .trip-agency .trip-made-with { display: inline; }
}
@media print {
  .agency-logo-big { box-shadow: none; }
}
#brand-card .brand-preview { margin-top: var(--space-3); }
#brand-card .form-grid { margin-top: var(--space-4); row-gap: var(--space-4); }
#data-card .card-body > .actions { margin: var(--space-3) 0; }

/* Review 33 (experience 4): on a phone an agency's trip went wider than the screen: the person's button kept its own width beside the
   agency's name. The button now never passes the room its menu has (its name shortens), and the agency's name takes half the bar at
   most, so both stay on the screen whatever their lengths. */
.person-menu .person-button { max-width: min(340px, 58vw, 100%); min-width: 0; }
.person-button .person { min-width: 0; }
@media (max-width: 640px) {
  .person-menu .person-button { max-width: min(52vw, 100%); }
  .visitor-top .visitor-brand.agency-brand, .mode-travel .visitor-top .visitor-brand.agency-brand { max-width: 50vw; }
  .visitor-top .person-menu { flex: 0 1 auto; min-width: 84px; }
}

/* Review 33 (experience 3): the agency's home is wider than a form page, so "Our trips" shows its five columns and their buttons
   whole on a computer (it clipped "Invite the client", "Open" and "Archive" at 1280 and 1440). In between a phone and a computer the
   trip's name and its dates give way first, and the buttons stack at the right. */
.visitor-content.medium.agency-home-content { max-width: 1120px; }
.agency-trips td[data-label="Trip"] { min-width: 11rem; }
.agency-trips td[data-label="Dates"] { white-space: normal; }
.agency-trips .no-break { white-space: nowrap; }
.agency-trips td[data-label="Status"] .tag { white-space: nowrap; }
@media (min-width: 641px) {
  .agency-trips td[data-label="Status"], .agency-trips td:last-child { width: 1%; }
}
@media (min-width: 1101px) {
  .agency-trips .team-actions { flex-wrap: nowrap; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .agency-trips td[data-label="Status"] .tag { white-space: normal; }
}
@media (max-width: 640px) {
  .agency-trips td[data-label="Dates"] > .no-break:first-child { margin-left: auto; }
}
.month-trial { margin: var(--space-3) 0 0; }

/* Review 33 (minor 14): a file is chosen with a button like every other; the browser's own picker stays for the keyboard and for
   screen readers, out of sight. */
.file-choice { display: inline-flex; position: relative; }
.file-choice:has(input:focus-visible) .button { box-shadow: var(--ring); }
.file-choice:has(input:disabled) .button { opacity: .6; pointer-events: none; }

/* Review 33 (minor 18): Administration's Agencies → Accounts: a name of two lines starts at the left like the others; on a phone the
   Status filter keeps its label beside it; the statement's two downloads stay together. */
#agency-rows .link-button { text-align: left; }
.statement-buttons { display: inline-flex; flex-wrap: nowrap; gap: var(--space-2); }
@media (max-width: 760px) {
  .accounts-filters .search { flex-basis: 100%; }
  .accounts-filters .filter-pair { flex: 1 1 100%; }
  .accounts-filters .filter-pair > select { flex: 1 1 auto; min-width: 0; }
}
.agency-trips td[data-label="Dates"] { column-gap: .3em; }

/* Review 33 re-review: on a phone the labels of a trip's status wrap inside the card (they sat on one line and "Extra" passed the edge);
   on a computer the trip's name gets more room before its dates and buttons. */
.status-tags { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); min-width: 0; }
@media (max-width: 640px) {
  .agency-trips td[data-label="Status"] { min-width: 0; }
  .agency-trips .status-tags { justify-content: flex-end; max-width: 100%; }
  .agency-trips td[data-label="Status"] .tag { white-space: normal; text-align: left; }
}
@media (min-width: 1101px) {
  .agency-trips td[data-label="Trip"] { min-width: 17rem; }
  .agency-trips td[data-label="Dates"] .no-break { display: block; }
}

/* Block 52: the "English / Español" switch (made by languageTokens in src/responses.js; public/language-switch.js). The header has the
   other language's name, like a page link; the footer and the sign-in cards have both, the one in use in bold and not a button to press. */
.lang-choice { background: none; border: 0; padding: 0 4px; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lang-choice:hover { color: var(--text); }
.lang-choice:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius); }
.lang-choice[aria-pressed="true"] { font-weight: 600; text-decoration: none; cursor: default; color: var(--text); }
.lang-choice:disabled { opacity: 0.6; cursor: progress; }
.l-lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--text-2); font-weight: 500; text-decoration: none; }
.l-lang:hover { text-decoration: underline; }
.visitor-top .l-lang { margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.lang-switch .lang-choice { min-height: 32px; }
.l-footer .lang-switch { flex-basis: 100%; }
.card-lang { margin: var(--space-2) 0 0; justify-content: center; display: flex; text-align: center; }
.lang-short { display: none; }
@media (max-width: 900px) {
  .l-lang { margin-left: auto; }
  .l-lang ~ .l-signin { margin-left: 0; }
  .l-top { column-gap: var(--space-3); }
}
@media (max-width: 480px) {
  .l-lang .lang-long { display: none; }
  .l-lang .lang-short { display: inline; }
}
@media (max-width: 860px) {
  /* The checkout's top bar on a phone: the brand and the language on the first row, the pages below. */
  .visitor-top:has(> .l-lang) { flex-wrap: wrap; }
  .visitor-top .l-lang { order: 1; margin-left: auto; }
  .visitor-top:has(> .l-lang) .visitor-nav { order: 3; flex: 0 0 100%; }
}

/* ---------- Review 34: Spanish on a phone (longer words than the English these were drawn with) ---------- */
@media (max-width: 860px) {
  /* The visitor's steps (Tus gustos, Tus ciudades, Sugerencias, Lo que viene ahora) on a row of their own under the brand, wrapping:
     the customer's one-row top bar (above) had taken the wrap away from this header too. */
  .visitor-top:has(> .visitor-nav) { flex-wrap: wrap; }
  .visitor-top:has(> .visitor-nav) .visitor-nav { order: 3; flex: 0 0 100%; }
}
@media (max-width: 720px) {
  /* The trip's bottom tabs: each as wide as its word needs ("Presupuesto"), the rest shared equally; every label on one line. */
  body.has-trip-hero #tabs { grid-template-columns: repeat(5, minmax(max-content, 1fr)); }
  body.has-trip-hero #tabs a.tab-main, body.has-trip-hero #tabs .tabs-more { padding-inline: 2px; }
  body.has-trip-hero #tabs a.tab-main .tab-label, body.has-trip-hero #tabs .tabs-more .tab-label { white-space: nowrap; }
  /* The band's two modes ("Planificación", "De viaje"), one line each. */
  .mode-switch .mode-choice { white-space: nowrap; }
}
@media (max-width: 640px) {
  /* A strip of filters with long names (Administration → Spanish): every one in sight, on as many lines as they need, instead of
     a strip cut by the edge of the screen with nothing to say there is more. */
  .tabs.tabs-wrap { flex-wrap: wrap; overflow: visible; width: auto; border-radius: var(--radius); }
  .tabs.tabs-wrap a, .tabs.tabs-wrap button { white-space: normal; text-align: left; flex: 0 1 auto; max-width: 100%; }
}
@media (min-width: 375px) and (max-width: 720px) {
  /* The compact band: "‹ Mis viajes" on one line beside the trip's name; the two modes a little closer, to leave it the room. */
  body.has-trip-hero.hero-compact .trip-hero .trip-back { white-space: nowrap; padding: 0 2px 0 0; }
  body.has-trip-hero.hero-compact .mode-switch .mode-choice { padding: 0 9px; }
}

/* =====================================================================================================================
   Block 56: night mode. The colours are the tokens' night values (base.css → NIGHT, and this file's own just below);
   here are only the few pieces that are not a plain colour of the page.
   ===================================================================================================================== */
/* This file's own tokens by day. Review 35: a pressed choice (Board / List, one pot or each their own) is navy by day and aguamarina
   by night; and inside a paper mat the tints are the page's own by day, so the landing's drawn cards look as they always did. */
:root {
  --pressed: var(--text); --on-pressed: var(--surface);
  --paper-canvas: var(--background); --paper-edge: var(--border); --paper-line: color-mix(in srgb, var(--border) 60%, var(--surface)); --paper-2: var(--surface-2);
  --paper-accent-50: var(--accent-50); --paper-accent-100: var(--accent-100); --paper-accent-soft: var(--accent-soft);
  --paper-coral-50: var(--coral-50); --paper-coral-100: var(--coral-100); --paper-danger-soft: var(--danger-soft); --paper-warning-soft: var(--warning-soft);
}
/* Milestone 34: a trip's pick lists (public/client-trip-picks.js). Milestone 35: the Pick screen, phone first: each item a card with
   four big buttons (Must / Want / Maybe / Skip), one column on a phone, two or three on a computer; and the group view. */
.trip-page.picks-page { --trip-column: 1240px; }
.picks-page .picks-header { align-items: flex-start; gap: var(--space-3); }
.picks-page #items-count { white-space: nowrap; } /* Review 38: "40 drinks" on one line. */
.picks-page .picks-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.picks-page .picks-choice-filters { display: contents; }
.picks-page .view-switch { flex-wrap: wrap; }
.picks-page .picks-top { padding-bottom: 0; }
.picks-switches { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.picks-progress { margin: 0 0 var(--space-3); font-weight: 500; color: var(--text); }
.picks-progress:empty { display: none; }
.picks-show-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.picks-page .picks-controls > #items-shown { margin-top: var(--space-3); }
.picks-page .picks-waiting { margin-top: var(--space-3); }
.filter-range .filter-number { width: 5.5rem; }
.pick-items { list-style: none; margin: 0; padding: 0 var(--space-5) var(--space-5); display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.pick-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); min-width: 0; }
.pick-card.is-hidden { background: var(--surface-2); border-style: dashed; }
.pick-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.pick-card .pick-name { margin: 0; font-size: var(--t-m); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pick-card-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: flex-end; }
.pick-card .pick-facts, .pick-card .pick-description { margin: 0; overflow-wrap: anywhere; }
.pick-card .pick-description { color: var(--text-2); }
.pick-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
:lang(es) .pick-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick-level { min-height: 48px; padding: var(--space-1) var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; font-size: var(--t-s); font-weight: 500; line-height: 1.2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.pick-level:hover { background: var(--surface-2); }
.pick-level:focus-visible { outline: none; box-shadow: var(--ring); }
.pick-level[aria-pressed="true"] { background: var(--pressed); border-color: var(--pressed); color: var(--on-pressed); font-weight: 600; }
.pick-level.level-must[aria-pressed="true"] { background: var(--accent); border-color: var(--text); color: var(--on-accent); }
/* Review 38: a pressed Skip is quieter than a pressed Must, by day and by night: outlined, on the card's own surface. */
.pick-level.level-skip[aria-pressed="true"] { background: var(--surface-2); border: 2px solid var(--text-2); color: var(--text); }
.pick-level[aria-pressed="true"] .pick-mark::before { content: "✓"; }
.pick-level:disabled { cursor: not-allowed; opacity: .55; }
.pick-state:empty, .pick-others:empty { display: none; }
.pick-card .pick-state, .pick-card .pick-others { margin: 0; }
.pick-saved { color: var(--text-2); }
.pick-others { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--text-2); }
.pick-person { display: inline-flex; align-items: center; gap: 4px; }
.pick-edit-row { display: flex; flex-wrap: wrap; gap: var(--space-2); border-top: 1px solid var(--border); padding-top: var(--space-2); }
.picks-page .empty { margin: 0 var(--space-5) var(--space-5); }
.picks-page .pagination { padding: 0 var(--space-5) var(--space-5); }
.picks-foot { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
/* The group view. */
.picks-group-grid { display: grid; gap: 0 var(--space-6); grid-template-columns: minmax(0, 1fr); }
.picks-group-part { margin-top: var(--space-5); min-width: 0; }
.picks-group-part > h3 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--t-l); }
.picks-group-part > p { margin: 0 0 var(--space-2); }
.picks-group-part .list .list-main { min-width: 0; }
.picks-group-part .pick-others { margin-top: var(--space-1); }
.picks-score { white-space: nowrap; font-size: var(--t-s); font-weight: 500; color: var(--text-2); }
.picks-clashes { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.pick-clash { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); }
.pick-clash-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pick-clash-when { font-size: var(--t-l); }
.pick-clash-items { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; gap: var(--space-2); }
.pick-clash-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-2); overflow-wrap: anywhere; }
.pick-clash-name { font-weight: 500; color: var(--text); }
.pick-split { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-2); }
.pick-split p { margin: 0 0 var(--space-2); }
.pick-split ul { margin: 0; padding-left: var(--space-5); }
.picks-nobody summary { cursor: pointer; font-weight: 500; color: var(--text); }
.pick-not-yet { margin-top: var(--space-1); }
.picks-group-offline { margin: var(--space-4) var(--space-5) var(--space-5); }
.pick-items:focus { outline: none; }
.picks-filters-toggle { display: none; }
.picks-filters-toggle .filters-on:not(:empty)::before { content: "· "; }
.picks-nobody summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-s); }
/* The editors' dialog. */
.pick-editor fieldset.pick-times { border: 0; padding: 0; margin: 0; min-width: 0; }
.pick-editor .pick-times legend { padding: 0; margin-bottom: var(--space-2); font-size: var(--t-s); font-weight: 500; color: var(--text); }
.pick-time-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.pick-time-row input[type="time"] { width: 8.5rem; }
.pick-editor .pick-currency { text-transform: uppercase; max-width: 7rem; }
@media (min-width: 760px) {
  .pick-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .pick-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .picks-page .picks-tags { justify-content: flex-start; }
  .pick-items { padding: 0 var(--space-4) var(--space-4); }
  .picks-page .empty { margin: 0 var(--space-4) var(--space-4); }
  .picks-page .pagination { padding: 0 var(--space-4) var(--space-4); }
  .picks-switches .view-switch, .picks-show { width: 100%; }
  .picks-switches .view-switch .button, .picks-show .button { flex: 1 1 auto; }
  .filter-range { flex-wrap: wrap; }
  /* Review 38: the filters fold behind "Filters"; the search stays. */
  .picks-filters-toggle { display: inline-flex; }
  .picks-filters:not(.is-open) .picks-choice-filters { display: none; }
}
/* Review 38: on a narrow phone, "You picked 4" goes under the list's name instead of squeezing it. */
@media (max-width: 480px) {
  .picks-page #lists > li { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .picks-page #lists .picks-tags { justify-content: flex-start; }
}

/* This file's own tokens by night: the warning tint is coral on the night surface, as by day it is coral on white; on paper, which
   stays light, the tints are mixed from paper and its ink. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
/* NIGHT */
    --warning-soft: color-mix(in srgb, var(--danger) 16%, var(--surface));
    --pressed: var(--accent); --on-pressed: var(--on-accent);
    --paper-canvas: color-mix(in srgb, var(--on-paper) 5%, var(--paper)); --paper-edge: color-mix(in srgb, var(--on-paper) 16%, var(--paper)); --paper-line: color-mix(in srgb, var(--on-paper) 9%, var(--paper)); --paper-2: color-mix(in srgb, var(--on-paper) 8%, var(--paper));
    --paper-accent-50: color-mix(in srgb, var(--accent) 14%, var(--paper)); --paper-accent-100: color-mix(in srgb, var(--accent) 28%, var(--paper)); --paper-accent-soft: color-mix(in srgb, var(--accent) 28%, var(--paper));
    --paper-coral-50: color-mix(in srgb, var(--danger) 11%, var(--paper)); --paper-coral-100: color-mix(in srgb, var(--danger) 22%, var(--paper)); --paper-danger-soft: color-mix(in srgb, var(--danger) 22%, var(--paper)); --paper-warning-soft: color-mix(in srgb, var(--danger) 11%, var(--paper));
/* /NIGHT */
  }
}
@media screen {
  :root[data-theme="dark"] {
/* NIGHT */
    --warning-soft: color-mix(in srgb, var(--danger) 16%, var(--surface));
    --pressed: var(--accent); --on-pressed: var(--on-accent);
    --paper-canvas: color-mix(in srgb, var(--on-paper) 5%, var(--paper)); --paper-edge: color-mix(in srgb, var(--on-paper) 16%, var(--paper)); --paper-line: color-mix(in srgb, var(--on-paper) 9%, var(--paper)); --paper-2: color-mix(in srgb, var(--on-paper) 8%, var(--paper));
    --paper-accent-50: color-mix(in srgb, var(--accent) 14%, var(--paper)); --paper-accent-100: color-mix(in srgb, var(--accent) 28%, var(--paper)); --paper-accent-soft: color-mix(in srgb, var(--accent) 28%, var(--paper));
    --paper-coral-50: color-mix(in srgb, var(--danger) 11%, var(--paper)); --paper-coral-100: color-mix(in srgb, var(--danger) 22%, var(--paper)); --paper-danger-soft: color-mix(in srgb, var(--danger) 22%, var(--paper)); --paper-warning-soft: color-mix(in srgb, var(--danger) 11%, var(--paper));
/* /NIGHT */
  }
}

/* Paper: the paintings have light paper edges and look cut out on navy, so a painting's mat is paper in both modes (white by
   day, warm paper by night), and everything written on it uses paper's ink. Photos are left as they are. */
.l-postcard, .l-mat, .l-d, .l-country-mat, .painting-card {
  --text: var(--on-paper); --text-2: var(--on-paper-2); --text-3: var(--on-paper-3);
  --l-ink: var(--on-paper); --l-ink-2: var(--on-paper-2);
  --surface: var(--paper); --background: var(--paper-canvas); --border: var(--paper-edge);
  --l-line: var(--border); --l-line-soft: var(--paper-line);
  --teal: var(--island-glow); --accent-100: var(--paper-accent-100); --accent-soft: var(--paper-accent-soft); --ok-soft: var(--paper-accent-soft); --accent-50: var(--paper-accent-50);
  --danger-soft: var(--paper-danger-soft); --coral-100: var(--paper-coral-100); --coral-50: var(--paper-coral-50); --warning-soft: var(--paper-warning-soft);
  --surface-2: var(--paper-2); --info-soft: var(--paper-2); --border-strong: var(--on-paper);
  color: var(--on-paper-2);
}
/* A logo and the second check's square code sit on a white tile: the code must stay dark on white to be read by a camera. */
.agency-logo, .agency-logo-big { color: var(--on-tile); }
.qr { color: var(--on-tile); border-color: var(--tile); padding: 6px; }

/* The map: its tiles are only dimmed (inverting them turns the sea brown); the stops keep their colours, and what floats over the
   map (a stop's card, the zoom buttons, the credits) is the page's own surface. */
.leaflet-container { background: var(--surface-2); }
.leaflet-container .leaflet-tile-pane { filter: var(--map-dim); }
.leaflet-container .leaflet-popup-content-wrapper, .leaflet-container .leaflet-popup-tip { background: var(--surface); color: var(--text-2); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-2); }
.leaflet-container .leaflet-bar a, .leaflet-container .leaflet-bar a:hover { background-color: var(--surface); color: var(--text); border-bottom-color: var(--border); }
.leaflet-container .leaflet-bar a.leaflet-disabled { background-color: var(--surface-2); color: var(--text-3); }
.leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--text-2); }

/* The switch "Light / Dark / Same as my device": written like the language switch beside it. */
.theme-switch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.theme-choice { min-height: 32px; background: none; border: 0; padding: 0 4px; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.theme-choice:hover { color: var(--text); }
.theme-choice:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius); }
.theme-choice[aria-pressed="true"] { font-weight: 600; text-decoration: none; cursor: default; color: var(--text); }
.l-footer .theme-switch { flex-basis: 100%; }
.card-theme { display: flex; justify-content: center; margin: var(--space-1) 0 0; text-align: center; }
.legal-footer .theme-switch { flex-basis: 100%; justify-content: center; }
/* In the person's menu and under Administration's name: a small title and the three choices. */
.person-theme { margin: var(--space-1) 0 0; padding: var(--space-2) var(--space-3) var(--space-1); border-top: 1px solid var(--border); font-size: var(--t-s); color: var(--text-2); }
.person-theme-title { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.menu .person-theme .theme-choice { display: inline-flex; width: auto; min-height: 36px; padding: 0 4px; border-radius: var(--radius-s); background: none; color: inherit; font: inherit; text-decoration: underline; }
.menu .person-theme .theme-choice[aria-pressed="true"] { color: var(--text); font-weight: 600; text-decoration: none; }
.sidebar-footer .person-theme { padding-left: 0; padding-right: 0; margin-top: var(--space-3); }
.legal-footer { flex-wrap: wrap; row-gap: var(--space-2); }
.person-theme .theme-switch { gap: 2px var(--space-3); }
.person-theme .theme-switch > span { display: none; }

/* =====================================================================================================================
   Review 35 (Milestone 33).
   ===================================================================================================================== */
/* The quiet button's rule (.button:not(.primary, .danger, .ghost), two classes strong) took the red tint from Today's emergency call
   button, written with one class before it: three classes, and after it. */
.button.call-button.today-emergency-call { background: var(--danger-soft); border-color: var(--danger-strong); color: var(--text); }
.button.call-button.today-emergency-call:hover { background: color-mix(in srgb, var(--danger) 25%, var(--surface)); color: var(--text); }

/* The agency's "Our trips" on a computer: the page is a little wider and the trip's name gives way, so the three buttons of a row
   are whole with no sideways scroll at 1280, 1440 and 1920, in English and in Spanish ("Archive" was cut: 1052 px in a 988 px box). */
.visitor-content.medium.agency-home-content { max-width: 1200px; }
/* The trip's name is the first cell, whatever its label says (in Spanish it is "Viaje", and the rules written for "Trip" missed it). */
@media (min-width: 1101px) {
  .agency-trips td[data-label="Trip"], .agency-trips td:first-child { min-width: 11rem; }
  .agency-filters .search { min-width: 22rem; } /* Its words ("Search trip, country, traveller, client or email…") stay whole on the wider page. */
}
/* Between a tablet and a full computer the buttons still stack at the right (in Spanish they are longer: "Archivar" was cut at 1101). */
@media (min-width: 1101px) and (max-width: 1239px) {
  .agency-trips .team-actions { flex-wrap: wrap; }
}
/* On a tablet held upright five columns do not fit: between 641 and 860 px the table scrolled sideways in English, and in Spanish
   (longer buttons) the trip's name was squeezed to a column of letters up to about 985 px (Review 35, doubt 2). So from 641 to
   1000 px each trip is a record, as on a phone, but in two columns: the trip with its dates, agent and status at the left, each
   with its label, and its buttons one under another at the right, whole. From 1001 px it is the table again (the name has 176 px
   or more in both languages). Written three classes strong, over the column rules above. */
@media (min-width: 641px) and (max-width: 1000px) {
  .table.stacked.agency-trips thead { display: none; }
  .table.stacked.agency-trips, .table.stacked.agency-trips tbody { display: block; width: 100%; }
  .table.stacked.agency-trips tr { display: grid; grid-template-columns: minmax(0, 1fr) 12.5rem; /* The buttons' column: as wide as the longest ("Invitar a otra persona"), the same in every row. */ column-gap: var(--space-5); row-gap: 2px; align-items: start; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
  .table.stacked.agency-trips tr:last-child { border-bottom: 0; }
  /* Each value starts at the same place, after its label; a value of two lines (the dates) stays in its own column. */
  .table.stacked.agency-trips td { grid-column: 1; display: block; position: relative; width: auto; min-width: 0; padding: 2px 0 2px 6.5rem; border: 0; white-space: normal; text-align: left; }
  .table.stacked.agency-trips td::before { content: attr(data-label); position: absolute; left: 0; top: 2px; color: var(--text-3); font-size: var(--t-s); line-height: inherit; }
  .table.stacked.agency-trips td:first-child { font-weight: 500; padding: 0 0 var(--space-1); }
  .table.stacked.agency-trips td:first-child::before, .table.stacked.agency-trips td:last-child::before { display: none; }
  .table.stacked.agency-trips td:last-child { grid-column: 2; grid-row: 1 / span 4; align-self: center; padding: 0; }
  .table.stacked.agency-trips .team-actions { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; }
  .table.stacked.agency-trips .team-actions .button { justify-content: center; white-space: nowrap; }
}
/* Review 36 (6): as a table, from 1001 px, the agent's name is on one line ("Jorge P." broke after "Jorge" at 1001 in Spanish; the
   list gives each agent a short name, "first name + initial", so it never grows long), and from 1101 px, where the buttons stack,
   the trip's name has 15rem at least again (it had dropped to 11rem: a name of four lines beside a column of buttons). From 1240 px
   the buttons sit side by side and the name takes what is left (15rem there scrolled 7 px sideways in Spanish at 1280). */
@media (min-width: 1001px) {
  .table.stacked.agency-trips td:nth-child(3) { white-space: nowrap; }
}
/* Review 36: the first part of a Spanish version (Administration → FAQ, Settings → Spanish) no longer touches the notice above it. */
#spanish-parts:not(:empty) { margin-top: var(--space-3); }
@media (min-width: 1101px) and (max-width: 1239px) {
  .table.stacked.agency-trips td:first-child { min-width: 15rem; }
}

/* Administration's side menu on a computer: the person, the two buttons and the three choices of the look stay in sight at the
   foot, and the list of screens scrolls between the brand and them if the window is short. Under 900 px of height the list is
   tighter, so at 1280 × 720 nothing needs scrolling. */
@media (min-width: 861px) {
  .sidebar { overflow-y: hidden; }
  .sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 4px; scrollbar-width: thin; }
  .sidebar .sidebar-footer { flex: none; margin-top: 0; }
}
@media (min-width: 861px) and (max-height: 900px) {
  .sidebar { padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .sidebar .brand { padding-bottom: var(--space-2); }
  .sidebar .nav a { padding-top: 5px; padding-bottom: 5px; }
  .sidebar .sidebar-footer { padding-top: var(--space-3); }
  .sidebar .sidebar-footer .stack-short { margin-top: var(--space-2); }
  .sidebar-footer .person-theme { margin-top: var(--space-2); padding-top: var(--space-1); }
  .sidebar-footer .person-theme .theme-choice { min-height: 28px; }
}
@media (min-width: 861px) and (max-height: 860px) {
  /* Fourteen screens since the FAQ got its own (2026-11-23): a little tighter still, so "Settings" stays in sight at 1280 × 720.
     Review 41: fifteen since Pick lists, so up to 860 px high (1366 × 768 and 1280 × 800 cut "Settings" off). */
  .sidebar { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .sidebar .nav { gap: 1px; }
  .sidebar .nav a { padding-top: 2px; padding-bottom: 2px; }
}
@media (min-width: 861px) and (max-height: 760px) {
  /* Milestone 39: sixteen screens since From travellers, so at 1280 × 720 the list loses its gaps and a pixel above and below each
     line (each stays at least 24 px high to press), and "Settings" stays in sight. */
  .sidebar .nav { gap: 0; }
  .sidebar .nav a { padding-top: 1px; padding-bottom: 1px; min-height: 24px; }
  .sidebar .brand { padding-bottom: var(--space-1); }
}

/* Milestone 37: the day plan (public/day-plan-view.js) and Today's checklist (public/today-picks.js). Tokens only. */
.day-plan { display: flex; flex-direction: column; gap: var(--space-3); }
.day-plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.day-plan-day { display: inline-flex; align-items: center; gap: var(--space-2); }
.day-plan-line, .day-plan-reason, .day-plan-totals { margin: 0; }
.day-plan-reason { color: var(--text-2); font-style: italic; }
.day-plan-totals { font-weight: 600; color: var(--text); }
.day-plan-list, .today-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.day-plan-item { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-2) var(--space-3); padding: var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); }
.day-plan-list { overflow-anchor: none; } /* The page does not scroll by itself while an item is dragged. */
.day-plan-item.dragging { border-color: var(--text); box-shadow: var(--shadow); opacity: .85; }
.day-plan-handle { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 44px; border-radius: var(--radius); color: var(--text-2); cursor: grab; touch-action: none; user-select: none; }
.day-plan-handle:hover { background: var(--surface-2); color: var(--text); }
.day-plan-item.dragging .day-plan-handle { cursor: grabbing; }
.day-plan-number { min-width: 1.75rem; height: 1.75rem; margin-top: 2px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: var(--t-s); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; }
.day-plan-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.day-plan-main p { margin: 0; overflow-wrap: anywhere; }
.day-plan-name .pick-name { font-weight: 600; color: var(--text); }
.day-plan-time, .today-check .plan-time { font-variant-numeric: tabular-nums; color: var(--text-2); }
.day-plan-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.day-plan-tags:empty { display: none; }
.day-plan-moves { display: flex; flex-direction: column; gap: var(--space-1); }
.day-plan-moves .button { min-height: 36px; }
.day-plan-break { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font-weight: 500; }
.day-plan-others { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--text-2); }
.day-other { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.day-other q { color: var(--text); }
.day-rating { font-weight: 600; color: var(--text); }
.day-plan-left .list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-plan-left .list-detail { color: var(--text-2); }
.day-plan-handle .icon { transform: rotate(90deg); }
.day-plan-left h3 { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0; }
.day-plan-how > summary { cursor: pointer; font-weight: 500; color: var(--text); }
.day-plan-how[open] > summary { margin-bottom: var(--space-3); }
.day-plan-options { margin-bottom: var(--space-2); }
.day-plan-ask { flex-wrap: wrap; }
.picks-group-to-plan { margin: var(--space-3) 0 0; }
/* Review 40: a thing with a set time has no handle (a space keeps the numbers in line); a food market's stall above its dishes; the
   day plan card's closing question in the chat; "Use the group's plan"; the Rebuild question's three buttons stacked on a phone. */
.day-plan-handle-space { width: 32px; }
.day-plan-tags .tag { white-space: normal; max-width: 100%; } /* "You split up: María N. and Pedro S. here" wraps on a phone. */
.day-plan-stall { margin: var(--space-2) 0 0; padding: 0 var(--space-1); font-size: var(--t-s); font-weight: 600; color: var(--text-2); }
.day-plan-stall:first-child { margin-top: 0; }
.chat-pick-ask { margin: var(--space-2) 0 0; font-weight: 600; color: var(--text); }
.day-plan-use-group { margin-top: var(--space-2); }
@media (max-width: 640px) {
  .dialog-footer.day-plan-ask { flex-direction: column-reverse; align-items: stretch; }
  .dialog-footer.day-plan-ask .button { width: 100%; min-height: 44px; }
}
@media (max-width: 640px) {
  .day-plan-item { grid-template-columns: auto auto minmax(0, 1fr); }
  .day-plan-moves { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .day-plan-moves .button { min-height: 44px; flex: 1 1 0; }
}

/* Today: the checklist. */
.today-picks-list + .today-picks-list { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.today-picks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.today-picks-head h3 { margin: 0; overflow-wrap: anywhere; }
.today-picks-list > p { margin: var(--space-1) 0 var(--space-3); }
.today-picks-part { margin: var(--space-4) 0 var(--space-2); font-size: var(--t-s); color: var(--text-2); }
.today-picks-skipped { margin-top: var(--space-3); }
.today-picks-skipped > summary { cursor: pointer; color: var(--text-2); }
.today-picks-skipped[open] > summary { margin-bottom: var(--space-2); }
.today-check { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); }
.today-check.is-done { background: var(--surface-2); }
.today-check.is-skipped .today-check-name { color: var(--text-2); }
.today-check-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.today-check-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.today-check-main p { margin: 0; overflow-wrap: anywhere; }
.today-check-name { font-weight: 600; color: var(--text); }
.today-check-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.today-check-actions .button { min-height: 44px; flex: 1 1 8rem; }
.today-rate { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.today-rate-button { min-width: 44px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; }
.today-rate-button:hover { background: var(--surface-2); }
.today-rate-button:focus-visible { outline: none; box-shadow: var(--ring); }
.today-rate-button[aria-pressed="true"] { background: var(--accent); border-color: var(--text); color: var(--on-accent); }
.today-note > summary { cursor: pointer; color: var(--text); font-weight: 500; min-height: 32px; display: flex; align-items: center; }
.today-note[open] { display: flex; flex-direction: column; gap: var(--space-2); }
.today-note textarea { width: 100%; }
@media (max-width: 480px) { .today-rate > span { flex-basis: 100%; } }

/* Milestone 38: Sponsored and Book on a pick list's items, the recap after the trip and its card (public/pick-recap.js), and
   Administration → Pick lists (public/admin-pick-lists.js). Tokens only. */
.tag.sponsored-tag { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); font-weight: 600; }
.tag.sponsored-tag::before { display: none; }
.pick-book-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 4px 0 8px; }
.pick-book-row .pick-book { min-height: 36px; }
.picks-recap-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pick-recap { display: grid; gap: 20px; }
.pick-recap-intro { margin: 0; }
.pick-recap-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.pick-recap-part h3 { margin: 0 0 8px; font-size: var(--t-l); }
.pick-recap-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.pick-recap-counts > div { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; }
.pick-recap-counts dt { font-size: var(--t-s); color: var(--text-2); }
.pick-recap-counts dd { margin: 2px 0 0; font-size: var(--t-2xl); font-weight: 600; }
.pick-recap-list .list-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pick-recap-list .list-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pick-recap-note { font-style: italic; overflow-wrap: anywhere; }
.pick-recap-card-part { display: grid; gap: 12px; justify-items: start; }
.pick-recap-canvas { width: min(100%, 360px); height: auto; aspect-ratio: 1080 / 1350; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); background: var(--paper); }
.picks-page .list-title .tag.sponsored-tag { vertical-align: middle; }
/* Review 41, round 2: the library is switched off; the screen only says so, as an empty screen does. */
#library-off h2 { font-size: var(--t-l); color: var(--text); margin-bottom: var(--space-2); text-align: center; }

/* Milestone 39: Administration → From travellers (public/admin-from-travellers.js) and a place's "Travellers say" (admin-record.js).
   Tokens only. Each suggestion is a row that stacks on a phone; its three buttons wrap under it. */
#signals-off h2 { font-size: var(--t-l); color: var(--text); margin-bottom: var(--space-2); text-align: center; }
.signal-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 0; }
.signal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.signal:first-child { border-top: 0; }
.signal-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 18rem; overflow-wrap: anywhere; }
.signal-name { font-weight: 600; color: var(--text); }
.signal-figure { font-size: var(--t-l); font-weight: 600; color: var(--text); }
.signal-actions { flex: 0 0 auto; gap: var(--space-2); }
.signal-done { justify-content: flex-start; gap: var(--space-2); color: var(--text); }
.signal-empty { margin: var(--space-3) 0 0; }
/* Review 42: Approve sends a published place or guide text back to draft: said on its own line, before the buttons. */
.signal-warning { flex: 1 1 100%; margin: 0; }
.signal-card [data-more] { margin-top: var(--space-3); }
.travellers-say-card .card-header { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.said-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-2); margin: 0 0 var(--space-3); }
.said-fact { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.said-fact dt { font-size: var(--t-s); color: var(--text-2); }
.said-fact dd { margin: 2px 0 0; font-weight: 600; color: var(--text); display: grid; gap: 2px; overflow-wrap: anywhere; }
.said-fact dd .small { font-weight: 400; }
@media (max-width: 640px) {
  .signal-actions { width: 100%; }
  .signal-actions .button { flex: 1 1 auto; justify-content: center; }
}

/* Review 43 (Milestone 40): the public header and the visitor's steps on a phone. The brand, Menu, the language and "Sign in" (or
   "Start over") on one row; the links open under the header from Menu (public/site-menu.js), each 44 px tall. With no JavaScript the
   button stays hidden and the links show as before. On a narrow phone Menu is its icon, its word still read out. */
.site-menu-button { display: none; }
@media (max-width: 900px) {
  header:is(.l-top, .visitor-top).has-menu { position: relative; flex-wrap: nowrap; row-gap: 0; }
  header:is(.l-top, .visitor-top).has-menu > .site-menu-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--text) 48%, var(--surface)); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font: 500 var(--t-m)/1 var(--font); cursor: pointer; }
  header:is(.l-top, .visitor-top).has-menu > .site-menu-button .icon { width: 18px; height: 18px; }
  header:is(.l-top, .visitor-top).has-menu > .site-menu-button[aria-expanded="true"] { background: var(--accent-50); border-color: var(--text); }
  header:is(.l-top, .visitor-top).has-menu > .site-menu-button:focus-visible { outline: none; box-shadow: var(--ring); }
  header:is(.l-top, .visitor-top).has-menu > :is(.l-nav, .visitor-nav):not(.is-open) { display: none; }
  header:is(.l-top, .visitor-top).has-menu > :is(.l-nav, .visitor-nav).is-open {
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; position: absolute; top: calc(100% - 6px); left: 16px; right: 16px; z-index: 60;
    width: auto; margin: 0; padding: 8px; order: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
    box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--shade) 55%, transparent); }
  header:is(.l-top, .visitor-top).has-menu > :is(.l-nav, .visitor-nav).is-open a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: var(--text); font-weight: 500; text-decoration: none; box-shadow: none; }
  header:is(.l-top, .visitor-top).has-menu > :is(.l-nav, .visitor-nav).is-open a:hover { background: var(--accent-50); text-decoration: underline; }
  header:is(.l-top, .visitor-top).has-menu > :is(.l-nav, .visitor-nav).is-open a[aria-current="page"] { background: var(--accent-50); box-shadow: inset 3px 0 0 var(--teal); font-weight: 600; }
  header:is(.l-top, .visitor-top).has-menu > :is(.l-nav, .visitor-nav).is-open a:focus-visible { outline: none; box-shadow: var(--ring); }
  header:is(.l-top, .visitor-top).has-menu > .l-lang, header:is(.l-top, .visitor-top).has-menu > .site-menu-button ~ .button { margin-left: auto; }
  header:is(.l-top, .visitor-top).has-menu > .l-lang ~ .l-signin { margin-left: 0; }
}
@media (max-width: 400px) {
  header:is(.l-top, .visitor-top).has-menu { column-gap: var(--space-2); }
  header:is(.l-top, .visitor-top).has-menu > .site-menu-button { padding: 0; width: 44px; }
  header:is(.l-top, .visitor-top).has-menu > .site-menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Review 43: things to tap are at least 24 px tall (WCAG 2.5.8), and the header's pages 44 px: the footer's links, the header's on a
   computer, the visitor's steps, and every "Open/Search on Google Maps". */
.l-footer-links a, .legal-footer a { display: inline-flex; align-items: center; min-height: 24px; }
.l-nav a, .visitor-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.maps-link { display: inline-flex; align-items: center; gap: 0.25em; min-height: 24px; }

/* Review 43: a trip's tabs on a computer. "More" holds the less-used tabs (public/trip-shell.js DESK_MORE, and any that do not fit),
   in a small menu under it; the row itself never scrolls or cuts a tab. On a phone the wrapper and the menu are laid out in place, so
   the bottom bar is as before. */
@media (min-width: 641px) {
  #tabs { overflow: visible; flex-wrap: nowrap; }
  #tabs .tabs-more-wrap { position: relative; display: flex; flex: none; }
  #tabs .tabs-more { display: inline-flex; align-items: center; gap: var(--space-2); }
  #tabs .tabs-more .icon { width: 18px; height: 18px; }
  #tabs .tabs-more[aria-expanded="true"] { background: var(--accent-50); color: var(--text); }
  #tabs .tabs-more.has-current-desk { color: var(--teal); font-weight: 600; box-shadow: inset 0 -3px 0 var(--teal); }
  #tabs .tabs-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 40; min-width: 220px; flex-direction: column; gap: 2px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--shade) 55%, transparent); }
  #tabs.is-open .tabs-menu { display: flex; }
  #tabs .tabs-menu a { display: flex; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius); white-space: nowrap; }
  #tabs .tabs-menu a[aria-current="page"] { background: var(--accent-50); box-shadow: inset 3px 0 0 var(--teal); }
}
@media (max-width: 640px) {
  #tabs .tabs-more-wrap, #tabs .tabs-menu { display: contents; }
}
/* Review 43: "Iniciar sesión" is long: on a narrow phone in Spanish the brand shows its mark alone (its name is still read out), so
   the language and "Sign in" stay on the row, each on one line. The landing's main postcard never pushes the page sideways. */
.l-signin { white-space: nowrap; }
header:is(.l-top, .visitor-top).has-menu > .site-menu-button .icon { color: var(--text); }
@media (max-width: 420px) {
  html[lang="es"] header.l-top.has-menu > .l-brand { font-size: 0; gap: 0; }
  header.l-top.has-menu > .l-signin { padding: 0 14px; }
}
.l-hero { overflow-x: clip; }
