/* ==========================================================================================================
   The Journal (JournalList, JournalEntry, EntryDetails boards) — 2026-10-01
   ==========================================================================================================
   Drawn by 67-folio-journal.js. Type on the scale of 2026-10-01: 24 / 16 / 14 / 12 / 10. */

/* ---- the list ---------------------------------------------------------------------------------------------- */
.folio.fj-page .pgstack-body { background: var(--fo-paper); }
.folio .fj-head { padding: 18px var(--fo-gutter) 6px; display: flex; flex-direction: column; gap: 6px; }
.folio .fj-title { margin: 0; font-family: var(--fo-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.03em; line-height: 1; color: var(--fo-ink); }

/* The calendar: Sunday first, the month over its first week, the days of the journey marked by what was written. */
.folio .fj-cal-sec { padding: 8px var(--fo-gutter) 18px; border-bottom: 1px dashed var(--fo-hair); }
.folio .fj-cal { margin-top: 8px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--fo-rule); overflow: hidden; }
.folio .fj-cal__wd { padding: 8px 0; text-align: center; background: var(--fo-paper); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fj-cal__month { grid-column: 1 / -1; padding: 6px 10px; background: var(--fo-band); font-family: var(--fo-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .fj-cal__out { aspect-ratio: 1; background: var(--fo-band); }
.folio .fj-cal__day { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--fo-paper); background-size: cover; background-position: center; color: var(--fo-ink); cursor: pointer; }
.folio .fj-cal__n { position: relative; z-index: 1; font-family: var(--fo-mono); font-size: 12px; font-weight: 500; line-height: 1; }
.folio .fj-cal__day.is-today .fj-cal__n { color: var(--fo-red); }
.folio .fj-cal__day.has-photo { background-color: var(--fo-bone); }
.folio .fj-cal__day.has-photo .fj-cal__n { color: var(--fo-ink); -webkit-text-stroke: 3px var(--fo-paper); paint-order: stroke fill; }
.folio .fj-cal__day.is-written { background: var(--fo-graphite); color: var(--fo-card); }
.folio .fj-cal__day.is-written .fj-cal__n { color: var(--fo-card); }
.folio .fj-cal__day.is-draft { color: var(--fo-red); box-shadow: inset 0 0 0 1.5px var(--fo-red); }
.folio .fj-cal__day.is-draft .fj-cal__n { color: var(--fo-red); }
/* Focus: two rings inside the cell, ink within paper, so it reads on a photograph and the grid's edge cannot cut it. */
.folio .fj-cal__day:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--fo-ink), inset 0 0 0 4px var(--fo-card); }
.folio .fj-cal__lines { position: absolute; right: 5px; bottom: 5px; fill: none; stroke: var(--fo-card); stroke-width: 1; }
.folio .fj-cal__day.is-draft .fj-cal__lines { stroke: var(--fo-red); stroke-dasharray: 2 1.5; }
.folio .fj-keys { display: flex; gap: 14px; margin-top: 12px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fj-keys > span { display: flex; align-items: center; gap: 6px; }
.folio .fj-keys i { width: 10px; height: 10px; box-sizing: border-box; }
.folio .fj-keys i.is-photo { background-color: var(--fo-bone); background-image: repeating-linear-gradient(135deg, rgba(26,22,20,.06) 0 1px, transparent 1px 7px); }
.folio .fj-keys i.is-written { background: var(--fo-graphite); }
.folio .fj-keys i.is-draft { border: 1.5px solid var(--fo-red); }

/* The unfinished: one red-dashed line under the calendar, above everything finished. */
.folio .fj-drafts { margin: 16px var(--fo-gutter) 0; width: calc(100% - 2 * var(--fo-gutter)); padding: 12px 14px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px dashed rgba(196,17,31,0.45); background: rgba(196,17,31,0.03); color: var(--fo-ink); font: inherit; text-align: left; cursor: pointer; }
.folio .fj-drafts__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.folio .fj-drafts__count { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-red); }
.folio .fj-drafts__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--fo-serif); font-style: italic; font-size: 16px; }
.folio .fj-drafts__open { flex: none; font-size: 12px; color: var(--fo-red); text-decoration: underline; text-underline-offset: 3px; }

/* The entries, newest first: the day and the place, the title, two lines, and the prints. */
.folio .fj-list { padding: 6px var(--fo-gutter) 0; }
.folio .fj-entry { padding: 18px 0; border-bottom: 1px dashed var(--fo-hair); display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.folio .fj-entry .fo-eyebrow--ink { color: var(--fo-ink); }
.folio .fj-entry__title { font-family: var(--fo-serif); font-size: 16px; letter-spacing: -0.015em; line-height: 1.2; color: var(--fo-ink); }
.folio .fj-entry__body { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--fo-serif); font-size: 14px; line-height: 1.5; color: var(--fo-graphite); }
.folio .fj-prints { display: flex; margin: 8px -18px 0; padding-bottom: 6px; }
.folio .fj-print { position: relative; flex: 1 1 0; min-width: 0; height: 108px; box-sizing: border-box; border: 3px solid #FFFFFF; outline: 1px solid var(--fo-rule); box-shadow: 0 1px 1px rgba(26,22,20,0.22); overflow: hidden; }
.folio .fj-print + .fj-print { margin-left: -16px; }
.folio .fj-prints--1 .fj-print, .folio .fj-prints--2 .fj-print { height: 130px; }
.folio .fj-prints--2 .fj-print + .fj-print { margin-left: -20px; }
.folio .fj-prints--1 { margin: 8px 0 0; }
.folio .fj-prints--1 .fj-print { flex: 0 0 60%; }
.folio .fj-print img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Nothing written yet: the shape of an entry, and a line about what to do. */
.folio .fj-empty { margin: 24px var(--fo-gutter) 0; display: flex; flex-direction: column; gap: 12px; }
.folio .fj-empty__bones { height: 120px; box-sizing: border-box; padding: 16px; border: 1px dashed var(--fo-hair-open); background: var(--fo-card); display: flex; flex-direction: column; gap: 10px; }
.folio .fj-empty__bones span { height: 8px; background: var(--fo-band); }
.folio .fj-empty__bones span:first-child { height: 12px; width: 50%; }
.folio .fj-empty__bones span:nth-child(2) { width: 86%; }
.folio .fj-empty__bones span:nth-child(3) { width: 72%; }
.folio .fj-empty__say { margin: 4px 0 0; font-family: var(--fo-serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--fo-ink); }
.folio .fj-empty .fo-quiet { margin: 0; font-size: 12px; line-height: 1.5; }

/* The one way to write, at the foot over the paper. */
.folio .fj-foot-space { height: 110px; }
.folio.fj-page .fj-footbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px var(--fo-gutter) calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--fo-paper); border-top: 1px dashed var(--fo-hair); }   /* opaque: the writing must not show through (owner, 2026-10-01) */
.folio.fj-page .fj-footbar .fo-btn { height: 52px; font-size: 14px; }

/* ---- an entry (JournalEntry board) ------------------------------------------------------------------------------ */
.folio .fj-nav { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 var(--fo-gutter); border-bottom: 1px dashed var(--fo-hair); }
.folio .fj-nav__go { min-height: 44px; padding: 0; border: none; background: transparent; font-size: 14px; color: var(--fo-ink); cursor: pointer; }
.folio .fj-nav__go:disabled { color: var(--fo-pale); cursor: default; }
.folio .fj-nav__date { font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-ink); }
.folio .fj-nav__date span { color: var(--fo-pale); }
.folio .fj-swipe { overflow: hidden; touch-action: pan-y; }
.folio .fj-read { padding: 26px var(--fo-gutter) 120px; display: flex; flex-direction: column; gap: 14px; }
/* The writing: the opening line is the title (marked .jp-title by normaliseRenderedFirstBlock), the rest serif 16. */
.folio .fj-text { display: contents; }
.folio .fj-text > * { margin: 0; font-family: var(--fo-serif); font-size: 16px; line-height: 1.6; color: var(--fo-ink); overflow-wrap: anywhere; }
.folio .fj-read > .jp-title { margin: 0; font-family: var(--fo-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; color: var(--fo-ink); overflow-wrap: anywhere; }
.folio .fj-text ul, .folio .fj-text ol { padding-left: 1.2em; }
.folio .fj-text blockquote { padding-left: 14px; border-left: 2px solid var(--fo-rule); color: var(--fo-graphite); }
.folio .fj-text img { display: block; max-width: 100%; height: auto; }
.folio .fj-text a { color: var(--fo-ink); text-underline-offset: 3px; }
.folio .fj-where { color: var(--fo-graphite); }

/* The photographs: a mosaic of sixths, the first slot the cover. */
.folio .fj-ph-head { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.folio .fj-ph-head .fo-eyebrow { color: var(--fo-graphite); }
.folio .fj-arrange { min-height: 44px; padding: 0; border: none; background: transparent; font-size: 12px; color: var(--fo-ink); cursor: pointer; }
.folio .fj-arrange.is-on { color: var(--fo-red); }
.folio .fj-mosaic-box { container-type: inline-size; }
.folio .fj-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 10px) / 6); gap: 2px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.folio .fj-ph { position: relative; padding: 0; border: none; overflow: hidden; cursor: grab; touch-action: pan-y; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.folio .fj-ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.folio .fj-mosaic.is-arranging .fj-ph { cursor: pointer; }
.folio .fj-ph.is-lifted { z-index: 3; touch-action: none; pointer-events: none; transition: box-shadow .2s; box-shadow: 0 10px 24px rgba(26,22,20,0.28); }
.folio .fj-ph.is-target::after, .folio .fj-ph.is-picked::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--fo-ink); pointer-events: none; }
.folio .fj-ph.is-picked::after { box-shadow: inset 0 0 0 2px var(--fo-red); }
.folio .fj-mosaic.is-arranging:has(.is-picked) .fj-ph:not(.is-picked) { opacity: .85; }
.folio .fj-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--fo-graphite); }
.folio .fj-hint:empty { display: none; }

/* The foot: Details, what is in it, and Show. */
.folio.fj-page .fj-footbar--details { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.folio .fj-footbar__say { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.folio .fj-footbar__stats { font-size: 12px; color: var(--fo-graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folio .fj-show { min-height: 44px; padding: 0; border: none; background: transparent; font-size: 14px; color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- the details (EntryDetails board) --------------------------------------------------------------------------- */
.folio .fj-details__body { display: flex; flex-direction: column; }
.folio .fj-details__body > * { border-bottom: 1px dashed var(--fo-hair); }
.folio .fj-details__meta { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fj-details__day { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; font-size: 14px; color: var(--fo-ink); }
.folio .fj-details__day .fo-quiet { font-size: 12px; }
.folio .fj-about { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0; border: none; border-bottom: 1px dashed var(--fo-hair); background: transparent; text-align: left; color: var(--fo-ink); cursor: pointer; }
.folio .fj-about__thumb { flex: none; width: 44px; height: 44px; overflow: hidden; }
.folio .fj-about__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folio .fj-about__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.folio .fj-about__name { font-family: var(--fo-serif); font-size: 16px; line-height: 1.2; }
.folio .fj-about__addr { font-size: 12px; color: var(--fo-graphite); }
.folio .fj-details__remove { padding-top: 28px; border-bottom: none !important; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.folio .fj-delete { min-height: 44px; padding: 0; border: none; background: transparent; font-size: 14px; color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.folio .fj-details__remove .fo-quiet { margin: 0; font-size: 12px; line-height: 1.5; }

/* ---- the editor (JournalEdit board) ----------------------------------------------------------------------------- */
.folio#writeJournalModal { padding: 0; background: var(--fo-paper); }
.folio#writeJournalModal .modal-content.fj-edit { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; background: var(--fo-paper); color: var(--fo-ink); font-family: var(--fo-sans); font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; overflow: hidden; }
.folio .fj-edit form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.folio .fj-edit__bar { flex: none; box-sizing: content-box; padding-top: env(safe-area-inset-top, 0px); background: var(--fo-paper); }
.folio .fj-edit__scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }   /* a block, not a flex column: a column shrank the writing to fit and a long entry ran out over what follows (owner, 2026-10-01) */

/* The writing: the opening line is the title (normaliseDiaryFirstBlock wraps it), the rest the serif at 16. */
.folio .fj-edit__text { min-height: 160px; margin: 0; padding: 26px var(--fo-gutter) 18px; border: none; outline: none; background: transparent; font-family: var(--fo-serif); font-size: 16px; line-height: 1.6; color: var(--fo-ink); overflow-wrap: anywhere; }
.folio .fj-edit__text > * { margin: 0 0 12px; }
.folio .fj-edit__text > :first-child { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; }
.folio .fj-edit__text:empty::before { content: attr(data-placeholder); color: var(--fo-pale); }
.folio .fj-edit__text img { display: block; max-width: 100%; height: auto; margin: 6px 0; }
.folio .fj-edit__text a { color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; }
.folio .fj-edit__text blockquote { padding-left: 14px; border-left: 2px solid var(--fo-rule); color: var(--fo-graphite); }

/* The photographs: the first is the cover, the last tile adds. */
.folio .fj-edit__photos { padding: 6px var(--fo-gutter) 0; }
.folio .fj-edit__ph-head { padding-bottom: 8px; }
.folio .fj-edit__ph-head .fo-eyebrow { color: var(--fo-graphite); }
.folio .fj-edit__strip { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.folio .fj-edit__strip::-webkit-scrollbar { display: none; }
.folio .fj-edit__tile { position: relative; flex: none; width: 52px; height: 52px; box-sizing: border-box; padding: 0; border: none; background: var(--fo-bone); overflow: hidden; cursor: pointer; }
.folio .fj-edit__tile img, .folio .fj-edit__tile video { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.folio .fj-edit__tile.is-cover { outline: 2px solid var(--fo-ink); outline-offset: -2px; }
.folio .fj-edit__tile.is-placed img { opacity: .55; }
.folio .fj-edit__cover { position: absolute; left: 0; bottom: 0; padding: 2px 4px; background: var(--fo-ink); color: var(--fo-card); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; }
.folio .fj-edit__kind { position: absolute; left: 0; top: 0; padding: 2px 4px; background: var(--fo-paper); font-family: var(--fo-mono); font-size: 10px; text-transform: uppercase; }
/* Focus inside the box, so the strip and the screen edge cannot cut it; on a picture, two rings over it. */
.folio .fj-edit__tile:focus-visible { outline: none; }
.folio .fj-edit__tile:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 0 0 2px var(--fo-ink), inset 0 0 0 4px var(--fo-card); pointer-events: none; }
.folio .fj-edit__add:focus-visible, .folio .fj-edit .fo-bar__act:focus-visible { outline-offset: -2px; }
.folio .fj-edit__add { flex: none; width: 52px; height: 52px; padding: 0; border: 1px dashed var(--fo-hair-open); background: transparent; font-size: 16px; color: var(--fo-ink); cursor: pointer; }

/* Stuck: Boswell drafts the day from what is said about it. */
.folio .fj-edit__stuck { margin: 16px var(--fo-gutter) 0; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px dashed var(--fo-hair-open); background: var(--fo-band); font-family: var(--fo-mono); font-size: 12px; line-height: 1.5; color: var(--fo-ink); }
.folio .fj-edit__ask { flex: none; min-height: 44px; padding: 0; border: none; background: transparent; font-family: var(--fo-sans); font-size: 12px; color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The tools: the editor's footer, at the foot of what can be seen, over the keyboard when it is up. */
.folio .fj-edit__tools { flex: none; display: flex; align-items: center; justify-content: space-around; height: 52px; padding: 0 12px env(safe-area-inset-bottom, 0px); background: var(--fo-card); border-top: 1px solid var(--fo-rule); }
.folio .fj-edit__tool { width: 44px; height: 44px; padding: 0; border: none; background: transparent; display: inline-flex; align-items: center; justify-content: center; font-family: var(--fo-sans); font-size: 14px; color: var(--fo-ink); cursor: pointer; }
.folio .fj-edit__tool i { font-family: var(--fo-serif); font-size: 16px; }
.folio .fj-edit__quote { font-family: var(--fo-serif); font-size: 24px; line-height: 1; transform: translateY(5px); }
.folio .fj-edit__sep { width: 1px; height: 20px; background: var(--fo-rule); }

/* The entry's details, in a box under the tools. */
.folio .fj-edit__details { position: relative; margin: 16px var(--fo-gutter) 32px; padding: 2px 16px 6px; border: 1px dashed var(--fo-hair-firm); background: rgba(253,252,250,0.7); }
.folio .fj-edit__dhead { width: 100%; min-height: 44px; padding: 0; border: none; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--fo-ink); cursor: pointer; }
.folio .fj-edit__dline { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }
.folio .fj-edit__details.is-open .fj-edit__dline { visibility: hidden; }
.folio .fj-edit__hide { flex: none; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.folio .fj-edit__hide:empty::before { content: 'Show'; }
.folio .fj-edit__dbody { display: none; padding-bottom: 14px; }
.folio .fj-edit__details.is-open .fj-edit__dbody { display: block; }
.folio .fj-edit__row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
.folio .fj-edit__field { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--fo-hair); }
.folio .fj-edit__input { width: 100%; min-height: 32px; box-sizing: border-box; padding: 0; border: none; background: transparent; font-family: var(--fo-sans); font-size: 16px; color: var(--fo-ink); outline: none; }
.folio .fj-edit__date { min-height: 44px; margin: -12px 0; text-align: left; cursor: pointer; }
.folio .fj-edit__input:focus-visible { border-bottom: none; box-shadow: inset 0 -2px 0 0 var(--fo-ink); }
.folio .fj-edit__link { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; }
.folio .fj-edit__lstack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.folio button.fj-edit__link { width: 100%; min-height: 44px; border: none; border-bottom: 1px dashed var(--fo-hair); background: transparent; text-align: left; color: var(--fo-ink); font: inherit; cursor: pointer; }
.folio .fj-edit__link .fj-edit__change { flex: none; min-height: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.folio .fj-edit__link.is-empty .fj-edit__change { display: none; }
.folio .fj-edit__place { min-height: 44px; margin: -12px 0; cursor: pointer; caret-color: transparent; }   /* as the date beside it: a thumb's height, the board's row */
.folio .fj-edit__lname { min-width: 0; font-size: 14px; }
.folio .fj-edit__lname.is-empty { color: var(--fo-graphite); }
.folio .fj-edit .jw-link-meta { color: var(--fo-graphite); }
.folio .fj-edit__change { flex: none; min-height: 44px; padding: 0; border: none; background: transparent; font-size: 12px; color: var(--fo-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.folio .fj-edit__foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-graphite); }

/* ---- choosing from the journey's photographs (the editor's +) --------------------------------------------------- */
.folio#mediaPickerModal { padding: 0; background: var(--fo-paper); }
.folio#mediaPickerModal .modal-content.fj-pick { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; background: var(--fo-paper); color: var(--fo-ink); font-family: var(--fo-sans); font-size: 14px; display: flex; flex-direction: column; overflow: hidden; animation: none; }
.folio .fj-pick__bar { flex: none; box-sizing: content-box; padding-top: env(safe-area-inset-top, 0px); background: var(--fo-paper); }
.folio .fj-pick__bar #mediaPickCount { margin-left: 0.3em; }
.folio .fj-pick__bar .fo-bar__act:disabled { color: var(--fo-pale); text-decoration: none; cursor: default; }
.folio .fj-pick__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px var(--fo-gutter) 32px; }
.folio .fj-pick__say { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--fo-graphite); }
/* The Gallery's waterfall: three columns, each photograph at its own shape. */
.folio .fj-pick__grid { columns: 3; column-gap: 4px; }
.folio .fj-pick__grid .media-pick-tile { position: relative; break-inside: avoid; margin-bottom: 4px; background: var(--fo-bone); cursor: pointer; }
.folio .fj-pick__grid .media-pick-tile img { display: block; width: 100%; height: auto; min-height: 60px; object-fit: cover; }
.folio .fj-pick__grid .media-pick-check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--fo-card); border-radius: 50%; background: rgba(26,22,20,0.25); }
.folio .fj-pick__grid .media-pick-tile.is-picked { outline: 2px solid var(--fo-red); outline-offset: -2px; }
.folio .fj-pick__grid .media-pick-tile.is-picked .media-pick-check { border-color: var(--fo-red); background: var(--fo-red); }
.folio .fj-pick__grid .media-pick-tile.is-picked .media-pick-check::after { content: ''; position: absolute; left: 6px; top: 2px; width: 4px; height: 9px; border: solid var(--fo-card); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.folio .fj-pick__grid .media-pick-tile.is-used { cursor: default; }
.folio .fj-pick__grid .media-pick-tile.is-used img { opacity: .45; }
.folio .fj-pick__grid .media-pick-used { position: absolute; left: 0; bottom: 0; padding: 2px 5px; background: var(--fo-ink); color: var(--fo-card); font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.folio .fj-pick .mp-empty { column-span: all; font-family: var(--fo-serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--fo-ink); }

/* Speaking the day (the board's recording state): a panel over the foot of the editor, the time in the red, what is
   heard as it is heard, Cancel and Stop and write it up. */
.folio .fj-edit { position: relative; }
.folio .fj-voice { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px var(--fo-gutter) calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fo-paper); border-top: 1px solid var(--fo-rule); box-shadow: 0 -12px 24px -16px rgba(26,22,20,0.3); display: flex; flex-direction: column; gap: 12px; }
.folio .fj-voice__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.folio .fj-voice__line .fo-quiet { font-size: 12px; }
.folio .fj-voice__rec { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fo-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fo-red); }
.folio .fj-voice__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--fo-red); animation: fj-voice-beat 1.2s ease-in-out infinite; }
@keyframes fj-voice-beat { 50% { opacity: .25; } }
.folio .fj-voice__heard { margin: 0; max-height: 30vh; overflow-y: auto; font-family: var(--fo-serif); font-size: 16px; line-height: 1.5; color: var(--fo-graphite); }
.folio .fj-voice__acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.folio .fj-voice__acts .fo-quiet { grid-column: 1 / -1; margin: 0; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .folio .fj-voice__rec i { animation: none; } }
