/* ==========================================================================
   fv.css — the home page's film, v3 (2026-11-11)
   --------------------------------------------------------------------------
   A replica of today's PlansFlow canvas in plain HTML and CSS, played by
   fv.js. Every value is the app's (canvas-thought-bloom, November 2026):
     tokens        src/styles/base.css, theme-blueprint.css, theme-alloy.css
     corners       workspace-chrome.css, frost.css, branch-flow.css
     console       canvas-console.css (flanks 132 × 88 px)
     prompt box    prompt-panel-v2.css, prompt-flow.css (model panel),
                   prompt-create.css (Canvas / Chat)
     Planny        planny/face/planny-dock.css (the stage, the 120 px orb)
     blocks        text-block.css, note-block.css, canvas-blocks.css
     reading view  text-block.css (.pf-doc, .pf-focus, .pf-sel)
     canvas        InfiniteGrid.tsx, theme-blueprint.css, alloyDots.ts
   The film wears the app's themes (data-theme-app): Dark, then Blueprint,
   Alloy, and Dark again. It is the product in its own colours, so it does
   not follow the site's Light / System switch.

   Contents
     1 figure · 2 themes · 3 app and canvas · 4 blocks · 5 corners and
     console · 6 prompt box · 7 model panel · 8 chat and focus mode ·
     9 Planny · 10 reading view · 11 pointer · 12 chapters · 13 phones
   ========================================================================== */

/* ---------- 1. The figure --------------------------------------------------- */
.fv { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; }
.fv-frame { position: relative; flex: 1 1 auto; min-height: 300px; overflow: hidden; background: #101214; contain: layout paint; }
.fv-frame::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
:root[data-theme="dark"] .fv-frame::after { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.fv-cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.fv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 2. Themes ----------------------------------------------------------- */
.fv-app {
  --bg: #101214; --card: #17191B; --pop: #17191B; --fg: #FAFAFA; --muted: #B4B8BD; --border: #26282C; --accent: #FF6424; --fg-rgb: 250 250 250;
  --surf: #16181B; --well: #1A1D21; --edge: rgba(255, 255, 255, 0.09); --line: rgba(255, 255, 255, 0.08);
  --ink: #F4F3F1; --text: #DBD9D5; --t2: #A6A39E; --t3: #8B8783; --pb-acc: #FF7A3D; --send-bg: #F4F3F1; --send-fg: #101214;
  --note: #1F1E1D; --note-edge: rgba(255, 255, 255, 0.09); --note-text: #CFCCC7; --note-ink: #EDEBE7;
  --canvas: #101214; --plane: radial-gradient(circle at 1px 1px, rgb(102 102 102 / 0.4) 1.2px, transparent 1.6px) 0 0 / 20px 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.22);
}
.fv-app[data-theme-app="blueprint"] {
  --bg: #1D407C; --card: #173469; --pop: #132D5D; --fg: #F7F3EA; --muted: #BFD0EA; --border: #3D6CB0; --accent: #9EDCF5; --fg-rgb: 247 243 234;
  --surf: #183669; --well: #132D5D; --edge: rgba(206, 224, 255, 0.16); --line: rgba(206, 224, 255, 0.16);
  --ink: #F7F3EA; --text: #EAE6DD; --t2: #C2D0EA; --t3: #A3B7DA; --pb-acc: #9EDCF5; --send-bg: #F7F3EA; --send-fg: #132D5D;
  --note: #183669; --note-edge: rgba(206, 224, 255, 0.2); --note-text: #EAE6DD; --note-ink: #F7F3EA;
  --canvas: #1D407C;
  --plane: linear-gradient(rgba(206, 224, 255, 0.13) 1px, transparent 1px) 0 0 / 100px 100px, linear-gradient(90deg, rgba(206, 224, 255, 0.13) 1px, transparent 1px) 0 0 / 100px 100px, linear-gradient(rgba(206, 224, 255, 0.06) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(206, 224, 255, 0.06) 1px, transparent 1px) 0 0 / 20px 20px;
  --shadow: 0 1px 2px rgba(6, 18, 48, 0.3), 0 8px 24px rgba(6, 18, 48, 0.3);
}
.fv-app[data-theme-app="alloy"] {
  --bg: #222423; --card: #292B2A; --pop: #2E302F; --fg: #F1F2EF; --muted: #C4C7C2; --border: #4A4D4B; --accent: #FF4935; --fg-rgb: 241 242 239;
  --surf: #292B2A; --well: #1F2120; --edge: rgba(241, 242, 239, 0.12); --line: rgba(241, 242, 239, 0.1);
  --ink: #F1F2EF; --text: #DADBD8; --t2: #C4C7C2; --t3: #9EA19C; --pb-acc: #FF4935; --send-bg: #FF4935; --send-fg: #191B19;
  --note: #292B2A; --note-edge: rgba(25, 27, 25, 0.55); --note-text: #DADBD8; --note-ink: #F1F2EF;
  --canvas: #999B99; --plane: radial-gradient(circle at 1px 1px, #686B68 1px, transparent 1.4px) 0 0 / 20px 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 26px rgba(0, 0, 0, 0.28);
}

/* Light: paper canvas, white cards, warm ink. The film opens and closes here. */
.fv-app[data-theme-app="light"] {
  --bg: #FAFAF8; --card: #FFFFFF; --pop: #FFFFFF; --fg: #1A1918; --muted: #6E6B66; --border: #E4E2DE; --accent: #FF6424; --fg-rgb: 26 25 24;
  --surf: #FFFFFF; --well: #F3F2EF; --edge: rgba(26, 25, 24, 0.10); --line: rgba(26, 25, 24, 0.08);
  --ink: #1A1918; --text: #3A3835; --t2: #6E6B66; --t3: #9A968F; --pb-acc: #F2581A; --send-bg: #1A1918; --send-fg: #FFFFFF;
  --note: #FFFDF7; --note-edge: rgba(26, 25, 24, 0.10); --note-text: #3A3835; --note-ink: #1A1918;
  --canvas: #F6F5F2; --plane: radial-gradient(circle at 1px 1px, rgb(26 25 24 / 0.16) 1.1px, transparent 1.5px) 0 0 / 20px 20px;
  --shadow: 0 1px 2px rgba(26, 25, 24, 0.06), 0 6px 20px rgba(26, 25, 24, 0.06);
}
.fv-frame:has(.fv-app[data-theme-app="light"]) { background: #F6F5F2; }
.fv-app[data-theme-app="light"] .fv-note { box-shadow: 0 1px 2px rgba(26, 25, 24, 0.06), 0 12px 26px -16px rgba(26, 25, 24, 0.22); }
.fv-app[data-theme-app="light"] .fv-pop,
.fv-app[data-theme-app="light"] .fv-selbar { box-shadow: 0 16px 40px -12px rgba(26, 25, 24, 0.22), 0 0 0 1px rgb(var(--fg-rgb) / 0.1); }
.fv-app[data-theme-app="light"] .fv-mp { box-shadow: 0 24px 60px -16px rgba(26, 25, 24, 0.25), inset 0 0 0 1px var(--edge); }
.fv-app[data-theme-app="light"] .fv-doc { box-shadow: 0 30px 80px -30px rgba(26, 25, 24, 0.35), inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1); }
.fv-app[data-theme-app="light"] .fv-veil { background: rgba(246, 245, 242, 0.45); }
.fv-app[data-theme-app="light"] .fv-doc-scrim { background: rgba(246, 245, 242, 0.6); }
.fv-app[data-theme-app="light"] .fv-cpn-fig .f-lens { fill: #2A2826; }
.fv-app[data-theme-app="light"] .fv-mp img.mono,
.fv-app[data-theme-app="light"] .fv-pill img.mono { filter: none; }
.fv-frame:has(.fv-app[data-theme-app="light"]) .fv-fade { background: #F6F5F2; }

/* ---------- 3. App and canvas ---------------------------------------------------- */
.fv-app {
  --sans: Inter, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ui: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; width: 1280px; height: 800px; overflow: hidden;
  background: var(--bg); color: var(--fg); font: 400 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; pointer-events: none; user-select: none; -webkit-user-select: none;
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
.fv-app *, .fv-app *::before, .fv-app *::after { box-sizing: border-box; }
.fv-app p, .fv-app h2, .fv-app h3, .fv-app h4, .fv-app figure { margin: 0; }
.fv-app svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fv-canvas { position: absolute; inset: 0; overflow: hidden; background: var(--canvas); transition: background-color 500ms var(--ease); }
.fv-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.fv-plane { position: absolute; left: -1400px; top: -1200px; width: 5200px; height: 4000px; background: var(--plane); }
.fv-app .fv-links { position: absolute; left: 0; top: 0; width: 2000px; height: 1400px; overflow: visible; }
.fv-links path { fill: none; stroke: var(--fg); stroke-width: 2.25; stroke-linecap: round; opacity: 0.7; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--in, 0)); }
.fv-links path[data-fv-out] { opacity: calc(0.7 * (1 - var(--out, 0))); }

/* anything that arrives rises in on --in */
.fv-app .fv-world > [data-fv-in] { opacity: var(--in, 0); transform: translateY(calc((1 - var(--in, 0)) * 16px)) scale(calc(0.97 + 0.03 * var(--in, 0))); transform-origin: 50% 0; }
/* … and at the end flies into the context folder (fv.js sets --ox, --oy in canvas pixels) */
.fv-app .fv-world > [data-fv-out] {
  opacity: calc(var(--in, 0) * (1 - var(--out, 0) * var(--out, 0)));
  transform: translate(calc(var(--ox, 0) * 1px), calc(var(--oy, 0) * 1px)) translateY(calc((1 - var(--in, 0)) * 16px)) scale(calc((0.97 + 0.03 * var(--in, 0)) * (1 - 0.94 * var(--out, 0))));
  transform-origin: 50% 50%;
}

/* ---------- 4. Blocks ------------------------------------------------------------- */
.fv-img { position: absolute; }
.fv-img > img { display: block; width: 100%; height: auto; border: 1.5px solid rgb(var(--fg-rgb) / 0.14); border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.fv-gen { aspect-ratio: 724 / 447; border-radius: 10px; background: linear-gradient(100deg, transparent 30%, rgb(var(--fg-rgb) / 0.07) 50%, transparent 70%) 0 0 / 220% 100%, var(--card); animation: fv-shine 1.3s linear infinite; }
.fv-gen > img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: var(--in, 0); }
.fv-gen-live { position: absolute; left: 14px; top: 12px; font: 400 12px/1 var(--mono); color: var(--t2); opacity: 0; }
.fv-gen-live.on { opacity: 1; }
.fv-gen-live b { font-weight: 500; color: var(--fg); }
@keyframes fv-shine { to { background-position: -220% 0, 0 0; } }

.fv-text { position: absolute; padding: 24px 28px 26px; border-radius: 8px; background: color-mix(in srgb, var(--card) 90%, transparent); border: 1px solid color-mix(in srgb, var(--border) 50%, transparent); font: 400 16px/1.65 var(--sans); color: rgb(var(--fg-rgb) / 0.9); transition: background-color 500ms, border-color 500ms; }
.fv-text p + p { margin-top: 10px; }
.fv-text .fv-lead { font-size: 19px; line-height: 1.42; font-weight: 500; color: var(--fg); }
.fv-text .fv-cite { display: flex; align-items: center; gap: 6px; font: 400 11.5px/1 var(--mono); color: var(--muted); }
.fv-text .fv-cite i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: rgb(var(--fg-rgb) / 0.08); font-style: normal; color: var(--fg); }
.fv-text .fv-cite i + i { margin-left: -2px; }
.fv-w { text-decoration: underline; text-decoration-color: rgb(var(--fg-rgb) / 0.3); text-underline-offset: 3px; }
.fv-text::after, .fv-gen::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 1px var(--bg), 0 0 12px color-mix(in srgb, var(--accent) 15%, transparent); opacity: 0; transition: opacity 250ms; pointer-events: none; }
.fv-text.on::after, .fv-gen.on::after { opacity: 1; }
.fv-live { position: absolute; left: 28px; top: 24px; font: 500 13px/1 var(--mono); opacity: 0; background: linear-gradient(90deg, var(--muted) 0%, var(--fg) 50%, var(--muted) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fv-shim 1.4s linear infinite; }
.fv-live.on { opacity: 1; }
.fv-live.on ~ p { opacity: 0; }
@keyframes fv-shim { to { background-position: -200% 0; } }
.fv-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.16em; background: var(--accent); opacity: 0; }
.fv-caret.on { opacity: 1; animation: fv-blink 1s steps(1) infinite; }
@keyframes fv-blink { 50% { opacity: 0; } }

.fv-note { position: absolute; padding: 13px 16px 13px 22px; border-radius: 8px; background: var(--note); border: 1px solid var(--note-edge); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 28px -16px rgba(0, 0, 0, 0.6); font: 400 13.5px/1.55 var(--sans); color: var(--note-text); transition: background-color 500ms; }
.fv-note::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--note-edge); }
.fv-note b { font-weight: 500; color: var(--note-ink); }
.fv-note p + p { margin-top: 6px; }

.fv-link { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--card) 95%, transparent); border: 1px solid color-mix(in srgb, var(--border) 40%, transparent); color: var(--fg); transition: background-color 500ms; }
.fv-link img { width: 112px; height: 63px; flex: none; border-radius: 8px; object-fit: cover; }
.fv-link span { display: grid; gap: 4px; min-width: 0; }
.fv-link b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.fv-link small { font-size: 11px; color: rgb(var(--fg-rgb) / 0.55); }

/* ---------- 5. Corners and console ---------------------------------------------- */
.fv-wc { position: absolute; top: 12px; z-index: 20; display: flex; align-items: center; gap: 2px; height: 34px; padding: 2px; border-radius: 10px; background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.08); -webkit-backdrop-filter: blur(22px) saturate(135%); backdrop-filter: blur(22px) saturate(135%); font-family: var(--ui); transition: background-color 500ms; }
.fv-wc--start { left: 12px; }
.fv-wc--project { left: 88px; }
.fv-wc--end { right: 12px; }
.fv-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: rgb(var(--fg-rgb) / 0.62); }
.fv-proj { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 9px 0 7px; border-radius: 8px; font-size: 13px; font-weight: 500; color: rgb(var(--fg-rgb) / 0.86); }
.fv-proj .fv-fold { width: 20px; height: 20px; stroke-width: 1.5; }
.fv-proj .fv-chev { width: 12px; height: 12px; }
.fv-act { display: flex; align-items: center; gap: 6px; max-width: 0; overflow: hidden; padding: 0; opacity: 0; font-size: 12px; color: var(--muted); white-space: nowrap; transition: max-width 400ms var(--ease), opacity 300ms, padding 400ms; }
.fv-act.on { max-width: 110px; padding: 0 8px; opacity: 1; }
.fv-act i { width: 6px; height: 6px; border-radius: 50%; background: var(--pb-acc); animation: fv-pulse 1s ease-in-out infinite; }
@keyframes fv-pulse { 50% { opacity: 0.35; } }
.fv-avatar { display: grid; place-items: center; width: 22px; height: 22px; margin: 0 4px; border-radius: 50%; background: linear-gradient(135deg, #E9A77B, #B65F3A); font-size: 11px; font-weight: 500; color: #fff; }

.fv-pop { position: absolute; z-index: 40; border-radius: 12px; background: var(--pop); box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgb(var(--fg-rgb) / 0.1); font-family: var(--ui); opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: 100% 0; transition: opacity 200ms, transform 300ms var(--ease), background-color 500ms; }
.fv-pop.on { opacity: 1; transform: none; }
.fv-themes { top: 54px; right: 12px; width: 272px; padding: 6px; }
.fv-pop-h { padding: 8px 10px 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.fv-th { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--fg); }
.fv-th > i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.18); }
.fv-th > b { position: absolute; right: 12px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); opacity: 0; }
.fv-th > b.on { opacity: 1; }
.fv-th:has(b.on) { background: rgb(var(--fg-rgb) / 0.06); }
.fv-pop-f { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 10px 6px; border-top: 1px solid rgb(var(--fg-rgb) / 0.08); font-size: 12.5px; color: var(--muted); }
.fv-pop-f svg { width: 14px; height: 14px; }

.fv-flank { position: absolute; bottom: 24px; z-index: 10; width: 132px; height: 88px; padding: 6px; border-radius: 8px; background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 82%, transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); font-family: var(--ui); opacity: 0; transition: opacity 300ms, background-color 500ms; }
.fv-flank.on { opacity: 1; }
.fv-flank--tools { left: 126px; }
.fv-flank--view { left: 1022px; }
.fv-row { display: flex; align-items: center; justify-content: center; gap: 4px; height: 38px; }
.fv-row + .fv-row { border-top: 1px solid rgb(var(--fg-rgb) / 0.08); }
.fv-ic { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.fv-ic svg { width: 18px; height: 18px; stroke-width: 1.5; }
.fv-ic.is-on { background: rgb(var(--fg-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.16); color: var(--fg); }
.fv-ic.is-on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 1px; background: currentColor; }
.fv-app[data-theme-app="alloy"] .fv-ic.is-on { background: #FF4935; color: #191B19; box-shadow: none; }
.fv-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 32px; border-radius: 8px; background: rgb(var(--fg-rgb) / 0.06); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08); font-size: 13px; color: var(--fg); }
.fv-add svg { width: 18px; height: 18px; stroke-width: 1.5; }
.fv-add .fv-caret-up { width: 14px; height: 14px; }
.fv-saved { position: absolute; left: 0; right: 0; bottom: -17px; text-align: center; font: 500 10px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fv-zoom { position: relative; width: 40px; height: 32px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--fg); }
.fv-zoom span { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.fv-zoom span.on { opacity: 1; }

.fv-veil { position: absolute; inset: 0; z-index: 25; background: rgba(16, 18, 20, 0.38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity 400ms var(--ease); }
.fv-veil.on { opacity: 1; }

/* ---------- 6. Prompt box ---------------------------------------------------------- */
.fv-pb {
  position: absolute; left: 50%; bottom: 24px; z-index: 30; width: 740px; display: flex; flex-direction: column;
  border-radius: 16px; background: color-mix(in srgb, var(--surf) 86%, transparent); -webkit-backdrop-filter: blur(22px) saturate(135%); backdrop-filter: blur(22px) saturate(135%);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--edge);
  opacity: 0; transform: translate(-50%, 16px) scale(0.98);
  transition: opacity 300ms var(--ease), transform 450ms var(--ease), width 450ms var(--ease), bottom 450ms var(--ease), background-color 500ms;
}
.fv-pb.on { opacity: 1; transform: translate(-50%, 0); }
.fv-pb-focus, .fv-pb-thread { display: none; }
.fv-comp { position: relative; }
.fv-field { position: relative; min-height: 41px; padding: 14px 20px 2px; font: 400 16px/1.55 var(--sans); }
.fv-ph, .fv-v { display: none; }
.fv-ph.on { display: block; color: var(--t3); }
.fv-v.on { display: block; color: var(--ink); }
.fv-v.on::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--pb-acc); animation: fv-blink 1s steps(1) infinite; }
.fv-rail { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px 0 13px; }
.fv-rg { display: flex; align-items: center; gap: 6px; }
.fv-modes { display: flex; align-items: center; gap: 2px; height: 30px; padding: 2px; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.fv-mode { display: none; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--surf); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--edge); }
.fv-mode.is-icon { justify-content: center; width: 26px; padding: 0; background: none; box-shadow: none; color: var(--t3); }
.fv-mode.on { display: flex; }
.fv-mode svg { width: 14px; height: 14px; }
.fv-kbd { display: grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); font: 400 11px/1 var(--mono); color: var(--t3); }
.fv-web { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; font-size: 12px; color: var(--t2); }
.fv-sw { position: relative; width: 22px; height: 12px; border-radius: 6px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.fv-sw > i { position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--t3); transition: transform 200ms var(--ease); }
.fv-sw:has(i.on) { background: var(--ink); }
.fv-sw > i.on { transform: translateX(10px); background: var(--surf); }
.fv-pill { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--text); white-space: nowrap; }
.fv-pill > span { display: none; align-items: center; gap: 6px; }
.fv-pill > span.on { display: flex; }
.fv-pill img { width: 16px; height: 16px; }
.fv-pill svg { width: 13px; height: 13px; color: var(--t3); }
.fv-entry { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; }
.fv-entry canvas { width: 24px; height: 24px; }
.fv-send { position: relative; display: grid; place-items: center; width: 42px; height: 32px; border-radius: 10px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--t3); overflow: hidden; }
.fv-send svg { position: relative; width: 16px; height: 16px; stroke-width: 2; }
.fv-send .fv-stop { display: none; fill: currentColor; stroke: none; width: 12px; height: 12px; }
.fv-send > i { position: absolute; inset: 0; opacity: 0; transition: opacity 150ms; }
.fv-send-arm { background: var(--send-bg); }
.fv-send-arm.on { opacity: 1; }
.fv-send:has(.fv-send-arm.on) { color: var(--send-fg); }
.fv-send-work { background: var(--surf); box-shadow: inset 0 0 0 1.5px var(--edge); }
.fv-send-work.on { opacity: 1; }
.fv-send:has(.fv-send-work.on) { color: var(--ink); }
.fv-send:has(.fv-send-work.on) .fv-up { display: none; }
.fv-send:has(.fv-send-work.on) .fv-stop { display: block; position: relative; }

/* ---------- 7. Model panel ---------------------------------------------------------- */
.fv-mp { position: absolute; left: 50%; bottom: calc(100% + 10px); width: 860px; height: 500px; display: flex; flex-direction: column; border-radius: 16px; background: color-mix(in srgb, var(--surf) 94%, transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--edge); opacity: 0; transform: translate(-50%, 12px) scale(0.98); transform-origin: 50% 100%; transition: opacity 220ms, transform 380ms var(--ease); }
.fv-mp.on { opacity: 1; transform: translate(-50%, 0); }
.fv-mp-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--line); }
.fv-mp-tabs { display: flex; gap: 2px; height: 32px; padding: 2px; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.fv-tab { display: none; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--surf); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.fv-tab.is-off { background: none; box-shadow: none; color: var(--t2); }
.fv-tab.on { display: flex; }
.fv-tab svg { width: 14px; height: 14px; }
.fv-tab small { font: 400 10.5px/1 var(--mono); color: var(--t3); }
.fv-mp-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--t3); }
.fv-mp-search span { display: none; } .fv-mp-search span.on { display: inline; }
.fv-mp-search svg { width: 14px; height: 14px; }
.fv-mp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) 330px; }
.fv-mp-rail { display: grid; align-content: start; justify-items: center; gap: 4px; padding: 8px 0; border-right: 1px solid var(--line); }
.fv-mp-rail span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--t2); }
.fv-mp-rail span.is-on { background: rgb(var(--fg-rgb) / 0.07); color: var(--ink); }
.fv-mp img { width: 17px; height: 17px; object-fit: contain; }
.fv-app .fv-mp img.mono, .fv-app .fv-pill img.mono { filter: invert(1); }
.fv-mp-list { display: none; padding: 4px 10px; overflow: hidden; }
.fv-mp-list.on { display: block; }
.fv-mp-list h4 { height: 32px; display: flex; align-items: center; padding: 0 8px; font-size: 11.5px; font-weight: 500; color: var(--t3); }
.fv-mrow { position: relative; display: grid; grid-template-columns: 28px 1fr 16px; align-items: center; gap: 10px; height: 48px; padding: 0 10px 0 8px; border-radius: 9px; }
.fv-mrow img { width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: rgb(var(--fg-rgb) / 0.06); }
.fv-mrow span { display: grid; gap: 2px; min-width: 0; }
.fv-mrow b { font-size: 13px; font-weight: 450; color: var(--ink); }
.fv-mrow small { font-size: 11.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-mrow.is-sel, .fv-mrow:has(.fv-mrow-sel.on) { background: rgb(var(--fg-rgb) / 0.07); }
.fv-mrow-sel { display: none; }
.fv-ok { grid-column: 3; width: 10px; height: 6px; border-left: 2px solid var(--pb-acc); border-bottom: 2px solid var(--pb-acc); transform: rotate(-45deg) translateY(-2px); }
.fv-ok[data-fv-on] { opacity: 0; } .fv-ok.on { opacity: 1; }
.fv-mp-detail { display: flex; flex-direction: column; padding: 16px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--well) 70%, transparent); }
.fv-mp-detail > [data-fv-on] { display: none; } .fv-mp-detail > [data-fv-on].on { display: block; }
.fv-d-head { display: flex; align-items: center; gap: 12px; }
.fv-d-head img { width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: rgb(var(--fg-rgb) / 0.06); }
.fv-d-head h3 { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.fv-blurb { margin: 12px 0 14px !important; font-size: 13px; color: var(--text); }
.fv-lab { margin: 10px 0 8px !important; font: 400 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--t3); }
.fv-ratios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fv-ratios span { display: grid; justify-items: center; gap: 6px; padding: 9px 0 7px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font: 400 10.5px/1 var(--mono); color: var(--t2); }
.fv-ratios i { width: var(--w); height: var(--h); border: 1.5px solid currentColor; border-radius: 2px; }
.fv-ratios .is-on { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--pb-acc); }
.fv-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.fv-seg span { flex: 1; display: grid; place-items: center; height: 26px; border-radius: 7px; font-size: 12px; color: var(--t2); }
.fv-seg .is-on { background: var(--surf); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.fv-mp-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.fv-mp-foot p { display: grid; gap: 2px; font-size: 13px; color: var(--ink); }
.fv-mp-foot small { font-size: 11px; color: var(--t3); }
.fv-mp-foot b { display: none; font-weight: 500; } .fv-mp-foot b.on { display: block; }
.fv-mp-foot p > span { font-size: 11px; color: var(--t3); }
.fv-done { display: grid; place-items: center; height: 30px; padding: 0 13px; border-radius: 8px; background: var(--send-bg); color: var(--send-fg); font-size: 12.5px; font-weight: 500; }

/* ---------- 8. Chat and focus mode -------------------------------------------------- */
.fv-thread { display: none; border-bottom: 1px solid var(--line); }
.fv-thread.on { display: block; }
.fv-th-head { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); }
.fv-title { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink); }
.fv-title svg { width: 13px; height: 13px; color: var(--t3); }
.fv-grow { flex: 1; }
.fv-newchat { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12px; color: var(--t2); }
.fv-newchat svg { width: 13px; height: 13px; }
.fv-th-head .fv-btn svg[data-fv-on] { display: none; } .fv-th-head .fv-btn svg.on { display: block; }
.fv-turns { padding: 16px 22px 18px; }
.fv-meta { font: 400 11.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--t3); text-align: right; }
.fv-you { margin: 8px 0 0 auto !important; width: fit-content; max-width: 80%; padding: 10px 15px; border-radius: 12px 12px 4px 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink); }
.fv-trace { display: none; align-items: center; gap: 8px; margin-top: 14px !important; font: 400 12px/1 var(--mono); color: var(--t2); }
.fv-trace.on { display: flex; }
.fv-trace i { width: 7px; height: 7px; border-radius: 50%; background: var(--pb-acc); animation: fv-pulse 0.8s ease-in-out infinite; }
.fv-answer { margin-top: 14px; opacity: var(--in, 0); font: 400 15px/1.65 var(--sans); color: var(--text); }
.fv-srcs { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; font: 400 11.5px/1 var(--mono); color: var(--t2); }
.fv-stack { display: flex; }
.fv-stack i { display: grid; place-items: center; width: 18px; height: 18px; margin-left: -4px; border-radius: 50%; background: var(--well); box-shadow: 0 0 0 1.5px var(--surf); font: 500 9px/1 var(--sans); font-style: normal; color: var(--ink); }
.fv-stack i:first-child { margin-left: 0; }
.fv-acts { display: flex; gap: 6px; margin-top: 12px !important; }
.fv-acts span { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--t2); }
.fv-acts svg { width: 13px; height: 13px; }
.fv-acts .fv-addsrc { color: var(--ink); }
/* focus mode: the box widens and rises to the middle, the answer reads large */
.fv-pb:has(.fv-pb-focus.on) { width: 960px; bottom: 120px; }
.fv-pb:has(.fv-pb-focus.on) .fv-turns { width: 640px; margin: 0 auto; padding: 22px 0 26px; }
.fv-pb:has(.fv-pb-focus.on) .fv-answer { font-size: 18px; line-height: 1.74; }
.fv-pb:has(.fv-pb-focus.on) .fv-you { font-size: 17px; }

/* ---------- 9. Planny ------------------------------------------------------------- */
.fv-planny { position: absolute; left: 50%; bottom: 18px; z-index: 30; width: 640px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 400 14px/1.45 var(--ui); color: var(--fg); opacity: 0; transform: translate(-50%, 18px) scale(0.96); transition: opacity 300ms, transform 500ms cubic-bezier(0.3, 1.2, 0.5, 1); }
.fv-planny.on { opacity: 1; transform: translate(-50%, 0); }
.fv-talk { display: grid; gap: 6px; justify-items: center; text-align: center; min-height: 18px; }
.fv-said { font-size: 12px; color: var(--muted); }
.fv-reply { display: none; max-width: 520px; padding: 7px 14px; border-radius: 12px; background: color-mix(in srgb, var(--card) 60%, transparent); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 450; line-height: 1.5; color: rgb(var(--fg-rgb) / 0.92); }
.fv-reply.on { display: block; animation: fv-rise 400ms var(--ease) both; }
.fv-pmeta { display: none; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); color: var(--muted); }
.fv-pmeta.on { display: flex; }
.fv-pmeta span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); font: 500 11.5px/1.2 var(--ui); color: var(--fg); background: color-mix(in srgb, var(--card) 80%, transparent); }
@keyframes fv-rise { from { opacity: 0; transform: translateY(6px); } }
.fv-orb { position: relative; width: 120px; height: 120px; }
.fv-orb canvas { width: 120px; height: 120px; }
.fv-status { position: relative; height: 18px; width: 100%; font: 400 12px/1.5 var(--mono); color: var(--muted); text-align: center; }
.fv-status span { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity 200ms; }
.fv-status span.on { opacity: 1; }
.fv-status .is-think { background: linear-gradient(90deg, var(--muted) 0%, var(--fg) 50%, var(--muted) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fv-shim 1.4s linear infinite; }
.fv-pbox { width: 460px; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 22px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 13.5px; color: var(--muted); }
.fv-pbox > span:first-child { flex: 1; }
.fv-pmic, .fv-psend { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.fv-pmic { color: var(--muted); }
.fv-psend { background: var(--fg); color: var(--bg); font-weight: 600; opacity: 0.3; }
.fv-manual { margin-top: 2px !important; padding: 2px 8px; border-radius: 6px; font-size: 11px; color: var(--muted); }

/* ---------- 10. Reading view --------------------------------------------------------- */
.fv-doc-layer { position: absolute; inset: 0; z-index: 60; opacity: 0; transition: opacity 350ms var(--ease); }
.fv-doc-layer.on { opacity: 1; }
.fv-doc-scrim { position: absolute; inset: 0; background: rgba(16, 18, 20, 0.55); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.fv-doc { position: absolute; left: 50%; top: 16px; width: 1000px; height: 768px; border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1); overflow: hidden; transform: translateX(-50%) scale(0.94); transition: transform 500ms var(--ease); }
.fv-doc-layer.on .fv-doc { transform: translateX(-50%); }
.fv-doc-prog { position: absolute; left: 0; top: 0; width: 34%; height: 2px; background: var(--accent); }
.fv-doc-bar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px; border-bottom: 1px solid rgb(var(--fg-rgb) / 0.08); font-family: var(--ui); }
.fv-back { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg); }
.fv-back kbd { padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.16); font: 400 10.5px/1.4 var(--mono); color: var(--muted); }
.fv-doc-cap { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); }
.fv-aaa { display: flex; gap: 6px; align-items: baseline; color: var(--muted); }
.fv-aaa i { font-style: normal; } .fv-aaa i:nth-child(1) { font-size: 13px; } .fv-aaa i:nth-child(2) { font-size: 15px; color: var(--fg); } .fv-aaa i:nth-child(3) { font-size: 17px; }
.fv-doc-body { width: 620px; margin: 0 auto; padding: 54px 0; font: 400 18px/1.72 var(--sans); color: rgb(var(--fg-rgb) / 0.88); }
.fv-doc-body h2 { margin-bottom: 18px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--fg); }
.fv-doc-body p + p { margin-top: 16px; }
.fv-doc-lead { font-size: 1.24em; line-height: 1.5; color: var(--fg); }
.fv-doc-body sup { font: 500 11px/1 var(--mono); color: var(--accent); margin-left: 2px; }
.fv-doc-src { margin-top: 28px !important; padding-top: 16px; border-top: 1px solid rgb(var(--fg-rgb) / 0.08); font: 400 12px/1.5 var(--mono); color: var(--muted); }
.fv-word { position: relative; color: var(--fg); }
.fv-word > i { position: absolute; left: -2px; right: -2px; top: 2px; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--accent) 34%, transparent); transform: scaleX(var(--in, 0)); transform-origin: 0 50%; z-index: -1; }
.fv-selbar { position: absolute; left: -4px; bottom: calc(100% + 12px); display: flex; align-items: center; gap: 1px; padding: 3px; border-radius: 9px; background: var(--pop); box-shadow: 0 16px 44px -14px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(var(--fg-rgb) / 0.14); font: 400 12.5px/1 var(--sans); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 180ms, transform 260ms var(--ease); }
.fv-selbar.on { opacity: 1; transform: none; }
.fv-split { display: flex; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1); }
.fv-sb { display: flex; align-items: center; height: 28px; padding: 0 9px; border-radius: 6px; color: var(--fg); }
.fv-sb svg { width: 13px; height: 13px; }
.fv-sb-c { width: 20px; padding: 0; justify-content: center; border-left: 1px solid rgb(var(--fg-rgb) / 0.1); border-radius: 0 6px 6px 0; color: var(--muted); }
#fv-expand { background: rgb(var(--fg-rgb) / 0.08); border-radius: 6px 0 0 6px; }

/* ---------- 11. Pointer and the loop's fade ---------------------------------------- */
.fv-ptr { position: absolute; left: 0; top: 0; z-index: 100; width: 0; height: 0; will-change: transform; }
.fv-ptr svg { position: absolute; display: none; width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.fv-p-arrow { left: -5px; top: -3px; fill: #111 !important; stroke: #fff !important; stroke-width: 1.4 !important; }
.fv-p-hand { left: -9px; top: -2px; fill: #fff !important; stroke: #111 !important; stroke-width: 1.3 !important; }
.fv-p-beam { left: -12px; top: -12px; stroke: #fff !important; stroke-width: 2.6 !important; }
.fv-p-beam path { stroke-width: 2.6; }
.fv-ptr[data-kind="arrow"] .fv-p-arrow, .fv-ptr[data-kind="hand"] .fv-p-hand, .fv-ptr[data-kind="beam"] .fv-p-beam { display: block; }
.fv-ptr[data-kind="beam"] .fv-p-beam { filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); }
.fv-p-ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--pb-acc); opacity: 0; transform: scale(0.4); transition: opacity 300ms, transform 400ms var(--ease); }
.fv-ptr.is-down .fv-p-ring { opacity: 0.9; transform: scale(1); transition: none; }
.fv-ptr.is-down svg { transform: scale(0.9); }
.fv-fade { position: absolute; inset: 0; z-index: 120; background: #101214; pointer-events: none; }

/* ---------- 11b. Companion (companion-block.css) ---------------------------------
   A visual explanation the model draws in a sandbox. Here: Anatomy, a working
   isometric figure of a gimbal. The figure moves with the film's clock (--t,
   from fv.js) through CSS sin(), so it is a function of time like the rest. */
.fv-text .fv-list { margin: 10px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.fv-text .fv-list li { margin: 2px 0; }
.fv-text .fv-list li::marker { color: rgb(var(--fg-rgb) / 0.35); }

.fv-cpn { position: absolute; display: flex; flex-direction: column; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.09), 0 1px 2px rgb(0 0 0 / 0.06), 0 10px 28px -16px rgb(0 0 0 / 0.35); color: var(--fg); font-family: var(--ui); transition: background-color 500ms; }
.fv-cpn-head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 10px; box-shadow: inset 0 -1px 0 rgb(var(--fg-rgb) / 0.08); }
.fv-app .fv-cpn-grip { width: 14px; height: 14px; color: rgb(var(--fg-rgb) / 0.28); fill: currentColor; stroke: none; }
.fv-cpn-kind { display: none; flex: none; padding: 4px 6px; border-radius: 5px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--fg-rgb) / 0.6); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.12); }
.fv-cpn-kind.on { display: block; }
.fv-cpn-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.3; color: rgb(var(--fg-rgb) / 0.95); white-space: nowrap; }
.fv-cpn-title > span { display: none; } .fv-cpn-title > span.on { display: inline; }
.fv-cpn-faces { display: none; gap: 2px; padding: 2px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1); }
.fv-cpn-faces.on { display: inline-flex; }
.fv-cpn-faces > * { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; color: rgb(var(--fg-rgb) / 0.55); }
.fv-cpn-faces > b { background: rgb(var(--fg-rgb) / 0.08); color: var(--fg); }
.fv-cpn-faces svg { width: 13px; height: 13px; }

.fv-cpn-ask { display: none; gap: 14px; padding: 14px 16px 12px; }
.fv-cpn-ask.on { display: grid; }
.fv-cpn-field { min-height: 48px; font: 400 16px/1.5 var(--sans); }
.fv-cpn-field .fv-ph.on { color: rgb(var(--fg-rgb) / 0.36); }
.fv-cpn-rail { display: flex; align-items: center; gap: 8px; padding-top: 10px; box-shadow: inset 0 1px 0 rgb(var(--fg-rgb) / 0.08); }
.fv-cpn-ideas { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.12); font-size: 12.5px; font-weight: 500; color: rgb(var(--fg-rgb) / 0.75); }
.fv-cpn-ideas svg { width: 14px; height: 14px; }
.fv-cpn-reads { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--mono); color: rgb(var(--fg-rgb) / 0.5); white-space: nowrap; }
.fv-cpn-reads svg { width: 12px; height: 12px; }
.fv-cpn-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1); }
.fv-cpn-opt > * { display: none; height: 24px; padding: 0 9px; border-radius: 6px; font: 400 12px/24px var(--ui); color: rgb(var(--fg-rgb) / 0.6); }
.fv-cpn-opt > b { background: rgb(var(--fg-rgb) / 0.08); color: var(--fg); }
.fv-cpn-opt > .on { display: block; }
.fv-cpn-cost { font: 400 11px/1 var(--mono); color: rgb(var(--fg-rgb) / 0.5); }
.fv-cpn-go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--fg); color: var(--bg); }
.fv-cpn-go svg { width: 15px; height: 15px; stroke-width: 2; }

.fv-cpn-stage { display: none; position: relative; height: 300px; overflow: hidden; }
.fv-cpn-stage.on { display: block; }
/* the loader: the app's own (CompanionLoader.tsx, companion-block.css). The P
   folds into its seed square and opens again on five hinged panels; what it is
   doing in words; one tip. Only transform animates. */
.fv-cpn-ld { --ld-period: 3.2s; --ld-ease: cubic-bezier(0.45, 0, 0.55, 1); position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: center; padding: 20px 24px 22px; text-align: center; opacity: 0; transition: opacity 250ms; }
.fv-cpn-ld.on { opacity: 1; }
.fv-ld-scene { display: grid; place-items: center; width: 150px; height: 150px; }
.fv-ld-mark { position: relative; display: block; width: 68px; aspect-ratio: 857 / 1018; }
.fv-ld-fold { position: absolute; inset: 0; display: block; animation: var(--ld-period) var(--ld-ease) infinite both; }
.fv-app svg.fv-ld-panel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; stroke: none; }
.fv-ld-panel path { fill: var(--fg); }
.fv-ld-fold[data-fold="seed"] { transform-origin: 13.3% 9.1%; animation-name: fv-ld-seed; }
.fv-ld-fold[data-fold="bar"]  { transform-origin: 26.7% 0; animation-name: fv-ld-bar; }
.fv-ld-fold[data-fold="bowl"] { transform-origin: 0 18.3%; animation-name: fv-ld-bowl; }
.fv-ld-fold[data-fold="base"] { transform-origin: 65.6% 0; animation-name: fv-ld-base; }
.fv-ld-fold[data-fold="stem"] { transform-origin: 0 18.3%; animation-name: fv-ld-stem; }
@keyframes fv-ld-seed { 0%, 100% { transform: scale(0.82); } 10%, 90% { transform: scale(1); } }
@keyframes fv-ld-bar  { 0%, 6%  { transform: scaleX(0); } 22%, 74% { transform: scaleX(1); } 88%, 100% { transform: scaleX(0); } }
@keyframes fv-ld-stem { 0%, 10% { transform: scaleY(0); } 26%, 76% { transform: scaleY(1); } 88%, 100% { transform: scaleY(0); } }
@keyframes fv-ld-bowl { 0%, 18% { transform: scaleY(0); } 34%, 66% { transform: scaleY(1); } 80%, 100% { transform: scaleY(0); } }
@keyframes fv-ld-base { 0%, 26% { transform: scaleX(0); } 40%, 60% { transform: scaleX(1); } 72%, 100% { transform: scaleX(0); } }
.fv-ld-say { margin-top: 4px !important; font-size: 16px; font-weight: 500; line-height: 1.4; color: rgb(var(--fg-rgb) / 0.92); }
.fv-ld-say > span { display: none; } .fv-ld-say > span.on { display: inline; animation: fv-rise 360ms ease both; }
.fv-ld-note { display: flex; gap: 10px; align-items: flex-start; width: min(500px, 100%); margin-top: 14px !important; padding: 11px 16px; border-radius: 10px; text-align: left; font-size: 14px; line-height: 1.5; color: rgb(var(--fg-rgb) / 0.78); background: rgb(var(--fg-rgb) / 0.035); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07); }
.fv-ld-note svg { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.fv-cpn-status, .fv-cpn-foot { display: none; align-items: center; gap: 14px; min-height: 40px; padding: 0 6px 0 14px; box-shadow: inset 0 1px 0 rgb(var(--fg-rgb) / 0.08); font: 400 10.5px/1 var(--mono); color: rgb(var(--fg-rgb) / 0.48); white-space: nowrap; }
.fv-cpn-status { gap: 8px; padding: 0 8px 0 14px; font-size: 11.5px; color: rgb(var(--fg-rgb) / 0.72); }
.fv-cpn-t { color: rgb(var(--fg-rgb) / 0.45); font-variant-numeric: tabular-nums; }
.fv-cpn-t > span { display: none; } .fv-cpn-t > span.on { display: inline; }
.fv-cpn-stop { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 7px; font: 500 12.5px/1 var(--ui); color: rgb(var(--fg-rgb) / 0.65); }
.fv-cpn-stop svg { width: 13px; height: 13px; }
.fv-cpn-status.on, .fv-cpn-foot.on { display: flex; }
.fv-cpn-foot { gap: 12px; }
.fv-cpn-foot > span { display: inline-flex; flex: none; align-items: center; gap: 5px; white-space: nowrap; }
.fv-cpn-foot svg { width: 12px; height: 12px; }
.fv-cpn-foot .fv-cpn-change { height: 28px; padding: 0 10px; border-radius: 7px; background: rgb(var(--fg-rgb) / 0.06); font: 500 12px/1 var(--ui); color: rgb(var(--fg-rgb) / 0.85); }

/* the figure: the drone body rolls in the gust; the gimbal turns the other way,
   so the camera, and its view, stay level */
.fv-app .fv-cpn-fig {
  --a: calc(9deg * sin(calc(var(--t, 0) * 1.7rad)) + 3deg * sin(calc(var(--t, 0) * 4.3rad)));
  display: block; width: 100%; height: 300px; fill: none; stroke: none; stroke-width: 1; opacity: var(--in, 0);
  font: 500 10px var(--mono); letter-spacing: 0.08em;
}
.fv-cpn-fig .f-body, .fv-cpn-fig .f-gimbal, .fv-cpn-fig .f-hz--body, .fv-cpn-fig .f-meter { transform-box: view-box; }
.fv-cpn-fig .f-body { transform-origin: 190px 92px; transform: rotate(var(--a)); }
.fv-cpn-fig .f-gimbal { transform-origin: 190px 152px; transform: rotate(calc(-1 * var(--a))); }
.fv-cpn-fig .f-hz--body { transform-origin: 455px 88px; transform: rotate(calc(-1.6 * var(--a))); }
.fv-cpn-fig .f-meter { fill: var(--accent); transform-origin: 370px 0; transform: scaleX(calc(0.55 + 0.4 * sin(calc(var(--t, 0) * 1.7rad)))); }
.fv-cpn-fig .f-shadow { fill: rgb(var(--fg-rgb) / 0.05); }
.fv-cpn-fig .f-floor { stroke: rgb(var(--fg-rgb) / 0.08); }
.fv-cpn-fig .f-wind path { stroke: rgb(var(--fg-rgb) / 0.3); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 18 14; stroke-dashoffset: calc(var(--t, 0) * -90); }
.fv-cpn-fig .f-arm { stroke: rgb(var(--fg-rgb) / 0.42); stroke-width: 6; stroke-linecap: round; }
.fv-cpn-fig .f-rotor ellipse { fill: rgb(var(--fg-rgb) / 0.05); stroke: rgb(var(--fg-rgb) / 0.4); stroke-width: 1.2; stroke-dasharray: 26 10; stroke-dashoffset: calc(var(--t, 0) * -420); }
.fv-cpn-fig .f-t, .fv-cpn-fig .f-l, .fv-cpn-fig .f-r { stroke: rgb(var(--fg-rgb) / 0.32); stroke-linejoin: round; }
.fv-cpn-fig .f-t { fill: color-mix(in srgb, var(--fg) 24%, var(--card)); }
.fv-cpn-fig .f-l { fill: color-mix(in srgb, var(--fg) 13%, var(--card)); }
.fv-cpn-fig .f-r { fill: color-mix(in srgb, var(--fg) 7%, var(--card)); }
.fv-cpn-fig .f-imu { stroke: var(--accent); stroke-width: 1.5; }
.fv-cpn-fig .f-motor { fill: color-mix(in srgb, var(--fg) 32%, var(--card)); stroke: rgb(var(--fg-rgb) / 0.4); }
.fv-cpn-fig .f-arm2 { stroke: rgb(var(--fg-rgb) / 0.55); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fv-cpn-fig .f-cone { fill: var(--accent); opacity: 0.14; }
.fv-cpn-fig .f-lens { fill: #0D0F11; stroke: rgb(var(--fg-rgb) / 0.5); }
.fv-cpn-fig .f-glass { fill: var(--accent); }
.fv-cpn-fig .f-labels path { stroke: rgb(var(--fg-rgb) / 0.28); stroke-dasharray: 2 3; }
.fv-cpn-fig text { fill: rgb(var(--fg-rgb) / 0.58); text-transform: uppercase; }
.fv-cpn-fig .f-ok { fill: var(--accent); }
.fv-cpn-fig .f-pnl { fill: rgb(var(--fg-rgb) / 0.03); stroke: rgb(var(--fg-rgb) / 0.1); }
.fv-cpn-fig .f-hz rect { fill: rgb(var(--fg-rgb) / 0.07); }
.fv-cpn-fig .f-hz path { stroke: rgb(var(--fg-rgb) / 0.6); stroke-width: 1.5; }
.fv-cpn-fig .f-track { fill: rgb(var(--fg-rgb) / 0.1); }

/* ---------- 11c. Add, from the console -------------------------------------------- */
.fv-addmenu { left: 126px; bottom: 122px; width: 236px; padding: 6px; transform-origin: 0 100%; }
.fv-addmenu .fv-th svg { width: 16px; height: 16px; color: var(--muted); }
.fv-addmenu #fv-add-cpn { background: rgb(var(--fg-rgb) / 0.07); }
.fv-new { margin-left: auto; padding: 3px 6px; border-radius: 5px; font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- 11d. The context folder (branch-flow.css) ------------------------------ */
.fv-proj { position: relative; }
.fv-fold-dot { position: absolute; left: 22px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); transform: scale(0); transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.fv-fold-dot.on { transform: scale(1); }
.fv-fold-ring { position: absolute; left: 7px; top: 5px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: calc(var(--in, 0) * (1 - var(--in, 0)) * 3.2); transform: scale(calc(0.6 + var(--in, 0) * 1.5)); }
.fv-bf {
  position: absolute; z-index: 45; top: 54px; left: 88px; width: 400px; height: 540px;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgb(var(--fg-rgb) / 0.1); border-radius: 10px;
  background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 0 32px 64px -28px rgb(0 0 0 / 0.75), 0 2px 10px rgb(0 0 0 / 0.3);
  color: rgb(var(--fg-rgb) / 0.6); font: 400 13.5px/1.35 var(--sans);
  opacity: 0; clip-path: inset(0 -80px 100% -80px);
  transition: opacity 100ms linear 20ms, clip-path 140ms cubic-bezier(0.4, 0, 1, 1);
}
.fv-bf.on { opacity: 1; clip-path: inset(0 -80px -80px -80px); transition: opacity 120ms linear, clip-path 360ms var(--ease); }
.fv-bf-bar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 10px 0 13px; box-shadow: inset 0 -1px 0 rgb(var(--fg-rgb) / 0.07); font-size: 14px; color: rgb(var(--fg-rgb) / 0.42); }
.fv-bf-bar svg { width: 15px; height: 15px; color: rgb(var(--fg-rgb) / 0.3); }
.fv-bf-tree { position: relative; flex: 1; padding: 10px 0 20px; }
.fv-bf-tree::before { content: ""; position: absolute; left: 20px; top: 16px; bottom: 16px; width: 1px; background: rgb(var(--fg-rgb) / 0.09); }
.fv-bf-row { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 18px 0 34px; white-space: nowrap; }
.fv-bf-row svg { width: 16px; height: 16px; color: rgb(var(--fg-rgb) / 0.4); }
.fv-app .fv-bf-chev { width: 12px; height: 12px; stroke-width: 2; color: rgb(var(--fg-rgb) / 0.3); transition: transform 200ms var(--ease); }
.fv-bf-chev.on { transform: rotate(90deg); }
.fv-bf-row.is-guide, .fv-bf-row.is-sec { color: rgb(var(--fg-rgb) / 0.9); font-weight: 500; }
.fv-bf-row.is-sec { margin-top: 4px; }
.fv-bf-row.is-guide::before { content: ""; position: absolute; left: 17px; top: 13px; width: 7px; height: 7px; background: var(--accent); }
#fv-bf-cmp:has(.fv-bf-chev.on) { color: var(--fg); }
#fv-bf-cmp:has(.fv-bf-chev.on)::after { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--fg); }
.fv-bf-kids { display: none; padding: 2px 0 6px; }
.fv-bf-kids.on { display: block; animation: fv-rise 300ms var(--ease) both; }
.fv-bf-row.is-d1 { --t: 48px; padding-left: 74px; color: rgb(var(--fg-rgb) / 0.88); }
.fv-bf-row.is-d2 { --t: 82px; padding-left: 108px; }
.fv-bf-row.is-d1::before, .fv-bf-row.is-d2::before { content: ""; position: absolute; left: var(--t); top: 0; width: 17px; height: 16px; border-left: 1px solid rgb(var(--fg-rgb) / 0.16); border-bottom: 1px solid rgb(var(--fg-rgb) / 0.16); border-bottom-left-radius: 6px; }
.fv-bf-row.is-d2:not(.is-last)::after { content: ""; position: absolute; left: var(--t); top: 16px; bottom: 0; border-left: 1px solid rgb(var(--fg-rgb) / 0.16); }
.fv-bf-foot { display: flex; align-items: center; gap: 6px; padding: 12px 16px 16px 5px; }
.fv-bf-info { display: grid; place-items: center; width: 30px; height: 30px; color: rgb(var(--fg-rgb) / 0.42); }
.fv-bf-info svg { width: 16px; height: 16px; stroke-width: 1.6; }
.fv-bf-split { flex: 1; display: flex; height: 38px; overflow: hidden; border-radius: 8px; background: var(--fg); color: var(--bg); transition: background-color 500ms, color 500ms; }
.fv-bf-dl { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; font: 500 13px/1 var(--sans); }
.fv-bf-dl > svg { display: none; width: 15px; height: 15px; } .fv-bf-dl > svg.on { display: block; }
.fv-bf-labels { flex: 1; }
.fv-bf-labels > span { display: none; } .fv-bf-labels > span.on { display: inline; }
.fv-bf-size { font-weight: 400; font-size: 12px; opacity: 0.6; }
.fv-bf-bar-p { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; opacity: 0; }
.fv-bf-bar-p.on { opacity: 0.5; }
.fv-bf-bar-p > i { display: block; height: 100%; background: currentColor; transform: scaleX(var(--in, 0)); transform-origin: 0 50%; }
.fv-bf-more { display: grid; place-items: center; width: 40px; border-left: 1px solid color-mix(in srgb, var(--bg) 16%, transparent); }
.fv-bf-more svg { width: 16px; height: 16px; stroke-width: 1.6; }

/* ---------- 11e. Phones: the camera comes closer (data-fv-cam-m) and the type of
   what it holds on grows a step, so the last two chapters read on an iPhone ---- */
.fv.is-narrow .fv-cpn-title { font-size: 16px; }
.fv.is-narrow .fv-cpn-foot { font-size: 11.5px; overflow: hidden; }
.fv.is-narrow .fv-cpn-status { font-size: 13px; }
.fv.is-narrow .fv-cpn-field { font-size: 18px; }
.fv.is-narrow .fv-ld-say { font-size: 18px; }
.fv.is-narrow .fv-ld-note { font-size: 15px; }
.fv.is-narrow .fv-cpn-fig { font-size: 13px; letter-spacing: 0.04em; }
.fv.is-narrow .fv-addmenu .fv-th, .fv.is-narrow .fv-themes .fv-th { font-size: 15.5px; }
.fv.is-narrow .fv-pop-h { font-size: 13.5px; }
.fv.is-narrow .fv-bf { font-size: 15.5px; }
.fv.is-narrow .fv-bf-row { height: 34px; }
.fv.is-narrow .fv-bf-bar { font-size: 15.5px; }
.fv.is-narrow .fv-bf-dl { font-size: 15px; }
.fv.is-narrow .fv-bf-size { font-size: 13.5px; }

/* ---------- 12. Chapters, the line under them, pause ------------------------------- */
.fv-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "chapters toggle" "now now"; align-items: start; column-gap: 20px; row-gap: 8px; }
.fv-chapters { grid-area: chapters; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.fv-ch { position: relative; display: block; width: 100%; min-height: 32px; padding: 9px 0 0; border: 0; background: none; color: var(--sw-muted); font: inherit; text-align: start; cursor: pointer; transition: color 160ms var(--sw-ease); }
.fv-ch::before, .fv-ch > i { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--sw-line); }
.fv-ch > i { height: 2px; top: -0.5px; background: var(--sw-ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.fv-ch > .eyebrow { display: block; line-height: 1; }
.fv-ch > span:last-child { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fv-ch:hover, .fv-ch[aria-current="step"] { color: var(--sw-ink); }
.fv-ch:focus-visible { outline: 2px solid var(--sw-accent); outline-offset: 4px; }
.fv-now { grid-area: now; margin: 0; font-family: var(--sw-sans); font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; color: var(--sw-ink); }
.fv-now span { font-family: var(--sw-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--sw-muted); margin-right: 10px; vertical-align: 1px; }
.fv-toggle { grid-area: toggle; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-top: -6px; padding: 0 0 0 2px; border: 0; background: none; color: var(--sw-ink); font-family: var(--sw-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.fv-toggle svg { width: 10px; height: 10px; fill: currentColor; }
.fv-toggle .fv-i-play { display: none; }
.fv-toggle[data-paused="true"] .fv-i-play { display: block; }
.fv-toggle[data-paused="true"] .fv-i-pause { display: none; }
.fv-toggle:focus-visible { outline: 2px solid var(--sw-accent); outline-offset: 4px; }
.fv-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 13. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fv-app *, .fv-app *::before, .fv-app *::after { animation: none !important; transition: none !important; }
}
