/* Same-origin page changes crossfade the content only. The header and document
   canvas switch without motion; unsupported browsers keep normal navigation. */
@view-transition { navigation: auto; }
[data-cc-route-surface] { view-transition-name: cc-route-content; }
::view-transition { pointer-events: none; }
::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(cc-route-content) { animation: none; }
::view-transition-old(cc-route-content) { animation: cc-route-out 180ms ease-out both; mix-blend-mode: normal; }
::view-transition-new(cc-route-content) { animation: cc-route-in 180ms cubic-bezier(.16,1,.3,1) both; mix-blend-mode: normal; }
@keyframes cc-route-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cc-route-in { from { opacity: 0; } to { opacity: 1; } }

/* Retained tool panes never lose layout. Only the old pane's paint visibility
   is temporarily overridden; inert/aria-hidden and pointer blocking remain. */
.private-tool-workspace[data-active-tool] > .private-tool-frame.cc-motion-outgoing[hidden][data-active="false"] {
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 1;
}
.private-tool-workspace > .private-tool-frame.cc-motion-incoming { z-index: 2; }

/* Selection travels independently of navigation and table rendering. The
   original active styles remain the fallback until a measured marker exists. */
[data-cc-nav-selection] { position: relative; isolation: isolate; }
[data-cc-nav-selection] > :is(a,button) { position: relative; z-index: 1; }
.cc-nav-selection { position: absolute; z-index: 0; top: 0; left: 0; box-sizing: border-box; margin: 0; pointer-events: none; transform-origin: 0 0; border: 1px solid rgba(var(--accent-rgb,46,175,98),.45); background: var(--accent-soft,rgba(46,175,98,.1)); }
.cc-nav-selection[hidden] { display: none !important; }
.app-navigation > .cc-nav-selection { border-radius: 8px; border-color: var(--cc-border-bright,rgba(85,201,133,.32)); }
.mv-tabs > .cc-nav-selection { border-radius: 5px; box-shadow: inset 3px 0 var(--accent,#2eaf62); }
.app-navigation.cc-nav-selection-ready a.active,
html.cc-custom-colors .app-navigation.cc-nav-selection-ready a.active,
.mv-shell .mv-tabs.cc-nav-selection-ready button[aria-current=page],
html.cc-custom-colors .mv-shell .mv-tabs.cc-nav-selection-ready button[aria-current=page] { border-color: transparent; background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  [data-cc-route-surface] { view-transition-name: none; }
  ::view-transition-old(cc-route-content),::view-transition-new(cc-route-content) { animation: none; }
}
