/* ==========================================================================
   60  Folio — the redesign's foundation: tokens and components
   --------------------------------------------------------------------------
   Built 2026-09-30 from the owner's style sheet (Style.dc.html §03–§14, Style3 §28–§30,
   Style5 §44 and §46), as a trial. NOT loaded by index.html yet; dev/folio-kit.html is the
   only page that reads it. Nothing here reaches the deck log: every rule is written under
   `.folio`, and the tokens are declared on `.folio` itself.

   WHY THE TOKENS ARE ON `.folio` AND NOT ON `:root`. The same reason the log's are on a
   selector list at the head of css/02-auth.css — scope — with one lesson taken from what
   that list has cost (references/world-traps.md): an overlay appended to <body> is inside
   no room, so it resolves nothing unless it is named. Here the rule is simpler and the JS
   enforces it: EVERY piece that 60-folio-ui.js puts on <body> (a sheet, a dialog, the undo
   bar) carries the `folio` class itself. Do not add a new overlay without it; a screenshot
   of one that resolved nothing would look like the outgoing world, not like an error.

   The world, as settled by the owner (do not reinterpret):
     paper #F7F6F3 · ink #1A1614 · graphite #66635F · pale #A8A7A1 · band #EFEEE9
     card #FDFCFA · rule #E3E3DE · dashed hairlines rgba(26,22,20,.18)
     red #C4111F is the ONLY accent: Save/commit, "now", faults, the irreversible warning,
     the required dot. Delete and Remove are ink (Undo covers them). Links are underlined ink.
     Newsreader 400 for titles; Geist for body; Geist Mono small caps for eyebrows.
     Square corners everywhere except the glass capsule, radios and a sheet's top corners.
   ========================================================================== */

.folio {
    --fo-paper: #F7F6F3;
    --fo-ink: #1A1614;
    --fo-graphite: #66635F;
    --fo-pale: #A8A7A1;
    --fo-band: #EFEEE9;
    --fo-card: #FDFCFA;
    --fo-rule: #E3E3DE;
    --fo-hair: rgba(26,22,20,0.18);
    --fo-hair-firm: rgba(26,22,20,0.28);   /* a card's or a menu's edge */
    --fo-hair-open: rgba(26,22,20,0.35);   /* the "not yet" tag, the offline note */
    --fo-red: #C4111F;
    --fo-scrim: rgba(26,22,20,0.42);
    --fo-bone: #E6E4DE;                    /* the two bone greys of §46 C/H */
    --fo-bone-light: #ECEAE5;
    --fo-edge: rgba(26,22,20,0.92);        /* the outlined button's border */

    /* Chinese (2026-10-07, DEBTS §0): none of the three faces has a Han glyph, and the stacks named no Chinese face,
       so 简/繁 fell to whatever the system chose. 'CJK Sans Adj' (01-tokens.css) is the phone's own Chinese sans,
       sized to sit with a Latin cap height and limited to the Han ranges, so the Latin is untouched; the serif takes a
       Song face where the phone has one. */
    --fo-serif: 'Newsreader', 'Songti SC', 'Songti TC', 'Noto Serif CJK SC', 'Noto Serif SC', 'SimSun', Georgia, serif;
    --fo-sans: 'Geist', 'CJK Sans Adj', system-ui, sans-serif;
    --fo-mono: 'Geist Mono', 'CJK Sans Adj', ui-monospace, Menlo, monospace;

    /* THE TYPE SCALE (owner, 2026-10-01): 24 a page's title; 16 a section or card title, a field, an amount; 14 a list
       or card item's title and a button; 12 the body; 10 the floor, for tags, eyebrows and captions. Every size in the
       folio's stylesheets is one of these five. Before it, one notch under the boards (2026-09-30: 大标题 小标题 字太大了).
       A page's or a journey's title, a stop's name, and the two figures a card and a form print
       large. Every room reads these; a board's 30/23/24/28 is the reference, not the setting. */
    --fo-display: 24px;      /* the page title, the one 24 */
    --fo-display-2: 16px;    /* a section or card title (owner's type scale, 2026-10-01) */
    --fo-figure: 16px;       /* a figure: an amount, a count of nights */
    --fo-figure-big: 16px;   /* amounts and the like: 16, as the scale asks of them */

    --fo-gutter: 24px;       /* every page board keeps 24px at the sides */
    --fo-tap: 44px;          /* nothing pressable is smaller */
    --fo-sheet-corner: 20px; /* a sheet, not a card */
    --fo-field-x: 12px;      /* §04 draws a field with 12px sides; a room set flush in its
                                gutter sets this to 0 (ActivityEdit, ExpenseEdit do) */

    font-family: var(--fo-sans);
    font-size: 14px;
    line-height: 1.4;
    color: var(--fo-ink);
    background: var(--fo-paper);
    -webkit-font-smoothing: antialiased;
}

/* A control does not inherit its face (see 01-tokens.css for the app-wide lesson);
   inside the folio every control takes the folio's. `:where` keeps this at the weight of a
   bare element rule — written as `.folio button` it outranked `.fo-btn`, and the first
   photograph of the kit showed every dark button with its word in ink on ink. */
:where(.folio) button, :where(.folio) input, :where(.folio) textarea, :where(.folio) select { font: inherit; color: inherit; }
.folio a { color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.folio b { font-weight: 500; }
.folio svg { display: block; }

/* ---- type ------------------------------------------------------------------ */

.fo-eyebrow {
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-graphite);
}
.fo-eyebrow--ink { color: var(--fo-ink); }
.fo-eyebrow--small { font-size: 10px; color: var(--fo-graphite); }
.fo-serif { font-family: var(--fo-serif); font-weight: 400; }
.fo-quiet { font-size: 12px; line-height: 1.5; color: var(--fo-graphite); }

/* A section's title on a form: mono ink over a dashed hairline (§04 Long text, ActivityEdit). */
.fo-section {
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--fo-hair);
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-ink);
}

/* ---- the top bar (§10, §32) ------------------------------------------------- */
/* Three columns: the left action, the mono title, the right action. The right action is
   red and underlined ONLY when it commits (Save, Done, Make); a Contents or a Close is ink.
   `is-running` is §46 E: the hairline under the head carries a short ink stroke across
   while the page is brought up to date, and nothing else moves. */
.fo-bar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 var(--fo-gutter);
    border-bottom: 1px dashed var(--fo-hair);
}
/* A page on the stack in the folio (pushPage opts.folio, 17-pagestack.js): the bar runs up under the notch, the
   right-hand word (or nothing) sits at the end, and the page is the paper. */
.folio.pgstack-page { background: var(--fo-paper); color: var(--fo-ink); font-family: var(--fo-sans); font-size: 14px; line-height: 1.4; }
.folio.pgstack-page > .fo-bar { flex: none; box-sizing: content-box; padding-top: env(safe-area-inset-top, 0px); background: var(--fo-paper); }
.folio.pgstack-page > .fo-bar .pgstack-title { max-width: 190px; }
.folio.pgstack-page > .fo-bar .pgstack-actions { justify-self: end; display: flex; }
.folio.pgstack-page .pgstack-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0; background: var(--fo-paper); }
.fo-bar__title {
    margin: 0;          /* it is an h1 on the trip: the browser's bold and margin were showing (owner, 2026-10-01) */
    font-weight: 400;
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fo-bar__act {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: var(--fo-tap);
    min-width: var(--fo-tap);
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--fo-ink);
    text-decoration: none;
    cursor: pointer;
}
.fo-bar__act--right { justify-self: end; justify-content: flex-end; }
.fo-bar__act--commit { color: var(--fo-red); text-decoration: underline; text-underline-offset: 3px; }
.fo-bar.is-running { overflow: hidden; }
.fo-bar.is-running::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 70px;
    height: 1.5px;
    background: var(--fo-ink);
    animation: fo-run 1.4s cubic-bezier(.45,0,.55,1) infinite;
}

/* ---- buttons (§03, §32) ----------------------------------------------------- */
/* One dark button per screen; a second choice beside it is outlined; a third never.
   Delete is outlined ink, not red — the Undo bar is its safety. */
.fo-btn {
    height: 52px;
    padding: 0 24px;
    border: none;
    background: var(--fo-ink);
    color: var(--fo-card);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.fo-btn--full { width: 100%; }
.fo-btn--secondary {
    padding: 0 22px;
    border: 1px solid var(--fo-edge);
    background: transparent;
    color: var(--fo-ink);
}
.fo-btn--compact { height: 44px; padding: 0 18px; font-size: 14px; }
.fo-btn--square { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
.fo-btn__arrow { font-family: var(--fo-serif); font-style: italic; font-size: 16px; }
.fo-btn:disabled, .fo-btn.is-disabled {
    background: var(--fo-rule);
    color: var(--fo-pale);
    border-color: transparent;
    cursor: default;
}
/* Working (§03, §46 F): only sign-in and sign-up, which must hear back. The word becomes a
   mono line — SIGNING IN… — and nothing spins; there is no caret. */
.fo-btn.is-working, .fo-btn.is-working:disabled {
    background: var(--fo-ink);
    color: var(--fo-card);
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: default;
}
/* Text actions: a link is underlined ink; Back is a word without one; the mono word (Hide)
   is the instrument's own voice. All three stand 44 tall. */
.fo-text, .fo-back, .fo-word {
    display: inline-flex;
    align-items: center;
    min-height: var(--fo-tap);
    padding: 0;
    border: none;
    background: transparent;
    color: var(--fo-ink);
    cursor: pointer;
}
.fo-text { font-family: var(--fo-sans); font-size: 14px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fo-back { font-size: 14px; text-decoration: none; }
.fo-word { font-family: var(--fo-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }

/* ---- THE BUTTON SYSTEM (owner, 2026-10-20: the Buttons · system board) ------------------------------------------------
   Ten kinds, in place of some two hundred classes that each drew their own. A control may look smaller than 44 (36, 32, a
   line of words), but where a finger lands is never under 44. Sizes are 24/16/14/12/10 only; red is the act that commits,
   and a fault. Above: .fo-btn (52; --compact 44; --secondary outlined), .fo-bar__act (a bar's words; --commit the red),
   .fo-text (the 14px link), .fo-word (the mono word). Here: the small link, the chip and the tab. A room's own class may
   stay on a control as a hook and for where it sits, never for how it looks. */
/* The small link: 12px, only in a dense row — a row with a name, a date and a line already, or the small print. Its
   press reaches past it rather than standing it 44 tall. .is-inline does the same for a 14px link in running words. */
.fo-text--small { position: relative; min-height: 0; font-size: 12px; }
.fo-text--small::after { content: ''; position: absolute; inset: -14px -4px; }
.fo-text.is-inline { display: inline; position: relative; min-height: 0; }
.fo-text.is-inline::after { content: ''; position: absolute; inset: -12px -2px; }
.fo-bar__act[disabled], .fo-bar__act[aria-disabled="true"] { color: var(--fo-pale); text-decoration: none; cursor: default; }
/* The chip: a choice among a few, or a switch between views. Seen 32, pressed 44; 12px, as it is spelt; outlined, and the
   ink when chosen (owner, 2026-10-20: 改成32高 字号12 点击区44). */
.fo-chip {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
    box-sizing: border-box; border: 1px solid var(--fo-ink); background: transparent; font-family: var(--fo-sans); font-size: 12px; font-weight: 500;
    letter-spacing: 0; text-transform: none; text-decoration: none; color: var(--fo-ink); white-space: nowrap; cursor: pointer;
}
.fo-chip::after { content: ''; position: absolute; inset: -6px 0; }
.fo-chip.is-on, .fo-chip[aria-pressed="true"], .fo-chip[aria-checked="true"], .fo-chip[aria-selected="true"] { background: var(--fo-ink); color: var(--fo-card); }
.fo-chip:disabled, .fo-chip[aria-disabled="true"] { border-color: var(--fo-rule); color: var(--fo-pale); cursor: default; }
/* The tab: views of one page (Overview · By category · Per person). 14px 500; the one shown in the ink over a line. */
.fo-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--fo-sans); font-size: 14px; font-weight: 500; color: var(--fo-graphite); text-decoration: none; cursor: pointer; }
.fo-tab.is-on, .fo-tab[aria-selected="true"], .fo-tab[aria-current="page"] { color: var(--fo-ink); }
/* The rule under the tab on is as wide as its word, not its column, and grows from the middle out (owner, 2026-10-22:
   下划线太长了 改成和上面文字一样长 带一点点动效 中间向两边由短变长). The button still fills its column, for the press;
   the word is its own span (.fo-tab__word), and the rule is drawn under that. A keyframe, not a transition, so a tab
   drawn afresh as the one on grows too. */
.fo-tab__word { position: relative; display: inline-flex; align-items: center; align-self: stretch; }
.fo-tab__word::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--fo-ink); transform: scaleX(0); }
.fo-tab.is-on .fo-tab__word::after, .fo-tab[aria-selected="true"] .fo-tab__word::after, .fo-tab[aria-current="page"] .fo-tab__word::after { transform: scaleX(1); animation: fo-tab-grow .22s ease-out; }
@keyframes fo-tab-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .fo-tab.is-on .fo-tab__word::after, .fo-tab[aria-selected="true"] .fo-tab__word::after { animation: none; } }
/* The formatting tool: one square of 44 in a toolbar (the diary editor's, a sight's notes'), its mark 16px in the ink — B in
   500, I in italic, U underlined, the rest drawn; the one in force on the band (2026-10-21; there were two, of 40 and of 44,
   with the letters in three faces). */
.fo-tool { width: 44px; height: 44px; flex: none; padding: 0; border: none; background: transparent; display: inline-flex; align-items: center; justify-content: center; font-family: var(--fo-sans); font-size: 16px; font-weight: 400; color: var(--fo-ink); cursor: pointer; }
.fo-tool b { font-weight: 500; }
.fo-tool i { font-family: inherit; font-size: inherit; }
.fo-tool.is-on, .fo-tool[aria-pressed="true"] { background: var(--fo-band); }
/* Long text grows with what is written, to half the screen, then scrolls in its box (owner, 2026-10-21: 要上限). The
   height is measured in 60-folio-ui.js (foGrow) for every textarea.fo-grow. */
.fo-grow { max-height: 50vh; overflow-y: auto; resize: none; }
/* Rows, labels and tools (2026-10-21, the Rows · labels · tools boards). A row that goes somewhere is at least 56: its name
   14 in the ink, a 12 graphite line under it, at its right a state and its mark (› in, + open, ↗ elsewhere, ✓ chosen).
   The field label is one: mono 10 caps, graphite; the ink and a red dot when it must be filled, the red at a fault. */
.fo-label { font-family: var(--fo-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
/* The step (− / +): a 32 square on a light edge, pressed 44; pale at its end. */
.fo-step { position: relative; width: 32px; height: 32px; flex: none; padding: 0; box-sizing: border-box; border: 1px solid var(--fo-edge); background: transparent; display: inline-flex; align-items: center; justify-content: center; font-family: var(--fo-sans); font-size: 16px; line-height: 1; color: var(--fo-ink); cursor: pointer; }
.fo-step::after { content: ''; position: absolute; inset: -6px; }
.fo-step:disabled { border-color: var(--fo-rule); color: var(--fo-pale); cursor: default; }
.fo-dark .fo-step { border-color: rgba(253,252,250,0.7); color: var(--fo-card); }
/* The dashed add: a hair-open dashed frame, its + in the ink; a 52 square beside tiles, a 52 row with words (14 500). */
.fo-add { height: 52px; min-width: 52px; padding: 0 16px; box-sizing: border-box; border: 1px dashed var(--fo-hair-open); background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--fo-sans); font-size: 14px; font-weight: 500; color: var(--fo-ink); cursor: pointer; }
.fo-add--square { width: 52px; padding: 0; font-size: 16px; font-weight: 400; }
.fo-add:disabled { color: var(--fo-pale); cursor: default; }
/* A chip on a picture or a map: the paper under it, so it reads on anything. */
.fo-chip--on-picture { background: rgba(247,246,243,0.94); border-color: transparent; }
/* On the dark — the photograph viewer, the night plate, a ticket's acts on its scrim, the portrait crop: the same kinds in
   the card colour (2026-10-21). A bar word is the card; the act that commits is the card in 500 underlined, as the undo
   bar's (red does not read on the dark); a link and the small link are the card underlined; a secondary button is a card
   outline, 44; a primary is the card ground with ink words. */
.fo-dark .fo-bar__act, .fo-dark .fo-text, .fo-dark .fo-word { color: var(--fo-card); }
.fo-dark .fo-bar__act--commit { color: var(--fo-card); font-weight: 500; }
.fo-dark .fo-btn { background: var(--fo-card); color: var(--fo-ink); border-color: var(--fo-card); }
.fo-dark .fo-btn--secondary { background: transparent; color: var(--fo-card); border-color: rgba(253,252,250,0.7); }
.fo-dark :focus-visible { outline-color: var(--fo-card); }

/* ---- fields (§04) ----------------------------------------------------------- */
/* A mono label above a 17px value on a dashed baseline. Typing thickens the baseline to a
   2px ink line and lifts the ground to the card; it never glows. A fault turns the label,
   the line and the note red. A required label ends in a red dot. Only two lines are solid
   ink: under a title field (the page's own name, in serif) and under an amount typed in a
   row. */
.fo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 12px var(--fo-field-x) 10px;
    border: none;
    border-bottom: 1px dashed var(--fo-hair);
    background: transparent;
    text-align: left;
    cursor: text;
}
.fo-field__label {
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-graphite);
}
.fo-field__label.is-required { color: var(--fo-ink); }
.fo-field__label.is-required::after {
    content: '·';
    margin-left: 4px;
    color: var(--fo-red);
    font-size: 16px;
    line-height: 0;
    vertical-align: -2px;
}
.fo-field__input, .fo-field__value {
    display: flex;
    align-items: center;
    min-height: 22px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--fo-ink);
    outline: none;
}
.fo-field__input::placeholder { color: var(--fo-graphite); opacity: 1; }
/* The field draws its own line; the old world's input:focus-visible (05-interaction.css) gave the input a second one
   under it, 2px, on a real tap — not on a scripted focus, which is why it hid (owner, 2026-10-01: 两条横线). */
.fo-field__input:focus-visible, .fo-search__input:focus-visible, .folio.fs-photos input:focus-visible { border-bottom: none; }
.fo-field__input:-webkit-autofill:focus { -webkit-box-shadow: inset 0 0 0 1000px var(--fo-card); }
.fo-field:focus-within {
    border-bottom-color: transparent;
    box-shadow: inset 0 -2px 0 0 var(--fo-ink);
    background: var(--fo-card);
}
.fo-field.is-fault {
    border-bottom-color: transparent;
    box-shadow: inset 0 -2px 0 0 var(--fo-red);
}
.fo-field.is-fault .fo-field__label { color: var(--fo-red); }
.fo-field__note { padding: 0 var(--fo-field-x); font-size: 12px; color: var(--fo-red); }
.fo-field.is-disabled { cursor: default; }
.fo-field.is-disabled .fo-field__label,
.fo-field.is-disabled .fo-field__input,
.fo-field.is-disabled .fo-field__value { color: var(--fo-pale); }
/* A hint under the value, in the instrument's voice ("Read from the booking"). */
.fo-field__hint { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }

/* The title field: the page's own name, in serif, over a solid ink line. */
.fo-field--title { padding-bottom: 8px; border-bottom: 1.5px solid var(--fo-ink); }
/* Typing in it: the same one line, a little heavier — no fill and no second line under it (owner, 2026-10-01: 两条横线). */
.fo-field--title:focus-within { background: transparent; box-shadow: none; border-bottom: 2px solid var(--fo-ink); padding-bottom: 7.5px; }
.fo-field--title .fo-field__input, .fo-field--title .fo-field__value {
    font-family: var(--fo-serif);
    font-size: 16px;   /* a step under the display (owner, 2026-10-01: 字号太大) */
    letter-spacing: -0.03em;
    line-height: 1.05;
    min-height: 32px;
}

/* A pick-one: the field shows what is chosen and ▾; a tap opens the choice sheet (§05,
   §29). It is a button, so the keyboard reaches it; the value never types. */
.fo-field--pick { cursor: pointer; }
.fo-field--pick .fo-field__value { justify-content: space-between; gap: 8px; }
.fo-field--pick .fo-field__value > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-field--pick .fo-field__value.is-empty > span { color: var(--fo-graphite); }
.fo-chev { flex-shrink: 0; }
.fo-field--pick:focus-visible { outline: none; box-shadow: inset 0 -2px 0 0 var(--fo-ink); border-bottom-color: transparent; }

/* Two or three fields side by side, as the forms draw dates and money. */
.fo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fo-fields--three { grid-template-columns: 72px 1fr 1fr; }

/* An amount typed inside a row (§04): a name, then a mono figure over a solid 1.5px ink
   line, then its unit. */
.fo-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px var(--fo-field-x);
    border-bottom: 1px dashed var(--fo-hair);
}
.fo-amount-row__name { font-size: 14px; }
.fo-amount { display: flex; align-items: baseline; gap: 5px; }
.fo-amount__input {
    width: 76px;
    padding: 2px 0 3px;
    border: none;
    border-bottom: 1.5px solid var(--fo-ink);
    background: transparent;
    text-align: right;
    font-family: var(--fo-mono);
    font-size: 14px;
    outline: none;
}
.fo-amount__input:focus { border-bottom-width: 2px; padding-bottom: 2.5px; }
.fo-amount__unit { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }

/* The search box (§04): the one boxed field. 44 tall, a 1px rule, on the card. While typed
   in it takes an ink edge and a Clear. */
.fo-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--fo-rule);
    background: var(--fo-card);
    cursor: text;
}
.fo-search svg { flex-shrink: 0; }
.fo-search__input { flex: 1; min-width: 0; height: 100%; padding: 0; border: none; background: transparent; font-family: var(--fo-sans); font-size: 16px; color: var(--fo-ink); outline: none; }   /* 16: under it an iPhone zooms the page (2026-10-21) */
.fo-search__input::placeholder { color: var(--fo-graphite); opacity: 1; }
.fo-search__clear {
    display: none;
    margin-left: auto;
    min-height: var(--fo-tap);
    min-width: var(--fo-tap);
    margin-right: -12px;   /* the 44px reach runs to the box edge; the ✕ sits where the board draws it */
    padding: 0;
    border: none;
    background: transparent;
    color: var(--fo-graphite);
    cursor: pointer;
}
.fo-search.is-typing, .fo-search:has(.fo-search__input:not(:placeholder-shown)) { border-color: var(--fo-ink); }
.fo-search.is-typing .fo-search__clear { display: inline-flex; align-items: center; justify-content: center; }
.fo-search--short { height: 40px; }
.fo-search--short .fo-search__input { font-size: 16px; }

/* Long text (§04): under a section title, in a pale box, in serif; only the empty box's
   hint leans. Typing takes the ink edge, as the search box does — §04 says nothing about
   the box while typed in, and this is the nearest rule (an interpretation, recorded). */
.fo-longtext { display: flex; flex-direction: column; }
.fo-longtext__box {
    margin-top: 12px;   /* the Photograph plate's distance from its rule, the section above it on the stop form (owner, 2026-10-01) */
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--fo-rule);
    background: var(--fo-card);
    font-family: var(--fo-serif);
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    outline: none;
}
.fo-longtext__box::placeholder { font-style: italic; color: var(--fo-graphite); opacity: 1; }
/* A notes box, focused, takes a firmer edge and no ink frame (owner, 2026-10-01: notes … 点输入也有大黑框 … 都不要大黑框):
   the caret is the mark of where the writing goes. The 2px underline every field takes (05-interaction.css) is not a box's. */
.fo-longtext__box:focus { border-color: var(--fo-hair-open); }
.fo-longtext__box:focus-visible { border-bottom: 1px solid var(--fo-hair-open); }
.fo-longtext__count {
    align-self: flex-end;
    margin-top: 4px;
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-graphite);
}

/* ---- the sheet (§05, §29) --------------------------------------------------- */
/* Rises from the bottom over a 42% ink scrim; 20px top corners; a handle; a mono title
   that names the thing. A row is at least 58px: the name in 15px medium, one grey line
   under it; a dot marks the current setting, a chevron a way in. A tap chooses and closes.
   The search variant is the same sheet at most 60% of the screen: the box stays at its top
   and the list scrolls under it with no visible scrollbar. */
.fo-scrim {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--fo-scrim);
    opacity: 0;
    transition: opacity .2s ease-out;
}
.fo-scrim.is-open { opacity: 1; }
.fo-scrim--centre { display: flex; align-items: center; justify-content: center; padding: var(--fo-gutter); }
.fo-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9001;
    box-sizing: border-box;
    max-height: 63vh; /* §29, the owner's ceiling (2026-10-01: 弹出层最高不超过屏幕60%; 63% since 2026-10-02, so a long list shows half a row past it) — the list scrolls inside */
    padding: 10px var(--fo-gutter) 34px;
    background: var(--fo-paper);
    border-radius: var(--fo-sheet-corner) var(--fo-sheet-corner) 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .24s ease-out;
}
.fo-sheet.is-open { transform: none; }
/* A sheet with no list of rows (From a booking) scrolls as a whole under the same ceiling. */
.fo-sheet:not(:has(.fo-sheet__list)) { overflow-y: auto; scrollbar-width: none; }
.fo-sheet:not(:has(.fo-sheet__list))::-webkit-scrollbar { display: none; }
.fo-sheet--search { height: 60vh; }
/* The handle's box is taller than its 4px line, so a thumb finds it; it and the title take
   the pull (foSheetPull), and touch-action: none keeps the page from scrolling with it. */
.fo-sheet__handle { align-self: center; flex-shrink: 0; box-sizing: content-box; width: 36px; height: 4px; padding: 10px 24px; margin: -10px 0 2px; border-radius: 9999px; background: var(--fo-rule); background-clip: content-box; touch-action: none; cursor: grab; }
.fo-sheet__title { touch-action: none; }
.fo-scrim { touch-action: none; }
.fo-sheet__title {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--fo-hair);
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-ink);
}
.fo-sheet__search { flex-shrink: 0; margin-top: 12px; }
.fo-sheet__list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; }
.fo-sheet__list::-webkit-scrollbar { display: none; }
.fo-sheet__group {
    flex-shrink: 0;
    padding: 14px 0 6px;
    border-bottom: 1px dashed var(--fo-hair);
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-graphite);
}
.fo-sheet__row {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px dashed var(--fo-hair);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.fo-sheet--search .fo-sheet__row { min-height: 48px; }
/* The row holding focus as the sheet opens (foOpenSheet puts it on the first) is marked by a band, not the app's 2px ink
   ring (05-interaction.css): the sheet clips the ring's sides, and what was left read as a black bar under Ask me — only
   "sometimes", as a browser shows the ring after typing, so after a diary entry (test round, 2026-10-15: B13). */
.fo-sheet__row:focus-visible { outline: none; background: var(--fo-rule); }
.fo-sheet__row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fo-sheet__row-name { font-size: 14px; }   /* 400, as the currency rows (owner, 2026-10-01: Booked / Card read heavier) */
.fo-sheet__row-sub { font-size: 12px; color: var(--fo-graphite); }
.fo-sheet__row-code { width: 44px; flex-shrink: 0; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.fo-sheet__row-code + .fo-sheet__row-text { flex: 1; }
/* What is chosen carries a ✓; the rest carry nothing (was a radio dot until 2026-10-06). The box keeps its width so the rows line up. */
.fo-dot { width: 14px; height: 14px; flex-shrink: 0; display: grid; place-items: center; color: var(--fo-ink); }
.fo-way { flex-shrink: 0; color: var(--fo-graphite); }
.fo-sheet__empty { padding: 14px 0; font-size: 12px; color: var(--fo-graphite); }
/* What a searched sheet says when the answer is words (PlaceSearch: "Nothing by that name
   on the map."), and the quiet line under its rows. */
.fo-mark { background: var(--fo-band); color: inherit; padding: 0 1px; box-shadow: inset 0 -1px 0 var(--fo-ink); }
.fo-sheet__said { flex-shrink: 0; margin: 18px 0 0; font-family: var(--fo-serif); font-style: italic; font-size: 16px; }
.fo-sheet__note { flex-shrink: 0; margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--fo-graphite); }
/* The bar of a sheet with a way out: Cancel or Back at the left, the title in the middle. */
.fo-sheet__bar { flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: var(--fo-tap); border-bottom: 1px dashed var(--fo-hair); touch-action: none; }
.fo-sheet__bar .fo-sheet__title { padding: 0; border: none; justify-content: center; }
.fo-sheet__bar .fo-sheet__cancel { justify-self: start; margin: 0; padding: 0; text-align: left; color: var(--fo-ink); }
.fo-sheet__lead { flex-shrink: 0; margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--fo-graphite); }
.fo-sheet--ways .fo-sheet__row-name { font-family: var(--fo-serif); font-size: 16px; letter-spacing: -0.015em; }
.fo-sheet__row.is-quiet .fo-sheet__row-name { color: var(--fo-graphite); }
/* A sheet's search box keeps its hairline while it waits for a word (owner, 2026-10-01: 搜索框黑线). */
.fo-sheet__search .fo-search, .fo-sheet__search .fo-search:focus-within, .fo-sheet__search .fo-search.is-typing { border-color: var(--fo-rule); }
.fo-sheet__cancel {
    flex-shrink: 0;
    margin-top: 12px;
    min-height: var(--fo-tap);
    border: none;
    background: transparent;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}
/* The kit page shows a sheet standing on the page rather than rising over it. */
.fo-sheet--inline { position: static; transform: none; max-height: none; border: 1px solid var(--fo-rule); border-bottom: none; }
.fo-sheet--inline.fo-sheet--search { height: 420px; }

/* ---- the dialog (§11, §44) -------------------------------------------------- */
/* Only for what Undo cannot reach — deleting or leaving a trip, handing it on. A card with
   light-grey corner ticks; an eyebrow; a red warning triangle beside the serif title; what
   goes and what stays; "It can't be undone." in a red-ruled line; the safe choice first,
   outlined; the act in black. Delete is black even here. */
.fo-dialog {
    position: relative;
    width: 100%;
    max-width: 342px;
    padding: 22px 20px 18px;
    background: var(--fo-paper);
    border: 1px dashed var(--fo-hair-firm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fo-tick { position: absolute; width: 10px; height: 10px; pointer-events: none; }
.fo-tick--tl { top: -1px; left: -1px; border-top: 1.5px solid var(--fo-pale); border-left: 1.5px solid var(--fo-pale); }
.fo-tick--tr { top: -1px; right: -1px; border-top: 1.5px solid var(--fo-pale); border-right: 1.5px solid var(--fo-pale); }
.fo-tick--bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid var(--fo-pale); border-left: 1.5px solid var(--fo-pale); }
.fo-tick--br { bottom: -1px; right: -1px; border-bottom: 1.5px solid var(--fo-pale); border-right: 1.5px solid var(--fo-pale); }
.fo-dialog__eyebrow { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.fo-dialog__head { display: flex; align-items: center; gap: 10px; }
.fo-dialog__head svg { flex-shrink: 0; }
.fo-dialog__title { font-family: var(--fo-serif); font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.fo-dialog__line { font-size: 12px; line-height: 1.5; color: var(--fo-ink); }
.fo-dialog__never {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--fo-red);
    font-size: 12px;
    line-height: 1.4;
    color: var(--fo-red);
}
.fo-dialog__acts { display: flex; gap: 8px; margin-top: 8px; }
.fo-dialog__acts > .fo-btn { flex: 1; padding: 0; }

/* A card and a menu of actions share the ticked dashed edge (§05, §06). */
.fo-card { position: relative; padding: 16px 18px; border: 1px dashed var(--fo-hair-firm); background: rgba(253,252,250,0.7); }
.fo-menu { position: relative; border: 1px dashed var(--fo-hair-firm); background: var(--fo-card); }
.fo-menu__row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-top: 1px dashed var(--fo-hair);
    background: transparent;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.fo-menu__row:first-of-type { border-top: none; }

/* ---- the undo bar (§30) ----------------------------------------------------- */
/* The one feedback for an act that changed something. Across the foot, 16px from the
   sides; 28 from the bottom, or above the tab bar (96) where there is one. Five seconds,
   then it goes and the act is final. One at a time; a new one replaces the last. */
.fo-undo {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(calc(env(safe-area-inset-bottom, 0px) + 8px), 28px);   /* clear of a phone's home bar, not under it */
    z-index: 9500;
    box-sizing: border-box;
    min-height: 44px;   /* the whole bar 44, its words pressed 44 (owner, 2026-10-20: toast 可以应用到整个app 高度44 点击区44) */
    padding: 0 4px 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--fo-ink);
    color: var(--fo-card);
    font-size: 14px;
}
.fo-undo--above-tabs { bottom: 96px; }
.fo-toast { justify-content: flex-start; }
.fo-toast.is-fault { background: var(--fo-red); }
.fo-undo__msg { min-width: 0; padding: 12px 0; line-height: 1.45; }   /* one line of 20 and 12 above and below: 44 */   /* wraps: a refusal names a booking and its dates (§37 #4) */
.fo-undo__act {
    flex-shrink: 0;
    min-height: var(--fo-tap);
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--fo-card);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.fo-undo--inline { position: static; }

/* ---- tags (§06, §28) -------------------------------------------------------- */
/* 22px, square, mono 9px caps. Settled is a grey fill; chosen an ink outline; not-yet a
   dashed one; now a red outline — the present only, never a fault. A state tag is never
   pressable. */
.fo-tag {
    height: 22px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-ink);
    white-space: nowrap;
}
.fo-tag--settled { background: var(--fo-rule); }
.fo-tag--settled.fo-tag--quiet { color: var(--fo-graphite); }
.fo-tag--chosen { border: 1px solid var(--fo-ink); }
.fo-tag--open { border: 1px dashed var(--fo-hair-open); color: var(--fo-graphite); }
.fo-tag--now { border: 1px solid var(--fo-red); color: var(--fo-red); }
.fo-tag--filled { background: var(--fo-ink); color: var(--fo-card); }
/* The quiet line and the outlined Ask of the TripMates board (owner, 2026-10-03: 按板子做). */
.fo-tag--line { border: 1px solid var(--fo-rule); color: var(--fo-graphite); }
.fo-tag.fo-tag--ask { height: 32px; padding: 0 12px; border: 1px solid var(--fo-ink); font-family: var(--fo-sans); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fo-ink); }
.fo-tag--small { height: 22px; padding: 0 7px; font-size: 10px; flex-shrink: 0; }
/* A tag standing in a row's right column with a link under it (§25 Marked): the tag
   above, "Add the ticket" beneath, both to the right edge. */
.fo-tag-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
/* The "now" mark on its own: a red dot and the word. */
.fo-now { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-red); }
.fo-now::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: var(--fo-red); }

/* ---- the glass capsule (§10) ------------------------------------------------ */
/* The one round thing besides radios and a sheet's corners: the tab bar. */
.fo-tabs {
    height: 58px;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    gap: 4px;
    border-radius: 82px;
    background: rgba(215,215,208,0.5);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.08);
    border: 1px solid rgba(253,252,250,0.6);
    font-size: 12px;
    font-weight: 500;
}
.fo-tabs__tab {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: var(--fo-ink);
    cursor: pointer;
}
.fo-tabs__tab.is-on { padding: 0 16px; background: var(--fo-ink); color: var(--fo-card); }
.fo-tabs__tab--aside { flex-grow: 0; margin-left: auto; padding: 0 14px; background: var(--fo-card); }

/* ---- loading (§46) ---------------------------------------------------------- */
/* The rules: kept copy first, and a quiet mono line saying only what it knows; bones only
   when nothing is held; the rule under the head runs while refreshing (.fo-bar.is-running);
   photographs come as their colour, then blurred, then sharp; never a spinner, never a
   cover, never a guessed percent. The timing is the JS's (foLoading): nothing under 0.3s,
   the line at 0.3s, the running rule joins at 1s, words and Try again at 8s. */
.fo-check {
    display: none;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    padding: 6px var(--fo-gutter) 0;
    font-family: var(--fo-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fo-graphite);
}
.fo-check.is-on { display: flex; }
.fo-check.is-failed { color: var(--fo-red); }
/* Slow is not a fault (owner, 2026-10-08: 不用红色 改用其他系统色): graphite, a step darker than pale, and never red. */
.fo-check.is-slow { color: var(--fo-graphite); }
.fo-check__retry { flex-shrink: 0; white-space: nowrap; min-height: 24px; padding: 0; border: none; background: transparent; color: var(--fo-ink); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }

.fo-bone { display: block; background: var(--fo-bone); animation: fo-breathe 1.6s ease-in-out infinite; }
.fo-bone--light { background: var(--fo-bone-light); }
/* A row of bones the shape of a list row: a 40px square and two lines (§46 C/H). */
.fo-bone-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 9px var(--fo-gutter); border-bottom: 1px dashed var(--fo-hair); }
.fo-bone-row__lines { display: flex; flex-direction: column; gap: 6px; }

/* A photograph's tile: its own colour (--c, kept with it when uploaded), then a tiny
   blurred copy, then the sharp one fades in. The tile never changes size. */
.fo-photo { display: block; position: relative; overflow: hidden; background: var(--c, var(--fo-rule)); }
.fo-photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease-out, filter .3s ease-out; }
.fo-photo.is-blurred img { opacity: 1; filter: blur(6px); transform: scale(1.06); }
.fo-photo.is-sharp img { opacity: 1; filter: none; transform: none; }

/* A bar only where the length is known (upload, pages made); otherwise the running stroke. */
.fo-progress { height: 2px; background: var(--fo-rule); position: relative; overflow: hidden; }
.fo-progress__fill { height: 2px; background: var(--fo-ink); }
.fo-progress--running .fo-progress__fill { position: absolute; top: 0; bottom: 0; width: 30%; animation: fo-run2 1.3s ease-in-out infinite; }
/* Words for a long wait, in the app's own voice (Boswell's would be Courier Prime). */
.fo-long { display: flex; flex-direction: column; gap: 14px; }
.fo-long__line { font-size: 14px; line-height: 1.5; }

@keyframes fo-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes fo-run { from { transform: translateX(-80px); } to { transform: translateX(100vw); } }
@keyframes fo-run2 { from { left: -30%; } to { left: 100%; } }

/* Reduced motion: bones stand still, the stroke stops, words stay; sheets and the scrim
   arrive without sliding. */
@media (prefers-reduced-motion: reduce) {
    .folio .fo-bone, .folio .fo-bar.is-running::after, .folio .fo-progress--running .fo-progress__fill { animation: none; }
    .folio .fo-bar.is-running::after { width: 100%; opacity: .3; }
    .folio .fo-sheet, .folio .fo-scrim, .folio .fo-photo img,
    .fo-sheet.folio, .fo-scrim.folio { transition: none; }
}

/* ---- the date and time pickers (Style §07, §08; 63-folio-pickers.js, 2026-10-01) ----------------------------------
   A sheet like every other (the 60% ceiling holds: a month is six rows of 42px), its head the mono title and a quiet
   word on the right (Clear, No time), its foot the reading of what is chosen and Done — the ink, grey until there is
   something to be done. */
.fo-pick { padding-left: 0; padding-right: 0; }
.fo-pick__head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 20px 8px; }
.fo-pick__title { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
/* .fo-pick__aside is the small link (2026-10-21; it was a graphite 12). */
.fo-pick__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 0 16px; }
.fo-pick__body::-webkit-scrollbar { display: none; }
.fo-pick__foot { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 20px 0; border-top: 1px solid var(--fo-rule); }
.fo-pick__said { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fo-pick__value { font-family: var(--fo-serif); font-size: 16px; color: var(--fo-ink); }
.fo-pick__sub { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.fo-pick__sub:empty { display: none; }
.fo-pick__done { flex-shrink: 0; }   /* .fo-btn, 52 (it was 48; 2026-10-21) */
.fo-cal__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4px 6px; }
.fo-cal__step { justify-self: start; min-height: 40px; padding: 0; border: none; background: transparent; font-family: var(--fo-sans); font-size: 12px; color: var(--fo-graphite); cursor: pointer; }
.fo-cal__step[data-step="1"] { justify-self: end; }
.fo-cal__month { min-height: 40px; padding: 0 8px; border: none; background: transparent; font-family: var(--fo-serif); font-size: 16px; letter-spacing: -0.02em; color: var(--fo-ink); cursor: pointer; text-decoration: underline dotted var(--fo-hair); text-underline-offset: 4px; }
.fo-cal__months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2px; padding-top: 6px; border-top: 1px dashed var(--fo-hair); }
.fo-cal__month i { font-style: italic; color: var(--fo-graphite); }
.fo-cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 6px; border-bottom: 1px dashed var(--fo-hair); }
.fo-cal__week span { text-align: center; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fo-graphite); }
.fo-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; padding-top: 6px; }
.fo-cal__day { height: 42px; padding: 0; border: 1px solid transparent; background: transparent; font-family: var(--fo-serif); font-size: 16px; color: var(--fo-ink); cursor: pointer; }
.fo-cal__day.is-today { border-color: var(--fo-red); }
.fo-cal__day.is-mid { background: var(--fo-rule); }
.fo-cal__day.is-end { background: var(--fo-ink); color: var(--fo-card); }
.fo-cal__day.is-off { color: var(--fo-pale); text-decoration: line-through; text-decoration-color: rgba(26,22,20,0.25); cursor: default; }
.fo-time__quick { display: flex; gap: 8px; padding: 0 4px 14px; }
.fo-time__q { flex: 1; }   /* .fo-chip */
.fo-time__wheels { position: relative; display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; height: 220px; margin: 0 4px; }
.fo-time__band { position: absolute; left: 0; right: 0; top: 88px; height: 44px; border-top: 1px dashed rgba(26,22,20,0.35); border-bottom: 1px dashed rgba(26,22,20,0.35); background: rgba(253,252,250,0.7); pointer-events: none; }
.fo-time__wheel { position: relative; height: 220px; overflow-y: scroll; scrollbar-width: none; scroll-snap-type: y mandatory; padding: 88px 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; outline: none; }
.fo-time__wheel::-webkit-scrollbar { display: none; }
.fo-time__wheel[data-wheel="h"] { align-items: flex-end; padding-right: 12px; }
.fo-time__wheel[data-wheel="m"] { align-items: flex-start; padding-left: 12px; }
.fo-time__n { flex: none; height: 44px; display: flex; align-items: center; scroll-snap-align: center; font-family: var(--fo-serif); font-size: 16px; color: #D6D5D0; cursor: pointer; transition: font-size .12s; }
.fo-time__n.is-near { color: var(--fo-pale); }
.fo-time__n.is-on { font-size: 24px; color: var(--fo-ink); }
.fo-time__colon { position: relative; text-align: center; font-family: var(--fo-serif); font-size: 24px; }
/* The search box when it has the focus is the box in ink (PlaceSearch board, "typing"); the input itself draws nothing —
   a phone's own search field drew a black rule under the words (owner, 2026-10-01). */
.fo-search__input { -webkit-appearance: none; appearance: none; border: none !important; border-radius: 0; box-shadow: none !important; outline: none !important; }   /* nor the old world's ring: a black box inside the box (H1, owner 2026-10-18) */
.fo-search__input::-webkit-search-decoration, .fo-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fo-search:focus-within { border-color: var(--fo-ink); }
.fo-cal__step:disabled { color: var(--fo-pale); opacity: 0.5; cursor: default; }

/* ---- photographs: the colour first, then the picture (owner, 2026-10-01) ---------------------------------------- */
/* A frame breathes in the bone while its picture is coming; the picture fades in once it has (60-folio-ui.js marks it
   is-loaded). .fo-photo is the frame for any new room; the others are the frames already drawn. */
.folio .fo-photo, .folio .fd-tile:not(.fd-tile--add), .folio .ucov-tile, .folio .fs-photos__mine, .folio .tm-pin-frame { background-color: var(--fo-bone); }
.folio .fo-photo:has(img:not(.is-loaded)), .folio .fd-tile:has(img:not(.is-loaded)), .folio .ucov-tile:has(img:not(.is-loaded)), .folio .fs-photos__mine:has(img:not(.is-loaded)), .folio .tm-pin-frame:has(img:not(.is-loaded)),
.folio .home-profile-avatar:has(img:not(.is-loaded)), .folio .fr-face:has(img:not(.is-loaded)), .folio .pf-avatar:has(img:not(.is-loaded)), .folio .pe-avatar:has(img:not(.is-loaded)) { animation: fo-breathe 1.6s ease-in-out infinite; }   /* a portrait too (2026-10-21) */
.folio .fo-photo img, .folio .fd-tile img, .folio .ucov-tile img, .folio .fs-photos__mine img, .folio .tm-pin-frame img, .folio .home-profile-avatar img, .folio .fr-face img, .folio .pf-avatar img, .folio .pe-avatar img { opacity: 0; transition: opacity .45s ease-out; }
.folio .fo-photo img.is-loaded, .folio .fd-tile img.is-loaded, .folio .ucov-tile img.is-loaded, .folio .fs-photos__mine img.is-loaded, .folio .tm-pin-frame img.is-loaded, .folio .home-profile-avatar img.is-loaded, .folio .fr-face img.is-loaded, .folio .pf-avatar img.is-loaded, .folio .pe-avatar img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .folio .fo-photo, .folio .fd-tile, .folio .ucov-tile, .folio .fs-photos__mine, .folio .tm-pin-frame, .folio .home-profile-avatar, .folio .fr-face, .folio .pf-avatar, .folio .pe-avatar { animation: none !important; }
    .folio .fo-photo img, .folio .fd-tile img, .folio .ucov-tile img, .folio .fs-photos__mine img, .folio .tm-pin-frame img, .folio .home-profile-avatar img, .folio .fr-face img, .folio .pf-avatar img, .folio .pe-avatar img { transition: none; }
}

/* A remembered value the browser fills in is drawn on the folio's paper, in its ink (2026-10-04): the folio never said,
   and every field in it filled on the deck log's stock (#F5F5F3 on #F7F6F3). A field on a card says its card's paper. */
.folio { --fill-ground: var(--fo-paper); --fill-ink: var(--fo-ink); }

/* ---- Focus where the plain ring cannot be seen (focus audit, 2026-10-08) -------------------------------------------
   The ring is 2px of ink, 2px outside the control (05-interaction.css). Where that cannot be seen it changes here, and
   only its place or colour: (1) a control at the top of its page or at the screen's edge draws it 2px inside, as the
   ledger's bands learned to (05-interaction.css), or the page above or the screen cuts it off; (2) the ticket's acts sit
   on the dark scrim, so their ring is the card's paper; (3) a calendar day draws its ring over its photograph (67-folio-journal.css); (4) the corner buttons over the globe ring in paper with ink round it, so it
   reads on any part of the picture. */
.folio .fo-bar__act:focus-visible,
.folio .fd-row:focus-visible { outline-offset: -2px; }
.folio#boswellPage .bo-word:not(#boswellSend):focus-visible { outline-offset: -2px; }   /* Ask is a dark button: its ring stays outside */
.folio .fd-ticket-act:focus-visible { outline-color: var(--fo-card); }
.folio#mainPage .hero-corner-btn:focus-visible { box-shadow: 0 0 0 6px var(--fo-ink); }
