/* ==========================================================================
   61  Folio — the Stops room: the journey's stops, a stop's page, its forms, the way
       between stops, and the map's chrome
   --------------------------------------------------------------------------
   Built 2026-09-30 on css/60-folio.css. Drawn by public/04-stops.js (the stops, the
   pages on the stack) and public/03-map-plan.js (the map). The boards: Trip, StopDetail,
   StopNew, AddStop, EditStop, StopName, PlaceSearch, Leg, LegPicker, Map, LoadingTrip.

   Every selector begins `.folio`, so nothing here reaches a room that has not moved
   (dev/assets.test.js holds this file to the same rule as 60). The page #tripMapPage
   carries the class; a page pushed on the stack by this room adds it to itself
   (foPage). The page's frame (bar, sheet, tabs, the map's chrome) is css/66-folio-trip.css.
   ========================================================================== */

/* The page's frame and the map's chrome: css/66-folio-trip.css (2026-10-01). */

/* ---- From a booking (FromBooking board) ------------------------------------------ */
/* The sheet a stop's stays and a leg's ticket share (04-stops.js openFromBookingSheet): the explanation,
   Choose a file as a dashed box, the files as rows, Cancel and Upload; then Boswell reading on the band; or
   the red line when nothing could be read. */
.folio.fs-book .fs-book__body { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.folio.fs-book .fs-book__say { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.folio.fs-book .fs-book__choose { height: 96px; padding: 0 16px; border: 1px dashed rgba(26,22,20,0.4); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 500; color: var(--fo-ink); cursor: pointer; }
.folio.fs-book .fs-book__choose .fo-quiet { font-size: 12px; font-weight: 400; }
/* By email (38c-boswell-mail.js boswellMailSheet): the traveller's address in the dashed box Choose a file uses, the copy
   mark beside it (.ft-copy, a ticket's own). The address breaks only before its @ (its two halves each hold a line at 375);
   a very long name breaks where it must. */
.folio.fs-book .bo-mailsheet__addr { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed rgba(26,22,20,0.4); }
.folio.fs-book .bo-mailsheet__line { flex: 1; min-width: 0; font-family: var(--fo-mono); font-size: 14px; line-height: 1.5; color: var(--fo-ink); user-select: all; }
.folio.fs-book .bo-mailsheet__line > span { white-space: nowrap; }
@supports (overflow-wrap: anywhere) { .folio.fs-book .bo-mailsheet__line > span { white-space: normal; overflow-wrap: anywhere; word-break: keep-all; } }
.folio.fs-book .fs-book__rows { display: flex; flex-direction: column; }
.folio.fs-book .fs-book__row { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--fo-hair); }
.folio.fs-book .fs-book__row .fo-tag { flex: none; }
.folio.fs-book .fs-book__file { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.folio.fs-book .fs-book__file > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.folio.fs-book .fs-book__file .fo-quiet { font-size: 12px; }
.folio.fs-book .fs-book__more { align-self: flex-start; min-height: 44px; font-size: 12px; }
.folio.fs-book .fs-book__acts { display: flex; gap: 10px; }
.folio.fs-book .fs-book__acts .fo-btn { flex: 1; }
.folio.fs-book .fs-book__note { margin: 0; font-size: 12px; line-height: 1.5; }
.folio.fs-book .fs-book__reading { margin-top: 14px; padding: 14px; background: var(--fo-band); display: flex; flex-direction: column; gap: 10px; }
.folio.fs-book .fs-book__reading-head { display: flex; justify-content: space-between; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio.fs-book .fs-book__type { font-family: 'Courier Prime', 'Courier New', ui-monospace, monospace; font-size: 14px; line-height: 1.5; }
.folio.fs-book .fs-book__caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--fo-ink); animation: fs-book-blink 1s steps(1) infinite; }
@keyframes fs-book-blink { 50% { opacity: 0; } }
.folio.fs-book .fs-book__fault { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--fo-red); }

/* ---- the Contents (TripContents board) ------------------------------------------ */
/* The side sheet the trip bar's Contents opens. It lives on <body> once opened (03-map-plan.js), so it
   carries .folio itself; 17zc-trip-menu.css keeps its geometry (#tripDetailsDrawer: fixed, right, 82%
   to 340px, the slide) and everything drawn here is named again. */
.folio#tripDetailsDrawer { background: var(--fo-paper); overflow: hidden; }   /* no left rule: it drew a pale line down the photograph (owner, 2026-10-01) */
.folio#tripDetailsDrawer .fc-bar { flex: none; height: 44px; padding: 0 20px; border-bottom: 1px dashed var(--fo-hair); }
.folio#tripDetailsDrawer .fc-bar .fo-bar__title { margin: 0; }
.folio#tripDetailsDrawer .fc-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
/* The plate: the photograph, 176px, with the card over its foot. No photograph: the paper's own hatching. */
.folio#tripDetailsDrawer .fc-plate { position: relative; flex: none; height: 176px; background-color: #CFCBC2; background-image: repeating-linear-gradient(135deg, rgba(26,22,20,.06) 0 1px, transparent 1px 7px); background-size: cover; background-position: center; }
.folio#tripDetailsDrawer .fc-plate[style*="url"] { background-image: none; background-size: cover; }
.folio#tripDetailsDrawer .fc-card { position: absolute; left: 20px; right: 20px; bottom: -28px; padding: 12px 14px; background: var(--fo-paper); border: 1px solid var(--fo-rule); display: flex; flex-direction: column; gap: 4px; }
.folio#tripDetailsDrawer .fc-card__name { font-family: var(--fo-serif); font-size: var(--fo-display); letter-spacing: -0.02em; line-height: 1.05; color: var(--fo-ink); }
.folio#tripDetailsDrawer .fc-card__line { font-size: 12px; color: var(--fo-graphite); }
/* With, So far: two ruled facts under the card. */
.folio#tripDetailsDrawer .fc-facts { padding: 42px 20px 0; display: flex; flex-direction: column; }
.folio#tripDetailsDrawer .fc-fact { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--fo-hair); }
.folio#tripDetailsDrawer .fc-fact__label { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); padding-top: 3px; }
.folio#tripDetailsDrawer .fc-fact__words { font-size: 12px; line-height: 1.45; color: var(--fo-ink); }
/* The rooms, as rows: the name, and on the right what the room holds and the way mark. */
.folio#tripDetailsDrawer .fc-rows { padding: 4px 20px 0; display: flex; flex-direction: column; }
.folio#tripDetailsDrawer .fc-row { min-height: 44px; padding: 0; border: none; border-bottom: 1px dashed var(--fo-hair); background: transparent; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--fo-ink); font: inherit; text-align: left; cursor: pointer; }
.folio#tripDetailsDrawer .fc-row__name { font-size: 14px; font-weight: 500; }
.folio#tripDetailsDrawer .fc-row__end { display: flex; align-items: center; gap: 10px; min-width: 0; }
.folio#tripDetailsDrawer .fc-row__sub { font-size: 12px; color: var(--fo-graphite); text-align: right; }
.folio#tripDetailsDrawer .fc-row__way { color: var(--fo-pale); font-size: 16px; }
.folio#tripDetailsDrawer .fc-row:focus-visible { outline: none; box-shadow: inset 0 -2px 0 0 var(--fo-ink); }
/* A room not wired yet (Spreadsheet): the row stands, dimmed, and is not a press. */
.folio#tripDetailsDrawer .fc-row.is-soon { color: var(--fo-pale); cursor: default; }
.folio#tripDetailsDrawer .fc-row.is-soon .fc-row__sub { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-pale); }
/* The foot: Make a book on the band, Share the plan dashed and stamped Soon. A past journey's book stands above the rows. */
.folio#tripDetailsDrawer .fc-foot { padding: 10px 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.folio#tripDetailsDrawer .fc-book-top { padding: 12px 20px 0; }
.folio#tripDetailsDrawer .fc-book-top:empty { display: none; }
.folio#tripDetailsDrawer .fc-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; background: var(--fo-band); color: var(--fo-ink); text-decoration: none; }
.folio#tripDetailsDrawer .fc-band.is-ready { cursor: pointer; }
.folio#tripDetailsDrawer .fc-band.is-ready:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--fo-ink); }
.folio#tripDetailsDrawer .fc-band--soon { background: transparent; border: 1px dashed var(--fo-hair-open); }
.folio#tripDetailsDrawer .fc-band__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.folio#tripDetailsDrawer .fc-band__eyebrow { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio#tripDetailsDrawer .fc-band--soon .fc-band__eyebrow { color: var(--fo-graphite); }
.folio#tripDetailsDrawer .fc-band__sub { font-size: 12px; color: var(--fo-graphite); }
.folio#tripDetailsDrawer .fc-band--soon .fc-band__sub { color: var(--fo-graphite); }
.folio#tripDetailsDrawer .fc-band__way { color: var(--fo-graphite); font-size: 16px; }
.folio#tripDetailsDrawer .fc-band__stamp { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio#tripDetailsDrawer .fc-band__stamp.is-changed { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; color: var(--fo-red); border: 1px solid var(--fo-red); }
/* Short screens: the plate gives way, as the deck log's drawer did. */
@media (max-height: 640px) {
    .folio#tripDetailsDrawer .fc-plate { height: 120px; }
    .folio#tripDetailsDrawer .fc-facts { padding-top: 36px; }
}

/* ---- the head of the Stops view ----------------------------------------------- */
.folio .fs-head { padding: 16px var(--fo-gutter) 0; display: flex; flex-direction: column; gap: 8px; }
.folio .fs-head--stop { gap: 6px; }
.folio .fs-title { margin: 0; font-family: var(--fo-serif); font-weight: 400; font-size: var(--fo-display); letter-spacing: -0.03em; line-height: 1; }
.folio .fs-title__to { font-style: italic; color: var(--fo-graphite); }
.folio .fs-sub { font-size: 12px; color: var(--fo-graphite); }
.folio .fs-pad { padding: 0 var(--fo-gutter); }

/* The scale of the journey's nights, and its legend. */
.folio .fs-scale { display: flex; flex-direction: column; padding: 16px var(--fo-gutter) 0; }
.folio .fs-scalebar { position: sticky; top: 0; z-index: 2; background: var(--fo-paper); }
.folio .fs-scale__head { display: flex; justify-content: space-between; margin-bottom: 6px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fs-scale .is-ink { color: var(--fo-ink); }
.folio .fs-scale__cells { display: grid; gap: 2px; }
.folio .fs-scale__cells > * { height: 12px; }
.folio .fs-scale__cells .fo-bone { height: 10px; }
.folio .fs-cell { display: block; box-sizing: border-box; background: var(--fo-band); }
.folio .fs-cell.is-bed { background: var(--fo-ink); }
.folio .fs-cell.is-travel { background: var(--fo-pale); }
.folio .fs-cell.is-open { border: 1px dashed var(--fo-red); background: rgba(196,17,31,0.08); }
.folio .fs-cell.is-taken { background: #CFCBC2; }
.folio .fs-cell.is-free { border: 1.5px solid var(--fo-ink); background: var(--fo-card); }
.folio .fs-cell.is-taking { background: var(--fo-ink); }
.folio .fs-scale__marks { display: grid; gap: 2px; height: 7px; margin-top: 3px; }
.folio .fs-scale__marks > span { display: flex; justify-content: center; }
.folio .fs-tri { display: block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid var(--fo-red); }
.folio .fs-scale__ends { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fs-scale__ends .is-ink { color: var(--fo-ink); }
.folio .fs-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 12px var(--fo-gutter) 16px; border-bottom: 1px dashed var(--fo-hair); }
.folio .fs-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fs-legend .fs-cell { width: 12px; height: 7px; }
.folio .fs-legend .fs-tri { border-left-width: 4px; border-right-width: 4px; }

/* ---- the ledger: begins, legs, stops, gaps, finishes --------------------------- */
.folio .fs-ledger { display: flex; flex-direction: column; padding: 0 var(--fo-gutter); }
.folio .fs-terminus { display: flex; justify-content: space-between; padding: 14px 0; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fs-terminus .is-ink { color: var(--fo-ink); }
.folio .fs-sum { margin: 0; padding-top: 12px; border-top: 1px dashed var(--fo-hair); font-size: 12px; line-height: 1.5; color: var(--fo-graphite); }
.folio .fs-sum.is-fault { margin-top: 6px; padding-top: 0; border-top: none; color: var(--fo-red); }
.folio .fs-empty { margin: 10px 0 0; font-family: var(--fo-serif); font-style: italic; font-size: 16px; line-height: 1.4; }
.folio .fs-first { height: 150px; width: 100%; border: 1px dashed var(--fo-hair-open); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--fo-ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.folio .fs-first__plus { font-size: 16px; color: var(--fo-red); }
.folio .fs-fault { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px dashed var(--fo-hair); border-bottom: 1px dashed var(--fo-hair); font-size: 14px; color: var(--fo-red); }
.folio .fs-fault .fo-text { align-self: flex-start; font-size: 12px; }

/* The thread a leg hangs on. */
.folio .fs-thread { display: flex; align-items: stretch; gap: 10px; padding-left: 18px; }
.folio .fs-thread__line { width: 0; flex-shrink: 0; border-left: 1px dashed var(--fo-hair-open); }
.folio .fs-leg { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border: none; background: transparent; color: var(--fo-ink); text-align: left; cursor: pointer; }
.folio .fs-leg.is-read { cursor: default; }
.folio .fs-leg.is-open { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
.folio .fs-leg__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.folio .fs-leg__row + .fs-leg__row { margin-top: 6px; }
.folio .fs-leg__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex-grow: 1; }
.folio .fs-leg__open { padding: 0; border: none; background: transparent; text-align: left; color: var(--fo-ink); cursor: pointer; min-height: 44px; justify-content: center; }
.folio .fs-leg__line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.folio .fs-leg__line .fs-leg__mode { flex: none; }
.folio .fs-leg__line .fs-leg__route { min-width: 0; }
.folio .fs-al .fs-leg__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.folio .fs-leg__piece { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.folio .fs-leg__mode { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); white-space: nowrap; }
.folio .fs-leg__route { font-size: 12px; }
.folio .fs-leg__sub { font-size: 12px; color: var(--fo-graphite); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.folio .fs-leg__add { font-size: 14px; font-weight: 500; color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; }
.folio .fs-leg__none { font-size: 14px; color: var(--fo-graphite); }
.folio .fs-leg__n { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); white-space: nowrap; flex-shrink: 0; width: 44px; }

/* A stop's card, with the panel Remove slides in from under it. */
.folio .fs-swipe { position: relative; overflow: hidden; }
.folio .fs-swipe__under { position: absolute; top: 0; right: 0; bottom: 0; width: 104px; background: var(--fo-ink); display: flex; align-items: center; justify-content: center; visibility: hidden; }
.folio .fs-swipe.is-swiping .fs-swipe__under, .folio .fs-swipe.is-open .fs-swipe__under { visibility: visible; }
.folio .fs-swipe__remove { width: 100%; height: 100%; border: none; background: transparent; color: var(--fo-card); font-size: 14px; font-weight: 500; cursor: pointer; }
.folio .fs-swipe:not(.is-open) .fs-swipe__remove { pointer-events: none; }
.folio .fs-stop { position: relative; padding: 16px 18px 12px; border: 1px dashed var(--fo-hair-firm); background: rgba(253,252,250,0.6); touch-action: pan-y; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.folio .fs-swipe.is-open .fs-stop { background: #FBFAF7; }
.folio .fs-stop.is-lifted { z-index: 5; background: var(--fo-card); border: 1px solid var(--fo-ink); box-shadow: 0 18px 30px -12px rgba(26,22,20,0.45); transition: none; }
.folio .fs-swipe.is-source { overflow: visible; }
.folio .fs-slot { margin: 10px 0; min-height: 44px; border: 1.5px dashed var(--fo-ink); display: flex; align-items: center; padding: 0 12px; box-sizing: border-box; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .fs-slot.is-refused { border-color: var(--fo-red); color: var(--fo-red); font-family: var(--fo-sans); font-size: 12px; letter-spacing: 0; text-transform: none; padding: 8px 12px; line-height: 1.4; }
.folio .fs-stop__main { display: flex; align-items: center; gap: 14px; }
.folio .fs-pic { position: relative; width: 64px; height: 64px; flex-shrink: 0; border: 1px solid var(--fo-rule); background-color: #D6D0C4; background-image: repeating-linear-gradient(135deg, rgba(26,22,20,.06) 0 1px, transparent 1px 7px); background-size: cover; background-position: center; }
.folio .fs-pic.has-image { background-image: none; }
.folio .fs-pic.has-image[style] { background-size: cover; }
.folio .fs-pic__n { position: absolute; left: -1px; bottom: -1px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: var(--fo-ink); color: var(--fo-card); font-family: var(--fo-mono); font-size: 10px; }
.folio .fs-stop__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.folio .fs-stop__name { padding: 0; border: none; background: transparent; text-align: left; font-family: var(--fo-serif); font-size: var(--fo-display-2); letter-spacing: -0.02em; line-height: 1.05; color: var(--fo-ink); cursor: pointer; min-height: 30px; }
.folio .fs-way { color: var(--fo-pale); font-size: 16px; }
.folio .fs-stop__dates { font-size: 12px; line-height: 1.4; color: var(--fo-graphite); }
.folio .fs-stop__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--fo-hair); }
.folio .fs-stop__beds { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; line-height: 1.35; }
.folio .fs-stop__stay { color: var(--fo-ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.folio .fs-stop__nobed { color: var(--fo-red); }
.folio .fs-stop { cursor: pointer; }
/* No bed for any of its nights (Trip board, Essaouira): the frame and its ticks in the red. */
.folio .fs-stop.is-nobed { border-color: rgba(196,17,31,0.45); background: rgba(196,17,31,0.03); }
.folio .fs-stop.is-nobed .fo-tick { border-color: #E08A90; }
/* A stop spent entirely on the way (an overnight flight, a night train): grey, not a fault. */
.folio .fs-stop__travel { color: var(--fo-graphite); }
.folio .fs-travelnight { padding: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.folio .fs-travelnight .fo-quiet { line-height: 1.5; }
.folio .fs-travelnight__acts { display: flex; gap: 16px; }
.folio .fs-nights { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* .fs-step is .fo-step (2026-10-21). */
.folio .fs-nights__n { width: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.folio .fs-nights__n .fo-eyebrow { color: var(--fo-graphite); }
.folio .fs-nights__fig { font-family: var(--fo-serif); font-size: var(--fo-figure); line-height: 1; }
.folio .fs-nights__fig.is-big { font-size: var(--fo-figure-big); }
/* The Here stamp (§28): red, a little turned, a ruled edge. */
.folio .fs-here { position: absolute; top: 14px; right: 14px; z-index: 1; transform: rotate(-5deg); padding: 3px 8px; background: var(--fo-paper); border: 1.5px solid var(--fo-red); outline: 1px solid var(--fo-red); outline-offset: 2px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fo-red); font-weight: 500; }
.folio .fs-stop .fs-here { top: 20px; right: 18px; }
.folio .fs-here--inline { position: static; align-self: flex-start; display: inline-block; margin-top: 4px; }

/* Nights with no stop. */
/* Nights with no stop have no bed: the board's red card (owner, 2026-10-01), its frame, ticks and padding. */
.folio .fs-gap { position: relative; margin: 10px 0; padding: 16px 18px 14px; border: 1px dashed rgba(196,17,31,0.45); background: rgba(196,17,31,0.03); display: flex; flex-direction: column; gap: 8px; }
.folio .fs-gap .fo-tick { border-color: #E08A90; }
.folio .fs-gap__head { color: var(--fo-red); }
.folio .fs-gap__held { font-size: 12px; line-height: 1.45; }
.folio .fs-gap__add { align-self: flex-start; height: 36px; padding: 0 14px; font-size: 14px; }

/* Bones (§46 H), the shape of a stop's card. */
.folio .fs-bone-card { margin: 10px 0; padding: 14px; border: 1px dashed var(--fo-hair-firm); }
.folio .fs-bone-card__row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.folio .fs-bone-pic { width: 64px; height: 64px; }
.folio .fs-bone-card__lines { display: flex; flex-direction: column; gap: 10px; }

/* The page on the stack and its bar: css/60-folio.css (a folio page, pushPage opts.folio). */

/* A stop's page. */
.folio .fs-plate { margin: 0; height: 220px;   /* edge to edge (owner, 2026-10-01) */ position: relative; background-color: #CFCBC2; background-image: repeating-linear-gradient(135deg, rgba(26,22,20,.06) 0 1px, transparent 1px 7px); background-size: cover; background-position: center; }
.folio .fs-plate[style] { background-image: none; background-size: cover; }
.folio .fs-plate--form { margin: 12px 0 0; height: 150px; }
.folio .fs-plate .fs-here { top: 14px; right: 24px; }
.folio .fs-plate--form.is-empty { background-color: #E6E4DE; background-image: repeating-linear-gradient(135deg, rgba(26,22,20,.06) 0 1px, transparent 1px 7px); }
.folio .fs-plate__change { position: absolute; right: 8px; bottom: 8px; }   /* .fo-chip--on-picture */
.folio .fs-band { margin: 16px var(--fo-gutter) 0; padding: 12px 14px; background: var(--fo-band); display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.5; }
.folio .fs-notes { margin: 0; font-family: var(--fo-serif); font-style: italic; font-size: 16px; line-height: 1.5; }
.folio .fs-sec { margin: 26px var(--fo-gutter) 0; }
.folio .fs-sec--acts { display: flex; justify-content: space-between; align-items: baseline; }
.folio .fs-sec__acts { display: flex; gap: 14px; }
.folio .fs-act { font-family: var(--fo-sans); font-size: 12px; letter-spacing: 0; text-transform: none; min-height: 24px; }
.folio .fs-note { margin-top: 10px; }
.folio .fs-inline-link { display: inline; min-height: 0; font-size: inherit; }
.folio .fs-al { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--fo-hair); }
.folio .fs-stays { padding-top: 14px; }
.folio .fs-stay { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; cursor: pointer; }
.folio .fs-stay__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.folio .fs-stay__name { padding: 0; border: none; background: transparent; text-align: left; font-family: var(--fo-serif); font-size: 16px; color: var(--fo-ink); cursor: pointer; min-height: 30px; }
.folio .fs-stay__ends { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.folio .fs-stay__ends > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.folio .fs-stay__ends > .is-right { align-items: flex-end; }
.folio .fs-stay__time { font-size: 12px; color: var(--fo-graphite); }
.folio .fs-stay__rule { flex-direction: row !important; align-items: center; gap: 6px; padding-bottom: 4px; }
.folio .fs-stay__rule i { flex-grow: 1; border-top: 1px solid var(--fo-pale); }
.folio .fs-stay__more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--fo-hair); }
.folio .fs-stay__more > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.folio .fs-nobed { padding: 16px; border: 1px dashed var(--fo-hair-open); display: flex; flex-direction: column; gap: 10px; }
/* The three ways in on one row, a small phone's too (owner, 2026-10-10): each takes its words' width, padding shrinks first. */
.folio .fs-nobed__acts { display: flex; gap: 6px; }
.folio .fs-nobed .fo-btn--compact { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 clamp(6px, 2.5vw, 16px); font-size: 14px; white-space: nowrap; }
@media (max-width: 359px) { .folio .fs-nobed .fo-btn--compact { font-size: 12px; } }
.folio .fs-bedline { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 0; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .fs-bedline.is-open { color: var(--fo-graphite); }
.folio .fs-bedline__cells { display: flex; gap: 2px; }
.folio .fs-bedline__cells i { width: 18px; height: 8px; box-sizing: border-box; border: 1px dashed rgba(26,22,20,0.45); }
.folio .fs-bedline__cells i.is-bed { border: none; background: var(--fo-ink); }
.folio .fs-bedline__cells i.is-travel { border: none; background: var(--fo-pale); }
.folio .fs-day { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--fo-hair); }
.folio .fs-day__date { display: flex; flex-direction: column; gap: 2px; color: var(--fo-ink); }
.folio .fs-day.is-today .fs-day__date { color: var(--fo-red); }
.folio .fs-day.is-today .fs-day__date .fo-eyebrow { color: var(--fo-red); }
.folio .fs-day__n { font-family: var(--fo-serif); font-size: 24px; line-height: 1; }
.folio .fs-day__today { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.folio .fs-day__body { display: flex; flex-direction: column; min-width: 0; }
.folio .fs-day__head { padding: 3px 0 4px; }
.folio .fs-day__free { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.folio .fs-day__free > span { font-family: var(--fo-serif); font-style: italic; font-size: 16px; color: var(--fo-graphite); }
.folio .fs-plan { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: baseline; padding: 4px 0; border: none; background: transparent; text-align: left; color: var(--fo-ink); cursor: pointer; min-height: 30px; }
.folio .fs-plan.is-past { color: var(--fo-pale); }
.folio .fs-plan__time { font-family: var(--fo-mono); font-size: 12px; white-space: nowrap; color: var(--fo-graphite); } /* "8:35 PM" on one line (owner, 2026-10-01) */
.folio .fs-plan.is-past .fs-plan__time { color: var(--fo-pale); }
.folio .fs-plan__name { font-size: 14px; line-height: 1.35; }
.folio .fs-plan__state { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fs-plan__state.is-open { border-bottom: 1px dashed rgba(26,22,20,0.45); padding-bottom: 1px; }
.folio .fs-plan.is-past .fs-plan__state { color: var(--fo-pale); }

/* The form: Add a stop, Edit a stop. */
.folio .fs-form { padding: 20px var(--fo-gutter) 0; display: flex; flex-direction: column; gap: 8px; --fo-field-x: 0; }
/* The stop's name was 34px here (owner's phone, 2026-09-30: too big); it takes the display size now. */
.folio .fs-chip { align-self: flex-start; }   /* .fo-chip, outlined in the ink (2026-10-21) */
.folio .fs-location .fo-field__value.is-empty > span { color: var(--fo-graphite); }
.folio .fs-location svg { flex-shrink: 0; }
.folio .fs-when { padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.folio .fs-when__card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 16px; }
.folio .fs-when__end { display: flex; flex-direction: column; gap: 4px; font-size: 16px; white-space: nowrap; }
.folio .fs-when__end.is-right { align-items: flex-end; }
.folio .fo-quiet-ink { color: var(--fo-graphite); }
.folio .fs-notes-field { margin-top: 28px; }
.folio .fs-remove { margin-top: 32px; padding-top: 14px; border-top: 1px dashed var(--fo-hair); display: flex; flex-direction: column; gap: 6px; }
.folio .fs-remove .fo-text { align-self: flex-start; font-size: 14px; }
.folio .fs-when .fo-quiet, .folio .fs-remove .fo-quiet, .folio .fs-nobed .fo-quiet, .folio .fs-form .fo-quiet { line-height: 1.5; }

/* The way (Leg) and choosing it (LegPicker). */
.folio .fs-piece__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.folio .fs-piece__acts .fo-btn--compact { height: 40px; padding: 0 14px; font-size: 14px; }
.folio .fs-connect { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.folio .fs-dashed { width: 100%; }   /* .fo-add, 52 (it was 48) */
.folio .fs-cand { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border: none; border-bottom: 1px dashed var(--fo-hair); background: transparent; text-align: left; color: var(--fo-ink); cursor: pointer; }
.folio .fs-cand .fs-leg__text > span:nth-child(2) { font-size: 14px; }
.folio .fs-cand.is-on .fs-act { font-weight: 500; }
.folio .fs-modes { display: flex; flex-direction: column; }
.folio .fs-mode { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0; border: none; border-bottom: 1px dashed var(--fo-hair); background: transparent; text-align: left; color: var(--fo-ink); font-size: 14px; cursor: pointer; }
.folio .fs-mode .fs-leg__text { gap: 2px; }
.folio .fs-radio { width: 18px; height: 18px; box-sizing: border-box; border-radius: 9999px; border: 1.5px solid var(--fo-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.folio .fs-radio.is-on { border-color: var(--fo-ink); }
.folio .fs-radio.is-on::after { content: ''; width: 8px; height: 8px; border-radius: 9999px; background: var(--fo-ink); }
.folio .fs-ticket-ways { padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.folio .fs-ticket-ways .fs-piece__acts { margin: 0; }

/* Reduced motion: the card does not glide back after a swipe. */
@media (prefers-reduced-motion: reduce) {
    .folio .fs-stop { transition: none; }
}

/* The Days view has not migrated: it draws the deck log's rows inside this page and needs room under
   them for the capsule, which the Stops view gives itself (.fs-foot-space). */
.folio#tripMapPage.is-days .tp-sheet { padding-bottom: 96px; }

/* The stop's notes: three lines, then More (owner, 2026-10-01). */
.folio .fs-notes-wrap { margin: 16px var(--fo-gutter) 0; padding: 12px 0; border-top: 1px dashed var(--fo-hair); border-bottom: 1px dashed var(--fo-hair); }
.folio .fs-notes.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.folio .fs-notes__more { margin-top: 4px; min-height: 32px; font-size: 12px; }

/* The photograph sheet (PhotoPicker board): from 48px under the top, the bar, three tabs, the panel, Use at the foot. */
/* The sheets' ceiling, 60% of the screen (owner, 2026-10-01), the grid scrolling inside. */
.folio.fs-photos { padding: 10px 0 0; }
.folio.fs-photos .fs-photos__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 48px; padding: 0 var(--fo-gutter); border-bottom: 1px dashed var(--fo-hair); }
.folio.fs-photos .fs-photos__bar .fo-bar__title { max-width: 230px; }
.folio.fs-photos .fs-photos__tabs { flex: none; margin: 0 var(--fo-gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px dashed var(--fo-hair); }
.folio.fs-photos .fs-photos__tabs button { height: 44px; padding: 0; border: none; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--fo-graphite); cursor: pointer; }
.folio.fs-photos .fs-photos__tabs button.is-on { border-bottom-color: var(--fo-ink); color: var(--fo-ink); }
.folio.fs-photos .fs-photos__body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.folio.fs-photos .fs-photos__panel { padding: 14px var(--fo-gutter) 16px; display: flex; flex-direction: column; gap: 12px; }
/* The cover's search is .fo-search (2026-10-21). */
.folio.fs-photos .ucov-said, .folio.fs-photos .ucov-source, .folio.fs-photos .fo-quiet { margin: 0; font-size: 12px; line-height: 1.5; }
.folio.fs-photos .ucov-said.is-wrong { color: var(--fo-red); }
.folio.fs-photos .ucov-source a { color: var(--fo-ink); text-underline-offset: 3px; }
.folio.fs-photos .fs-photos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.folio.fs-photos .ucov-tile { position: relative; margin: 0; height: 104px; background-color: #D6D0C4; background-image: repeating-linear-gradient(135deg, rgba(26,22,20,.06) 0 1px, transparent 1px 7px); }
.folio.fs-photos .ucov-take { display: block; width: 100%; height: 100%; padding: 0; border: none; background: transparent; cursor: pointer; }
.folio.fs-photos .ucov-take img, .folio.fs-photos .fs-photos__mine img { display: block; width: 100%; height: 100%; object-fit: cover; }
.folio.fs-photos .ucov-tile.is-on .ucov-take, .folio.fs-photos .fs-photos__mine.is-on { box-shadow: inset 0 0 0 2px var(--fo-ink); }
.folio.fs-photos .ucov-tile.is-on .ucov-take img, .folio.fs-photos .fs-photos__mine.is-on img { outline: 2px solid var(--fo-ink); outline-offset: -2px; }
.folio.fs-photos .ucov-tile.is-on::after, .folio.fs-photos .fs-photos__mine.is-on::after { content: '✓'; position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: var(--fo-ink); color: var(--fo-card); font-size: 10px; pointer-events: none; }
.folio.fs-photos .ucov-by { position: absolute; left: 6px; bottom: 5px; right: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.folio.fs-photos .ucov-by a { color: var(--fo-card); text-decoration: none; text-shadow: 0 1px 2px rgba(26,22,20,0.6); }
.folio.fs-photos .fs-photos__grid--mine { grid-template-columns: repeat(3, 1fr); }
.folio.fs-photos .fs-photos__mine { position: relative; aspect-ratio: 1; padding: 0; border: none; background: var(--fo-band); cursor: pointer; }
.folio.fs-photos .fs-photos__link { display: flex; gap: 8px; }
.folio.fs-photos .fs-photos__url { flex: 1; min-width: 0; height: 44px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--fo-rule); background: var(--fo-card); font: inherit; font-size: 14px; color: var(--fo-ink); outline: none; }
.folio.fs-photos .fs-photos__url:focus { border-color: var(--fo-ink); }
.folio.fs-photos .fs-photos__link .fo-btn { flex: none; height: 44px; }
.folio.fs-photos .fs-photos__preview img { display: block; width: 100%; height: 200px; object-fit: cover; }
.folio.fs-photos .fs-photos__none { margin: 0; font-size: 14px; line-height: 1.5; }
.folio.fs-photos .fs-photos__foot { flex: none; padding: 10px var(--fo-gutter) max(calc(env(safe-area-inset-bottom, 0px) + 8px), 24px); }

/* The way's pieces as cards (Leg board, 2026-10-01). */
.folio .fs-pieces { padding: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.folio .fs-pc { position: relative; overflow: hidden; touch-action: pan-y; }
.folio .fs-pc__under { position: absolute; top: 0; right: 0; bottom: 0; width: 152px; display: flex; visibility: hidden; }
.folio .fs-pc.is-swiping .fs-pc__under, .folio .fs-pc.is-open .fs-pc__under { visibility: visible; }
.folio .fs-pc__act { flex: 1; border: none; background: var(--fo-band); color: var(--fo-ink); font: inherit; font-size: 12px; cursor: pointer; }
.folio .fs-pc__act.is-remove { background: var(--fo-ink); color: var(--fo-card); }
.folio .fs-pc:not(.is-open) .fs-pc__act { pointer-events: none; }
.folio .fs-pc__card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--fo-paper); border-color: rgba(26,22,20,0.35); cursor: pointer; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.folio .fs-pc__card.is-booked { background: #FBFAF7; border-color: var(--fo-hair-firm); }
.folio .fs-pc__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.folio .fs-pc__line { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.folio .fs-pc__n, .folio .fs-pc__km { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fs-pc__mode { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .fs-pc__carrier { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--fo-graphite); }
.folio .fs-pc__head .fo-tag { flex: none; }
.folio .fs-pc__route { align-self: flex-start; padding: 0; border: none; background: transparent; text-align: left; font-family: var(--fo-serif); font-size: 16px; letter-spacing: -0.015em; line-height: 1.2; color: var(--fo-ink); cursor: pointer; }
.folio .fs-pc__when { font-size: 12px; color: var(--fo-graphite); }
.folio .fs-pc__when.is-ink { color: var(--fo-ink); }
.folio .fs-pc__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--fo-hair); }
.folio .fs-pc__acts .fo-btn { height: 36px; padding: 0 12px; font-size: 12px; }

/* You joined (2026-10-03, the TripMates board): the grey card under the title, once. */
.folio .fs-joined { margin: 14px var(--fo-gutter) 0; padding: 14px 16px 6px; background: var(--fo-band); display: flex; flex-direction: column; gap: 6px; }
.folio .fs-joined .fo-eyebrow { color: var(--fo-ink); }
.folio .fs-joined p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--fo-ink); }
.folio .fs-joined .fo-text { align-self: flex-start; min-height: 44px; font-size: 12px; }
/* Find a stay (2026-10-12): the Booking.com card under a stop's empty Stays; its button is a link out. */
.folio .fs-find { margin-top: 12px; }
.folio .fs-find .fo-btn { text-decoration: none; flex: none; color: var(--fo-card); }
