/* ==========================================================================
   62  Folio — the Days room: the journey's days, a day, an activity's ticket and its
       form, the calendar, the weather, the notes page, the link sheet
   --------------------------------------------------------------------------
   Built 2026-09-30 on css/60-folio.css, the second room. Drawn by public/61-folio-days.js
   (the days, a day, the sheets) over the records' own renderers (05-timeline.js's ticket,
   34-markup-activity.js's form, 01-core.js's calendar, 02-state.js's weather). The boards:
   Days, DayPage, AddToDay, AddKind, ActivityTicket, ActivityEdit, NotesFull, LinkActivity,
   Calendar, Weather.

   Every selector begins `.folio` (dev/assets.test.js holds this file to it). Three rooms
   here — the ticket, the form, the calendar sheet, the weather page — keep the deck log's
   markup and are dressed by REMAPPING ITS TOKENS on the folio element: `--log-stock` is the
   paper, `--log-ink` the ink, `--log-magenta` the red, `--log-print` the mono. Nine hundred
   rules of theirs read the folio's values without a copy of any of them; what the boards
   draw differently is named below. The deck log's own rooms are untouched: the tokens are
   redefined only under `.folio`.
   ========================================================================== */

/* ---- the deck log's tokens, read as the folio's ---------------------------------- */
.folio.fd-ticket-page,
.folio.fd-day-page,
.folio.fd-notes-page {
    --log-stock: var(--fo-paper);
    --log-stock-band: var(--fo-band);
    --log-stock-lit: var(--fo-card);
    --log-oilskin: var(--fo-ink);
    --log-on-oilskin: var(--fo-card);
    --log-ink: var(--fo-ink);
    --log-ink-soft: var(--fo-graphite);
    --log-rule: var(--fo-rule);
    --log-rule-firm: var(--fo-hair-firm);
    --log-magenta: var(--fo-red);
    --log-port: var(--fo-red);
    --log-starboard: var(--fo-ink);
    --log-print: var(--fo-mono);
    --log-write: var(--fo-sans);
    --log-type: 'Courier Prime', 'Courier New', ui-monospace, monospace;
}

/* ---- the Days view (Days board) --------------------------------------------------- */
/* The strip: every day as a cell, the stop's name over its first day, the weekday and the number. */
.folio .fd-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding: 0 var(--fo-gutter) 12px; border: none; }
.folio .fd-strip::-webkit-scrollbar { display: none; }
/* The Days board: the day is a 46 × 64 chip under a 10px line for the stop's name; a new stop starts after a dashed rule. */
.folio .fd-strip__day { position: relative; flex: none; padding: 14px 0 0; border: none; background: transparent; color: var(--fo-ink); font: inherit; cursor: pointer; }
.folio .fd-strip__day.is-start { margin-left: 4px; padding-left: 10px; border-left: 1px dashed rgba(26,22,20,0.35); }
.folio .fd-strip__city { position: absolute; left: 0; top: 0; height: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-family: var(--fo-mono); font-size: 10px; line-height: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fd-strip__day.is-start .fd-strip__city { left: 10px; }
.folio .fd-strip__chip { width: 46px; height: 64px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--fo-rule); }
.folio .fd-strip__day.is-today .fd-strip__chip { border-color: var(--fo-red); }
.folio .fd-strip__day.is-on .fd-strip__chip { background: var(--fo-ink); border-color: var(--fo-ink); color: var(--fo-card); }
.folio .fd-strip__wd { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.folio .fd-strip__n { font-family: var(--fo-serif); font-size: 16px; line-height: 1; }
/* Lifted over the strip: the day the record would go to, and what the room says of it. */
.folio .fd-strip__day .fd-slot { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); z-index: 4; margin-top: 4px; padding: 4px 8px; white-space: nowrap; background: var(--fo-ink); color: var(--fo-card); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.folio .fd-strip__day .fd-slot.is-refused { background: var(--fo-red); }
/* One day at a time, on a card with the ticks. */
.folio .fd-deck { padding: 16px 0 0; overflow: hidden; }
.folio .fd-card { position: relative; padding: 14px 16px 6px; display: flex; flex-direction: column; }
.folio .fd-card__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fd-card__today { display: flex; align-items: center; gap: 5px; color: var(--fo-red); }
.folio .fd-card__today i { width: 5px; height: 5px; border-radius: 9999px; background: var(--fo-red); }
.folio .fd-card__date { margin: 8px 0 10px; font-family: var(--fo-serif); font-weight: 400; font-size: 16px; letter-spacing: -0.025em; line-height: 1.02; }
.folio .fd-rows { display: flex; flex-direction: column; }
/* A row: the time, the name and under it the kind and the place, and the booking's word. The row is the press into
   the ticket; the under-side behind it holds Edit and Remove, reached by a swipe (foRowGestures). */
.folio .fd-swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.folio .fd-swipe__under { position: absolute; inset: 0 0 0 auto; width: 152px; display: flex; visibility: hidden; }
/* Hidden until a swipe: at a fraction of a pixel its ink Remove showed as a hairline down a row's right edge and under it
   (owner, 2026-10-01: Activity item 右边 下边 有的时候有一条细细的线). The Stops rows have hidden theirs since 2026-09-30. */
.folio .fd-swipe.is-swiping .fd-swipe__under, .folio .fd-swipe.is-open .fd-swipe__under { visibility: visible; }
.folio .fd-swipe__act { flex: 1; border: none; background: var(--fo-band); color: var(--fo-ink); font: inherit; font-size: 12px; cursor: pointer; }
.folio .fd-swipe__act.is-remove { background: var(--fo-ink); color: var(--fo-card); }
.folio .fd-row { position: relative; width: 100%; min-height: 44px; padding: 14px 0; border: none; border-top: 1px dashed var(--fo-hair); background: var(--fo-card); display: grid; grid-template-columns: 62px 1fr; align-items: start; gap: 0; color: var(--fo-ink); font: inherit; text-align: left; cursor: pointer; transition: transform 0.2s ease; }
.folio .fd-rows .fd-swipe:first-child .fd-row { border-top: none; }
.folio .fd-row.is-lifted { z-index: 5; box-shadow: 0 10px 24px rgba(26,22,20,0.18); transition: none; }
.folio .fd-swipe.is-source .fd-row { opacity: 0.92; }
.folio .fd-row__time { font-family: var(--fo-mono); font-size: 10px; padding-top: 3px; white-space: nowrap; }
.folio .fd-row__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.folio .fd-row__name { font-family: var(--fo-serif); font-size: 16px; letter-spacing: -0.015em; line-height: 1.1; }
.folio .fd-row__sub { font-size: 12px; line-height: 1.4; color: var(--fo-graphite); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }   /* two lines at most: a full address ran to five (owner, 2026-10-01) */
.folio .fd-row__kind { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
/* A free day: the serif line and a quiet one. */
.folio .fd-free { padding: 14px 0 6px; border-top: 1px dashed var(--fo-hair); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.folio .fd-free__say { margin: 0; font-family: var(--fo-serif); font-style: italic; font-size: 16px; color: var(--fo-graphite); }
.folio .fd-free .fo-quiet { margin: 0; font-size: 12px; line-height: 1.5; }
.folio .fd-card__tonight { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--fo-hair); font-size: 12px; }
.folio .fd-card__tonight .is-open { color: var(--fo-red); }
.folio .fd-card__bed { color: var(--fo-graphite); }
.folio .fd-card__foot { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-top: 1px dashed var(--fo-hair); }
.folio .fd-card__foot .fo-text { font-size: 12px; }
.folio .fd-pager { display: flex; justify-content: space-between; align-items: center; padding: 6px var(--fo-gutter) 0; }
.folio .fd-pager .fo-text:disabled { color: var(--fo-pale); text-decoration: none; cursor: default; }
.folio .fd-pager__n { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fo-graphite); }

/* ---- a day (DayPage board) ---------------------------------------------------------- */
.folio .fd-day { padding-bottom: 24px; }
.folio .fd-pad { padding: 0 var(--fo-gutter); }
.folio .fd-day__nav { padding: 16px var(--fo-gutter) 0; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.folio .fd-day__nav .fo-text { font-size: 12px; text-decoration: none; justify-self: start; }
.folio .fd-day__nav .fo-text.is-right { justify-self: end; }
.folio .fd-day__nav .fo-text:disabled { visibility: hidden; }
.folio .fd-day__when { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.folio .fd-day__date { font-family: var(--fo-serif); font-size: var(--fo-display); letter-spacing: -0.02em; line-height: 1; }
.folio .fd-sec { margin: 24px var(--fo-gutter) 0; padding-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--fo-ink); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .fd-sec span + span { font-size: 10px; color: var(--fo-graphite); }
/* The day page's rows are plainer than the card's: the name in the sans, the kind at the end. */
.folio .fd-row--plain { padding: 11px 0; border-top: none; border-bottom: 1px dashed var(--fo-hair); background: var(--fo-paper); grid-template-columns: 62px 1fr auto; gap: 10px; align-items: baseline; }
.folio .fd-row--plain .fd-row__time { padding-top: 0; color: var(--fo-graphite); }
.folio .fd-row--plain .fd-row__name { font-family: var(--fo-sans); font-size: 14px; letter-spacing: 0; line-height: 1.3; }
.folio .fd-row--plain .fd-row__text { gap: 2px; }
.folio .fd-row__kind--end { font-size: 10px; color: var(--fo-graphite); }
.folio .fd-day .fd-free { padding-top: 12px; border-top: none; }
.folio .fd-day .fd-free .fo-btn--compact { height: 40px; padding: 0 14px; font-size: 14px; }
.folio .fd-quiet { margin: 12px 0 0; font-family: var(--fo-serif); font-style: italic; font-size: 16px; color: var(--fo-graphite); }
.folio .fd-spend { width: 100%; padding: 11px 0; border: none; border-bottom: 1px dashed var(--fo-hair); background: transparent; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; color: var(--fo-ink); font: inherit; text-align: left; cursor: pointer; }
.folio .fd-spend__name { font-size: 14px; }
.folio .fd-spend__sum { font-family: var(--fo-mono); font-size: 12px; }
.folio .fd-more { display: block; padding-top: 10px; font-size: 12px; }
.folio .fd-entries { margin-top: 12px; }
.folio .fd-write { display: flex; justify-content: space-between; align-items: center; gap: 12px; }   /* the words, and the black button beside them */
.folio .fd-write .fd-quiet { margin: 0; }
.folio .fd-write .fo-btn--compact { height: 40px; padding: 0 14px; font-size: 14px; }
.folio .fd-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.folio .fd-tile { position: relative; height: 96px; padding: 0; border: none; background: var(--fo-band); overflow: hidden; cursor: pointer; }
.folio .fd-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folio .fd-tile--add { border: 1px dashed rgba(26,22,20,0.35); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--fo-ink); font: inherit; }
.folio .fd-tile--add > span:first-child { font-size: 16px; line-height: 1; }
.folio .fd-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; }

/* ---- the ticket (ActivityTicket board) ----------------------------------------------- */
.folio.fd-ticket-page, .folio.fd-ticket-page .pgstack-body { background: rgba(26,22,20,0.62); }
/* The ticket has no bar (ActivityTicket board): the scrim and Close are the way out. */
.folio.fd-ticket-page > .pgstack-header { display: none; }
/* Lower on the screen (owner, 2026-10-01: ticket太高了 放到70%的位置): the ticket starts 30% down and has the lower 70%;
   a taller one gives up that space first, then scrolls. */
.folio.fd-ticket-page .pgstack-body { display: flex; flex-direction: column; }
.folio.fd-ticket-page .pgstack-body::before { content: ''; flex: 0 1 30vh; min-height: 0; }
.folio.fd-ticket-page .pgstack-body > * { flex: none; }
/* The page under a ticket stays where it is: the stack's covered-page shift (-18%) is for a page going under a
   page, not under a ticket on its scrim (owner, 2026-10-01: the way往左偏了). */
.folio.pgstack-page.covered:has(+ .folio.fd-ticket-page) { transform: none; isolation: isolate; }   /* its own layer still: a card's z-index stays under the ticket */
.folio.fd-ticket-page .act-card { background: transparent; }
.folio.fd-ticket-page .tk-word { font-family: var(--fo-sans); font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fo-ink); text-underline-offset: 3px; }
.folio.fd-ticket-page .tk-stay-dates { display: flex; flex-wrap: wrap; gap: 12px; }
.folio.fd-ticket-page .tk-stay-dates .tk-value { white-space: normal; font-size: 14px; }
.folio.fd-ticket-page .tk-nights { flex: 1 0 100%; padding: 6px 0; border-top: 1px dashed var(--fo-hair-firm); border-bottom: 1px dashed var(--fo-hair-firm); text-align: center; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.folio.fd-ticket-page .tk-nights-n { font-family: var(--fo-mono); font-size: 10px; font-weight: 400; }
.folio.fd-ticket-page .tk { max-width: 330px; margin: 16px auto 0; padding: 0; background: var(--fo-card); border: none; }
.folio.fd-ticket-page .tk-band { padding: 12px 20px 8px; background: transparent; border-bottom: 1px dashed var(--fo-hair-firm); }
.folio.fd-ticket-page .tk-issuer { font-family: var(--fo-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; color: var(--fo-graphite); }
.folio.fd-ticket-page .tk-act { font-family: var(--fo-sans); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fo-ink); text-underline-offset: 3px; }
.folio.fd-ticket-page .tk-panel { padding: 8px 20px; }
.folio.fd-ticket-page .tk-name { font-family: var(--fo-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.folio.fd-ticket-page .tk-label { font-family: var(--fo-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio.fd-ticket-page .tk-value { font-family: var(--fo-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.folio.fd-ticket-page .tk-code { font-family: var(--fo-mono); font-size: 24px; font-weight: 400; letter-spacing: 0.02em; }
.folio.fd-ticket-page .tk-words { font-family: var(--fo-serif); font-style: italic; font-size: 14px; line-height: 1.45; }
.folio.fd-ticket-page .tk-state { font-family: var(--fo-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border: 1.5px solid var(--fo-ink); color: var(--fo-ink); background: transparent; }
.folio.fd-ticket-page .tk-state.is-pending { border: 1.5px dashed rgba(26,22,20,0.45); color: var(--fo-graphite); }
.folio.fd-ticket-page .tk-figure { font-family: var(--fo-mono); font-size: 16px; letter-spacing: -0.01em; }
.folio.fd-ticket-page .tk-rule { border-color: var(--fo-hair-firm); }
.folio.fd-ticket-page .tk-tear { border-top: 1.5px dashed rgba(26,22,20,0.35); }
.folio.fd-ticket-page .tk-stub { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
/* The ticket's own card (ActivityTicket board; 61-folio-days.js renderFolioTicket): 330px of the card's white on the
   scrim, its rows on dashed hairlines, the counterfoil between two tears. */
/* The slip is the card's box; its mask tears the foot in a zigzag, the Activity ticket board's .slip. The body layer
   overlaps the teeth by a pixel: meeting edge to edge, a phone's screen drew a hairline along the seam (owner, 2026-10-01). */
.folio .ft-slip { width: 330px; max-width: calc(100% - 30px); margin: 16px auto 0;
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 9px repeat-x;
            mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 9px repeat-x; }
.folio .ft { position: relative; width: auto; margin: 0; padding: 16px 20px 15px; background: var(--fo-card); color: var(--fo-ink); font-family: var(--fo-sans); }
.folio .ft-head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed var(--fo-hair-firm); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .ft-head .is-ink { color: var(--fo-ink); }
/* In the flow everywhere, never pinned (owner, 2026-10-09: booked把标题压住了): in the counterfoil, or beside the name (.ft-titled). */
.folio .ft-stamp { flex: none; transform: rotate(-6deg); outline: 1px solid var(--fo-ink); outline-offset: 2px; padding: 3px 8px; border: 1.5px solid var(--fo-ink); font-family: var(--fo-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .ft-stamp.is-open { border: 1.5px dashed rgba(26,22,20,0.45); outline: none; color: var(--fo-graphite); }
.folio .ft-titled { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 4px; }
.folio .ft-titled .ft-title { margin: 0; }
/* Its name where it is, under the title (P27, owner 2026-10-19): to show a driver, to match a sign. */
.folio .ft-local { margin: -2px 0 6px; font-family: var(--fo-serif); font-size: 14px; line-height: 1.3; color: var(--fo-graphite); }
.folio .ft-title { margin: 12px 0 4px; font-family: var(--fo-serif); font-weight: 400; font-size: 16px; letter-spacing: -0.02em; line-height: 1.1; }
.folio .ft-address { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--fo-hair-firm); font-size: 12px; line-height: 1.35; }
.folio .ft-address__acts { display: flex; gap: 12px; flex: none; }
.folio .ft-address__acts .fo-text { font-size: 12px; }
.folio .ft-label { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .ft-value { font-size: 14px; line-height: 1.35; }
.folio .ft-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--fo-hair-firm); }
.folio .ft-row .ft-value { text-align: right; }
.folio .ft-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--fo-hair-firm); }
.folio .ft-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.folio .ft-cell.is-right { align-items: flex-end; text-align: right; }
/* A stay's nights between check in and check out, as a flight's hours between its two ends (owner, 2026-10-09). */
.folio .ft-pair--stay { grid-template-columns: 1fr auto 1fr; align-items: start; }
.folio .ft-pair--stay .ft-nights { align-self: center; padding: 0; border: 0; white-space: nowrap; }
.folio .ft-nights { padding: 6px 0; border-bottom: 1px dashed var(--fo-hair-firm); text-align: center; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.folio .ft-notes { margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--fo-hair-firm); font-family: var(--fo-serif); font-style: italic; font-size: 14px; line-height: 1.45; }
.folio .ft-ends { margin: 14px 0 2px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.folio .ft-end { display: flex; flex-direction: column; }
.folio .ft-end.is-right { align-items: flex-end; text-align: right; }
.folio .ft-end .fo-quiet { font-size: 12px; }
.folio .ft-code { font-family: var(--fo-mono); font-size: 24px; letter-spacing: 0.02em; line-height: 1.1; }
.folio .ft-name { font-family: var(--fo-serif); font-size: 16px; line-height: 1.1; }
.folio .ft-ends--names { grid-template-columns: 1fr auto 1fr; }
.folio .ft-ends__rule { position: relative; height: 0; min-width: 40px; border-top: 1px solid var(--fo-ink); text-align: center; }
.folio .ft-ends__rule > span { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 0 6px; background: var(--fo-card); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); white-space: nowrap; }
.folio .ft-tear { position: relative; margin: 10px -20px; border-top: 1.5px dashed rgba(26,22,20,0.35); }
/* The tear is the line: the row above it, and the links above About this place's card, draw none of their own (owner, 2026-10-11). */
.folio .ft > :has(+ .ft-tear), .folio .ft-links:has(+ .ft-about) { border-bottom: 0; }
.folio .ft-tear i { display: none; } /* the notches are cut from the card (ftCutNotches), not painted */
.folio .ft-tear i:first-child { left: -8px; }
.folio .ft-tear i:last-child { right: -8px; }
.folio .ft-stub { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 0 6px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .ft-stub__lines { display: flex; flex-direction: column; gap: 4px; }
.folio .ft-stub .fo-quiet { font-size: 10px; letter-spacing: 0.12em; }
/* A long figure (IDR 13,569,344.00) goes under the words, to the right, rather than squeezing them into four lines (owner, 2026-10-09). */
.folio .ft-cost { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 4px 12px; padding: 12px 0 8px; }
.folio .ft-cost .ft-figure { margin-left: auto; }
.folio .ft-cost .fo-quiet { font-size: 12px; }
.folio .ft-cost--none { align-items: center; border-bottom: 1px dashed var(--fo-hair-firm); }
.folio .ft-figure { flex: none; font-family: var(--fo-mono); font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.folio .ft-cost .ft-cell { min-width: 0; }
.folio.fd-ticket-page .fd-ticket-acts { margin-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.folio .ft-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 8px 0; border-top: 1px dashed var(--fo-hair-firm); font-size: 14px; }
.folio .ft-file__name { flex: 1; min-width: 0; display: flex; white-space: nowrap; }
.folio .ft-file > .fo-quiet { flex: none; white-space: nowrap; }
/* Two files or more read as one list: no hairline between them (owner, 2026-10-11). */
.folio .ft-file + .ft-file { border-top: 0; }
.folio .ft-file.is-link { color: var(--fo-ink); text-decoration: none; }
.folio .ft-file.is-link::after { content: '›'; flex: none; font-size: 16px; color: var(--fo-pale); }
.folio .ft-file .fi-file__head, .folio .ft-file .fi-file__tail { text-decoration: none; }
/* A place shut all day on the plan's day (61-folio-days.js placeShutDay): one red line where its hours would be. */
.folio .ft-hours__shut { margin: 0; padding: 8px 0; font-size: 12px; line-height: 1.4; color: var(--fo-red); border-bottom: 1px dashed var(--fo-hair-firm); }
.folio .ft-cell.ft-hours .ft-hours__shut { padding: 0; border: 0; font-size: 14px; }
/* Boswell's introduction of a sight (61-folio-days.js ftAbout): its four parts under the ticket's rows, and a quiet foot. */
/* About this place is a Card 1 (.fo-card) with Boswell's mark before its name (owner, 2026-10-11). */
.folio .ft-about { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; padding: 12px 14px; }
.folio .ft-about__head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fo-ink); }
.folio .ft-about__mark { flex: none; width: 18px; height: 18px; }
.folio .ft-about__ask { width: 100%; min-height: 44px; margin: -12px 0; padding: 0; border: none; background: none; font: inherit; font-size: 14px; color: var(--fo-ink); text-align: left; cursor: pointer; }
.folio .ft-about__ask > span { text-decoration: underline; text-underline-offset: 3px; }
.folio .ft-about__ask[disabled] { color: var(--fo-pale); cursor: default; }
.folio .ft-about__part { display: flex; flex-direction: column; gap: 4px; }
.folio .ft-about__words, .folio .ft-about__list { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fo-ink); }
.folio .ft-about__list { padding-left: 18px; }
.folio .ft-about__said { margin: 0; font-size: 12px; color: var(--fo-graphite); }
.folio .ft-links { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--fo-hair-firm); }
/* A useful link as WhatsApp shows one (61-folio-days.js ftLinkCard): a card on the band, the page's picture across its top
   in a wide frame, then the title, two lines of what the page says, and its site. */
.folio .ft-linkcard { display: flex; flex-direction: column; overflow: hidden; background: var(--fo-band); border: 1px solid var(--fo-hair); color: var(--fo-ink); text-decoration: none; }
.folio .ft-linkcard__img { display: block; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--fo-hair); }
.folio .ft-linkcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.folio .ft-linkcard__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px; }
.folio .ft-linkcard__title { font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.folio .ft-linkcard__words { font-size: 12px; line-height: 1.4; color: var(--fo-graphite); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.folio .ft-linkcard__site { margin-top: 2px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fo-graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Going, or not (2026-10-03): who said so, then the reader's two answers, the one given filled. */
.folio .ft-going__not { display: block; padding-top: 4px; font-size: 12px; color: var(--fo-graphite); }
.folio .ft-going__acts { display: flex; gap: 8px; padding: 10px 0 12px; border-bottom: 1px dashed var(--fo-hair-firm); }
.folio .ft-going__act { flex: 1; }
.folio .ft-foot { padding: 10px 0 14px; text-align: center; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
/* Under the card, on the scrim: the acts in the card's white, outlined. */
.folio .fd-ticket-acts { max-width: 330px; margin: 10px auto 24px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* The same-day drop's sheet (61-folio-days.js fdTimeSheet): the time proposed, the pick-one, No set time, Move and Cancel. */
.folio.fd-time .fd-time__body { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; --fo-field-x: 0; }
.folio.fd-time .fd-time__body .fo-quiet { margin: 0; font-size: 12px; line-height: 1.5; }
.folio.fd-time .fd-time__none { align-self: flex-start; min-height: 44px; font-size: 12px; }
.folio.fd-time .fd-time__none:disabled { color: var(--fo-pale); text-decoration: none; cursor: default; }
.folio.fd-time .fd-time__acts { display: flex; gap: 10px; }
.folio.fd-time .fd-time__acts .fo-btn { flex: 1; }

/* ---- notes, bigger (NotesFull board) ------------------------------------------------ */
.folio .fd-notes { padding: 0 var(--fo-gutter); }
.folio .fd-notes .af-rack { display: flex; gap: 2px; margin: 0 calc(-1 * var(--fo-gutter)); padding: 8px 16px; border-bottom: 1px dashed var(--fo-hair); background: var(--fo-paper); }
.folio .fd-notes .tiptap-editor-container, .folio .fd-notes .ProseMirror { min-height: 60vh; padding: 0; border: none; background: transparent; font-family: var(--fo-serif); font-size: 14px; line-height: 1.6; color: var(--fo-ink); }
.folio .fd-notes .ProseMirror h2, .folio .fd-notes .ProseMirror h3 { margin: 16px 0 6px; font-family: var(--fo-sans); font-weight: 500; font-size: 16px; }
.folio .fd-notes .ProseMirror { padding-top: 16px; }   /* the first line close under the tools, as the board */
/* The writing has no frame (NotesFull board; owner, 2026-10-01: 点输入有个很丑的大黑框 去掉): the editor carries a tabindex, and
   every [tabindex] takes the ink ring (05-interaction.css). Paragraphs, lists and headings as the board sets them. */
.folio .fd-notes .ProseMirror:focus, .folio .fd-notes .ProseMirror:focus-visible, .folio .fd-notes .tiptap-editor-container:focus-within { outline: none; box-shadow: none; border: none; }
.folio .fd-notes .ProseMirror p { margin: 0 0 10px; }
.folio .fd-notes .ProseMirror ul, .folio .fd-notes .ProseMirror ol { margin: 0 0 10px; padding-left: 20px; }
.folio .fd-notes .ProseMirror li p { margin: 0; }
.folio .fd-notes .ProseMirror p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; color: var(--fo-graphite); font-style: italic; pointer-events: none; }

/* ---- the weather (Weather board), docked under the contents ------------------------- */

/* ---- the polish pass (review of bc7f931) --------------------------------------------- */

/* A date input's own width is its box's, not its words': sized to the words so the time fits beside it. */

/* ---- the last nits (review of 69eefbd) ---------------------------------------------- */

/* Owner's phone, 2026-10-01. The strip's dot, as on the Days board: red under today, ink under a day with plans (the
   card's white on the chosen day), none otherwise. A time with AM/PM keeps to one line in a wider column; the card's
   date and the rows' names a step smaller. The booked tag is the board's: filled grey Booked, a dashed Not booked. */
.folio .fd-strip__chip { gap: 3px; }
.folio .fo-daytag { align-self: flex-start; margin-top: 2px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; box-sizing: border-box; border: 1px dashed rgba(26,22,20,0.35); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fo-daytag.is-booked { border: none; background: var(--fo-rule); color: var(--fo-ink); }
.folio .ft-copy { flex: none; width: 44px; height: 44px; margin: -12px -12px -12px 0; padding: 0; border: none; background: transparent; color: var(--fo-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* The Days card, 2026-10-01 (owner): a fixed height with the plans scrolling inside it, so Previous / Next stand
   still; the rows are time over kind | the name (two lines at most) over where | the booked tag top right; no
   photographs (the day's page has them); the card follows a sideways finger (touch-action leaves only vertical
   pans to the browser). */
.folio .fd-deck { touch-action: pan-y; }
.folio .fd-card { height: clamp(320px, calc(100dvh - 470px), 560px); box-sizing: border-box; }
/* The track (the Days board): every day's card the deck less 72 wide, 12 apart, 24 in from the left, so the next day shows
   at the right and the last at the left; the cards not chosen stand paler. The board's easing, .45s. */
.folio .fd-track { display: flex; gap: 12px; padding: 0 var(--fo-gutter); transition: transform .45s cubic-bezier(.22,1,.36,1); will-change: transform; }
.folio .fd-track > .fd-card { flex: none; width: calc(100% - 24px); transition: opacity .35s; }
.folio .fd-track > .fd-card:not(.is-on) { opacity: .45; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .folio .fd-track, .folio .fd-track > .fd-card { transition: none; } }
.folio .fd-card__scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.folio .fd-card__scroll::-webkit-scrollbar { display: none; }
.folio .fd-rows .fd-row:not(.fd-row--plain) { grid-template-columns: 62px 1fr auto; gap: 0 10px; }
.folio .fd-row__when { display: flex; flex-direction: column; gap: 4px; padding-top: 3px; }
.folio .fd-row__when .fd-row__time { padding-top: 0; }
.folio .fd-row__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.folio .fd-rows .fo-daytag { margin-top: 2px; }
/* The ticket's address keeps to two lines (owner, 2026-10-01); the copy mark stands beside it. */
.folio .ft-address__words { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 2026-10-01, the owner's second look: no rules above and below the strip (the scale's own rule is the one above it),
   no dots, no pager; the plans' count beside the date; the foot is Add to this day | Tonight · the bed (a tap opens its
   ticket); the view stands still and the card fills it (fdFitCard). Swipes reach the card from its empty part too: the
   scroll inside it leaves only vertical pans to the browser. */
.folio#tripMapPage.is-days .tp-sheet { overflow: hidden; padding-bottom: 0; }
.folio#tripMapPage.is-days .fs-legend { border-bottom: none; padding-bottom: 6px; }
.folio .fd-card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.folio .fd-card__title .fo-eyebrow { flex: none; color: var(--fo-graphite); }
.folio .fd-card__scroll, .folio .fd-card { touch-action: pan-y; }
.folio .fd-card__foot { gap: 12px; }
.folio .fd-card__tonight { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 0; border: none; background: transparent; font: inherit; color: var(--fo-ink); text-align: right; cursor: pointer; }
.folio span.fd-card__tonight { cursor: default; }
.folio .fd-card__bed { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folio .fd-card__bed.is-open { color: var(--fo-red); }
.folio .ft-value { white-space: pre-line; }
/* Tonight is a word that opens the bed; the bed's name is on the ticket (a long one ran over the card). The Days
   board has no key under the scale, so the view hides it; Stops keeps it. */
.folio#tripMapPage.is-days .fs-legend { display: none; }

/* ---- the activity form, against the ActivityEdit board one row at a time (owner, 2026-10-01: 你每一张都看一下) ---- */

   /* (44 - 22) / 2 */

/* Tonight and Add to this day on one line. */
.folio .fd-card__foot > .fo-text, .folio .fd-card__foot > .fd-card__tonight { display: inline-flex; align-items: center; min-height: 44px; padding: 0; line-height: 1; }

/* Spent on a day (owner, 2026-10-01): the name and its kind under it, the reader's own share at the right; no time column. */
.folio .fd-spend__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.folio .fd-spend__cat { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
/* The day's entry (DayPage board): its title, three lines in the serif, not italic, and Read on. */
.folio .fd-jcard { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 12px 0 0; border: none; background: transparent; text-align: left; color: var(--fo-ink); font: inherit; cursor: pointer; }
.folio .fd-jcard__title { font-family: var(--fo-serif); font-size: 16px; letter-spacing: -0.015em; line-height: 1.2; }
.folio .fd-jcard__body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--fo-serif); font-size: 14px; line-height: 1.5; color: var(--fo-graphite); }
.folio .fd-jcard__on { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fd-entries { display: flex; flex-direction: column; gap: 10px; }
/* The Notes page's tools, as a word processor draws them: a row of line drawings under the bar, the one in force on
   the band; a heading is the sans at 16 over the serif's 14, so it shows. */
.folio .fd-notes .fo-tools { display: flex; gap: 4px; margin: 0 calc(-1 * var(--fo-gutter)); padding: 6px 16px; border-bottom: 1px dashed var(--fo-hair); background: var(--fo-paper); }
/* The ticket's acts answer 2px beyond their 40px outline, so each is a 44px press (owner, 2026-10-03: 改到44 但是不要改样式). */
/* A sight's notes keep what they were written with (owner, 2026-10-03: 详情页保留格式): headings, lists, bold, in the
   ticket's own sizes. Washed by sanitizeRichText before they are printed. */
.folio .ft-notes--rich > :first-child { margin-top: 0; }
.folio .ft-notes--rich > :last-child { margin-bottom: 0; }
.folio .ft-notes--rich p { margin: 0 0 6px; }
.folio .ft-notes--rich :is(h1, h2, h3) { margin: 10px 0 4px; font-family: var(--fo-sans); font-style: normal; font-size: 14px; font-weight: 600; line-height: 1.35; }
.folio .ft-notes--rich :is(ul, ol) { margin: 0 0 6px; padding-left: 18px; }
.folio .ft-notes--rich strong { font-weight: 600; }
.folio .ft-notes--rich a { color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; }
/* No bed yet, with Find one beside it: a link out to Booking.com (2026-10-12). */
.folio a.fd-card__find { text-decoration: none; font-size: 12px; }
.folio .fd-card__find > span:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
/* A day's line (61-folio-days.js fdDayLine, owner 2026-10-13: 每天一句): under the date on its card, and on its page with
   Change for a planner. */
.folio .fd-card__line { margin: -4px 0 8px; font-family: var(--fo-serif); font-style: italic; font-size: 14px; line-height: 1.4; color: var(--fo-graphite); }
.folio .fd-dayline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; }
.folio .fd-dayline__words { margin: 0; font-family: var(--fo-serif); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--fo-ink); }
.folio .fd-dayline__act { flex: none; font-size: 12px; min-height: 44px; }
