/* SeaCube composes the same surfaces as the Continuity theme gallery. */
body:has(#sitemenu) #row > :not(#sitemenu){background-color:var(--glass-tint)}
body :is(.panel,.stat,.kpi,.rcard){background:var(--grad-surface);box-shadow:var(--sh-2);border-color:var(--divider)}
body .card:not(:has(#login-ocean)){background:var(--grad-surface);box-shadow:var(--sh-2);border-color:var(--divider)}

/* Essential operational text uses canonical readable ink in light mode.
   Palette and control recipes remain owned by the library. */
:root[data-theme="light"]{--app-secondary-ink:var(--text);--app-status-ink:var(--text)}
html[data-theme="light"] body :is(.st,.chip,.kst,.cattag,.stagechip){color:var(--text);--cui-chip-ink:var(--text)}
/* CUI owner-approved 0.1.1 host token binding: empty enabled Select prompts. */
html[data-cui-mode="light"] .cuif-select[aria-disabled="false"]{--text-faint:var(--text)}

/* Retain painted shell snapshots across same-origin page navigation. Native
   document lifecycles, authorization, URLs and back/forward remain unchanged. */
@view-transition { navigation: auto; }
#abar { view-transition-name: seacube-header; }
#sitemenu { view-transition-name: seacube-navigation; }
::view-transition-group(*) { animation-duration: 120ms; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: seacube-page-reveal 120ms ease-out both; }
::view-transition-old(seacube-header),
::view-transition-new(seacube-header),
::view-transition-old(seacube-navigation),
::view-transition-new(seacube-navigation) { animation: none; mix-blend-mode: normal; }
@keyframes seacube-page-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Preserve HTML hidden semantics when shared controls declare a display mode.
   Application safeguard approved by Continuity UI; immutable runtime is unchanged. */
button[hidden] { display: none !important; }
