/* Tours phase T1: Discover, the showcase, My tours, the studio, Messages, Become an organiser and the admin lists.
 * Same look as the account pages (account.css): cream paper, forest green, lime and amber. Classes: tr- (shared), msg- (messages),
 * tour- (showcase and discover), st- (studio), adm- (admin). Dialogs live on <body>, so their rules are not under .tr-page.
 * Phase T2 (photos) adds the section "Photos" before the touch rules: covers, the gallery of the tour page, the member album, the studio's Photos tab, the viewer.
 * Phase T5 (the organiser's look, docs/TOURS-T5.md) adds two sections after it: the colours and the logo on the tour page (--tour-* custom properties on <body>, prefix lk- for
 * the studio's Look tab). */

/* ---- small things used everywhere ------------------------------------------------------------------------------- */
.tr-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.account-shell-wide { width: min(1320px, calc(100% - 32px)); }
.tr-page .button.tr-auto, .tr-dialog .button.tr-auto { width: auto; flex: none; min-width: 0; }
.tr-page a.button-primary, .tr-page a.button-danger, .tr-dialog a.button-primary { color: #fff; }       /* (account.css makes every link in the page green) */
.tr-page a.button-secondary { color: #173d2b; }
.tr-page a.button-ghost { color: #46554c; }
.tr-page .account-card + .account-card, .tr-page .account-card + .flash + .account-card { margin-top: 18px; }
.tr-page .button.tr-small, .tr-dialog .button.tr-small { padding: 7px 13px; font-size: 13px; }
.tr-page .button.tr-block, .tr-dialog .button.tr-block { width: 100%; }
.tr-page .button-primary, .tr-dialog .button-primary { box-shadow: none; }
.tr-page .page-heading { flex-wrap: wrap; }                                                          /* a long title and its buttons wrap on a phone */
.tr-stack { display: grid; gap: 12px; }
.tr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tr-row-end { justify-content: flex-end; }
.tr-hint { color: #68736b; font-size: 13px; line-height: 1.45; }
.tr-error { margin: 8px 0 0; padding: 9px 12px; border-radius: 9px; background: #fff0ed; border: 1px solid #e5b2a8; color: #8c2f22; font-size: 14px; }
.tr-error[hidden], .tr-notice[hidden] { display: none; }
.tr-notice { margin: 8px 0 0; padding: 9px 12px; border-radius: 9px; background: #edf8ef; border: 1px solid #aed0b6; color: #23613a; font-size: 14px; }
.tr-warn { margin: 8px 0 0; padding: 10px 12px; border-radius: 9px; background: #fff6e0; border: 1px solid #e0b24a; color: #5c4208; font-size: 14px; line-height: 1.5; }
.tr-counter { color: #68736b; font-size: 12px; margin-left: auto; white-space: nowrap; }
.tr-quote { margin: 0; padding: 8px 12px; border-left: 3px solid #d8d3c6; background: #f6f3ea; border-radius: 0 8px 8px 0; color: #2d3b33; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-fieldset { border: 0; margin: 14px 0; padding: 0; min-width: 0; }
.tr-fieldset > legend { padding: 0; margin-bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #526159; }
.tr-page .field { margin: 14px 0; }
.tr-page .field > span, .tr-dialog .field > span { font-size: 11px; }
.tr-page .field small, .tr-dialog .field small { display: block; margin-top: 5px; color: #68736b; font-size: 12px; line-height: 1.4; text-transform: none; letter-spacing: 0; font-weight: 500; }
.tr-page input[type="checkbox"], .tr-page input[type="radio"], .tr-dialog input[type="checkbox"], .tr-dialog input[type="radio"] { width: auto; }
.tr-page :focus-visible, .tr-dialog :focus-visible { outline: 2px solid #22563d; outline-offset: 2px; }
.tr-page input:focus-visible, .tr-page textarea:focus-visible, .tr-page select:focus-visible, .tr-dialog input:focus-visible, .tr-dialog textarea:focus-visible, .tr-dialog select:focus-visible { outline: 0; }
.tr-badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #d4442f; color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; flex: none; }
.tr-chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; background: #e6eee8; color: #245a3b; white-space: nowrap; letter-spacing: .02em; }
.tr-chip--muted { background: #eeeee8; color: #5d6963; }
.tr-chip--info { background: #e4ecf6; color: #214a78; }
.tr-chip--warn { background: #f6e2c4; color: #8a4f12; }
.tr-chip--danger { background: #f7e0db; color: #8c2f22; }
.tr-chip--ok { background: #dff0d4; color: #26591c; }
.tr-chip--lime { background: #cde761; color: #173d2b; }

/* a short message in the corner (TourUI.toast) */
.tr-toast { position: fixed; z-index: 3000; right: 20px; bottom: 24px; max-width: min(380px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 10px; background: #16211b; color: #fff; box-shadow: 0 18px 50px rgba(27, 42, 33, .3); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s; font-size: 14px; }
.tr-toast.is-visible { opacity: 1; transform: none; }
.tr-toast.is-error { background: #772e28; }
.tr-toast:empty { display: none; }

/* ---- dialogs (native <dialog>) ---------------------------------------------------------------------------------- */
dialog.tr-dialog { border: 0; padding: 24px; color: #17251d; max-width: calc(100vw - 32px); }
dialog.tr-dialog:not([open]) { display: none; }
dialog.tr-dialog::backdrop { background: rgba(12, 22, 16, .66); backdrop-filter: blur(4px); }
dialog.tr-dialog.modal-card { width: min(720px, calc(100vw - 32px)); }
dialog.tr-dialog.modal-card-small { width: min(480px, calc(100vw - 32px)); }
.tr-dialog-form { margin: 0; }
.tr-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tr-dialog-head h2 { font-size: 26px; margin: 0 0 12px; }
.tr-dialog .tr-dialog-text { margin: 0 0 12px; color: #2d3b33; line-height: 1.55; }
.tr-dialog-actions { flex-wrap: wrap; }
.tr-dialog-actions .button-primary, .tr-dialog-actions .button-danger { width: auto; min-width: 120px; }
.tr-dialog .field { margin: 12px 0; }
.tr-dialog .field > span { display: flex; justify-content: space-between; margin-bottom: 8px; }

/* ---- Messages --------------------------------------------------------------------------------------------------- */
.msg { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); height: min(760px, calc(100vh - 230px)); min-height: 460px; border: 1px solid #d8d3c6; border-radius: 20px; background: #fffdf8; box-shadow: 0 18px 55px rgba(25, 42, 31, .08); overflow: hidden; }
.msg-list-pane { overflow-y: auto; border-right: 1px solid #e3ded3; min-height: 0; background: #fbf9f3; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-empty { margin: 0; padding: 22px 20px; color: #68736b; font-size: 14px; line-height: 1.5; }
.msg-empty[hidden] { display: none; }
.msg-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #ece8dd; color: inherit !important; text-decoration: none; min-height: 68px; }
.msg-row:hover { background: #f3f0e6; }
.msg-row.is-active { background: #e9efe3; box-shadow: inset 4px 0 0 #22563d; }
.msg-row:focus-visible { outline: 2px solid #22563d; outline-offset: -2px; }
.msg-row .person-avatar { width: 42px; height: 42px; }
.msg-tour-avatar { background: #214a78; }
.msg-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.msg-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.msg-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.msg-row-time { flex: none; color: #7a857e; font-size: 12px; white-space: nowrap; }
.msg-row-snippet { display: block; min-width: 0; color: #637067; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row-snippet.is-unread { color: #17251d; font-weight: 700; }
.msg-row-snippet.is-system { font-style: italic; }
.msg-row-tags { display: flex; gap: 6px; margin-top: 2px; }
.msg-thread-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msg-thread-pane:focus { outline: 0; }
.msg-placeholder { margin: auto; max-width: 420px; padding: 24px; text-align: center; }
.msg-placeholder h2 { font-size: 26px; margin-bottom: 10px; }
.msg-placeholder p { color: #637067; line-height: 1.55; }
.msg-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #e3ded3; background: #fffdf8; }
.msg-head .person-avatar { width: 42px; height: 42px; flex: none; }
.msg-head-main { flex: 1; min-width: 0; }
.msg-head-main h2 { font-size: 22px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head-main h2:focus { outline: 0; }
.msg-head-sub { margin: 2px 0 0; color: #68736b; font-size: 13px; }
.msg-head-sub a { color: #1f6b46; }
.msg-head-actions { display: flex; gap: 8px; flex: none; }
.msg-back { display: none; }
.msg-notice { margin: 0; padding: 10px 18px; background: #fff6e0; border-bottom: 1px solid #e0b24a; color: #5c4208; font-size: 14px; }
.msg-notice[hidden] { display: none; }
.msg-log-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.msg-older { margin: 10px auto 0; }
.msg-older[hidden], .msg-jump[hidden] { display: none; }
.msg-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: auto; }
.msg-log:focus-visible { outline: 2px solid #22563d; outline-offset: -2px; }
.msg-jump { position: absolute; right: 18px; bottom: 12px; border: 0; border-radius: 99px; padding: 8px 14px; background: #173d2b; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 8px 24px rgba(23, 61, 43, .35); }
.msg-day { align-self: center; margin: 8px 0 2px; padding: 2px 12px; border-radius: 99px; background: #efece2; color: #637067; font-size: 12px; font-weight: 700; }
.msg-item { display: flex; max-width: 100%; }
.msg-mine { justify-content: flex-end; }
.msg-bubble { position: relative; max-width: min(560px, 82%); padding: 8px 40px 8px 12px; border-radius: 14px; background: #efece2; color: #17251d; }
.msg-mine .msg-bubble { background: #173d2b; color: #fff; border-bottom-right-radius: 4px; }
.msg-theirs .msg-bubble { border-bottom-left-radius: 4px; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; opacity: .85; }
.msg-author { font-size: 13px; }
.msg-body { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; color: inherit !important; }
.msg-body.is-deleted { font-style: italic; opacity: .7; }
.msg-options { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .55; }
.msg-options:hover, .msg-options:focus-visible { opacity: 1; background: rgba(127, 140, 132, .22); }
.msg-system { justify-content: center; flex-direction: column; align-items: center; gap: 1px; margin: 4px 0; }
.msg-system-text { margin: 0; padding: 4px 14px; border-radius: 99px; background: #e4ecf6; color: #214a78 !important; font-size: 13px; font-weight: 600; text-align: center; }
.msg-system time { color: #7a857e; font-size: 11px; }
.msg-compose { padding: 10px 18px 14px; border-top: 1px solid #e3ded3; background: #fffdf8; }
.msg-compose textarea { min-height: 60px; resize: vertical; }
.msg-compose-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.msg-compose-row .tr-hint { flex: 1; font-size: 12px; }
.msg-compose .tr-error { margin-top: 6px; }
.msg-friends { max-height: 260px; display: flex; flex-direction: column; }
.msg-friend-list { overflow-y: auto; display: grid; gap: 2px; margin-top: 8px; }
.msg-friend { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.msg-friend:hover { background: #f1f5ee; }
.msg-friend:has(input:checked) { background: #e3efd8; }
.msg-friend .person-avatar { width: 32px; height: 32px; font-size: 14px; }

@media (max-width: 800px) {
  .msg { grid-template-columns: 1fr; height: calc(100vh - 190px); min-height: 420px; border-radius: 14px; }
  .msg .msg-thread-pane { display: none; }
  .msg.is-thread .msg-list-pane { display: none; }
  .msg.is-thread .msg-thread-pane { display: flex; }
  .msg-back { display: inline-flex; }
  .msg-head { padding: 10px 12px; flex-wrap: wrap; }
  .msg-head-actions { width: 100%; justify-content: flex-end; }
  .msg-bubble { max-width: 90%; }
}

/* ---- Become an organiser, the admin lists --------------------------------------------------------------------- */
.tr-section h2 { font-size: 26px; margin: 0 0 10px; }
.tr-section h2:focus { outline: 0; }
.tr-section p { color: #2d3b33; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.adm-filters .button[aria-pressed="true"] { background: #173d2b; color: #fff; }
/* The reports page filters twice - by area and by state - in two rows under each other, each with a small caption (static/js/tours-admin.js). */
.adm-filterbar { display: grid; gap: 8px; margin: 16px 0 12px; }
.adm-filterbar .adm-filters { margin: 0; align-items: center; }
.adm-filter-label { min-width: 4.5rem; color: #68736b; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.adm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adm-card { padding: 16px 18px; border: 1px solid #d8d3c6; border-radius: 14px; background: #fffdf8; }
.adm-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-card-head time { margin-left: auto; color: #68736b; font-size: 12px; }
.adm-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: inherit !important; text-decoration: none; }
.adm-user:hover span { text-decoration: underline; }
.adm-avatar { width: 28px; height: 28px; font-size: 13px; }
.adm-by { color: #56645b; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.adm-message { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #17251d !important; line-height: 1.5; }
.adm-target { margin-top: 8px; }
.adm-target-meta { margin: 8px 0 0; font-size: 13px; color: #56645b !important; }
.adm-decided { margin: 8px 0 0; font-size: 13px; color: #56645b !important; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adm-empty { padding: 18px 4px; color: #68736b; }
.user-row-organizer { display: flex; align-items: center; gap: 8px; }
/* A row of the user list (the Admin page): the name first, then the role, the organiser switch and the admin button. They wrap under the name when the card is narrow - the words of another
   language are longer (docs/I18N.md: look at it with ?lang=xx). */
.user-row { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.user-row > :first-child { flex: 1 1 11rem; min-width: 0; }

/* ---- the studio ------------------------------------------------------------------------------------------------- */
.st { display: grid; gap: 16px; }
.st-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: start; padding: 22px 26px; }
.st-head-main h1 { font-size: 34px; margin: 4px 0 8px; overflow-wrap: anywhere; }
.st-head-main h1:focus { outline: 0; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.st-meta { margin: 0; color: #56645b !important; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.st-frozen, .st-missing, .st-publish-note { grid-column: 1 / -1; margin: 0; }
.st-publish-note { text-align: right; }                                      /* (under the buttons it belongs to; the phone layout puts it left, below) */
.st-frozen { padding: 10px 14px; border-radius: 10px; background: #efece2; color: #56645b !important; }
.st-missing[hidden] { display: none; }
.st-missing-list { margin: 6px 0 0; padding-left: 20px; }
.st-link { border: 0; background: none; padding: 0 2px; color: #1f6b46; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.st-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #d8d3c6; }
.st-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 12px 18px; font-weight: 750; color: #56645b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 44px; }
.st-tab:hover { color: #173d2b; }
.st-tab[aria-selected="true"] { color: #173d2b; border-bottom-color: #173d2b; }
.st-tab:focus-visible { outline: 2px solid #22563d; outline-offset: -2px; border-radius: 6px 6px 0 0; }
.st-panel { padding: 24px 28px; }
.st-panel[hidden] { display: none; }
.st-panel h2 { font-size: 28px; margin: 0 0 12px; }
.st-panel h3 { margin: 22px 0 8px; font: 500 21px/1.2 Georgia, Cambria, serif; letter-spacing: -.02em; }
.st-panel:focus-visible { outline: 2px solid #22563d; outline-offset: 2px; }
.st-form .tr-fieldset { padding: 18px 0 6px; border-top: 1px solid #e3ded3; margin: 22px 0 0; }
.st-form .tr-fieldset:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; align-items: start; }
.st-grid > legend { grid-column: 1 / -1; }
.st-grid-narrow { grid-template-columns: minmax(180px, 280px); }
.st-span { grid-column: 1 / -1; }
.st-price { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.st-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid #e3ded3; margin-top: 8px; }
.st-saved { color: #23613a; font-weight: 700; }
.st-dirty { color: #855018; font-weight: 700; font-size: 13px; }
.st-dirty[hidden], .st-saved:empty { display: none; }
.st-radio { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.st-radio input { margin-top: 4px; }
.st-radio strong, .st-radio small { display: block; }
.st-radio small { color: #68736b; font-size: 12px; line-height: 1.4; font-weight: 500; }
.st-preview { margin-top: 10px; padding: 14px 16px; border: 1px dashed #c9c3b3; border-radius: 12px; background: #fbf9f3; }
.st-preview[hidden] { display: none; }
.st-place { margin: 14px 0; }
.st-place-row { display: flex; gap: 8px; align-items: center; }
.st-place-row input { flex: 1; min-width: 0; }
.st-coords { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 6px 0 0; font-size: 12px; color: #23613a !important; }
.st-coords[hidden] { display: none; }
.st-place-results { margin-top: 6px; border: 1px solid #d5d8cf; border-radius: 10px; overflow: hidden; background: #fff; }
.st-place-results[hidden], .st-suggestions[hidden] { display: none; }
.st-group-title { margin: 12px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #22563d; }

/* days and routes */
.st-days-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
.st-map-col { position: sticky; top: 14px; display: grid; gap: 10px; }
.st-map { height: 440px; border: 1px solid #d8d3c6; border-radius: 14px; overflow: hidden; background: #dce4d8; }
.st-map-tools { justify-content: flex-end; }
.st-map-tools .button[aria-pressed="true"], .st-day .st-show-day[aria-pressed="true"] { background: #173d2b; color: #fff; }
.st-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.st-legend li { display: flex; align-items: center; gap: 8px; }
.st-swatch { width: 18px; height: 6px; border-radius: 3px; flex: none; }
.st-day { border: 1px solid #d8d3c6; border-radius: 14px; padding: 16px 18px; background: #fff; margin: 0 0 14px; }
.st-day.is-rest { background: #f6f3ea; }
.st-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-day-head h3 { margin: 0; font-size: 22px; }
.st-day-date { color: #56645b; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; letter-spacing: 0; }
.st-day-fields .field { margin: 10px 0; }
.st-rest { margin: 4px 0 8px; }
.st-weather-place { margin: 10px 0 4px; }                                                  /* the optional place of the day's forecast (docs/TOUR-WEATHER.md TW-9) */
.st-weather-place .st-place { margin: 0 0 6px; }
.st-weather-place .tr-hint { margin: 6px 0 0; }
/* the timeline of a day (docs/TOURS-T1.md section 9): one list of routes and entries. A line: [handle] [time span] [what it is, how it starts, the entries inside it] [actions] */
.st-timeline-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid #e3ded3; }
.st-timeline-bar h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; color: #526159; }
.st-timeline-add { display: flex; flex-wrap: wrap; gap: 8px; }
.st-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-timeline-empty { margin: 0; padding: 12px; border: 1px dashed #c9c3b3; border-radius: 10px; font-size: 14px; }
.st-line { display: grid; grid-template-columns: auto 96px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 12px; border: 1px solid #e3ded3; border-radius: 12px; background: #fff; }
.st-line[data-kind="route"] { background: #fbf9f3; border-left: 4px solid #173d2b; }
.st-line.is-overlap { border-color: #e0b24a; box-shadow: inset 0 0 0 1px #f0d9a0; }
.st-line.is-dragging { opacity: .45; }
.st-line[data-drop="before"] { box-shadow: 0 -3px 0 #22563d; }
.st-line[data-drop="after"] { box-shadow: 0 3px 0 #22563d; }
.st-handle { align-self: start; width: 34px; min-height: 40px; padding: 0; border: 1px solid #d8d3c6; border-radius: 9px; background: #f3f0e8; color: #56645b; font-size: 18px; line-height: 1; cursor: grab; }
.st-handle:hover:not(:disabled) { background: #e9e5d9; }
.st-handle:active:not(:disabled) { cursor: grabbing; }
.st-handle:disabled { opacity: .4; cursor: default; }
.st-handle:focus-visible, .st-start:focus-visible { outline: 2px solid #22563d; outline-offset: 2px; }
.st-line-time { padding-top: 8px; font-weight: 800; font-size: 16px; color: #173d2b; font-variant-numeric: tabular-nums; }
.st-line-main { min-width: 0; }
.st-line-head, .st-inner-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.st-line-title { margin: 0; display: flex; flex: 1 1 11rem; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.st-line-name { overflow-wrap: anywhere; }
.st-line-meta { margin: 3px 0 0; font-size: 13px; color: #56645b !important; }
.st-line-desc { margin: 4px 0 0; color: #2d3b33 !important; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.st-line-warn { margin: 6px 0 0; padding: 5px 9px; border-radius: 8px; background: #fff6e0; border: 1px solid #e0b24a; color: #5c4208 !important; font-size: 13px; font-weight: 700; }
.st-start { margin: 8px 0 0; display: inline-flex; align-items: center; max-width: 100%; min-height: 34px; padding: 6px 11px; border: 1px solid #c9c3b3; border-radius: 9px; background: #fff; color: #173d2b; font: inherit; font-size: 13px; line-height: 1.35; text-align: left; cursor: pointer; }
.st-start:hover:not(:disabled) { background: #eef4ea; }
.st-start:disabled { cursor: default; opacity: .7; }
.st-start[aria-expanded="true"] { border-color: #22563d; background: #eef4ea; }
.st-start-label { color: #56645b; }
.st-start-text { font-weight: 750; }
.st-start-editor { margin: 8px 0 0; padding: 12px 14px; border: 1px solid #d5dccf; border-radius: 12px; background: #f6f8f2; }
.st-start-editor .tr-fieldset { margin: 0; padding: 0; border: 0; }
.st-start-editor legend { padding: 0; margin-bottom: 6px; font-weight: 750; }
.st-start-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 22px; }
.st-start-editor .field { margin: 4px 0 8px 28px; max-width: 220px; }
.st-start-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.st-line-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.st-inner { list-style: none; margin: 10px 0 0; padding: 8px 0 0 12px; border-top: 1px dashed #d8d3c6; border-left: 3px solid #cfd9c9; display: grid; gap: 8px; }
.st-inner-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 10px; align-items: start; }
.st-inner-time { padding-top: 8px; font-weight: 800; color: #173d2b; font-variant-numeric: tabular-nums; }
.st-inner-main { min-width: 0; }
.st-inner-title, .st-inner-meta { margin: 0; }
.st-inner-title { flex: 1 1 9rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.st-inner-meta { font-size: 13px; color: #56645b !important; }
.st-inner-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.st-icon { min-width: 40px; }
.st-danger { color: #8c2f22; }
.st-day-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.st-spacer { flex: 1; }
.st-pick-list { display: grid; gap: 6px; max-height: 340px; overflow: auto; margin: 8px 0; }
.st-pick span, .st-pick small { display: block; }

.st-tie { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.st-tie[hidden] { display: none; }
.st-kind-icon, .tour-kind-icon { font-style: normal; margin-right: 2px; }                       /* (the icon of a timetable entry's kind: decoration beside its name) */

/* participants */
.st-capacity { font-size: 17px; margin: 0 0 6px; }
.st-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 14px 0; }
.st-inline-form { position: relative; padding: 14px 16px; border: 1px solid #e3ded3; border-radius: 12px; background: #fbf9f3; }
.st-inline-form .field { margin-top: 0; }
.st-suggestions { display: grid; border: 1px solid #d5d8cf; border-radius: 10px; overflow: hidden; background: #fff; margin: -4px 0 10px; }
.st-suggest { display: flex; align-items: center; gap: 10px; }
.st-suggest-avatar { width: 26px; height: 26px; font-size: 12px; }
.st-people { margin-top: 18px; }
.st-people h3 { display: flex; align-items: center; gap: 8px; }
.st-people-list { list-style: none; margin: 0; padding: 0; }
.st-person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #e3ded3; }
.st-person:first-child { border-top: 0; }
.st-person .person-avatar { width: 40px; height: 40px; flex: none; }
.st-person-main { flex: 1; min-width: 0; }
.st-person-name a { font-weight: 750; color: inherit; text-decoration: none; }
.st-person-name a:hover { text-decoration: underline; }
.st-person-meta { margin: 2px 0 0; color: #56645b !important; font-size: 13px; }
/* the car a member shows to the tour (docs/FEATURES-2026-10-19.md A2): its small cover where it has one; a car without a picture has none and the line is text only */
.st-person-car { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 14px; color: #2d3b33 !important; }
.st-person-car-cover { width: 72px; height: 40px; flex: none; border-radius: 6px; object-fit: cover; background: #e9e5d9; }
.st-person-car-text strong { font-weight: 700; }
.st-person-car-text small { margin-left: 4px; color: #56645b; font-size: 13px; }
#tour-car { margin: 12px 0 0; }
#tour-car-empty p { margin: 0 0 8px; }
.st-request-text { margin-top: 8px; }
.st-request-text[hidden] { display: none; }
.st-person-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 46%; }
.st-past { margin-top: 20px; }
.st-past summary { cursor: pointer; font-weight: 700; color: #56645b; padding: 6px 0; }

/* the public pages of a tour share a few small pieces with the studio */
.tour-prose { line-height: 1.6; color: #17251d; overflow-wrap: anywhere; }
.tour-prose h2, .tour-prose h3, .tour-prose h4 { margin: 1.2em 0 .4em; }
.tour-prose h2 { font-size: 26px; } .tour-prose h3 { font-size: 21px; } .tour-prose h4 { font-size: 17px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 750; }
.tour-prose p { margin: 0 0 .9em; color: #17251d; }
.tour-prose ul, .tour-prose ol { margin: 0 0 .9em; padding-left: 1.4em; }
.tour-prose a { color: #1f6b46; }
.tour-prose code { background: #efece2; padding: 0 4px; border-radius: 4px; }
.tour-prose blockquote { margin: 0 0 .9em; padding: 4px 14px; border-left: 3px solid #d8d3c6; color: #56645b; }
.tour-prose hr { border: 0; border-top: 1px solid #d8d3c6; margin: 1.2em 0; }

@media (max-width: 1000px) {
  .st-days-layout { grid-template-columns: 1fr; }
  .st-map-col { position: static; order: -1; }
  .st-map { height: 300px; }
}
@media (max-width: 700px) {
  .st-header { grid-template-columns: 1fr; padding: 18px; }
  .st-actions { justify-content: flex-start; }
  .st-publish-note { text-align: left; }
  .st-panel { padding: 18px 16px; }
  .st-line { grid-template-columns: auto minmax(0, 1fr); padding: 10px; }
  .st-line-time { grid-column: 2; grid-row: 1; padding-top: 10px; }
  .st-line-main { grid-column: 1 / -1; }
  .st-line-actions, .st-inner-actions { margin-left: 0; }
  .st-inner { padding-left: 8px; }
  .st-inner-item { grid-template-columns: 46px minmax(0, 1fr); }
  .st-person { flex-wrap: wrap; }
  .st-person-actions { max-width: none; width: 100%; justify-content: flex-start; }
}

/* ---- Discover, the tour page, My tours ---------------------------------------------------------------------------- */
.tour-lede { max-width: 70ch; color: #4f5b53; line-height: 1.6; margin: -6px 0 22px; }
.tour-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 18px; align-items: end; padding: 20px 24px 14px; margin-bottom: 14px; }
.tour-filters .field { margin: 8px 0; }
.tour-filters-actions { display: flex; gap: 10px; padding-bottom: 8px; }
.tour-grid { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.tour-grid > li { display: flex; }
.tour-card { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 18px 20px 16px; border: 1px solid #d8d3c6; border-radius: 16px; background: #fffdf8; box-shadow: 0 10px 30px rgba(25, 42, 31, .06); transition: box-shadow .2s, transform .2s; }
.tour-card:hover, .tour-card:focus-within { box-shadow: 0 16px 40px rgba(25, 42, 31, .13); transform: translateY(-2px); }
.tour-card-when { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid #e3ded3; font-weight: 800; color: #173d2b !important; }
.tour-card-days { font-weight: 700; color: #68736b; font-size: 13px; white-space: nowrap; }
.tour-card-title { margin: 4px 0 0; font: 500 23px/1.15 Georgia, Cambria, serif; letter-spacing: -.02em; }
.tour-card-title a { color: inherit; text-decoration: none; }
.tour-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }       /* the whole card is the link */
.tour-card-title a:focus-visible { outline: 0; }
.tour-card:has(.tour-card-title a:focus-visible) { outline: 2px solid #22563d; outline-offset: 2px; }
.tour-card-region { margin: 0; color: #1f6b46 !important; font-weight: 700; font-size: 14px; }
.tour-card-summary { margin: 4px 0 0; color: #4f5b53 !important; line-height: 1.5; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tour-card-facts { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #56645b; }
.tour-card-facts li:first-child { font-weight: 800; color: #17251d; }
.tour-card-state { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tour-card-action { position: relative; z-index: 1; margin: 10px 0 0; }
.tour-pages { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.tour-list-section { margin: 26px 0; }
.tour-list-section h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.tour-past { margin-top: 12px; }
.tour-past summary { cursor: pointer; font-weight: 700; color: #56645b; padding: 8px 0; }

.tour-crumbs { margin: -10px 0 14px; font-size: 14px; }
.tour-crumbs a { color: #1f6b46; }
.tour-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 24px 36px; padding: 34px; margin-bottom: 18px; background: #183527; color: #fff; border-radius: 22px; }
.tour-hero .eyebrow { color: #9fcfb2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tour-hero h1 { margin: 6px 0 12px; font-size: clamp(30px, 4.5vw, 46px); overflow-wrap: anywhere; }
.tour-hero p { color: #d6e2da; margin: 0 0 6px; }
.tour-hero-dates { font-size: 18px; color: #fff !important; }
.tour-hero-by a, .tour-hero-by strong { color: #fff; }
.tour-hero-summary { margin-top: 14px !important; font-size: 17px; line-height: 1.55; max-width: 60ch; color: #e8efe9 !important; }
.tour-facts { margin: 0; align-self: end; display: grid; gap: 10px; }
.tour-facts > div { padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .09); }
.tour-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; color: #9fcfb2; }
.tour-facts dd { margin: 3px 0 0; font-size: 18px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.tour-banner { padding: 14px 18px; margin-bottom: 18px; border-radius: 14px; background: #e9efe3; border: 1px solid #c4d0c0; color: #23402f; }
.tour-banner--danger { background: #fff0ed; border-color: #e5b2a8; color: #8c2f22; }
.tour-banner--warn { background: #fff6e0; border-color: #e0b24a; color: #5c4208; }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tour-main { display: grid; gap: 18px; min-width: 0; }
.tour-side { position: sticky; top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }      /* (a card may be narrower than its widest content: nothing runs out of the column) */
/* the column holds more than the join box for the people on the tour - the convoy, the chat -: a column that is stuck and taller than the screen cannot be scrolled to its end, so it is stuck only while it is the join box alone */
.tour-side:has(.tour-convoy, .tour-chat) { position: static; }
/* the cards of the side column - the join box, the convoy, the chat - share one padding and one size of heading: the column is about 300 px wide */
.tour-side > .account-card { padding: 24px 22px; }
.tour-side > .account-card h2 { font-size: 24px; }
.tour-section { padding: clamp(20px, 3vw, 32px); }
.tour-section h2 { font-size: 28px; margin: 0 0 12px; }
.tour-day { padding: 18px 0 10px; border-top: 1px solid #e3ded3; }
.tour-day:first-of-type { border-top: 0; padding-top: 4px; }
.tour-day h3 { margin: 0 0 6px; font: 500 22px/1.2 Georgia, Cambria, serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tour-day h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; color: #526159; }
.tour-day-date { color: #56645b; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; letter-spacing: 0; }
.tour-day-title { font-weight: 500; }
.tour-day-desc { white-space: pre-line; overflow-wrap: anywhere; color: #2d3b33 !important; margin: 4px 0 8px; }
.tour-rest { padding: 10px 14px; border-radius: 10px; background: #f6f3ea; color: #56645b !important; margin: 8px 0; }
.tour-day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 42%); gap: 16px; align-items: start; margin: 8px 0; }
/* the day as one timeline: routes (cards) and entries (rows) in the order of the day, each with its planned time span; entries tied to a route point are listed inside that route */
.tour-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour-timeline > li { min-width: 0; }
.tour-route { padding: 12px 14px; border: 1px solid #e3ded3; border-radius: 12px; background: #fbf9f3; }
.tour-route-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.tour-route-head .tour-route-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tour-route-time { font-weight: 800; color: #173d2b; font-variant-numeric: tabular-nums; }
.tour-route-meta, .tour-route-places { margin: 3px 0 0; font-size: 13px; color: #56645b !important; }
.tour-stops { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed #d8d3c6; display: grid; gap: 3px; font-size: 14px; }
.tour-stops time { font-weight: 800; color: #173d2b; font-variant-numeric: tabular-nums; margin-right: 6px; }
.tour-route-links { margin: 8px 0 0; font-size: 13px; }
.tour-route-links a { color: #1f6b46; }
/* the cover of a route (G1, docs/FEATURES-2026-10-19.md: a published tour shows its routes in full): a 16:9 frame in the card; the picture fills it, and keeps its room before it arrives */
.tour-route-cover { margin: 8px 0 0; }
.tour-route-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #e9e5d9; }

/* one route of a tour on a page of its own (templates/tours/route.html, static/js/tour-route.js): the facts, the stops, the map and what a signed-in person can do with it */
.tour-route-head-card h1 { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 40px); overflow-wrap: anywhere; }
.tour-route-head-card .tour-route-when { margin: 0 0 8px; color: #2d3b33 !important; }
.tour-route-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 44%); margin-top: 18px; }
.tour-route-layout .tour-side > .account-card { padding: 22px; }
.tour-route-facts { margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; }
.tour-route-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #526159; }
.tour-route-facts dd { margin: 3px 0 0; font: 500 22px/1.15 Georgia, Cambria, serif; letter-spacing: -.02em; color: #173d2b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tour-route-stops { margin-top: 4px; padding-top: 0; border-top: 0; gap: 6px; font-size: 15px; }
.tour-route-stops .tour-stop--start, .tour-route-stops .tour-stop--end { font-weight: 600; }
.tour-route-map { height: 380px; }
.tour-route-actions .tr-row .button { width: auto; }
@media (max-width: 1000px) {
  .tour-route-layout { grid-template-columns: 1fr; }
  .tour-route-layout .tour-side { order: 0; }
  .tour-route-map { height: 300px; }
}
@media (max-width: 560px) {
  .tour-route-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
  .tour-route-facts dd { font-size: 20px; }
}
.tour-map { height: 260px; border: 1px solid #d8d3c6; border-radius: 12px; overflow: hidden; background: #dce4d8; }
.tour-map:not([data-routes]) { display: grid; place-items: center; }
.tour-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 6px 0 6px 12px; border-left: 3px solid #dfe6da; }
.tour-inner { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed #d8d3c6; display: grid; gap: 8px; }
.tour-inner-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.tour-inner-where { margin: 2px 0 0; font-size: 13px; }
.tour-item-time { font-weight: 800; color: #173d2b; font-variant-numeric: tabular-nums; }
.tour-item-title, .tour-item-place, .tour-item-desc { margin: 0; }
.tour-item-place { color: #1f6b46 !important; font-size: 14px; }
.tour-item-desc { color: #4f5b53 !important; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.tour-contact { margin: 0; display: grid; gap: 8px; }
.tour-contact > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.tour-contact dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #526159; padding-top: 3px; }
.tour-contact dd { margin: 0; overflow-wrap: anywhere; }
.tour-contact a { color: #1f6b46; }
.tour-join h2 { font-size: 26px; }
.tour-price-line { margin: 0 0 2px; font-size: 24px; color: #173d2b !important; }
.tour-price-note { margin: 0 0 8px; color: #2d3b33 !important; }
.tour-places-line { margin: 10px 0; font-weight: 700; color: #173d2b !important; }
.tour-actions-title { margin: 14px 0 6px; font: 500 21px/1.2 Georgia, Cambria, serif; letter-spacing: -.02em; }
.tour-actions-title:focus { outline: 0; }
#tour-actions .stack-form .field { margin: 10px 0; }
.button-light { background: rgba(255, 255, 255, .14); color: #fff !important; border: 1px solid rgba(255, 255, 255, .4); }
.button-light:hover { background: rgba(255, 255, 255, .24); }

@media (max-width: 1000px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-side { position: static; order: -1; }
  .tour-hero { grid-template-columns: 1fr; padding: 24px; }
  .tour-day-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tour-contact > div { grid-template-columns: 1fr; gap: 0; }
  .tour-pages { flex-direction: column; }
  .tour-item { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Photos (phase T2, docs/TOURS-T2.md section 6) ---------------------------------------------------------------------------- */
/* A picture always has its room before it arrives: the <img> carries width and height, and the frames below have fixed proportions. */
.tr-photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.tr-photo-grid > li, .tr-photo-strip > li { min-width: 0; }
.tr-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e6eee8; }
.tr-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }       /* (out of the flow: a tall picture never makes its frame taller) */
.tr-photo:hover img { transform: scale(1.04); }
.tr-photo:focus-visible { outline: 3px solid #22563d; outline-offset: 2px; }
.tr-photo-badge { position: absolute; left: 6px; bottom: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.tr-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border: 2px dashed #c9c3b3; border-radius: 14px; background: #fbf9f3; }
.tr-drop.is-over { border-color: #22563d; background: #eef4ea; }
.tr-drop.is-off { opacity: .8; }
.tr-drop .tr-hint { margin: 0; }

/* the files on their way: one row each */
.tr-uploads { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tr-uploads:empty { display: none; }
.tr-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid #e3ded3; border-radius: 10px; background: #fbf9f3; }
.tr-upload-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tr-upload-size { margin-left: 8px; color: #68736b; font-size: 12px; font-weight: 500; }
.tr-upload-actions { display: flex; gap: 6px; justify-content: flex-end; grid-column: 2; grid-row: 1 / span 2; }
.tr-upload-bar { grid-column: 1; width: 100%; height: 8px; accent-color: #22563d; }
.tr-upload-bar[hidden] { display: none; }
.tr-upload-status { grid-column: 1; font-size: 13px; color: #56645b; overflow-wrap: anywhere; }
.tr-upload[data-state="done"] { border-color: #aed0b6; background: #edf8ef; }
.tr-upload[data-state="done"] .tr-upload-status { color: #23613a; font-weight: 700; }
.tr-upload[data-state="failed"], .tr-upload[data-state="skipped"] { border-color: #e5b2a8; background: #fff0ed; }
.tr-upload[data-state="failed"] .tr-upload-status, .tr-upload[data-state="skipped"] .tr-upload-status { color: #8c2f22; }

/* the cover on a card of Discover and My tours: a fixed 3:2 frame at the top of the card */
.tour-card-cover { margin: -18px -20px 12px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px 15px 0 0; background: #e6eee8; }
.tour-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the cover at the top of the tour page */
.tour-hero--cover { overflow: hidden; }
.tour-cover { grid-column: 1 / -1; position: relative; margin: -34px -34px 6px; background: #0f2419; }
/* parts B and B3 of docs/FEATURES-2026-10-19.md: the header shows the cover in a fixed frame - whatever the picture, so a tall one cannot push the text away. On a phone (up to 700px) it is the 16:9 picture; from 701px
   the website banner, 21:9, the organiser's second crop (a <picture> in the template swaps the file): both as wide as the header, no stage, no bars; the caption stays on the picture. */
.tour-cover picture { display: block; }
.tour-cover-link { display: block; }
.tour-cover-link:focus-visible { outline: 3px solid #cde761; outline-offset: -3px; }
.tour-cover-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 701px) { .tour-cover:not(.tour-cover--stage) .tour-cover-img { aspect-ratio: 21 / 9; } }
.tour-cover-caption { position: absolute; left: 14px; bottom: 12px; max-width: calc(100% - 28px); padding: 5px 11px; border-radius: 8px; background: rgba(12, 22, 16, .72); color: #fff; font-size: 13px; line-height: 1.4; }
/* a cover that has no banner (a server without part B3): the 16:9 picture in the middle of the dark stage, as it was - 880px wide (495px high) at most */
.tour-cover--stage .tour-cover-link { max-width: 880px; margin: 0 auto; }
.tour-cover--stage .tour-cover-caption { left: calc((100% - min(100%, 880px)) / 2 + 14px); max-width: calc(min(100%, 880px) - 28px); }

/* the photos section of the tour page: the promo strip, the public photos by day, the members' album */
.tour-main { grid-template-columns: minmax(0, 1fr); }                       /* (a card may be narrower than its widest content: the promo strip scrolls inside its card instead of widening the page) */
.tour-promo { display: flex; gap: 10px; margin: 0 0 6px; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tour-promo > li { flex: 0 0 clamp(170px, 24vw, 250px); scroll-snap-align: start; }
.tour-photo-day, .tour-album-day { margin-top: 20px; }
.tour-photo-day h3, .tour-album-day h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0 0 8px; font: 500 21px/1.2 Georgia, Cambria, serif; letter-spacing: -.02em; }
.tour-album { margin-top: 12px; }
.tour-album-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 8px 0 4px; }
.tour-album-tools .field { margin: 0; flex: 1 1 220px; min-width: 0; max-width: 360px; }
.tour-album-tools .tr-row { padding-bottom: 2px; }

/* the studio's Photos tab */
.st-photos-block { margin-top: 26px; padding-top: 4px; }
.st-photos-block + .st-photos-block { border-top: 1px solid #e3ded3; padding-top: 22px; }
.st-photos-block h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 0; }
.st-photos-block h3:focus, .st-photos-day h4:focus { outline: 0; }
.st-photos-day { margin-top: 18px; }
.st-photos-day h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0 0 8px; font: 500 18px/1.2 Georgia, Cambria, serif; letter-spacing: -.02em; }
.st-photo-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.st-photo-grid[hidden] { display: none; }
.st-photo { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid #d8d3c6; border-radius: 14px; background: #fff; overflow: hidden; }
.st-photo-thumb { position: relative; display: block; flex: none; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #e6eee8; cursor: zoom-in; }
.st-photo-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.st-photo-thumb:focus-visible { outline: 3px solid #22563d; outline-offset: -3px; }
.st-photo[data-hidden="true"] .st-photo-thumb img { opacity: .45; filter: grayscale(.6); }
.st-photo-flags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.st-photo-flags .tr-chip { box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.st-photo-body { display: grid; gap: 6px; padding: 10px 12px 12px; }
.st-photo-meta { margin: 0; font-size: 12px; color: #56645b !important; overflow-wrap: anywhere; }
.st-photo-body .field { margin: 0; }
.st-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* the reported photo in the administrators' list */
.adm-photo { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 8px; }
.adm-photo-link { display: block; border-radius: 10px; overflow: hidden; }
.adm-photo img { display: block; width: 200px; height: 150px; object-fit: cover; background: #e6eee8; }
.adm-photo-text { min-width: 0; flex: 1 1 220px; }
.adm-photo-text .adm-target-meta { margin: 0 0 4px; }

/* the viewer (a native <dialog> on <body>, so none of this is under .tr-page) */
dialog.tr-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(8, 14, 10, .96); color: #fff; }
dialog.tr-lightbox:not([open]) { display: none; }
dialog.tr-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
dialog.tr-lightbox::backdrop { background: #000; }
.tr-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.tr-lb-count { margin: 0; color: #cfd8d2; font-size: 14px; font-variant-numeric: tabular-nums; }
.tr-lb-close, .tr-lb-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.tr-lb-close:hover, .tr-lb-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .28); }
.tr-lb-nav:disabled { opacity: .25; cursor: default; }
.tr-lb-close:focus-visible, .tr-lb-nav:focus-visible, .tr-lb-btn:focus-visible { outline: 3px solid #cde761; outline-offset: 2px; }
.tr-lb-stage { position: relative; display: grid; min-height: 0; padding: 0 64px; touch-action: pan-y pinch-zoom; }
.tr-lb-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.tr-lb-prev { left: 10px; }
.tr-lb-next { right: 10px; }
.tr-lb-figure { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; margin: 0; }
.tr-lb-img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.tr-lb-info { display: grid; justify-items: center; gap: 6px; max-height: 42vh; padding: 10px 18px 18px; overflow: auto; text-align: center; }
.tr-lb-info > [hidden] { display: none; }
.tr-lb-caption { margin: 0; max-width: 70ch; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.tr-lb-meta { margin: 0; color: #b9c6be; font-size: 13px; }
.tr-lb-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.tr-lb-btn { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; cursor: pointer; }
.tr-lb-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .28); }
.tr-lb-btn:disabled { opacity: .45; cursor: not-allowed; }
.tr-lb-btn--primary { background: #cde761; color: #173d2b; }
.tr-lb-btn--primary:hover:not(:disabled) { background: #dcf07f; }
.tr-lb-btn--danger { background: #8c2f22; }
.tr-lb-btn--danger:hover:not(:disabled) { background: #a63a2b; }
.tr-lb-edit { display: grid; gap: 10px; width: min(560px, 100%); text-align: left; }
.tr-lb-field { display: grid; gap: 4px; }
.tr-lb-field > span { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #cfd8d2; }
.tr-lb-field .tr-counter { color: #b9c6be; text-align: right; }
.tr-lb-edit .tr-error { margin: 0; }
.tr-lb-note { position: absolute; top: 66px; left: 50%; z-index: 3; max-width: min(520px, calc(100% - 32px)); margin: 0; padding: 9px 16px; border-radius: 10px; background: #f3f0e8; color: #173d2b; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transform: translateX(-50%); pointer-events: none; }
.tr-lb-note:empty { opacity: 0; }
.tr-lb-note.is-error { background: #fff0ed; color: #8c2f22; }

@media (max-width: 1000px) {
  .tour-cover { margin: -24px -24px 4px; }
}
@media (max-width: 700px) {
  .tr-lb-stage { padding: 0 8px; }
  .tr-lb-prev { left: 6px; }
  .tr-lb-next { right: 6px; }
  .tr-lb-info { max-height: 46vh; }
  .st-photo-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .tr-photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .tr-photo img { transition: none; }
  .tr-photo:hover img { transform: none; }
}

/* ---- the weather of a day (docs/TOUR-WEATHER.md, static/js/tour-weather.js): members and organisers, at the top of each day, above its timeline ------------------------- */
.tour-weather { margin: 10px 0 14px; }
.tour-weather[hidden] { display: none; }
.tour-day .tour-weather-h { margin: 0 0 8px; }
.tour-weather-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.tour-weather-card { min-width: 0; padding: 12px 14px; border: 1px solid #cfe0d4; border-left: 5px solid #22563d; border-radius: 12px; background: #f1f7f2; color: #17251d; }
.tour-weather-card p { margin: 3px 0 0; }
.tour-weather-card .tour-weather-label, .tour-weather-way .tour-weather-label { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #3d5246; }
.tour-weather-where { overflow-wrap: anywhere; font-size: 14px; }
.tour-weather-where time { font-variant-numeric: tabular-nums; font-weight: 700; }
.tour-weather-now { font-size: 15px; }
.tour-weather-temp { font: 500 22px/1.15 Georgia, Cambria, serif; letter-spacing: -.02em; color: #173d2b; font-variant-numeric: tabular-nums; }
.tour-weather-icon { font-size: 20px; line-height: 1; }
.tour-weather-headline { font-weight: 700; }
.tour-weather-slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; }
.tour-weather-slot-name { font-weight: 700; }
.tour-weather-warnings { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tour-weather-warning { white-space: normal; }
.tour-weather-way { margin: 10px 0 0; padding: 10px 14px; border: 1px solid #cfe0d4; border-radius: 12px; background: #f6faf6; color: #17251d; overflow-wrap: anywhere; }
.tour-weather-way p { margin: 0; }
.tour-weather-way .tour-weather-warnings { margin-top: 6px; }
.tour-weather-range { font-weight: 700; font-variant-numeric: tabular-nums; }
.tour-weather .tr-hint { margin: 6px 0 0; }
.tour-weather-later { margin: 6px 0; }

/* ---- the organiser's look (phase T5, docs/TOURS-T5.md) ---------------------------------------------------------------------------- */
/* Part 1, the tour page. tour_pages.tour_theme puts the colours on <body> as custom properties (--tour-primary, --tour-on-primary, --tour-primary-alt, --tour-link,
 * --tour-soft, --tour-accent, --tour-accent-ui) and the classes tour-look / tour-look--primary / tour-look--accent; <body>, so that the dialogs and the viewer, which live
 * there, follow. Only brand colours are touched: the header, buttons, links, chips, native controls. Safety and state colours - errors, warnings, banners, the state chips
 * (cancelled, closed, accepted, under way ...), danger buttons, closures and dangers, the lines of the map - are not, and neither is anything without the class (no look
 * = the site's own colours). Text colours are derived so that they are readable on what they sit on (static/js/tour-theme.js explains how). */
.tour-hero .tour-logo { margin: 0 0 14px; }
.tour-logo-img { display: block; height: 64px; width: auto; max-width: min(260px, 100%); padding: 8px 12px; box-sizing: border-box; object-fit: contain; background: #fff; border: 1px solid rgba(23, 37, 29, .16); border-radius: 12px; }
.tour-card-logo { display: inline-block; height: 20px; width: auto; max-width: 64px; margin-right: 6px; vertical-align: -5px; object-fit: contain; }

/* the header */
body.tour-look--primary .tr-page .tour-hero { background: var(--tour-primary); color: var(--tour-on-primary); }
body.tour-look--primary .tr-page .tour-hero h1,
body.tour-look--primary .tr-page .tour-hero p,
body.tour-look--primary .tr-page .tour-hero .eyebrow,
body.tour-look--primary .tr-page .tour-hero-dates,
body.tour-look--primary .tr-page .tour-hero-by a,
body.tour-look--primary .tr-page .tour-hero-by strong,
body.tour-look--primary .tr-page .tour-hero-summary,
body.tour-look--primary .tr-page .tour-facts dt,
body.tour-look--primary .tr-page .tour-facts dd,
body.tour-look--primary .tr-page .tour-hero a:not(.button) { color: var(--tour-on-primary) !important; }
body.tour-look--primary .tr-page .tour-hero a:not(.button) { text-decoration: underline; }
body.tour-look--primary .tr-page .tour-facts > div { background: var(--tour-primary-alt); }
body.tour-look--primary .tr-page .tour-hero .button-light { color: var(--tour-on-primary) !important; border-color: var(--tour-on-primary); background: var(--tour-primary-alt); }
body.tour-look--primary .tr-page .tour-hero .button-light:hover { background: var(--tour-primary); }
body.tour-look--accent .tr-page .tour-hero { border-bottom: 6px solid var(--tour-accent); }
body.tour-look--accent .tour-logo-img { border: 2px solid var(--tour-accent); }
body.tour-look--accent .tr-page .tour-section > h2::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--tour-accent); }

/* buttons */
body.tour-look--primary .tr-page .button-primary, body.tour-look--primary .tr-dialog .button-primary { background: var(--tour-primary); color: var(--tour-on-primary); box-shadow: inset 0 0 0 2px var(--tour-link); }
body.tour-look--primary .tr-page a.button-primary, body.tour-look--primary .tr-dialog a.button-primary { color: var(--tour-on-primary); }
body.tour-look--primary .tr-page .button-primary:hover:not(:disabled), body.tour-look--primary .tr-dialog .button-primary:hover:not(:disabled) { background: var(--tour-primary-alt); }
body.tour-look--primary .tr-page .button-secondary, body.tour-look--primary .tr-dialog .button-secondary { background: var(--tour-soft); color: var(--tour-link); }
body.tour-look--primary .tr-page a.button-secondary, body.tour-look--primary .tr-dialog a.button-secondary { color: var(--tour-link); }

/* links and the text that carries the brand colour */
body.tour-look--primary .tr-page a:not(.button):not(.tr-photo):not(.tour-cover-link) { color: var(--tour-link); }
body.tour-look--primary .tr-page .st-link, body.tour-look--primary .tr-dialog .st-link { color: var(--tour-link); }
body.tour-look--primary .tr-page .tour-route-time, body.tour-look--primary .tr-page .tour-stops time, body.tour-look--primary .tr-page .tour-item-time,
body.tour-look--primary .tr-page .tour-day-n { color: var(--tour-link); }
body.tour-look--primary .tr-page .tour-price-line, body.tour-look--primary .tr-page .tour-places-line, body.tour-look--primary .tr-page .tour-item-place { color: var(--tour-link) !important; }

/* chips: the neutral ones and the informational ones; every state chip keeps its own colours */
body.tour-look--primary .tr-page .tr-chip:is(:not([class*="tr-chip--"]), .tr-chip--info) { background: var(--tour-soft); color: var(--tour-link); }

/* native controls (check boxes, radio buttons, progress bars): the accent colour when it is easy to see, else the link colour */
/* the secondary colour (part C of docs/FEATURES-2026-10-19.md: the old accent): secondary buttons, with the text colour that reads on it */
body.tour-look--secondary .tr-page .button-secondary, body.tour-look--secondary .tr-dialog .button-secondary { background: var(--tour-secondary); color: var(--tour-on-secondary); }
body.tour-look--secondary .tr-page a.button-secondary, body.tour-look--secondary .tr-dialog a.button-secondary { color: var(--tour-on-secondary); }
body.tour-look--secondary .tr-page .button-secondary:hover:not(:disabled), body.tour-look--secondary .tr-dialog .button-secondary:hover:not(:disabled) { background: var(--tour-secondary); box-shadow: inset 0 0 0 2px var(--tour-on-secondary); }
/* the Background: the tour's area - the page's own column, not the site's header and footer. The cards in it keep the site's card colour (and their own text colours); what sits
   on the area itself reads in the text colour that fits it (the crumbs). Safety and state colours are not touched. */
body.tour-look--background .tr-page { background: var(--tour-background); color: var(--tour-on-background); border-radius: clamp(16px, 3.4vw, 22px); padding: clamp(12px, 3.2vw, 24px); }
body.tour-look--background .tr-page .account-card { color: #17251d; }
body.tour-look--background .tr-page .tour-crumbs, body.tour-look--background .tr-page .tour-crumbs a { color: var(--tour-on-background) !important; }
body.tour-look--background .tr-page .tour-crumbs a:focus-visible { outline-color: var(--tour-on-background); }
body.tour-look .tr-page, body.tour-look .tr-dialog { accent-color: var(--tour-accent-ui, var(--tour-link, auto)); }
body.tour-look .tr-page .tr-upload-bar { accent-color: var(--tour-accent-ui, var(--tour-link, #22563d)); }

/* the weather cards of a day (docs/TOUR-WEATHER.md TW-8): the tour's own surface - its tint, with the link colour for the edge and the figures (both are worked out to read on that tint); the frost and wind chips are state colours and stay */
body.tour-look--primary .tr-page .tour-weather-card, body.tour-look--primary .tr-page .tour-weather-way { background: var(--tour-soft); border-color: var(--tour-link); }
body.tour-look--primary .tr-page .tour-weather-card .tour-weather-label, body.tour-look--primary .tr-page .tour-weather-way .tour-weather-label, body.tour-look--primary .tr-page .tour-weather-temp { color: var(--tour-link); }
body.tour-look--accent .tr-page .tour-weather-card { border-left-color: var(--tour-accent); }
body.tour-look--primary .tr-page .tr-chip.tour-weather-warning[data-warning="frost"] { background: #e4ecf6; color: #214a78; }   /* (a look recolours the "info" chip; frost is a warning and keeps the colours of .tr-chip--info - "Strong wind" is a "warn" chip, which no look touches) */

/* the focus is visible in every look: the link colour has 4.5:1 on the paper, the text colour on the header has it on the primary colour */
body.tour-look--primary .tr-page :focus-visible, body.tour-look--primary .tr-dialog :focus-visible, body.tour-look--primary .tr-page .tr-photo:focus-visible { outline-color: var(--tour-link); }
body.tour-look--primary .tr-page .tour-hero :focus-visible { outline-color: var(--tour-on-primary); }

/* ---- the Look tab of the studio (phase T5, docs/TOURS-T5.md section 1) -------------------------------------------------------------------- */
.lk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 32px; align-items: start; }
.lk-preview-box h3 { margin-top: 22px; }
.lk-colour { margin: 12px 0 20px; }
.lk-label { display: block; margin-bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #526159; }
.lk-colour-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lk-picker { width: 56px; height: 44px; padding: 3px; border: 1px solid #b9b3a2; border-radius: 10px; background: #fff; cursor: pointer; }
.lk-picker:disabled { cursor: not-allowed; opacity: .5; }
.lk-hex { width: 9.5em; min-height: 44px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
.lk-hex[aria-invalid="true"] { border-color: #b3321f; }
.lk-msg { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #4f5b53 !important; }
.lk-msg:empty { display: none; }
.lk-msg--ok { color: #23613a !important; }
.lk-msg--warn { padding: 9px 12px; border-radius: 9px; background: #fff6e0; border: 1px solid #e0b24a; color: #5c4208 !important; }
/* The check's words under a colour field arrive when a field is left, or a moment after the last key: they must not push what is below them - the Save button - away from under a
   press, or a click right after typing is lost. So the room is kept (lk-msg[data-kept], set by studio-look.js while the field has text): two lines, in a box of the same size for the
   words and for a warning. */
.lk-colour .lk-msg { padding: 9px 12px; border: 1px solid transparent; border-radius: 9px; }
.lk-colour .lk-msg--warn { border-color: #e0b24a; }
.lk-colour .lk-msg[data-kept="true"] { display: block; min-height: calc(2.9em + 20px); }
.lk-colour .tr-hint { display: block; margin: 8px 0 0; }
.lk-logo-check { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 12px; }
.lk-plate { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; padding: 6px 10px; box-sizing: border-box; border-radius: 10px; background: #fff; border: 1px solid rgba(23, 37, 29, .2); }
.lk-plate--dark { background: #1c1c1e; border-color: rgba(255, 255, 255, .3); }
.lk-plate--big { flex-direction: column; gap: 4px; height: 92px; flex: 1 1 150px; max-width: 220px; }
.lk-plate-text { font-size: 11px; font-weight: 700; color: #56645b; }
.lk-plate--dark .lk-plate-text { color: #d0d3ce; }
.lk-plate .lk-logo { display: block; max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.lk-plate:not(.lk-plate--big):has(.lk-logo[hidden]) { display: none; }
#st-look-logo-progress { width: 100%; margin-top: 8px; }
.lk-form .tr-row { margin-top: 8px; }

.lk-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.lk-pane { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 14px; border-radius: 16px; border: 1px solid #d8d3c6; background: #f3f0e8; color: #17251d; }
.lk-pane[data-appearance="dark"] { background: #101512; border-color: #2c2c2e; color: #f2f2f7; }
.lk-pane-title { margin: 0 !important; font: 800 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif !important; letter-spacing: .12em; text-transform: uppercase; color: #526159; }
.lk-pane[data-appearance="dark"] .lk-pane-title { color: #b4b4bb; }
/* The phone: the Background the organiser chose (light) or the dark the app works out from it (dark: tour-theme.js darkBackground), with a navigation bar that shows it, a list and a
   card on it (derived from it), the primary and the secondary button, and a tab bar whose selected tab takes the primary colour. studio-look.js sets the --lk-* values. */
.lk-phone { width: 100%; max-width: 250px; min-height: 380px; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 6px solid #16211b; border-radius: 28px; background: var(--lk-bg-light, #f2f2f7); color: var(--lk-text-light, #17251d); }
.lk-pane[data-appearance="dark"] .lk-phone { border-color: #3a3a3c; background: var(--lk-bg-dark, #000); color: var(--lk-text-dark, #f2f2f7); }
.lk-phone-bar { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--lk-sep-light, #d1d1d6); }
.lk-pane[data-appearance="dark"] .lk-phone-bar { border-bottom-color: var(--lk-sep-dark, #3a3a3c); }
.lk-phone-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.2; }
.lk-phone-bar .lk-plate { height: 30px; min-width: 30px; padding: 3px 6px; border-radius: 7px; flex: none; }
.lk-phone-bar .lk-logo { max-height: 22px; }
.lk-phone-body { display: grid; gap: 10px; align-content: start; padding: 12px; }
.lk-list { overflow: hidden; border-radius: 12px; background: var(--lk-card-light, #fff); color: var(--lk-card-text-light, #17251d); }
.lk-pane[data-appearance="dark"] .lk-list { background: var(--lk-card-dark, #1c1c1e); color: var(--lk-card-text-dark, #f2f2f7); }
.lk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }
.lk-row + .lk-row { border-top: 1px solid var(--lk-sep-light, #e5e5ea); }
.lk-pane[data-appearance="dark"] .lk-row + .lk-row { border-top-color: var(--lk-sep-dark, #3a3a3c); }
.lk-row-text { display: grid; min-width: 0; }
.lk-row-title { font-weight: 800; font-size: 13px; }
.lk-row-meta { font-size: 11px; color: var(--lk-muted-light, #5c5c63); }
.lk-pane[data-appearance="dark"] .lk-row-meta { color: var(--lk-muted-dark, #b4b4bb); }
.lk-chevron { flex: none; font-size: 18px; line-height: 1; font-weight: 800; color: var(--lk-tint-light, #245a3b); }
.lk-pane[data-appearance="dark"] .lk-chevron { color: var(--lk-tint-dark, #8fd0a8); }
.lk-card { position: relative; display: grid; gap: 6px; padding: 12px 12px 12px 17px; overflow: hidden; border-radius: 12px; background: var(--lk-card-light, #fff); color: var(--lk-card-text-light, #17251d); }
.lk-pane[data-appearance="dark"] .lk-card { background: var(--lk-card-dark, #1c1c1e); color: var(--lk-card-text-dark, #f2f2f7); }
.lk-card-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--lk-accent, transparent); }
.lk-card-title { margin: 0; font-weight: 800; font-size: 14px; }
.lk-card-meta { margin: 0; font-size: 12px; color: var(--lk-muted-light, #5c5c63); }
.lk-pane[data-appearance="dark"] .lk-card-meta { color: var(--lk-muted-dark, #b4b4bb); }
.lk-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0; }
.lk-chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--lk-soft-light, #a9bddb); color: var(--lk-strong-light, #084298); }
.lk-pane[data-appearance="dark"] .lk-chip { background: var(--lk-soft-dark, #5d646d); color: var(--lk-strong-dark, #d6e9ff); }
.lk-link { font-size: 12px; font-weight: 800; text-decoration: underline; color: var(--lk-link-light, #245a3b); }
.lk-pane[data-appearance="dark"] .lk-link { color: var(--lk-link-dark, #8fd0a8); }
.lk-buttons { display: grid; gap: 8px; }
.lk-button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 9px; font-weight: 800; font-size: 13px; background: var(--lk-primary, #183527); color: var(--lk-on-primary, #fff); box-shadow: none; }
/* the phone: a secondary button is a bordered one, as the app draws it - its text in the colour that reads, on its own colour at about a third over the screen */
.lk-phone .lk-button--secondary { background: var(--lk-fill-light, #a9bddb); color: var(--lk-strong-light, #084298); }
.lk-pane[data-appearance="dark"] .lk-phone .lk-button--secondary { background: var(--lk-fill-dark, #4b5259); color: var(--lk-strong-dark, #d6e9ff); }
/* the head of the page: the website's buttons - the primary button has a ring in the link colour (its edge on a light primary), the secondary one is filled */
.lk-actions .lk-button:not(.lk-button--secondary) { box-shadow: inset 0 0 0 2px var(--lk-page-link-light, #245a3b); }
.lk-pane[data-appearance="dark"] .lk-actions .lk-button:not(.lk-button--secondary) { box-shadow: none; }
.lk-actions .lk-button--secondary { background: var(--lk-second-fill-light, #e6eee8); color: var(--lk-second-text-light, #245a3b); box-shadow: none; }
.lk-pane[data-appearance="dark"] .lk-actions .lk-button--secondary { background: var(--lk-second-fill-dark, #e6eee8); color: var(--lk-second-text-dark, #245a3b); }
.lk-phone-tabs { display: flex; justify-content: space-around; padding: 8px 6px 10px; border-top: 1px solid var(--lk-sep-light, #d1d1d6); background: var(--lk-card-light, #f9f9f9); font-size: 11px; font-weight: 700; color: var(--lk-muted-light, #5c5c63); }
.lk-pane[data-appearance="dark"] .lk-phone-tabs { border-top-color: var(--lk-sep-dark, #3a3a3c); background: var(--lk-card-dark, #1c1c1e); color: var(--lk-muted-dark, #b4b4bb); }
.lk-tab.is-active { color: var(--lk-tint-light, #245a3b); }
.lk-pane[data-appearance="dark"] .lk-tab.is-active { color: var(--lk-tint-dark, #8fd0a8); }
/* the head of the tour page on the tour's area, which has the Background too */
.lk-page { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--lk-page-light, #f3f0e8); }
.lk-pane[data-appearance="dark"] .lk-page { background: var(--lk-page-dark, #000); }
.lk-hero { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--lk-primary, #183527); color: var(--lk-on-primary, #fff); border-bottom: 6px solid var(--lk-accent, transparent); }
.lk-hero > * { margin: 0; color: inherit; }
.lk-hero .lk-plate { justify-self: start; height: 48px; margin-bottom: 8px; }
.lk-hero .lk-logo { max-height: 36px; }
.lk-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lk-hero .lk-hero-title { margin: 2px 0 4px; font: 500 24px/1.15 Georgia, Cambria, serif; letter-spacing: -.02em; }
.lk-hero-dates { font-weight: 700; font-size: 14px; }
.lk-hero .lk-hero-box { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--lk-alt, #22563d); font-weight: 700; font-size: 14px; }
.lk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.lk-actions .lk-link { color: var(--lk-page-link-light, #245a3b); }
.lk-pane[data-appearance="dark"] .lk-actions .lk-link { color: var(--lk-page-link-dark, #8fd0a8); }
.lk-pane[data-appearance="dark"] .lk-plate:not(.lk-plate--light) { background: #1c1c1e; border-color: rgba(255, 255, 255, .3); }

@media (max-width: 1000px) {
  .lk-layout { grid-template-columns: 1fr; }
}

/* ---- touch: every control at least 44 px ------------------------------------------------------------------------ */
@media (pointer: coarse) {
  .tr-page .button, .tr-dialog .button, .tr-page input:not([type="checkbox"]):not([type="radio"]), .tr-page select, .tr-dialog input:not([type="checkbox"]):not([type="radio"]), .tr-dialog select { min-height: 44px; }
  .tr-page .button.tr-small, .tr-dialog .button.tr-small { padding-top: 10px; padding-bottom: 10px; }
  .msg-options, .tr-dialog .modal-close { width: 44px; height: 44px; }
  .msg-options { top: 0; right: 0; }
  .tr-page input[type="checkbox"], .tr-page input[type="radio"] { width: 24px; height: 24px; }
  .tr-lb-btn { min-height: 44px; }
  .st-handle { min-width: 44px; min-height: 44px; }
  .st-start { min-height: 44px; }
  .tr-page .button.st-icon { min-width: 44px; }
}
