/* Shared palette and component styling for XGC's directory and workspaces. */
body:is(.xgc-preview, .xgc-app) {
  background: var(--xgc-paper);
  color: var(--xgc-ink);
  font-family: var(--xgc-sans);
}
body:is(.xgc-preview, .xgc-app) input[type="range"] { accent-color: var(--xgc-accent); }
body:is(.xgc-preview, .xgc-app) :focus-visible {
  outline: 2px solid var(--xgc-accent);
  outline-offset: 3px;
}

body > .xgcbar,
body > .xgc-policy-footer {
  color: var(--xgc-ink);
  background: var(--xgc-paper);
  border-color: var(--xgc-line);
  font-family: var(--xgc-sans);
  color-scheme: light;
}
body > .xgcbar nav a,
body > .xgc-policy-footer a { color: var(--xgc-muted); }
body > .xgcbar nav a[aria-current="page"],
body > .xgcbar nav a:hover,
body > .xgc-policy-footer a:hover { color: var(--xgc-accent); }
body > .xgcbar nav a[aria-current="page"]::after { background: var(--xgc-accent); }
body > .xgcbar .xgc-logo span { color: var(--xgc-accent); }
body > .xgcbar .language-switch { background: transparent; border-color: var(--xgc-line); }
body > .xgcbar .language-switch :is(a, button) { color: var(--xgc-ink); }
body > .xgcbar .language-switch :is(a, button):is([aria-pressed="true"], [aria-current="true"]) {
  background: var(--xgc-accent);
  color: var(--xgc-on-accent);
  box-shadow: none;
}
.xgcbar .language-switch :is(a, button):hover:not([aria-pressed="true"]):not([aria-current="true"]) { background: var(--xgc-well); }
body > .xgc-consent {
  background: var(--xgc-surface);
  color: var(--xgc-ink);
  border-color: var(--xgc-line);
  border-radius: var(--xgc-radius);
  box-shadow: var(--xgc-modal-shadow);
}
.xgc-consent button,
body > .xgc-consent-manage {
  background: var(--xgc-paper);
  color: var(--xgc-ink);
  border-color: var(--xgc-line);
  border-radius: var(--xgc-radius);
}
.xgc-consent button:nth-of-type(2) {
  background: var(--xgc-accent);
  color: var(--xgc-on-accent);
  border-color: var(--xgc-accent);
}

@media (max-width: 859px) {
  :is(.xgc-petvoice,.xgc-petting) > .xgc-consent {
    position: static;
    width: auto;
    margin: 12px;
    padding: 12px 16px;
    box-shadow: none;
  }
}

/* Discovery, directories, lessons and policy pages use the same paper grid. */
.xgc-preview .hub { color: var(--xgc-ink); }
.xgc-preview .hub :is(.lead, p, .hero-note p, .section-heading p) { color: var(--xgc-muted); }
.xgc-preview :is(.home-hero, .category-hero, .hub-note, .collection-heading) { border-color: var(--xgc-line); }
.xgc-preview :is(.home-hero h1, .category-hero h1) { font-weight: 740; }
.xgc-preview :is(.home-hero h1, .category-hero h1) em {
  font: inherit;
  color: var(--xgc-accent);
}
.xgc-preview :is(.home-hero a, .category-aside a, .project-category, .hub-note a:not(.lab-button)) {
  color: var(--xgc-accent);
}
.xgc-preview .project-visual {
  background-color: var(--xgc-well);
  border: 1px solid var(--xgc-line);
  border-radius: var(--xgc-radius);
  box-shadow: none;
}
.xgc-preview .project-card:hover .project-visual { box-shadow: none; }
.xgc-preview .project-arrow {
  display: grid;
  place-items: center;
  background: var(--xgc-surface);
  color: var(--xgc-ink);
  border: 1px solid var(--xgc-line);
  border-radius: var(--xgc-radius);
}
.xgc-preview .project-card:hover .project-arrow {
  background: var(--xgc-accent);
  color: var(--xgc-on-accent);
  border-color: var(--xgc-accent);
}
.xgc-preview .project-meta { color: var(--xgc-muted); }
.xgc-preview .project-card { border-bottom: 1px solid var(--xgc-line); padding-bottom: 18px; }
.xgc-preview .project-card h2 { font-weight: 730; }
.xgc-preview .project-card .project-meta + h2 { margin-top: 10px; }
.xgc-preview .category-aside,
.xgc-preview .hub-note {
  background: var(--xgc-surface);
  border: 1px solid var(--xgc-line);
  border-radius: var(--xgc-radius);
}
.xgc-preview .experience-list a { border-color: var(--xgc-line); }
.xgc-preview .experience-list a:hover { background: var(--xgc-surface); }
.xgc-preview .experience-list a > span:last-child { color: var(--xgc-accent); }
.xgc-preview .lab-scene,
.xgc-preview .lab-controls {
  background: var(--xgc-surface);
  border: 1px solid var(--xgc-line);
  border-radius: var(--xgc-radius);
}
.xgc-preview .lab-scene canvas { border-radius: var(--xgc-radius); }
.xgc-preview .lab-controls output { color: var(--xgc-accent); font-family: var(--xgc-mono); }
.xgc-preview .lab-button {
  border: 1px solid var(--xgc-accent);
  border-radius: var(--xgc-radius);
  background: var(--xgc-accent);
  color: var(--xgc-on-accent);
  text-decoration: none;
}
.xgc-preview .lab-button:hover { background: var(--xgc-accent-hover); }

/* F2 Lab and the mechanical-camera workbench. */
html:has(> body.xgc-f2) { background: var(--xgc-paper); color-scheme: light; }
.xgc-f2 {
  --bg: var(--xgc-paper);
  --panel: var(--xgc-surface);
  --line: var(--xgc-line);
  --paper: var(--xgc-ink);
  --muted: var(--xgc-muted);
  --accent: var(--xgc-accent);
  --green: var(--xgc-accent);
  --serif: var(--xgc-sans);
  --mono: var(--xgc-mono);
}
.xgc-f2 #app > .masthead,
.xgc-f2 :is(.control-panel, .parts-panel) {
  background: var(--xgc-surface);
  color: var(--xgc-ink);
}
.xgc-f2 :is(.brand-name, .film-status strong, .control-label) { color: var(--xgc-ink); }
.xgc-f2 :is(.brand-symbol span, .frame-count strong) { color: var(--xgc-accent); }
.xgc-f2 :is(.mode-nav button, .mode-nav small, .brand-name small, .panel-title, .meter-readout, .film-status span, .frame-count small, .site-footer) {
  color: var(--xgc-muted);
}
.xgc-f2 .mode-nav button.active { color: var(--xgc-accent); }
.xgc-f2 .mode-nav i { background: var(--xgc-well); color: var(--xgc-muted); }

.xgc-f2 .stage { background: radial-gradient(ellipse at 62% 45%, var(--xgc-surface), var(--xgc-paper) 62%, var(--xgc-well)); }
.xgc-f2 .stage::before {
  opacity: .22;
  background-image: linear-gradient(var(--xgc-line) 1px, transparent 1px), linear-gradient(90deg, var(--xgc-line) 1px, transparent 1px);
}
.xgc-f2 .stage::after { background: radial-gradient(ellipse, #4c3c2a36, transparent 68%); }
.xgc-f2 :is(.intro, .explode-head, .darkroom-title) :is(h1, h2) { font-weight: 740; letter-spacing: -.04em; color: var(--xgc-ink); }
.xgc-f2 :is(.stage-heading, .intro p, .year-tag, .year-tag span, .model-caption > span, .model-caption b i, .model-caption small, .drag-hint, .stage-footer, .explode-head p) {
  color: var(--xgc-muted);
}
.xgc-f2 .model-caption b { color: var(--xgc-ink); }
.xgc-f2 :is(.stage-footer, .explode-control) { border-color: var(--xgc-line); }
.xgc-f2 :is(.status-dot, .site-footer i) { background: var(--xgc-accent); }
.xgc-f2 :is(.loading, .explode-control) { background: var(--xgc-surface); color: var(--xgc-ink); border-radius: var(--xgc-radius); }
.xgc-f2 .loader { border-color: var(--xgc-line); border-top-color: var(--xgc-accent); }

.xgc-f2 :is(.view-tools button, .scene-pills button, .study-tools button, .optical-steps button, .outline, .part-row, .search-field, select, .aperture-options, .secondary-controls button, .advance-btn) {
  background: var(--xgc-paper);
  color: var(--xgc-ink);
  border-color: var(--xgc-line);
  border-radius: var(--xgc-radius);
}
.xgc-f2 :is(.view-tools button, .scene-pills button, .study-tools button, .optical-steps button, .outline, .part-row, .advance-btn):hover {
  background: var(--xgc-well);
  color: var(--xgc-ink);
}
.xgc-f2 :is(.scene-pills button.active, .study-tools button[aria-pressed="true"], .optical-steps button[aria-pressed="true"], .aperture-options button.active, .part-row.active, .secondary-controls button[aria-pressed="true"]) {
  background: var(--xgc-accent-soft);
  border-color: var(--xgc-accent);
  color: var(--xgc-accent);
}
.xgc-f2 :is(.shutter-btn, .solid) {
  color: var(--xgc-on-accent);
  background: var(--xgc-accent);
  border-color: var(--xgc-accent);
  border-radius: var(--xgc-radius);
}
.xgc-f2 :is(.shutter-btn, .solid):hover { background: var(--xgc-accent-hover); color: var(--xgc-on-accent); }
.xgc-f2 .shutter-btn i { background: var(--xgc-accent-hover); border-color: var(--xgc-on-accent); box-shadow: none; }
.xgc-f2 .shutter-btn.armed i { background: var(--xgc-on-accent); box-shadow: inset 0 0 0 3px var(--xgc-accent); }

.xgc-f2 :is(.text-btn, .small-btn, .unit, .part-row small, .part-detail p, .part-detail > small, .optical-lesson p, .optical-lesson small, .explode-control > div, .explode-control footer) { color: var(--xgc-muted); }
.xgc-f2 :is(.part-detail, .optical-lesson, .capture-controls, .site-footer .quiet span, .meter-track b) { border-color: var(--xgc-line); }
.xgc-f2 .meter-track i { background: var(--xgc-accent); }
.xgc-f2 .film-procedure progress::-moz-progress-bar { background: var(--xgc-accent); }
.xgc-f2 .film-procedure progress::-webkit-progress-bar { background: var(--xgc-well); }
.xgc-f2 .film-procedure progress::-webkit-progress-value { background: var(--xgc-accent); }
.xgc-f2 .film-procedure { background: var(--xgc-paper); border-color: var(--xgc-line); border-radius: var(--xgc-radius); }
.xgc-f2 :is(.film-procedure p, .load-steps span) { color: var(--xgc-muted); border-color: var(--xgc-line); }
.xgc-f2 .load-steps .done { color: var(--xgc-accent); border-color: var(--xgc-accent); }

.xgc-f2 :is(.finder-top, .finder-foot) { color: var(--xgc-muted); }
.xgc-f2 .finder-window { background: var(--xgc-ink); border-color: var(--xgc-ink); box-shadow: var(--xgc-modal-shadow); }
.xgc-f2 .finder-bottom { background: var(--xgc-ink); color: var(--xgc-on-accent); }
.xgc-f2 .finder-blackout { background: var(--xgc-ink); color: var(--xgc-on-accent); }
.xgc-f2 .finder-meter :is(b, div) { border-color: var(--xgc-line); }
.xgc-f2 .finder-meter i { background: #ffb39f; }

.xgc-f2 .darkroom { background: var(--xgc-paper); color: var(--xgc-ink); }
.xgc-f2 :is(.current-roll-note, .empty-darkroom, .undeveloped, .empty-roll, #dialog, .toast) {
  background: var(--xgc-surface);
  border-color: var(--xgc-line);
  border-radius: var(--xgc-radius);
  color: var(--xgc-ink);
}
.xgc-f2 :is(.current-roll-note p, .current-roll-note small, .darkroom-title p, .darkroom-mark small, .roll-title h2 small, .empty-darkroom p, .undeveloped p, .undeveloped small) { color: var(--xgc-muted); }
.xgc-f2 :is(.darkroom-mark, .empty-film, .roll-reel, .developed-badge, .toast.error) { color: var(--xgc-accent); }
.xgc-f2 :is(.roll-title, .photo-details dl) { border-color: var(--xgc-line); }
.xgc-f2 .negative-frame { background: var(--xgc-ink); border-radius: var(--xgc-radius); border-color: var(--xgc-ink); }
.xgc-f2 .negative-number { color: var(--xgc-on-accent); }
.xgc-f2 .negative-meta { color: var(--xgc-muted); }
.xgc-f2 .sprocket-holes { background: repeating-linear-gradient(90deg, var(--xgc-line) 0 10px, transparent 10px 19px); }
.xgc-f2 #dialog { box-shadow: var(--xgc-modal-shadow); }
.xgc-f2 #dialog::backdrop { background: #211e1a85; }
.xgc-f2 .photo-details :is(dt, dd) { color: var(--xgc-muted); }
.xgc-f2 .film-icon { background: var(--xgc-ink); color: var(--xgc-on-accent); }
.xgc-f2 :is(.film-icon i, .film-icon b, .advance-btn span, .part-type) { border-color: var(--xgc-line); }
.xgc-f2 .film-icon i { background: var(--xgc-muted); }
.xgc-f2 :is(.advance-btn span, .part-type.schematic) { color: var(--xgc-accent); }
.xgc-f2 :is(.part-type:not(.schematic), .part-detail .eyebrow),
.xgc-f2 .search-field input::placeholder { color: var(--xgc-muted); }

@media (max-width: 800px) {
  .xgc-f2 .masthead .about-btn {
    display: inline-flex;
    order: 1;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-inline-start: auto;
  }
  .xgc-f2 .masthead .about-btn span { margin: 0; }
  .xgc-f2 .mode-nav { order: 2; gap: 6px; }
  .xgc-f2 .mode-nav button { min-height: 44px; }
  .xgc-f2 .view-tools button { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .xgc-f2 .mode-nav small { display: none; }
}

/* PetVoice: paper controls surround the live shaded pet. */
:is(.xgc-petvoice,.xgc-petting) { color-scheme: light; }
:is(.xgc-petvoice,.xgc-petting) .petvoice-workspace {
  --bg: var(--xgc-paper);
  --sheet: var(--xgc-surface);
  --well: var(--xgc-well);
  --edge: var(--xgc-line);
  --edge-2: #a19787;
  --text: var(--xgc-ink);
  --mute: var(--xgc-muted);
  --faint: var(--xgc-muted);
  --coral: var(--xgc-accent);
  --butter: var(--xgc-accent);
  --mint: #346347;
  --round: var(--xgc-sans);
  --mono: var(--xgc-mono);
}
:is(.xgc-petvoice,.xgc-petting) #stage { background: radial-gradient(ellipse, #51443a, #26211d 68%); }
:is(.xgc-petvoice,.xgc-petting) :is(.bar, .sheet) { background: var(--xgc-surface); color: var(--xgc-ink); }
:is(.xgc-petvoice,.xgc-petting) .sheet { border-radius: var(--xgc-radius); box-shadow: none; }
:is(.xgc-petvoice,.xgc-petting) .stage-foot { color: #f5e9d9; }
:is(.xgc-petvoice,.xgc-petting) :is(.namepill, .tabs, .seg, .seg button, .bubbles button, .filebtn, .sayrow input, select, #app button:not(#mood-preview, #mood button)) {
  border-radius: var(--xgc-radius);
}
:is(.xgc-petvoice,.xgc-petting) :is(.namepill, .seg, .filebtn, .sayrow input) { background: var(--xgc-well); }
:is(.xgc-petvoice,.xgc-petting) .bubbles button {
  background: var(--xgc-paper);
  border: 1px solid var(--xgc-line);
  color: var(--xgc-ink);
}
:is(.xgc-petvoice,.xgc-petting) .bubbles button::after { display: none; }
:is(.xgc-petvoice,.xgc-petting) #mood button {
  color: var(--xgc-ink);
  background: var(--xgc-paper);
}
:is(.xgc-petvoice,.xgc-petting) #mood button[aria-checked="true"] { background: var(--xgc-accent-soft); border-color: var(--xgc-accent); box-shadow: none; }
:is(.xgc-petvoice,.xgc-petting) #mood-preview { background: var(--xgc-well); color: var(--xgc-accent); }
:is(.xgc-petvoice,.xgc-petting) .tabs button:not([aria-selected="true"]):hover { background: var(--xgc-well); }
:is(.xgc-petvoice,.xgc-petting) :is(button.primary, .tabs button[aria-selected="true"], .bubbles button[aria-pressed="true"], .seg button[aria-checked="true"]) {
  background: var(--xgc-accent);
  border-color: var(--xgc-accent);
  color: var(--xgc-on-accent);
  box-shadow: none;
}
:is(.xgc-petvoice,.xgc-petting) .original-player { border-radius: var(--xgc-radius); }
:is(.xgc-petvoice,.xgc-petting) #chart { background: #28221e; border-radius: var(--xgc-radius); }
:is(.xgc-petvoice,.xgc-petting) #auto-replay { background: radial-gradient(circle at 10px center, var(--xgc-surface) 7px, transparent 8px) #82786d; }
:is(.xgc-petvoice,.xgc-petting) #auto-replay:checked { background: radial-gradient(circle at 27px center, var(--xgc-surface) 7px, transparent 8px) var(--xgc-accent); }

/* Pet Dance and Pet Play: stage art stays in the stage; overlay controls use the same paper. */
.xgc-pet-dance .app-shell { background: var(--xgc-paper); }
.xgc-pet-dance .tool-intro {
  background: var(--xgc-surface);
  color: var(--xgc-muted);
  border-bottom: 1px solid var(--xgc-line);
}
.xgc-pet-dance :is(.stage-shell, .pet-rail, .pet-card, .music-player, .control-button, .control-menu-trigger, .selected-tool-button) {
  border-radius: var(--xgc-radius);
  border-color: var(--xgc-line);
  box-shadow: none;
}
.xgc-pet-dance :is(.pet-rail, .pet-card, .top-brand, .music-player, .control-button, .control-menu-trigger, .selected-tool-button) {
  background: var(--xgc-surface);
  color: var(--xgc-ink);
}
.xgc-pet-dance :is(.music-player-status, .control-menu-current, .control-menu-kicker, .pet-card-name) { color: var(--xgc-muted); }
.xgc-pet-dance :is(.control-button, .selected-tool-button, .control-menu-trigger):hover { background: var(--xgc-well); }
.xgc-pet-dance :is(.music-player-button.primary, .pet-import-actions button:last-child),
.xgc-pet-dance .record-button.is-recording {
  background: var(--xgc-accent);
  color: var(--xgc-on-accent);
  border-color: var(--xgc-accent);
}
.xgc-pet-dance .control-menu-option.is-active { background: var(--xgc-accent-soft); color: var(--xgc-accent); }
.xgc-pet-dance .control-menu-option:hover { background: var(--xgc-well); }
.xgc-pet-dance :is(.control-menu-option, .music-player-button) { border-radius: var(--xgc-radius); }
.xgc-pet-play .menu-button {
  border: 1px solid var(--xgc-line);
  background: var(--xgc-paper);
  color: var(--xgc-ink);
  font-family: var(--xgc-sans);
}
.xgc-pet-play .menu-button:hover { background: var(--xgc-well); }
.xgc-pet-play :is(.menu-button, .menu-link) span:last-child { color: var(--xgc-accent); }

/* Match the application overlays while retaining their original layout and sizing. */
.xgc-app dialog,
.xgc-pet-dance :is(.pet-import-dialog, .control-menu-panel),
.xgc-pet-play .pet-menu {
  --text: var(--xgc-ink);
  --mute: var(--xgc-muted);
  --edge: var(--xgc-line);
  --well: var(--xgc-well);
  --coral: var(--xgc-accent);
  --mint: #346347;
  color: var(--xgc-ink);
  background: var(--xgc-surface);
  border-color: var(--xgc-line);
  border-radius: var(--xgc-radius);
  box-shadow: var(--xgc-modal-shadow);
}
.xgc-app dialog::backdrop { background: #28201aaa; }
.xgc-app dialog button { border-radius: var(--xgc-radius); }
:is(.xgc-petvoice,.xgc-petting) dialog { font-family: var(--xgc-sans); }
:is(.xgc-petvoice,.xgc-petting) dialog :is(.export-item, button:not(.primary)) { background: var(--xgc-paper); }
.xgc-pet-dance .pet-import-dialog :is(code, .pet-import-dropzone) {
  background: var(--xgc-well);
  color: var(--xgc-ink);
  border-color: var(--xgc-line);
}

/* Editorial grid for the discovery and category pages. */
.xgc-preview .home-hero h1 {
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 1.03;
  letter-spacing: -.065em;
}
.xgc-preview .home-hero { grid-template-columns: 1.55fr 1fr; }
.xgc-preview .hero-note { max-width: 380px; justify-self: end; padding-left: 0; }
.xgc-preview .hero-links { display: flex; flex-wrap: wrap; gap: 8px; }
.xgc-preview .hero-links a {
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--xgc-line);
  border-radius: var(--xgc-radius);
  background: var(--xgc-surface);
  color: var(--xgc-ink);
  font-weight: 650;
}
.xgc-preview .hero-links a:hover { color: var(--xgc-accent); border-color: var(--xgc-accent); }
.xgc-preview .hero-links a span[aria-hidden] { color: var(--xgc-accent); font-size: 14px; }
.xgc-preview .project-visual { height: auto; aspect-ratio: 16 / 9; }
.xgc-preview .project-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xgc-preview .camera-cover { padding: 0; }
.xgc-preview .camera-cover img { object-position: center 68%; }
.xgc-preview .editorial > .project-grid + .project-grid,
.xgc-preview .category-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xgc-preview .experience-list a { grid-template-columns: minmax(0, 1fr) auto 24px; column-gap: 20px; }
.xgc-preview .project-meta { margin: 15px 0 0; font: 11px/1.4 var(--xgc-mono); }
.xgc-preview .editorial .project-card > p { max-width: 42em; }
.xgc-preview .footer-brand { color: var(--xgc-ink); }

@media (max-width: 760px) {
  .xgc-preview .editorial > .project-grid + .project-grid,
  .xgc-preview .category-grid:has(> :nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .xgc-preview .home-hero,
  .xgc-preview .editorial > .project-grid + .project-grid,
  .xgc-preview .category-grid:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
  .xgc-preview .hero-note { justify-self: start; }
  .xgc-preview .home-hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .xgc-preview .experience-list a { column-gap: 10px; }
}

/* Reading pages need inset text, independently of the original section borders. */
.xgc-preview .hub-note { padding: clamp(18px, 3vw, 28px); }
.xgc-preview .hub-note h2 { margin-top: 0; }
.xgc-preview .hub-note p:last-child { margin-bottom: 0; }
.xgc-preview .hub-note :is(p, a) { overflow-wrap: anywhere; }
body > .xgc-policy-footer .footer-brand { color: var(--xgc-ink); }
body > .xgc-policy-footer .footer-brand small { color: var(--xgc-muted); }

.xgc-pet-play::before { display: none; }
.xgc-pet-play .stage {
  border-block: 1px solid var(--xgc-line);
}
.xgc-pet-dance :is(.control-menu-icon, .control-menu-chevron, .music-volume, .music-player-button:not(.primary)) {
  color: var(--xgc-ink);
}
.xgc-pet-dance .music-player-button:not(.primary):hover { background: var(--xgc-well); }
:is(.xgc-petvoice,.xgc-petting) #mood button:focus-visible { outline-color: var(--xgc-accent); }

.xgc-f2 :is(.section-line, .part-group, .panel-foot, .range-labels, .control-label span) {
  color: var(--xgc-muted);
  border-color: var(--xgc-line);
}
.xgc-f2 .aperture-options button { border-color: var(--xgc-line); color: var(--xgc-muted); }
.xgc-f2 .aperture-options button.active { color: var(--xgc-accent); }
.xgc-f2 :is(.advance-btn, .shutter-btn) kbd { color: inherit; border-color: currentColor; }
.xgc-f2 input[type="range"]::-webkit-slider-thumb { background: var(--xgc-accent); border-color: var(--xgc-surface); }
.xgc-f2 input[type="range"]::-moz-range-thumb { background: var(--xgc-accent); border-color: var(--xgc-surface); }

.xgc-preview .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.xgc-preview .skip:focus {
  position: absolute;
  z-index: 32;
  top: 10px;
  left: 12px;
  padding: 10px;
  background: var(--xgc-surface);
  color: var(--xgc-accent);
}
.xgc-preview .info .eyebrow {
  color: var(--xgc-muted);
  font: 11px/1.4 var(--xgc-mono);
  letter-spacing: .12em;
}
.xgc-preview .info a { color: var(--xgc-accent); }
.xgc-preview .info a.lab-button { color: var(--xgc-on-accent); }

.xgc-f2 #dialog :is(p, small, .about-spec > div, .dialog-close) { color: var(--xgc-muted); }
.xgc-f2 #dialog :is(.about-spec b, .shortcut-list, .film-choice strong) { color: var(--xgc-ink); }
.xgc-f2 #dialog :is(.film-choice, .outline, .shortcut-list kbd) {
  color: var(--xgc-ink);
  border-color: var(--xgc-line);
  background: var(--xgc-paper);
}
.xgc-f2 #dialog :is(.about-spec, .about-links, .guide-list li) { border-color: var(--xgc-line); }
.xgc-f2 #dialog .film-choice:hover { background: var(--xgc-well); border-color: var(--xgc-accent); }
.xgc-f2 #dialog .dialog-close:hover { color: var(--xgc-accent); }

.xgc-f2 #guided-action { margin-inline-start: auto; flex-shrink: 0; min-height: 38px; }
.xgc-f2 #guided-action:not([hidden]) + kbd { display: none; }
.xgc-f2 #status-text { line-height: 1.5; }
@media (max-width: 800px) {
  .xgc-f2:not([data-mode="explode"]):not([data-mode="shoot"]) .stage { height: clamp(490px, 70svh, 620px); }
  .xgc-f2 .stage-footer { gap: 8px; min-height: 60px; }
  .xgc-f2 #guided-action { padding-inline: 10px; }
}

.xgc-preview .tool-feature .project-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.tool-feature .feature-copy p { line-height: 1.6; }
.tool-feature .feature-copy strong { display: inline-block; margin: 1em 0; }
@media (max-width: 600px) {
  .xgc-preview .tool-feature .project-card { grid-template-columns: 1fr; gap: 0; }
}

.xgc-f2 :is(#close-back, #finish-roll) { min-height: 44px; flex-shrink: 0; }
.xgc-f2 #close-back:disabled { opacity: .6; }
.xgc-f2 .stage-footer:has(#guided-action:not([hidden]), #close-back:not([hidden])) kbd { display: none; }
@media (max-width: 600px) {
  .xgc-f2 .stage-footer:has(:is(#close-back, #finish-roll):not([hidden])) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    height: auto;
    padding-block: 8px;
  }
  .xgc-f2 .stage-footer:has(:is(#close-back, #finish-roll):not([hidden])) .status-dot { display: none; }
  .xgc-f2 .stage-footer:has(:is(#close-back, #finish-roll):not([hidden])) #status-text { grid-column: 1 / -1; max-width: none; }
  .xgc-f2 .stage-footer:has(:is(#close-back, #finish-roll):not([hidden])) #guided-action { margin: 0; }
}
.xgc-f2 .part-guide {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  max-width: 160px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--xgc-accent);
  border-radius: var(--xgc-radius);
  background: var(--xgc-surface);
  color: var(--xgc-ink);
  font: 600 12px/1.25 var(--xgc-sans);
  box-shadow: 0 2px 8px #211e1a33;
  touch-action: manipulation;
}
.xgc-f2 .part-guide::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, 4px);
  background: var(--xgc-accent);
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
}
@media(max-width: 600px) {
  .xgc-f2 .part-guide { min-height: 44px; max-width: 128px; }
  .xgc-f2 .finder-foot { flex-wrap: wrap; }
}

.xgc-f2 .rewind-hint { transform: translate(-50%, 0); margin-top: 10px; border-color: var(--xgc-muted); }
.xgc-f2 .rewind-hint::after { top: auto; bottom: 100%; transform: translate(-50%, -4px); background: var(--xgc-muted); }

.xgc-petting #stage { background: radial-gradient(ellipse at 45% 50%, #fff9eb, #e6dac6); }
.xgc-petting .stage-foot { color: var(--xgc-muted); }

/* Keep featured experiences and practical tools in the same visual catalogue. */
.xgc-preview .editorial > .home-primary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xgc-preview .tools-card-grid .project-visual,
.xgc-preview .home-primary-grid .project-visual { aspect-ratio: 3 / 2; height: auto; }
.xgc-preview .tools-card-grid .project-visual img,
.xgc-preview .home-primary-grid .project-visual img { width: 100%; height: 100%; object-fit: cover; }
.xgc-preview .compressor-cover { background: #ead0b2; }
.xgc-f2 .f2-tool-notes { background: var(--xgc-paper); color: var(--xgc-ink); border: 0; border-top: 1px solid var(--xgc-line); padding-block: 18px; }
.xgc-f2 .f2-tool-notes h1 { color: var(--xgc-ink); }
.xgc-f2 .f2-tool-notes p { color: var(--xgc-muted); }
@media (max-width: 720px) {
  .xgc-preview .editorial > .home-primary-grid,
  .xgc-preview .tools-card-grid { grid-template-columns: minmax(0, 1fr); }
}
