/* Scene index is independent of the project dialog and entrance state. */
.scene-index-trigger {
  position: fixed;
  z-index: 35;
  top: max(18px, env(safe-area-inset-top));
  right: max(3.2vw, env(safe-area-inset-right));
  left: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(390px, calc(100vw - 180px));
  min-height: 32px;
  padding: 8px 10px;
  color: #141414;
  background: rgb(255 255 255 / 94%);
  font: 11px/1.4 var(--sans, Arial, sans-serif);
  letter-spacing: .015em;
  text-transform: lowercase;
  border: 0;
  outline: none;
  cursor: pointer;
}
.scene-index-trigger:focus-visible { outline: 1px solid #141414; outline-offset: 4px; }
.scene-index-mark { display: none; }
.scene-index-trigger-label { color: #727272; order: 2; flex: none; white-space: nowrap; }
.scene-index-trigger [data-scene-current] { order: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.entry-open .scene-index-trigger,
body.dialog-open .scene-index-trigger,
body.scene-index-open .scene-index-trigger,
body:has(dialog[open]) .scene-index-trigger { visibility: hidden; pointer-events: none; }
body.scene-index-open { overflow: hidden; }
body.scene-index-open,
body.scene-index-open * { cursor: auto !important; }
body.scene-index-open a,
body.scene-index-open a *,
body.scene-index-open button,
body.scene-index-open button * { cursor: pointer !important; }
body.scene-index-open #art-cursor { visibility: hidden !important; }
#scene-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(25px, env(safe-area-inset-top)) clamp(22px, 6vw, 100px) max(24px, env(safe-area-inset-bottom));
  border: 0;
  background: #fff;
  color: #141414;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-transform: lowercase;
}
#scene-dialog::backdrop { background: #fff; }
.scene-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(40px, 7vh, 88px);
}
#scene-index-title { font: 400 12px/1.5 var(--sans, Arial, sans-serif); letter-spacing: .035em; }
.scene-index-close { padding: 10px 0 10px 20px; font-size: 12px; }
.scene-index-list { margin: 0; padding: 0; list-style: none; border: 0; }
.scene-index-list li { margin: 0; border: 0; }
.scene-index-link {
  display: grid;
  grid-template-columns: minmax(100px, .65fr) minmax(0, 2fr) 24px;
  gap: 20px;
  align-items: baseline;
  width: 100%;
  padding: clamp(18px, 2.8vh, 35px) 0;
  text-decoration: none;
}
.scene-index-kind { font: 10px/1.4 var(--sans, Arial, sans-serif); color: #727272; }
.scene-index-name { font: 400 clamp(26px, 3.65vw, 62px)/1.1 var(--sans, Arial, sans-serif); letter-spacing: -.045em; color: #727272; }
.scene-index-arrow { justify-self: end; font-size: 18px; transition: transform .18s ease; }
.scene-index-link[aria-current="location"] .scene-index-name,
.scene-index-link:hover .scene-index-name,
.scene-index-link:focus-visible .scene-index-name { color: #141414; }
.scene-index-link:hover .scene-index-arrow { transform: translate(3px, -3px); }
.scene-index-link:focus-visible { outline: 2px solid #141414; outline-offset: -3px; }
.scene-index-footnote { margin-top: 42px; font-size: 10px; color: #727272; }
@media (max-width: 600px) {
  .scene-index-trigger { right: max(20px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); left: auto; bottom: auto; max-width: calc(100vw - 145px); gap: 12px; padding: 8px 0 8px 8px; font-size: 10px; }
  .scene-index-trigger-label { display: block; }
  .scene-index-link { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 15px; padding: 21px 0; }
  .scene-index-kind { grid-column: 1; font-size: 9px; }
  .scene-index-name { grid-row: 2; grid-column: 1; font-size: clamp(27px, 7vw, 38px); }
  .scene-index-arrow { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .scene-index-arrow { transition: none; } }
body.motion-paused .scene-index-arrow { transition: none; }
@media print { .scene-navigation { display: none !important; } }

.scene-index-footnote{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.scene-index-footnote button{text-decoration:underline;text-underline-offset:4px;padding:4px 0}
