/* Explore's Genetics picture, "How does government?" (js/lenses/genetics.js), in Today's viewer and gallery: the form of
   one government, the owner's pick of mock-genetics-form (November 14, 2026). Loaded with the picture's files
   (today.html, <template id="geneticsFiles">). Everything here is under .gf: the question and its answer, your people
   here, the government's chips, the shelves (You, the purse-holder and its rail, the tiles and blocks, the courts),
   focus (lit, dim, badges, lines) and the card (a bottom sheet in a narrow picture, .st-sheet-up, placed by the lens;
   a side panel when the picture is 900px or wider: .gf-stage.is-side); .gf-mini is the gallery's thumbnail. The
   picture's width sets is-side and is-wide (the lines, 760px and wider), never the window's.
   The colours are the site's tokens (css/design.css: --g-ink, --g-line, …) and js/boss.js's power colours, by class
   (k-<power>), so dark mode can lighten them: css/dark.css is built from this file, and tools/dark_hand.css ("the
   Genetics picture") sets its dark colours by hand. */

/* the colours */
.gf { --gf-card: #fff; --gf-bg: var(--g-page, #f7f5ff); --gf-soft: #f1effe; --gf-ink: var(--g-ink, #1a1740); --gf-ink2: var(--g-ink-2, #3b3870); --gf-mut: var(--g-muted, #6f6a99);
  --gf-line: var(--g-line, #e6e2fa); --gf-track: var(--g-track, #eeebfa); --gf-accent: var(--g-accent, #4a28ee); --gf-ballot: var(--g-ballot, #c3157a);
  --gf-shadow: 0 2px 4px rgba(38, 27, 143, .05), 0 10px 26px rgba(38, 27, 143, .10); --gf-sheet-shadow: 0 -4px 30px rgba(26, 23, 64, .22);
  --p-presides: #6250d6; --p-budget: #1baf7a; --p-appoints: #c98a00; --p-advises: #0f7fa6; --p-audits: #d4618d; --p-runs: #008300; --p-elects: #21167c;
  --gf-you: linear-gradient(120deg, #e8ecff, #f3e9ff 50%, #ffe9ec); --gf-you-c: linear-gradient(45deg, #967dfc, #c39cfa 50%, #f0b4f1); --gf-you-ink: #21167c;
  --gf-curve: cubic-bezier(.2, .8, .2, 1);
  min-width: 0; color: var(--gf-ink); font-family: var(--font-read, system-ui, sans-serif);
  contain: inline-size; }   /* (the rows that scroll sideways inside themselves never widen the viewer's card) */
.gf .k-presides { --k: var(--p-presides); } .gf .k-budget { --k: var(--p-budget); } .gf .k-appoints { --k: var(--p-appoints); } .gf .k-advises { --k: var(--p-advises); }
.gf .k-audits { --k: var(--p-audits); } .gf .k-runs { --k: var(--p-runs); } .gf .k-elects { --k: var(--p-elects); }
.gf [hidden] { display: none !important; }
.gf button { font-family: var(--font-read, system-ui, sans-serif); }
.gf .g-icon { flex: none; width: 18px; height: 18px; }   /* (over css/today.css's .st-pic-box svg: height auto) */
.gf .g-icon.is-sm { width: 14px; height: 14px; }

/* ---- the question and its answer ---- */
.gf .gf-q { margin: 0; font: 500 23px/1.15 var(--font-head, Georgia, serif); letter-spacing: -.01em; color: var(--gf-ink); }
.st-pic-card[data-pic="genetics"] .gf-q { padding-right: 36px; }   /* (clear of the viewer card's ×) */
.gf .gf-ans { max-width: 70ch; margin: 8px 0 0; font: 400 15.5px/1.5 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-q, .gf-ans, .gf-mine, .gf-stage { transition: opacity .15s var(--gf-curve); }
.gf-q.is-out, .gf-ans.is-out, .gf-mine.is-out, .gf-stage.is-out { opacity: 0; }
.gf-wait { padding: 24px 4px; font: 500 14px var(--font-read, system-ui, sans-serif); color: var(--g-muted, #7b779e); }
.gf-wait.is-mini { padding: 0; min-height: 60px; }

/* your people here: one quiet row, sideways inside itself */
.gf-mine { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.gf-mine > b { flex: none; font: 600 13px var(--font-read, system-ui, sans-serif); color: var(--gf-mut); }
.gf-mine-row { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.gf-mine-row::-webkit-scrollbar { display: none; }
.gf .gf-mf { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.gf-mf:focus-visible { outline: 3px solid var(--gf-accent); outline-offset: -2px; }

/* the government's chips: the only control */
.gf-levels { display: flex; gap: 6px; margin: 14px -2px 4px; padding: 2px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.gf-levels::-webkit-scrollbar { display: none; }
.gf .gf-lv { flex: none; min-height: 40px; padding: 7px 14px; white-space: nowrap; }
.gf .gf-lv[aria-pressed="true"] { color: #fff; }

/* ---- faces ---- */
.gf-fc { --party: #8a2be2; flex: none; position: relative; display: inline-grid; place-items: center; width: var(--d, 28px); height: var(--d, 28px); border-radius: 50%; overflow: hidden;
  background: var(--gf-soft); box-shadow: 0 0 0 2px var(--party); color: var(--gf-ink); font: 800 calc(var(--d, 28px) * .34) var(--font-read, system-ui, sans-serif); }
.gf-fc[data-party="democrat"] { --party: #0022ff; }
.gf-fc[data-party="republican"] { --party: #ff0000; }
.gf-fc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; background: #fff; }
.gf-fc i { font-style: normal; }
.gf-fc.is-empty { box-shadow: inset 0 0 0 1.5px var(--gf-line); background: var(--gf-track); }
/* one of the viewer's people: the accent ring outside the party's */
.gf-fc.is-mine { box-shadow: 0 0 0 2px var(--party), 0 0 0 3.5px var(--gf-card), 0 0 0 5.5px var(--gf-accent); }

/* ---- the stage: the picture, and the card beside it in a wide picture ---- */
.gf-stage { position: relative; margin-top: 8px; }
.gf-stage.is-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.gf-pic { position: relative; min-width: 0; padding: 0 3px 4px 14px; }   /* (room for a focused tile's ring inside the viewer's card) */
.gf-pic [data-id] { scroll-margin-top: 16px; }

/* the shelves */
.gf-shelf { margin-top: 20px; }
.gf .gf-sh { margin: 0 0 12px; font: 700 12px var(--font-read, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--gf-mut); }
.gf .gf-sub { margin: 16px 0 10px; font: 600 13px var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
.gf-pic.is-wide .gf-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 10px; }
.gf-purses { display: grid; gap: 12px; margin-bottom: 14px; }
.gf-pic.is-wide .gf-purses:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }

/* a tile: the office is the unit */
.gf-tile { position: relative; min-width: 0; border-radius: 16px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-line);
  transition: opacity .15s var(--gf-curve), box-shadow .15s var(--gf-curve); }
.gf .gf-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; min-height: 44px; box-sizing: border-box; padding: 12px;
  border: 0; border-radius: inherit; background: none; color: var(--gf-ink); text-align: left; cursor: pointer; }
.gf-hit:focus-visible { outline: 3px solid var(--gf-accent); outline-offset: 2px; }
@media (hover: hover) { .gf-tile:hover { box-shadow: 0 0 0 1px var(--gf-line), var(--gf-shadow); } }
.gf-name { font: 700 15px/1.2 var(--font-read, system-ui, sans-serif); color: var(--gf-ink); overflow-wrap: anywhere; }
.gf-name small { font-weight: 600; font-size: 13px; color: var(--gf-ink2); }
.gf-count { font: 600 12.5px/1.3 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-sub2 { margin-top: -3px; font: 500 12px var(--font-read, system-ui, sans-serif); color: var(--gf-mut); }
.gf-does { display: flex; gap: 5px; font: 400 12.5px/1.35 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf .gf-does .g-icon { margin-top: 1px; color: var(--p-budget); }
.gf-held { display: inline-flex; align-items: flex-start; gap: 5px; font: 600 12px/1.3 var(--font-read, system-ui, sans-serif); color: var(--k); }
.gf-held > span { color: var(--gf-ink2); font-weight: 500; }
.gf-money-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; }
.gf-bar { flex: 1; min-width: 0; height: 5px; border-radius: 3px; background: var(--gf-track); overflow: hidden; }
.gf-bar i { display: block; height: 100%; border-radius: 3px; background: var(--p-budget); }
.gf-amt { flex: none; font: 700 12px var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); font-variant-numeric: tabular-nums; }
.gf-who { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin-top: 3px; min-width: 0; font: 500 12px/1.2 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-faces { display: flex; align-items: center; padding-left: 4px; margin-top: 2px; }
.gf-faces .gf-fc { margin-left: -4px; box-shadow: 0 0 0 2px var(--party), 0 0 0 3.5px var(--gf-card); }
.gf-faces .gf-fc.is-mine { box-shadow: 0 0 0 2px var(--party), 0 0 0 3.5px var(--gf-card), 0 0 0 5.5px var(--gf-accent); z-index: 1; }
.gf-faces em { margin-left: 6px; font: 600 12px var(--font-read, system-ui, sans-serif); font-style: normal; color: var(--gf-mut); }
.gf-ballot { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--gf-ballot) 12%, var(--gf-card));
  color: var(--gf-ballot); font: 700 11.5px var(--font-read, system-ui, sans-serif); }
.gf .gf-ballot .g-icon { width: 13px; height: 13px; }
/* off the ballot: dashed, quieter */
.gf-tile.is-extra { background: transparent; box-shadow: none; outline: 1.5px dashed var(--gf-line); outline-offset: -1.5px; }

/* the purse-holder: a wide block */
.gf-tile.gf-purse { background: color-mix(in srgb, var(--p-budget) 7%, var(--gf-card)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--p-budget) 45%, var(--gf-card)); }
.gf-purse .gf-name { font: 500 20px/1.15 var(--font-head, Georgia, serif); letter-spacing: -.01em; }
.gf-total { font: 500 13px var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-total b { font: 400 17px var(--font-fig, var(--font-read, system-ui, sans-serif)); color: var(--gf-ink); letter-spacing: .01em; margin-right: 2px; }
.gf-pfaces { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 4px; padding: 0 8px 10px; }
.gf-pf { position: relative; }
.gf .gf-pf-b { display: grid; justify-items: center; gap: 3px; min-width: 52px; min-height: 44px; padding: 4px 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--gf-ink2); cursor: pointer; }
.gf-pf-b:focus-visible { outline: 3px solid var(--gf-accent); outline-offset: 0; }
.gf-pf-l { max-width: 64px; font: 600 11px/1.15 var(--font-read, system-ui, sans-serif); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-chair { display: inline-flex; align-items: center; gap: 3px; font: 700 11px var(--font-read, system-ui, sans-serif); color: var(--p-presides); white-space: nowrap; }
.gf .gf-chair .g-icon { width: 12px; height: 12px; }
.gf-more { align-self: center; font: 600 12px var(--font-read, system-ui, sans-serif); font-style: normal; color: var(--gf-mut); }

/* the budget rail: down the left edge, a tick to each thing the purse-holder funds */
.gf-rail { position: absolute; left: 3px; width: 2.5px; border-radius: 2px; background: var(--p-budget); opacity: .75; pointer-events: none; transition: opacity .15s; }
.gf-rail i { position: absolute; left: 0; width: 11px; height: 2.5px; border-radius: 2px; background: var(--p-budget); }
.gf-tile.is-funded::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p-budget); opacity: .85; }
.gf-pic.has-focus .gf-rail { opacity: .2; }

/* a block that opens in place */
.gf-group.is-open { grid-column: 1 / -1; }
.gf .gf-open { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin: -4px 0 4px 6px; padding: 4px 10px; border: 0; border-radius: 999px; background: none;
  color: var(--gf-accent); font: 600 13px var(--font-read, system-ui, sans-serif); cursor: pointer; }
.gf-open:focus-visible { outline: 3px solid var(--gf-accent); outline-offset: -2px; }
.gf-open .g-icon { transition: transform .2s var(--gf-curve); }
.gf-group.is-open .gf-open .g-icon { transform: rotate(180deg); }
.gf-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 2px 8px; padding: 0 8px 10px; }
.gf-seat { position: relative; }
.gf .gf-seat-b { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 5px 6px; border: 0; border-radius: 12px; background: none; color: var(--gf-ink); text-align: left; cursor: pointer; }
.gf-seat-b:focus-visible { outline: 3px solid var(--gf-accent); outline-offset: -2px; }
@media (hover: hover) { .gf .gf-seat-b:hover, .gf .gf-pf-b:hover { background: var(--gf-soft); } }
.gf-seat-t { display: grid; min-width: 0; flex: 1; }
.gf-seat-t b { font: 600 13px/1.2 var(--font-read, system-ui, sans-serif); }
.gf-seat-t small { font: 400 12px/1.2 var(--font-read, system-ui, sans-serif); color: var(--gf-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* You */
.gf-tile.gf-you { background: var(--gf-you); box-shadow: none; }
.gf .gf-you .gf-hit { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.gf-you-c { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gf-you-c); color: var(--gf-you-ink);
  font: 800 12px var(--font-read, system-ui, sans-serif); box-shadow: 0 0 0 2.5px var(--gf-card); }
.gf-you-t { display: grid; gap: 2px; min-width: 0; }
.gf-you-t b { font: 500 18px/1.2 var(--font-head, Georgia, serif); color: var(--gf-ink); }
.gf-you-t small { font: 500 13px/1.3 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }

/* ---- focus: lit, dimmed, badges ---- */
.gf-pic.has-focus .gf-tile:not(.is-lit), .gf-pic.has-focus .gf-pf:not(.is-lit), .gf-pic.has-focus .gf-seat:not(.is-lit) { opacity: .35; }
.gf-pic.has-focus .gf-tile.is-lit .gf-pf:not(.is-lit), .gf-pic.has-focus .gf-tile.is-lit .gf-seat:not(.is-lit) { opacity: .45; }
.gf-pf, .gf-seat { transition: opacity .15s var(--gf-curve); }
.gf-tile.is-focus, .gf-pf.is-focus, .gf-seat.is-focus, .gf-pic.has-focus .gf-tile.is-focus :is(.gf-pf, .gf-seat) { opacity: 1 !important; }   /* (a focused body: its own members too) */
.gf-tile.is-focus { box-shadow: 0 0 0 2.5px var(--gf-accent), var(--gf-shadow); }
.gf .gf-pf.is-focus .gf-pf-b, .gf .gf-seat.is-focus .gf-seat-b { background: var(--gf-soft); box-shadow: inset 0 0 0 2px var(--gf-accent); }
.gf-badges { position: absolute; z-index: 3; top: -9px; right: 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: calc(100% - 16px); pointer-events: none; }
.gf-badges:empty { display: none; }
.gf-pf > .gf-badges { top: -6px; right: -4px; }
.gf-seat > .gf-badges { top: 50%; right: 6px; transform: translateY(-50%); }
.gf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; background: color-mix(in srgb, var(--k) 14%, var(--gf-card));
  box-shadow: inset 0 0 0 1.5px var(--k); color: var(--gf-ink); font: 700 11.5px/1.1 var(--font-read, system-ui, sans-serif); white-space: nowrap; animation: gf-in .15s var(--gf-curve) both; }
.gf .gf-badge .g-icon { width: 13px; height: 13px; color: var(--k); }
@keyframes gf-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* the lines (a wide picture, in focus) */
.gf-lines { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.gf-line { fill: none; stroke: var(--k); stroke-width: 2.25; stroke-linecap: round; opacity: .85; }
.gf-dot { fill: var(--k); }

/* ---- the card ---- */
.gf-card { box-sizing: border-box; color: var(--gf-ink); }
.gf-card-in { display: grid; gap: 12px; }
.gf-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gf .gf-card h4 { margin: 2px 0 0; font: 500 22px/1.15 var(--font-head, Georgia, serif); letter-spacing: -.01em; color: var(--gf-ink); }
.gf-eyebrow { font: 700 11.5px var(--font-read, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--gf-mut); }
.gf .gf-x { flex: none; width: 44px; height: 44px; padding: 0; background: var(--gf-soft); color: var(--gf-ink); }
.gf .gf-boss { margin: 0; font: 400 15px/1.5 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-boss b { display: block; margin-bottom: 2px; font-weight: 700; color: var(--gf-ink); }
.gf .gf-money { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 13.5px var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf .gf-money .g-icon { color: var(--p-budget); }
.gf-money b { font: 400 18px var(--font-fig, var(--font-read, system-ui, sans-serif)); color: var(--gf-ink); margin-right: 3px; }
.gf .gf-card section h5 { margin: 0 0 6px; font: 700 11.5px var(--font-read, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--gf-mut); }
.gf .gf-card section > p { margin: 0; font: 400 14.5px/1.5 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-rows { display: grid; gap: 4px; }
.gf .gf-row { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 0; border-radius: 12px;
  background: color-mix(in srgb, var(--k) 8%, var(--gf-card)); box-shadow: inset 3px 0 0 var(--k); color: var(--gf-ink); font: 600 14px/1.3 var(--font-read, system-ui, sans-serif); text-align: left; }
.gf .gf-row > .g-icon:first-child { color: var(--k); }
.gf-row > span { flex: 1; min-width: 0; }
.gf-row small { display: block; font: 400 12.5px/1.3 var(--font-read, system-ui, sans-serif); color: var(--gf-mut); }
.gf-row em { flex: none; font: 700 12.5px var(--font-read, system-ui, sans-serif); font-style: normal; color: var(--gf-ink2); }
.gf button.gf-row { cursor: pointer; transition: background .15s; }
@media (hover: hover) { .gf button.gf-row:hover { background: color-mix(in srgb, var(--k) 16%, var(--gf-card)); } }
.gf button.gf-row:focus-visible { outline: 3px solid var(--gf-accent); outline-offset: 1px; }
.gf .gf-go { color: var(--gf-mut); }
.gf-holder { display: flex; align-items: center; gap: 12px; }
.gf-holder a { font: 700 15px var(--font-read, system-ui, sans-serif); color: var(--gf-accent); text-decoration: none; }
.gf-holder a:hover { text-decoration: underline; }
.gf-holder small { display: block; font: 400 12.5px var(--font-read, system-ui, sans-serif); color: var(--gf-mut); }
.gf-holders { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.gf .gf-cf { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.gf-holders em { margin-left: 4px; font: 600 12.5px var(--font-read, system-ui, sans-serif); font-style: normal; color: var(--gf-mut); }
.gf .gf-none { margin: 0; font: 400 14px var(--font-read, system-ui, sans-serif); color: var(--gf-mut); }
.gf-det summary { min-height: 44px; display: flex; align-items: center; font: 600 14px var(--font-read, system-ui, sans-serif); color: var(--gf-accent); cursor: pointer; }
.gf-src { display: grid; gap: 6px; padding-bottom: 6px; }
.gf .gf-why { margin: 0; padding-left: 10px; border-left: 3px solid var(--k); font: 400 13.5px/1.45 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-why b { color: var(--gf-ink); font-weight: 600; }
.gf-src .gen-p-src { display: block; padding-left: 13px; font-size: 12.5px; color: var(--gf-mut); }
.gf-src .gen-p-src a { color: var(--gf-accent); }
.gf .gf-pos { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gf-accent); }
.gf .gf-hint h4 { font-size: 20px; }
.gf .gf-hint p { margin: 0; font: 400 14px/1.5 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf .gf-hint .gf-row { min-height: 38px; font-weight: 500; }
.gf-grab { display: none; }

/* a narrow picture: a bottom sheet over the tab bar, in the sentence's place on a phone (js/lenses/genetics.js
   sheetUp sets where: --gf-sheet-b, -l and -w); about half the screen tall, its own scroll; the picture keeps room under
   it (--gf-sheet-h) so the focused tile and its relatives can scroll above it */
.gf-card.st-sheet-up { position: fixed; z-index: 46; left: var(--gf-sheet-l, 12px); bottom: var(--gf-sheet-b, 12px); width: var(--gf-sheet-w, calc(100vw - 24px));
  max-height: min(50vh, 460px); max-height: min(50dvh, 460px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px 18px; background: var(--gf-card); border-radius: 24px; box-shadow: var(--gf-sheet-shadow), 0 0 0 1px var(--gf-line); }
.gf-card.st-sheet-up .gf-grab { display: block; justify-self: center; width: 40px; height: 4px; margin: 2px 0 -4px; border-radius: 2px; background: var(--gf-line); }
.gf-stage.has-card:not(.is-side) .gf-pic { padding-bottom: calc(var(--gf-sheet-h, 0px) + 24px); }
/* a wide picture: a side panel level with the focused thing (js/lenses/genetics.js beside: its margin-top) */
.gf-stage.is-side .gf-card { position: relative; max-height: calc(100vh - 120px); overflow-y: auto; padding: 18px 18px 20px; border-radius: 18px;
  background: var(--gf-bg); box-shadow: inset 0 0 0 1px var(--gf-line); }

/* ---- mini: the gallery's thumbnail ---- */
.gf-mini { display: grid; gap: 10px; padding: 4px; }
.gf-m-you { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--gf-you); font: 600 14px/1.25 var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-m-you .gf-you-c { width: 34px; height: 34px; font-size: 11px; }
.gf-m-purse { display: grid; gap: 2px; padding: 9px 12px; border-radius: 14px; background: color-mix(in srgb, var(--p-budget) 7%, var(--gf-card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p-budget) 45%, var(--gf-card)); }
.gf-m-purse b { font: 500 18px/1.15 var(--font-head, Georgia, serif); color: var(--gf-ink); }
.gf-m-purse small { font: 500 13px var(--font-read, system-ui, sans-serif); color: var(--gf-ink2); }
.gf-m-list { display: grid; gap: 8px; margin: 0; padding: 0 0 0 12px; list-style: none; border-left: 2.5px solid color-mix(in srgb, var(--p-budget) 70%, transparent); }
.gf-m-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; font: 600 13.5px/1.2 var(--font-read, system-ui, sans-serif); color: var(--gf-ink); }
.gf-m-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-m-list em { min-width: 3.4em; font: 700 12px var(--font-read, system-ui, sans-serif); font-style: normal; text-align: right; color: var(--gf-ink2); }
.gf-m-list .gf-bar { height: 6px; }
.gf-m-list .gf-bar.is-none { background: none; }

@media (prefers-reduced-motion: reduce) {
  .gf-tile, .gf-pf, .gf-seat, .gf-q, .gf-ans, .gf-mine, .gf-stage, .gf-rail, .gf-open .g-icon, .gf button.gf-row { transition: none; }
  .gf-badge { animation: none; }
}
