/* Muse re-check fixes (Nov 2026). Flat, ruled, one accent. No gradients, shadows, dots or accent bars. 14px text floor, 44px taps. */

/* First-load states */
.fb-loading { margin: 0; padding: 28px 0; font-size: 15px; color: var(--soft, #5d5f62); }
.fb-load-error { padding: 24px 0; display: grid; gap: 10px; justify-items: start; border-top: 1px solid var(--rule, currentColor); }
.fb-load-error h3 { margin: 0; font-size: 20px; }
.fb-load-error p { margin: 0; font-size: 15px; max-width: 60ch; }
.fb-load-error button { min-height: 44px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* One count everywhere */
.hub-category-note { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--soft, #5d5f62); }
.hub-pager { margin: 18px 0 6px; font-size: 14px; color: var(--soft, #5d5f62); }

/* Why a card matched */
.hub-why { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--soft, #5d5f62); overflow-wrap: anywhere; }

/* Header shortlist count, tab totals */
.fb-shortlist-count { min-height: 44px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; background: transparent; color: inherit; border: 1px solid currentColor; cursor: pointer; white-space: nowrap; }
.fb-tab-n { margin-left: 8px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fb-pane-total { margin: 4px 0 0; font-size: 15px; color: var(--soft, #5d5f62); }

/* Intro and first-visit tip */
.fb-intro { margin: 4px 0 10px; font-size: 15px; line-height: 1.45; color: var(--soft, #5d5f62); max-width: 70ch; }
.fb-intro a { color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 24px; }
.fb-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0; padding: 10px 0; border-top: 1px solid var(--rule, currentColor); border-bottom: 1px solid var(--rule, currentColor); }
.fb-tip p { margin: 0; flex: 1 1 280px; min-width: 0; font-size: 14px; line-height: 1.45; }
.fb-tip button { min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; cursor: pointer; }

/* About */
.fb-about { padding-bottom: 40px; }
.fb-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 32px; border-top: 1px solid var(--rule, currentColor); }
.fb-about-grid section { padding: 18px 0; border-bottom: 1px solid var(--rule, currentColor); min-width: 0; }
.fb-about-grid h2 { margin: 0 0 8px; font-size: 18px; }
.fb-about-grid p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 65ch; }
.fb-about-counts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 14px 0 0; }
.fb-about-counts div { display: grid; gap: 2px; }
.fb-about-counts dt { font-size: 14px; color: var(--soft, #5d5f62); }
.fb-about-counts dd { margin: 0; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fb-about-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: inherit; }
.fb-workspace-rail a[data-fb-about] svg { fill: none; }

/* Corrections */
.fb-correct { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule, currentColor); }
.fb-correct > .text-button { min-height: 44px; font-size: 14px; }
.fb-correct-panel { margin-top: 6px; display: grid; gap: 6px; }
.fb-correct-panel p { margin: 0; font-size: 14px; line-height: 1.5; }
.fb-correct-panel .text-button { min-height: 44px; font-size: 14px; }
.fb-select { user-select: all; font-family: var(--ws-mono, ui-monospace, monospace); overflow-wrap: anywhere; }
.fb-notfound { display: grid; gap: 8px; }
.fb-notfound p { margin: 0; font-size: 15px; }
.fb-notfound a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }

/* Detail block summaries name known and missing items */
.fb-count.fb-count-names { white-space: normal; text-align: left; font-size: 14px; line-height: 1.4; }

/* Map view: more room, and the footer text wraps instead of cutting off */
#resourceMap { height: 560px; }
.map-legend, .map-legend > *, #mapStatus, .map-disclosure, #hubMapSelection { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
@media screen and (min-width: 1201px) {
  .hub-map-mode { grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); }
}
@media screen and (max-width: 1200px) { #resourceMap { height: 480px; } }
body > header .fb-shortlist-count { order: 2; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: inherit; }
body > header .fb-shortlist-count svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
body > header .fb-shortlist-count .fb-sl-n { font-variant-numeric: tabular-nums; }
@media screen and (max-width: 760px) {
  body > header .fb-shortlist-count { padding: 0 10px; min-width: 44px; justify-content: center; }
  body > header .fb-shortlist-count .fb-sl-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body > header .theme-toggle { margin-left: 0 !important; }
  #resourceMap { height: min(62vh, 460px); }
  #mapPanel { padding-bottom: 8px; }
  .fb-shortlist-count { padding: 0 10px; }
}

/* Your projects, on a record's detail (add-to-day.js). Members only; flat and ruled. */
.fb-yours { margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--rule, currentColor); border-bottom: 1px solid var(--rule, currentColor); }
.fb-yours h3 { margin: 0 0 8px; font-size: 18px; }
.fb-yours ul { margin: 0 0 12px; padding: 0; list-style: none; }
.fb-yours li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule, currentColor); font-size: 15px; }
.fb-yours-what { font-weight: 600; overflow-wrap: anywhere; }
.fb-yours-what a { color: inherit; }
.fb-yours button { min-height: 44px; }
.fb-yours p { margin: 0 0 12px; font-size: 15px; }
.fb-yours .fb-yours-note { margin: 12px 0 0; font-size: 14px; color: var(--soft, #5d5f62); }
@media (max-width: 560px) { .fb-yours li { grid-template-columns: minmax(0, 1fr); } }

/* Made from the shoot day (call-sheet-from-day.js): stays in the editor until dismissed. */
.fb-fromday { box-sizing: border-box; max-width: 950px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--ink, currentColor); background: transparent; }
.fb-fromday h3 { margin: 0 0 6px; font-size: 16px; }
.fb-fromday ul { margin: 0 0 10px; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.fb-fromday button { min-height: 44px; }

/* ---------- Visual pass (Nov 2026): depth on the canvas, the color tape as the signature ----------
   The header is the panel surface, the category list is a panel, result cards are white pages on the canvas,
   and the chosen card is a tinted fill. No gradients, dots or edge strips. */
@media screen {
  .fieldbook-redesign > header { background: var(--ws-panel); }
  .fieldbook-redesign .workspace > aside { padding: 8px 10px 12px; background: var(--ws-panel); border-radius: 8px; }
  .fieldbook-redesign #categories button[aria-pressed=true] { background: var(--ws-page); border-color: var(--ws-page-edge); }
  .fieldbook-redesign #cards .hub-row { border-color: var(--ws-page-edge); border-radius: 8px; }
  .fieldbook-redesign #cards .hub-row:hover { border-color: var(--ws-line-strong); }
  .fieldbook-redesign #cards .hub-row.selected-row { background: var(--ph-tint); outline: 2px solid var(--ws-ink); }
  .fieldbook-redesign #cards .hub-row h3, .fieldbook-redesign #cards .hub-row .hub-name { font-weight: 700; }
  .fieldbook-redesign .search-row .search { border-color: var(--ws-line-strong); }
}
/* Call sheet and paperwork views on screen: each section opens on a full-width band (print keeps its ruled heads). */
@media screen {
  .pw-view .pw-section > h2 { margin: 6px 0 8px; padding: 7px 12px; background: #efeee8; color: #151316; font-weight: 700; }
}
