/* One site identity, scoped to page chrome so scientific interfaces keep theirs. */
@font-face {
  font-family: ShowcaseShell;
  src: url('fonts/site-shell.woff2?v=2590abb7026f') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --shell-font: ShowcaseShell, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  --shell-text: #eeeaf5;
  --shell-muted: #a39bad;
  --shell-accent: #b9a4fc;
  --shell-line: #ffffff16;
  --shell-width: min(1440px, calc(100% - 112px));
}
header.site-shell-header[data-site-header] {
  position: sticky;
  inset: 0 0 auto;
  z-index: 50;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 80px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--shell-line);
  background: #101012f5;
  backdrop-filter: blur(16px);
  color: var(--shell-text);
  font: 12px/1.5 var(--shell-font);
  box-sizing: border-box;
}
.site-shell-header > .site-shell-header-inner {
  width: var(--shell-width);
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-shell-header .showcase-navigation {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  width: auto;
}
a.site-shell-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--shell-text);
  text-decoration: none;
  white-space: nowrap;
  transform: none;
}
a.site-shell-brand .site-shell-mark {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  object-fit: contain;
}
html[data-theme="dark"] a.site-shell-brand .site-shell-mark { filter: invert(1); }
a.site-shell-brand .site-shell-word { font: 600 21px/1.2 Arial, sans-serif; letter-spacing: -1px; color: inherit; }
.site-shell-header .showcase-navigation a.showcase-return-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  background: #ffffff04;
  color: var(--shell-muted);
  font: 12px/1.4 var(--shell-font);
  letter-spacing: 0;
  box-sizing: border-box;
}
.site-shell-header .showcase-return-link svg { width: 16px; height: 16px; }
.site-shell-header .showcase-navigation a.showcase-return-link:hover { color: var(--shell-text); border-color: #b9a4fc66; background: #b9a4fc12; }
.site-shell-header .site-shell-header-inner > nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 24px;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
  font: 12px/1.5 var(--shell-font);
  color: var(--shell-muted);
  white-space: nowrap;
}
.site-shell-header .site-shell-header-inner > nav :is(a, button) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}
.site-shell-header .site-shell-header-inner > nav :is(a, button):hover { color: var(--shell-text); }
.site-shell-header .header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin: 0; }
.site-shell-header .language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  gap: 3px;
  width: auto;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  background: #ffffff04;
  color: var(--shell-muted);
}
.site-shell-header .language-switch > span { display: none; }
.site-shell-header .language-switch button {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  min-height: 28px;
  margin: 0;
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: var(--shell-muted);
  font: 500 12px/1.4 var(--shell-font);
  letter-spacing: 0;
  cursor: pointer;
}
.site-shell-header .language-switch button[aria-pressed=true] { color: #e8ddff; background: #b9a4fc20; font-weight: 600; }
.site-shell-header .language-switch button:hover { color: #f2edfc; }
.site-shell-header :is(.nav-watch, .effects-switch) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  background: #ffffff04;
  color: var(--shell-muted);
  font: 12px/1.4 var(--shell-font);
  white-space: nowrap;
}
footer.site-shell-footer[data-site-footer] {
  display: block;
  width: 100%;
  max-width: none;
  margin: 64px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--shell-line);
  background: #101012;
  color: var(--shell-muted);
  font: 11px/1.8 var(--shell-font);
  letter-spacing: 0;
}
.site-shell-footer > .site-shell-footer-inner { width: var(--shell-width); margin: 0 auto; padding: 30px 0 24px; }
.site-shell-footer .site-shell-footer-main { display: flex; align-items: center; gap: 24px; }
.site-shell-footer a.site-shell-brand { color: var(--shell-text); }
.site-shell-footer .site-shell-case { color: #aba2ba; font: 12px/1.6 var(--shell-font); }
.site-shell-footer button.site-shell-top {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  margin-left: auto;
  padding: 6px 0;
  background: none;
  border: 0;
  color: #bdb0d2;
  font: 12px/1.5 var(--shell-font);
  cursor: pointer;
}
.site-shell-footer .site-shell-footer-notes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin-top: 22px; color: #968bA3; font: 11px/1.8 var(--shell-font); overflow-wrap: anywhere; }
.site-shell-footer .site-shell-footer-notes > :is(span, a, button, details, div) { display: block; width: auto; margin: 0; color: inherit; font: inherit; letter-spacing: 0; }
.site-shell-footer .site-shell-footer-notes :is(button, summary) { cursor: pointer; color: #b8a6d1; font: inherit; }
.site-shell-footer .site-shell-footer-notes > button { padding: 0; background: none; border: 0; }
.site-shell-footer .site-shell-footer-notes details { flex-basis: 100%; }
.site-shell-footer .site-shell-footer-notes details p { max-width: 1000px; margin-top: 12px; font: inherit; color: #968ba3; }
.site-shell-footer .site-shell-footer-notes .footer-line { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; }
:is(.site-shell-header, .site-shell-footer) :is(a, button, summary):focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 4px; border-radius: 4px; }

/* Keep the auxiliary research workspace's light layout and sidebar. */
.lab-sidebar a.site-shell-brand { color: #302a3b; }
.site-shell-workspace-header .site-shell-header-inner { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; }
footer.site-shell-workspace-footer[data-site-footer] { --shell-text: #302a3b; --shell-muted: #6b6279; --shell-line: #35254720; background: transparent; margin-top: 40px; }
.site-shell-workspace-footer > .site-shell-footer-inner { width: 100%; }

@media (max-width: 1200px) {
  :root { --shell-width: calc(100% - 72px); }
  .site-shell-header > .site-shell-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; }
  .site-shell-header .showcase-navigation, .site-shell-header .home-brand { grid-column: 1; grid-row: 1; min-height: 76px; }
  .site-shell-header .site-shell-header-inner > :is(.language-switch, .header-actions, [data-language-slot]) { grid-column: 2; grid-row: 1; }
  .site-shell-header .site-shell-header-inner > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    min-width: 0;
    margin: 0;
    border-top: 1px solid #ffffff0a;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-shell-header .site-shell-header-inner > nav::-webkit-scrollbar { display: none; }
  .site-shell-header .site-shell-header-inner > nav :is(a, button) { display: inline-flex; min-height: 42px; }
}
@media (max-width: 700px) {
  :root { --shell-width: calc(100% - 40px); }
  header.site-shell-header[data-site-header] { min-height: 68px; }
  .site-shell-header > .site-shell-header-inner { min-height: 68px; column-gap: 10px; }
  .site-shell-header .showcase-navigation, .site-shell-header .home-brand { min-height: 68px; }
  .site-shell-header .showcase-navigation { gap: 12px; }
  a.site-shell-brand { gap: 8px; }
  a.site-shell-brand .site-shell-word { font-size: 19px; }
  a.site-shell-brand .site-shell-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .site-shell-header .showcase-navigation a.showcase-return-link { min-height: 32px; width: 32px; padding: 6px; }
  .site-shell-header [data-showcase-return-label] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-shell-header .language-switch { padding: 2px; gap: 2px; }
  .site-shell-header .language-switch button { min-width: 31px; min-height: 27px; padding: 4px 5px; font-size: 11px; }
  .site-shell-header .site-shell-header-inner > nav { gap: 22px; font-size: 11px; }
  .site-shell-header :is(.nav-watch, .effects-switch) { display: none; }
  footer.site-shell-footer[data-site-footer] { margin-top: 44px; }
  .site-shell-footer > .site-shell-footer-inner { padding: 26px 0 20px; }
  .site-shell-footer .site-shell-footer-main { flex-wrap: wrap; gap: 14px 18px; }
  .site-shell-footer .site-shell-case { order: 3; flex-basis: 100%; font-size: 11px; }
  .site-shell-footer .site-shell-footer-notes { gap: 10px 18px; margin-top: 18px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.site-shell-header, .site-shell-footer) * { transition: none !important; }
}

/* Keep thin visual tracks easy to grab with a mouse or finger. */
input[type="range"]:is(#scrubber, #seek, #filmSeek, #film-seek, .film-scrubber, [data-preview-seek]) {
  height: 28px !important;
  min-height: 28px;
  touch-action: none;
  cursor: ew-resize;
}
