@charset "UTF-8";
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
}
:root {
  color-scheme: dark;
  --bg: oklch(.148 0 0);
  --surface: oklch(.19 0 0);
  --ink: oklch(.96 0 0);
  --muted: oklch(.76 0 0);
  --subtle: oklch(.67 0 0);
  --line: oklch(.34 0 0 / .62);
  --line-hover: oklch(.63 0 0);
  --accent: oklch(.91 0 0);
  --accent-pale: oklch(.97 0 0);
  --white: oklch(1 0 0);
  --z-expanded: 20;
  --z-close: 21;
  --z-skip: 30;
  --z-singularity: 40;
  font-family: 'Manrope', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; isolation: isolate; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .85; background: url('starfield.svg') center top / 1440px 1000px repeat; }
.has-cosmos body::before { content: none; }
.cosmos { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input { border-radius: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
.skip { position: fixed; top: -100px; left: 16px; padding: 14px 20px; background: var(--ink); color: var(--bg); z-index: var(--z-skip); }
.skip:focus { top: 16px; }
.page { --page-inset: 56px; max-width: 1680px; margin: auto; padding: 0 var(--page-inset); }
.site-header { position: relative; z-index: 2; min-height: 88px; display: flex; align-items: center; gap: 38px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; font-size: 16px; font-weight: 500; letter-spacing: .035em; }
.brand-mark { width: 32px; height: 36px; flex: 0 0 auto; stroke: var(--accent); stroke-width: 1; }
.header-note { padding-left: 32px; border-left: 1px solid var(--line); font-size: 10px; font-weight: 500; letter-spacing: .16em; color: var(--subtle); }
nav { display: flex; align-items: center; gap: 36px; margin-left: auto; font-size: 13px; }
nav a { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); transition: color .2s ease; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
nav a span { font-size: 16px; }
main { min-height: calc(100svh - 200px); }
main:focus { outline: none; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(640px, 49vw, 760px); margin-inline: calc(var(--page-inset) * -1); padding: 56px calc(var(--page-inset) + 12px) 72px; overflow: clip; }
.hero-intro { position: relative; z-index: 1; width: 50%; max-width: 652px; padding: 24px 37px 22px; background: linear-gradient(115deg, oklch(.11 0 0 / .70), oklch(.13 0 0 / .70) 62%, oklch(.22 0 0 / .70)); border: 1px solid oklch(.65 0 0 / .26); backdrop-filter: blur(18px); transform: perspective(1400px) rotateY(8deg) rotateZ(-1.2deg); transform-origin: left center; }
.hero-intro::before, .hero-intro::after { content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none; }
.hero-intro::before { top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.hero-intro::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.panel-header { display: flex; align-items: center; gap: 9px; padding-bottom: 19px; color: var(--subtle); font-size: 8px; font-weight: 600; letter-spacing: .16em; border-bottom: 1px solid var(--line); }
.signal-dot { width: 4px; height: 4px; flex: 0 0 auto; background: var(--accent); box-shadow: 0 0 7px oklch(.91 0 0 / .6); }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 10px; line-height: 1.8; }
.panel-footer > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin: 29px 0 23px; color: var(--accent); font-size: 11px; letter-spacing: .2em; }
.tiny-cross { color: var(--accent); font-size: 19px; font-weight: 400; line-height: 1; }
h1 { font-size: clamp(40px, 4.7vw, 72px); font-weight: 500; letter-spacing: -.035em; line-height: 1.35; margin: 0; }
.hero h1 { white-space: pre-line; font-size: clamp(40px, 4.25vw, 65px); font-weight: 700; letter-spacing: -.025em; line-height: 1.32; }
.description { max-width: 350px; margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 2.05; }
.explore-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 48px; margin-top: 38px; padding: 17px 23px; min-height: 56px; border: 1px solid var(--line-hover); font-size: 13px; transition: background .22s ease, color .22s ease, border-color .22s ease; }
.explore-link:hover { color: var(--bg); background: var(--accent-pale); border-color: var(--accent-pale); }
.hero .explore-link { margin-top: 29px; min-height: 48px; padding: 13px 20px; gap: 54px; color: var(--bg); background: var(--accent); border-color: var(--accent); font-size: 12px; font-weight: 700; }
.hero .explore-link:hover { background: var(--accent-pale); border-color: var(--accent-pale); }
.explore-link .icon { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.explore-link:hover .icon { transform: translateX(4px); }
.hypercube { position: absolute; width: min(64vw, 960px); right: -1.5%; top: 50%; transform: translateY(-51%); min-width: 0; margin: 0; }
.cube-stage { position: relative; aspect-ratio: 640 / 580; cursor: grab; touch-action: pinch-zoom; user-select: none; -webkit-tap-highlight-color: transparent; transform-origin: 50% 48.9655%; }
.cube-stage:focus, .cube-stage:focus-visible { outline: none; }
.cube-stage[data-keyboard-focus="true"] .cube-wire { stroke-width: 2.1; filter: drop-shadow(0 0 5px oklch(1 0 0 / .95)); }
.cube-stage.is-dragging { cursor: grabbing; }
.cube-stage > svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cube-field { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 7px oklch(.86 0 0 / .35)); pointer-events: none; }
.cube-guides { stroke: oklch(.72 0 0 / .27); stroke-width: .5; }
.guide-dashes { stroke-dasharray: 2 8; }
.cube-faces { fill: oklch(.72 0 0 / .016); }
.cube-wire { color: var(--accent); filter: drop-shadow(0 0 3px oklch(.82 0 0 / .8)); }
.cube-nodes { color: var(--accent-pale); filter: drop-shadow(0 0 5px var(--accent)); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 10px 14px; color: var(--ink); background: transparent; border: 1px solid var(--line-hover); font-size: 12px; line-height: 1.5; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.button .icon { width: 16px; height: 16px; }
.button:not(:disabled):hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.button:disabled { opacity: .4; border-color: var(--line); }
.directory { position: relative; margin-bottom: 18px; border-top: 1px solid var(--line); }
.portal { display: flex; align-items: center; gap: 48px; min-height: 156px; padding: 28px 12px; border-bottom: 1px solid var(--line); }
.portal-copy { min-width: 210px; }
.portal-title { display: flex; align-items: flex-start; gap: 13px; }
.portal h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.portal-count { font-size: 11px; padding-top: 3px; color: var(--accent); font-variant-numeric: tabular-nums; }
.portal p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.portal-previews { display: flex; gap: 12px; margin-left: auto; min-width: 0; }
.portal-previews img { display: block; width: clamp(80px, 10vw, 140px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.portal:hover .portal-previews img { transform: translateY(-3px); }
.portal-arrow { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; margin-left: auto; border: 1px solid var(--line); transition: color .2s ease, background .2s ease, border-color .2s ease; }
.portal-arrow .icon { width: 25px; height: 25px; }
.portal:hover .portal-arrow { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.site-footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 30px; color: var(--subtle); font-size: 11px; }
.footer-sign { color: var(--muted); }
.site-footer > span:last-child > span { margin-left: 14px; color: var(--ink); }

/* The collection stays file-driven; only its presentation belongs to the shell. */
.listing-head { padding: 52px 0 32px; background: radial-gradient(ellipse at 90% 25%, oklch(.55 0 0 / .09), transparent 65%); }
.back { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: var(--muted); font-size: 12px; }
.back:hover { color: var(--ink); }
.back .icon { width: 15px; height: 15px; }
.listing-title { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; margin-top: 29px; }
.listing-title h1 { font-size: clamp(38px, 4.1vw, 60px); font-weight: 400; }
.listing-title p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.work-count { font-size: 12px; color: var(--muted); }
.work-count > span { margin-right: 11px; color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.search-field { display: flex; align-items: center; gap: 12px; width: 316px; max-width: 100%; padding-left: 1px; color: var(--muted); }
.search-field > .icon { width: 17px; height: 17px; }
.search-label { flex: 0 0 auto; font-size: 12px; }
.search-field input { width: 100%; min-width: 0; padding: 13px 5px; border: 0; border-bottom: 1px solid var(--line-hover); background: transparent; color: var(--ink); font-size: 12px; }
input::placeholder { color: var(--subtle); opacity: 1; }
.work { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.55fr); gap: 60px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.work-details { align-self: center; min-width: 0; }
.work-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.work h2 { margin: 0; font-size: clamp(23px, 2.15vw, 29px); font-weight: 400; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid var(--line-hover); font-size: 10px; line-height: 1.8; color: var(--muted); }
.work-info { max-width: 335px; margin: 20px 0; font-size: 13px; line-height: 2; color: var(--muted); overflow-wrap: anywhere; }
.metadata { display: flex; flex-direction: column; gap: 9px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.metadata > div { display: flex; gap: 20px; }
.metadata dt { flex: 0 0 4em; color: var(--subtle); }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
.work-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.work-status { margin: 12px 0 0; font-size: 11px; line-height: 1.8; color: var(--subtle); }
.is-running .work-status { color: var(--accent); }
.is-running .work-status::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; background: currentColor; vertical-align: middle; }
.viewer { min-width: 0; width: 100%; aspect-ratio: 16 / 9; align-self: center; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
.work-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 24px; text-align: center; }
.placeholder-title { margin: 0; font-size: 24px; line-height: 1.5; overflow-wrap: anywhere; }
.placeholder-note { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.run-work { min-height: 44px; padding: 12px 18px; white-space: nowrap; }
.run-work, .close-view {
  color: var(--white);
  background: oklch(.18 0 0 / .58);
  border: 1px solid oklch(1 0 0 / .32);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / .12), 0 4px 18px oklch(0 0 0 / .18);
}
.run-work:not(:disabled):hover, .close-view:not(:disabled):hover {
  color: var(--white);
  background: oklch(.26 0 0 / .72);
  border-color: oklch(1 0 0 / .55);
}
.work-placeholder.has-cover { position: relative; padding: 0; gap: 0; }
.thumbnail { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: var(--bg); overflow: hidden; }
.work-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.work-placeholder:hover .work-cover, .work-placeholder:focus-within .work-cover { transform: scale(1.015); }
.has-cover .run-work { position: absolute; left: 22px; bottom: 22px; }
.thumbnail:focus-visible { outline-offset: -5px; }
.viewer:fullscreen, .viewer.expanded { width: 100%; height: 100%; aspect-ratio: auto; border: 0; background: var(--bg); }
.viewer.expanded { position: fixed; inset: 0; z-index: var(--z-expanded); }
.close-view { display: none; position: absolute; top: 16px; right: 16px; z-index: var(--z-close); min-height: 44px; }
.viewer:fullscreen .close-view, .viewer.expanded .close-view { display: inline-flex; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 80px 0 100px; color: var(--muted); }
.empty p { margin: 0; color: var(--ink); font-size: 24px; }
.empty > span { font-size: 13px; line-height: 1.8; }
.error { padding-top: 80px; line-height: 2; }
.missing-page { padding: 100px 0; }
.missing-code { margin: 0 0 24px; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.missing-page h1 { font-size: clamp(30px, 4vw, 54px); }
noscript { display: block; padding: 24px; text-align: center; }

/* This layer exists only while the visitor deliberately triggers the easter egg. */
.singularity { position: fixed; inset: 0; z-index: var(--z-singularity); isolation: isolate; overflow: hidden; outline: none; }
.singularity-fragments { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.singularity-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.singularity-hole { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.singularity-return { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 28px; width: min(90vw, 480px); text-align: center; }
.singularity-seed { width: 2px; height: 2px; background: var(--white); box-shadow: 0 0 12px 3px oklch(1 0 0 / .12); }
.singularity-message { margin: 0; color: var(--ink); font-size: clamp(18px, 4.5vw, 24px); line-height: 1.7; text-wrap: balance; }
.singularity-return .button { border-radius: 12px; white-space: nowrap; padding: 13px 21px; gap: 30px; min-height: 46px; border-color: oklch(.39 0 0); color: var(--muted); font-size: 12px; }
.singularity-return .button:hover { color: var(--bg); }
:root[data-singularity="consumed"] .singularity { background: #000; }

@media (prefers-reduced-motion: no-preference) {
  .hero-intro { animation: panel-arrive 1.1s cubic-bezier(.16, 1, .3, 1); }
  @keyframes panel-arrive { from { translate: -15px 6px; } to { translate: 0 0; } }
}
@media (max-width: 1100px) {
  .page { --page-inset: 36px; }
  .header-note { display: none; }
  .hero { min-height: 620px; padding-inline: var(--page-inset); }
  .hero-intro { width: 49%; padding: 22px 25px; }
  .hero h1 { font-size: clamp(36px, 4.4vw, 49px); }
  .panel-header { font-size: 7px; letter-spacing: .1em; }
  .panel-footer > span:first-child { max-width: 13em; }
  .hypercube { width: 79vw; right: -12%; }
  .cube-controls { right: 21%; bottom: 14%; }
  .portal { gap: 28px; }
  .portal-copy { min-width: 180px; }
  .portal-previews { gap: 8px; }
  .work { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.3fr); gap: 32px; }
  .work-info { font-size: 12px; margin: 15px 0; }
  .metadata > div { gap: 12px; }
}
@media (max-width: 760px) {
  .page { --page-inset: 24px; }
  .site-header { min-height: 76px; gap: 20px; }
  .brand { font-size: 14px; gap: 9px; letter-spacing: 0; }
  .brand-mark { width: 26px; height: 30px; }
  nav { gap: 23px; font-size: 12px; }
  nav a { gap: 6px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 22px var(--page-inset) 49px; }
  .hypercube { position: relative; align-self: center; order: 0; top: auto; right: auto; width: min(118vw, 650px); margin: -19px -24px -94px; transform: none; }
  .cube-stage { width: 100%; }
  .cube-controls { bottom: 29%; right: 15%; }
  .hero-intro { order: 1; width: 100%; max-width: 580px; align-self: center; padding: 19px 25px 21px; transform: none; background: linear-gradient(115deg, oklch(.12 0 0 / .70), oklch(.16 0 0 / .70)); }
  .panel-header { font-size: 7px; padding-bottom: 16px; }
  .panel-footer { margin-top: 24px; padding-top: 16px; font-size: 9px; }
  .panel-footer > span:first-child { max-width: none; }
  .hero-eyebrow { margin: 22px 0 17px; font-size: 10px; }
  .hero h1 { font-size: clamp(37px, 8.3vw, 56px); letter-spacing: -.025em; line-height: 1.3; }
  .description { margin-top: 19px; max-width: 360px; font-size: 12px; }
  .explore-link { margin-top: 27px; min-height: 50px; padding: 13px 19px; gap: 43px; font-size: 12px; }
  .hero .explore-link { margin-top: 24px; min-height: 46px; gap: 46px; padding: 12px 18px; }
  .portal { display: grid; grid-template-columns: 1fr auto; gap: 24px; min-height: 0; padding: 27px 0; }
  .portal h2 { font-size: 25px; }
  .portal p { font-size: 12px; }
  .portal-previews { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 10px; margin: 0; }
  .portal-previews:empty { display: none; }
  .portal-previews img { width: 100%; }
  .portal-arrow { grid-column: 2; grid-row: 1; width: 46px; height: 46px; }
  .portal-arrow .icon { width: 21px; height: 21px; }
  .directory { margin-bottom: 20px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; min-height: 106px; padding: 16px 0 28px; font-size: 10px; }
  .listing-head { padding-top: 32px; padding-bottom: 20px; }
  .listing-title { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 25px; }
  .listing-title h1 { font-size: 42px; }
  .listing-title p { font-size: 12px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 14px; padding-top: 8px; }
  .search-field { width: 100%; }
  .work { display: flex; flex-direction: column; gap: 0; padding: 28px 0; }
  .work-details { display: contents; }
  .work-top { order: 0; margin-bottom: 18px; gap: 10px; }
  .work h2 { font-size: 25px; }
  .viewer { order: 1; }
  .work-info { order: 2; max-width: none; margin: 18px 0 15px; font-size: 12px; }
  .metadata { order: 3; font-size: 11px; }
  .work-actions { order: 4; margin-top: 20px; }
  .work-status { order: 5; }
  .viewer:has(iframe):not(:fullscreen):not(.expanded) { height: 360px; aspect-ratio: auto; }
  .has-cover .run-work { left: 14px; bottom: 14px; padding: 10px 14px; min-height: 42px; font-size: 11px; }
  .placeholder-title { font-size: 21px; }
  .placeholder-note { font-size: 11px; }
  .work-placeholder:not(.has-cover) { min-height: 230px; }
  .viewer:has(.work-placeholder:not(.has-cover)) { aspect-ratio: auto; min-height: 230px; }
  .viewer.expanded, .viewer:fullscreen { height: 100dvh; }
  .close-view { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .missing-page { padding: 80px 0; }
}
@media (max-width: 380px) {
  .page { --page-inset: 18px; }
  .site-header { gap: 14px; }
  .brand { font-size: 13px; }
  nav { gap: 17px; }
  nav a span { display: none; }
  .hero-intro { padding-inline: 21px; }
  .hero h1 { font-size: 35px; }
  .panel-footer { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Reserve a separate control strip on touch devices, including landscape.
   The iframe's 100% height uses the viewer content box below this padding. */
@media (max-width: 760px), (pointer: coarse) {
  .viewer.expanded, .viewer:fullscreen {
    height: 100dvh;
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
  }
  .viewer.expanded .close-view, .viewer:fullscreen .close-view {
    top: calc(6px + env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    min-height: 44px;
    padding: 8px 14px;
  }
}

.work-hint {
  position: absolute;
  z-index: var(--z-close);
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 10px 16px;
  border: 1px solid oklch(1 0 0 / .22);
  border-radius: 12px;
  background: oklch(.18 0 0 / .82);
  color: var(--white);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
}

/* Center by default; pointer drag supplies a clamped position within the viewer. */
.viewer .close-view,
.viewer.expanded .close-view,
.viewer:fullscreen .close-view {
  --close-safe-top: max(8px, env(safe-area-inset-top, 0px));
  top: var(--close-safe-top);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.viewer .close-view.is-dragging {
  cursor: grabbing;
  border-color: var(--white);
  background: oklch(.28 0 0 / .8);
}

.viewer.is-dragging-close iframe { pointer-events: none; }
