/* Compact navigation inherits the active skin, including its text and glow. */
html .compact-nav {
  background: var(--skin-sidebar, var(--surface-low));
  border-bottom-color: var(--line);
  scrollbar-color: var(--line-bright, var(--accent)) transparent;
}
html .compact-nav button,
html .compact-nav select {
  color: var(--text);
  background: var(--surface-hi);
  border-color: var(--line);
  box-shadow: none;
  text-shadow: none;
}
html .compact-nav button:hover,
html .compact-nav button:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--line-bright, var(--accent));
  box-shadow: 0 0 12px var(--skin-halo, transparent);
}
html .compact-nav button.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-fill);
  box-shadow: inset 0 -2px var(--accent);
}
html .compact-nav button::after,
html .compact-nav button.active::after {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-soft);
}
html .compact-nav .compact-new {
  color: var(--text);
  background: var(--accent-fill);
  border-color: var(--line-bright, var(--accent));
}
html .compact-nav button small,
html .compact-nav button span {
  color: inherit;
}
/* Build identifiers belong in diagnostics, not the workspace header. */
.brand small,
.build-identity {
  display: none !important;
}

/* Storyboard tools use the same hover/focus feedback as compact navigation. */
html .content .shot-hero :is(button, select):not(:disabled) {
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
html .content .shot-hero :is(button, select):not(:disabled):is(:hover, :focus-visible) {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--line-bright, var(--accent));
  box-shadow: 0 0 12px var(--skin-halo, transparent);
}
@media (prefers-reduced-motion: reduce) {
  html .content .shot-hero :is(button, select):not(:disabled) {
    transition: none;
  }
}

/* Keep focus/scrollIntoView inside .content from scrolling the title bar away.
   Unlike hidden, clip does not create a programmatically scrollable container.
   Cover the root viewport as well as the flex layout around the title bar. */
html,
body,
body > .main {
  overflow: clip;
}
