:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #eae4d8;
  --ink: #22231f;
  --muted: #706d63;
  --olive: #6d7255;
  --rust: #a94e37;
  --line: #cfc8ba;
  --white: #fffdf8;
  --good: #4f6b3a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
button, a, input, select, textarea { font: inherit; color: inherit; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
h1 em, h2 em { color: var(--rust); font-weight: 500; }
h3 { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .8rem 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }
#view:focus { outline: none; }

.fb-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 5.6vw; border-bottom: 1px solid rgba(34,35,31,.12); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; font-size: 10px; font-weight: 700; letter-spacing: -.04em; }
.brand-label { font-size: 10px; font-weight: 700; line-height: 1.15; letter-spacing: .11em; }
.brand-label small { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 7px; letter-spacing: .15em; }
.fb-who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); text-align: right; }
.fb-who span { color: var(--ink); font-weight: 600; }

.fb-progress { position: sticky; top: 0; z-index: 5; background: var(--paper); }
.fb-progress-bar { height: 4px; background: var(--paper-deep); }
.fb-progress-bar span { display: block; height: 100%; width: 0; background: var(--rust); transition: width .3s; }

.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 14px; color: var(--olive); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.eyebrow-line { width: 25px; height: 1px; flex: none; background: var(--rust); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 1px solid rgba(34,35,31,.35); border-radius: 99px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.button:hover { border-color: var(--ink); }
.button-primary { border-color: var(--rust); background: var(--rust); color: var(--white); }
.button-primary:hover { background: #8f3f2b; border-color: #8f3f2b; }
.button-small { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.button[aria-disabled="true"], .button:disabled { opacity: .45; pointer-events: none; }
.link-button { padding: 0; border: 0; background: none; color: var(--rust); font-size: 13px; font-weight: 600; cursor: pointer; }
.link-button:hover { text-decoration: underline; }

/* Welcome */
.fb-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 6vw; align-items: center; padding: 64px 9vw 56px; }
.fb-hero h1 { margin-bottom: 20px; font-size: clamp(44px, 6.4vw, 88px); line-height: .98; }
.fb-lead { max-width: 520px; color: #5c5a52; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.fb-lead-small { color: #5c5a52; font-size: 16px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fb-hero-art { margin: 0; justify-self: end; width: min(100%, 520px); }
.fb-hero-art img { width: 100%; border-radius: 6px; box-shadow: 0 24px 70px rgba(55,48,34,.18); }
.fb-explain { padding: 56px 9vw 80px; background: var(--paper-deep); }
.fb-explain h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 26px; }
.fb-steps { max-width: 760px; margin: 0; padding-left: 22px; display: grid; gap: 14px; font-size: 16px; }
.fb-steps ul { margin: 8px 0 0; padding-left: 20px; color: #4e4d46; }
.fb-note { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: 14px; }

/* Cards and forms */
.fb-card { margin: 48px auto 72px; padding: 36px clamp(20px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.fb-narrow { width: min(640px, calc(100% - 32px)); }
.fb-card h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.fb-form { display: grid; gap: 20px; margin-top: 18px; }
.fb-form > label, .fb-inline-label { display: block; font-size: 14px; font-weight: 600; }
.fb-form > label > input, .fb-form > label > textarea, .fb-form > label > select, .fb-inline-label > input, .fb-inline-label > textarea, .fb-inline-label > select { display: block; margin-top: 6px; }
.fb-form > label > small { display: block; margin-top: 4px; }
.req, .opt { margin-left: 4px; }
.fb-block > .button, .fb-block > .link-button, [data-caption-edit] > .button { justify-self: start; }
[data-caption-edit] { display: grid; gap: 10px; }
.fb-form small, .fb-help { color: var(--muted); font-size: 13px; font-weight: 400; }
.req, .opt { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #bdb6a8; border-radius: 6px; background: #fff; font-size: 16px; font-weight: 400; }
input:focus, select:focus, textarea:focus, .button:focus-visible, .choice:focus-visible, .link-button:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
legend { margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }
.fb-option { display: flex; align-items: center; gap: 10px; font-weight: 400 !important; }
.fb-scale { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-scale label { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #bdb6a8; border-radius: 50%; cursor: pointer; font-weight: 600; }
.fb-scale input { position: absolute; opacity: 0; pointer-events: none; }
.fb-scale label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fb-scale label:has(input:focus-visible) { outline: 2px solid var(--rust); outline-offset: 2px; }
.fb-scale-labels { display: flex; justify-content: space-between; max-width: 300px; color: var(--muted); font-size: 12px; }

/* Photo page */
.fb-page { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); gap: 4vw; padding: 32px 5.6vw 72px; align-items: start; }
.fb-page-media { position: sticky; top: 20px; }
.fb-page-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.fb-page-number { color: var(--rust); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fb-page-image { display: block; border-radius: 4px; background: var(--paper-deep); box-shadow: 0 14px 40px rgba(55,48,34,.14); aspect-ratio: 1600 / 1333; }
.fb-page-image a { display: block; height: 100%; cursor: zoom-in; }
.fb-page-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.fb-zoom-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.fb-page-panel h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 18px; }
.fb-block { position: relative; padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.fb-block h3 { margin: 0; }
.fb-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid #bdb6a8; border-radius: 99px; background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.fb-caption-text { padding: 12px 14px; border-left: 3px solid var(--olive); background: var(--white); color: #3d3c36; font-size: 14px; }
.fb-caption-text p { margin: 0 0 6px; }
.fb-caption-text p:last-child { margin-bottom: 0; }
.fb-caption-text .fb-caption-empty { color: var(--muted); font-style: italic; }
.fb-person { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.fb-person input { font-size: 15px !important; }
.fb-person .wide { grid-column: 1 / -1; }
.fb-person-head { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.fb-people-list { display: grid; gap: 10px; }
.fb-file { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.fb-file input { max-width: 100%; font-size: 13px; }
.fb-file span { display: none; }
.fb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #4e4d46; }
.fb-check input { margin-top: 3px; }
.fb-sent-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: #4e4d46; }
.fb-sent-list li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.fb-saved { min-height: 18px; color: var(--good); font-size: 12px; font-weight: 600; }
.fb-saved.is-pending { color: #8a6a1f; }
.fb-saved.is-error { color: var(--rust); }
.fb-pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.fb-page.is-text .fb-page-image { cursor: zoom-in; }

/* Index */
.fb-index { padding: 40px 5.6vw 80px; }
.fb-index-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.fb-index h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.fb-thumbs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.fb-thumbs a { display: block; position: relative; }
.fb-thumbs img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 3px; background: var(--paper-deep); box-shadow: 0 6px 18px rgba(55,48,34,.12); }
.fb-thumbs span { display: block; margin-top: 6px; font-size: 12px; color: #4e4d46; line-height: 1.3; }
.fb-thumbs b { color: var(--rust); font-weight: 700; margin-right: 4px; }
.fb-thumbs .is-done::after { content: ""; position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 2px var(--white); }

/* Sections */
.fb-meter { display: block; height: 6px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.fb-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--rust); transition: width .3s; }
.fb-returning, .fb-join-resume { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.fb-returning a, .fb-join-resume a, .fb-unseen a { color: var(--rust); font-weight: 600; }
.fb-error { min-height: 0; margin: 0; color: var(--rust); font-size: 14px; font-weight: 600; }
.fb-error:empty { display: none; }
.fb-section-tag { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 22px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 13px; }
.fb-section-tag:hover { border-color: var(--ink); }
.fb-section-tag [data-section-name] { font-weight: 700; }
.fb-section-tag [data-section-position] { color: var(--muted); text-align: right; }
.fb-section-tag .fb-meter { grid-column: 1 / -1; height: 4px; }

.fb-hub { padding: 40px 5.6vw 80px; }
.fb-hub-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 6vw; align-items: end; margin-bottom: 32px; }
.fb-hub h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); }
.fb-hub-head .fb-lead-small { max-width: 560px; margin: 0; }
.fb-overall { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.fb-overall p { margin: 0; color: var(--muted); font-size: 14px; }
.fb-overall strong { color: var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 600; }
.fb-overall .button { justify-self: start; }
.fb-sections { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fb-section { display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.fb-section-thumb img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 4px; background: var(--paper-deep); }
.fb-section-body { display: grid; gap: 6px; min-width: 0; }
.fb-section-body h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.fb-section-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--olive); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fb-status { padding: 2px 8px; border-radius: 99px; background: var(--paper-deep); color: var(--muted); letter-spacing: .06em; }
.is-in-progress .fb-status { background: #f3e2cf; color: #8a4a1f; }
.is-submitted .fb-status { background: #e1ead6; color: var(--good); }
.is-submitted .fb-meter span { background: var(--good); }
.fb-section-meta { margin: 0; color: var(--muted); font-size: 13px; }
.fb-section-actions { display: grid; justify-items: end; gap: 8px; }
.fb-return { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--olive); background: var(--white); }
.fb-return h3 { margin-bottom: 4px; }
.fb-return p { margin: 0; color: #4e4d46; font-size: 14px; }
.fb-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--ink); white-space: nowrap; }
.fb-thumbs-heading { margin: 32px 0 14px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.fb-thumbs-heading:first-child { margin-top: 0; }

.fb-summary { margin: 0 0 24px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fb-summary li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 13px; line-height: 1.35; }
.fb-summary strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 600; }
.fb-unseen { margin-bottom: 24px; }
.fb-unseen h3 { margin-bottom: 4px; }
.fb-unseen ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }

/* Slideshow */
.fb-show { display: grid; grid-template-rows: auto 1fr auto auto; min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); background: #1d1e1a; color: var(--paper); }
.fb-show:fullscreen { min-height: 100vh; }
.fb-show-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 5.6vw; font-size: 13px; }
.fb-show-where { margin: 0; color: #d9d3c6; }
.fb-show-where [data-show-section] { color: var(--white); font-weight: 700; }
.fb-show-skip { color: #f0c9b8; font-weight: 600; white-space: nowrap; }
.fb-show-skip:hover { text-decoration: underline; }
.fb-show-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 8px 5.6vw 16px; cursor: pointer; }
.fb-show-frame { width: min(100%, calc((100vh - 300px) * 1.2)); width: min(100%, calc((100dvh - 300px) * 1.2)); aspect-ratio: 1600 / 1333; }
.fb-show:fullscreen .fb-show-frame { width: min(100%, calc((100vh - 200px) * 1.2)); }
.fb-show-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; opacity: 0; transition: opacity .35s; }
.fb-show-frame img.is-in { opacity: 1; }
.fb-show-flash { position: absolute; left: 50%; top: 14px; z-index: 3; margin: 0; padding: 6px 16px; border-radius: 99px; background: rgba(29,30,26,.88); color: var(--white); font-weight: 600; opacity: 0; transform: translateX(-50%); pointer-events: none; }
.fb-show-flash.is-on { animation: fb-flash 1.6s ease-out; }
@keyframes fb-flash { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.fb-show-help kbd { display: inline-block; min-width: 22px; padding: 0 5px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; font-family: inherit; font-size: 12px; text-align: center; }
.fb-show-review { position: absolute; left: 50%; bottom: 28px; z-index: 4; display: grid; gap: 10px; width: min(560px, calc(100% - 24px)); padding: 18px; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.4); transform: translateX(-50%); cursor: default; }
.fb-show-review label { display: grid; gap: 8px; font-weight: 600; }
.fb-show-review textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 15px; }
.fb-show-review .fb-actions { margin: 0; align-items: center; }
.fb-show-rate { font-size: 19px; }
.fb-show-rate[data-show-like][aria-pressed="true"] { border-color: var(--good); background: var(--good); }
.fb-show-rate[data-show-dislike][aria-pressed="true"] { border-color: var(--rust); background: var(--rust); }
.fb-show-text { padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: transparent; color: #d9d3c6; font-size: 13px; cursor: pointer; }
.fb-show .fb-face-strip { display: flex; gap: 6px; width: min(100%, 1100px); padding-top: 8px; overflow-x: auto; scrollbar-width: thin; }
.fb-show .fb-face-chip { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #ece6d9; }
.fb-show .fb-face-chip:not(.is-named) { color: #a9a395; }
.fb-show .fb-face-chip b { color: #f0c9b8; }
.fb-show-photos .fb-photo-upload { margin: 22px 0 0; }

.fb-help-touch { display: none; }
@media (hover: none) {
  .fb-help-keys { display: none; }
  .fb-help-touch { display: inline; }
}

/* Numbered faces */
.fb-faces-host { position: relative; }
.fb-face-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fb-face-marker { position: absolute; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid rgba(34,35,31,.35); border-radius: 99px; background: rgba(255,253,248,.92); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1; transform: translate(-50%, -112%); cursor: pointer; pointer-events: auto; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.fb-face-marker:hover, .fb-face-marker:focus-visible { z-index: 1; background: var(--rust); border-color: var(--rust); color: var(--white); }
.fb-face-marker.is-named { background: var(--good); border-color: var(--good); color: var(--white); }
.fb-face-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 280px; overflow-y: auto; }
.fb-face-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 13px; white-space: nowrap; cursor: pointer; }
.fb-face-chip:not(.is-named) { color: var(--muted); }
.fb-face-chip b { color: var(--rust); }
.fb-face-chip:hover { border-color: var(--ink); }
.fb-missing { display: grid; gap: 10px; }
.fb-missing summary { color: var(--rust); font-size: 14px; font-weight: 600; cursor: pointer; }
.fb-missing[open] summary { margin-bottom: 10px; }
.fb-missing > .button { margin-top: 10px; }
.fb-face-dialog { width: min(420px, calc(100vw - 32px)); padding: 26px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.fb-face-dialog::backdrop { background: rgba(20,20,18,.6); }
.fb-face-dialog h2 { margin: 0; font-size: 28px; }
.fb-face-crop { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.fb-headshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 18px 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.fb-headshot { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; font-size: 13px; text-align: center; cursor: pointer; }
.fb-headshot img { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--paper-deep); box-shadow: 0 4px 14px rgba(55,48,34,.14); }
.fb-headshot:hover img { outline: 2px solid var(--rust); outline-offset: 2px; }
.fb-headshot span { color: var(--muted); line-height: 1.3; }
.fb-headshot b { margin-right: 5px; color: var(--rust); }
.is-named .fb-headshot span { color: var(--ink); font-weight: 600; }
.fb-headshot small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; font-style: italic; }
.fb-headshot-page { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; text-align: center; }
.fb-faces-tools { display: grid; gap: 6px; justify-items: end; }
.fb-photo-upload { display: grid; gap: 12px; margin: 0 0 22px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: left; }
.fb-photo-upload h3 { margin: 0; }
.fb-show-help { margin: 0; padding: 0 5.6vw 4px; color: #d9d3c6; font-size: 14px; }
.fb-show.is-intro .fb-show-help, .fb-show.is-finished .fb-show-help { visibility: hidden; }
.fb-show-intro { max-width: 640px; padding: 32px; border-radius: 10px; background: var(--paper); color: var(--ink); cursor: default; }
.fb-show-intro h2 { font-size: clamp(30px, 4vw, 44px); }
.fb-show-intro ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; color: #3d3c36; font-size: 15px; }
.fb-show-intro .fb-actions { margin-top: 20px; }
.fb-show.is-intro .fb-show-bar, .fb-show.is-intro .fb-show-controls [data-show-prev], .fb-show.is-intro .fb-show-controls [data-show-next] { visibility: hidden; }
.fb-show-end { max-width: 640px; max-height: calc(100dvh - 220px); overflow-y: auto; padding: 32px; border-radius: 10px; background: var(--paper); color: var(--ink); cursor: default; }
.fb-show-end h2 { font-size: clamp(30px, 4vw, 44px); }
.fb-show-bar { height: 4px; background: rgba(255,255,255,.14); }
.fb-show-bar span { display: block; height: 100%; width: 0; background: var(--rust); transition: width .3s; }
.fb-show-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 5.6vw 16px; font-size: 13px; }
.fb-show-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.fb-show-btn:hover { border-color: var(--white); }
.fb-show-play { width: 52px; height: 52px; border-color: var(--rust); background: var(--rust); font-size: 15px; }
.fb-show-full { font-size: 18px; }
.fb-show-speed { display: flex; align-items: center; gap: 8px; color: #d9d3c6; }
.fb-show-speed select { width: auto; padding: 6px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: #1d1e1a; color: var(--white); font-size: 13px; }
.fb-show-time { color: #a9a395; }
.fb-show.is-finished .fb-show-time, .fb-show.is-finished .fb-show-skip { visibility: hidden; }

.fb-watch { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--rust); border-radius: 10px; background: #fbf1ea; }
.fb-watch h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.fb-watch p { margin: 0; color: #4e4d46; font-size: 14px; }

.fb-thanks h2 { color: var(--ink); }

.fb-toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

.fb-loading { padding: 80px 5.6vw; color: var(--muted); }

@media (max-width: 900px) {
  .fb-hero { grid-template-columns: 1fr; padding: 40px 16px; gap: 32px; }
  .fb-hero-art { justify-self: start; }
  .fb-explain { padding: 40px 16px 56px; }
  .fb-page { grid-template-columns: 1fr; padding: 16px 16px 56px; gap: 18px; }
  .fb-page-media { position: static; }
  .fb-index { padding: 28px 16px 56px; }
  .fb-index-head { flex-direction: column; align-items: start; }
  .fb-thumbs { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .fb-hub { padding: 28px 16px 56px; }
  .fb-hub-head { grid-template-columns: 1fr; }
  .fb-topbar { padding: 10px 16px; }
}
@media (max-width: 520px) {
  .fb-person { grid-template-columns: 1fr; }
  .fb-pager .button { flex: 1; padding: 10px 12px; }
  .fb-who { flex-direction: column; align-items: end; gap: 2px; }
  .fb-section { grid-template-columns: 88px 1fr; gap: 12px 14px; }
  .fb-section-body h3 { font-size: 19px; }
  .fb-section-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .fb-return { flex-direction: column; align-items: start; }
  .fb-watch { flex-direction: column; align-items: start; }
  .fb-show-top { flex-direction: column; align-items: start; gap: 4px; padding: 10px 16px; }
  .fb-show-stage { padding: 6px 8px 12px; }
  .fb-show-frame { width: min(100%, calc((100dvh - 340px) * 1.2)); }
  .fb-faces-tools { justify-items: start; }
  .fb-face-marker { min-width: 16px; height: 16px; padding: 0 3px; font-size: 9px; }
  .fb-show-controls { padding: 10px 16px 14px; }
  .fb-show-time { display: none; }
  .fb-show-end, .fb-show-intro { padding: 22px; }
  .fb-show-help { padding: 0 16px 4px; font-size: 13px; }
}
