/* Same-origin document transitions: retain the common header while content changes.
   Unsupported browsers still use the original navigation without interception. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  #appHeader { view-transition-name: shik-shared-header; }
  ::view-transition-group(shik-shared-header) { animation-duration: 150ms; }
  ::view-transition-old(root) { animation-duration: 110ms; }
  ::view-transition-new(root) { animation-duration: 180ms; }
  html.account-page #profile:not([hidden]) {
    animation: shik-profile-reveal 160ms ease-out both;
  }
  @keyframes shik-profile-reveal {from {opacity: .7} to {opacity: 1}}
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none!important;
  }
}
/* No repeated branded boot splash when returning from the account. The static
   shell contains only public header/footer and an empty main before identity. */
html.shik-profile-return #boot {display: none!important}
html.shik-profile-return #app[hidden] {display: flex!important; flex-direction: column}
html.shik-profile-return #app[hidden] #siteFooter {visibility: hidden}
html.shik-profile-return #app[hidden] #pageRoot,
#pageRoot[data-initial-route] {position: relative; min-height: 220px}
#pageRoot[data-initial-route] > * {visibility: hidden}
html.shik-profile-return #app[hidden] #pageRoot::before,
#pageRoot[data-initial-route]::before {
  content: "Загружаем страницу…"; display: block; padding: 42px 20px;
  text-align: center; color: #667487; font-size: 14px; font-weight: 500;
}
/* Guest-only promotion is opt-in after the actual native server response.
   Loading and errors never pretend that an authenticated visitor is a guest. */
html.account-page .profile-cover {display: none!important}
html.account-page body:not(.is-authenticated):has(#login:not([hidden])) .profile-cover {
  display: grid!important;
}
html.account-page #native:has(#profile:not([hidden])) #loading,
html.account-page #native:has(#login:not([hidden])) #loading {display: none!important}
html.account-page #native #loading {min-height: 130px; margin-top: 16px}
html.account-page #native .account-disclosure summary {
  align-items: center; justify-content: space-between; min-height: 44px; gap: 12px;
}
html.account-page #native .account-disclosure summary::-webkit-details-marker {display:none}
html.account-page #native .account-disclosure summary::marker {content:""}
html.account-page #native .profile-disclosure-icon {
  flex: 0 0 16px; width: 16px; height: 16px; display: block;
  transform-origin: center; transition: transform .18s ease;
}
html.account-page #native .account-disclosure[open] .profile-disclosure-icon {
  transform: rotate(180deg);
}
html.account-page #native #displayNameForm {max-width: 280px; width: 100%}
html.account-page #native #displayNameForm .inline {gap: 8px; align-items: flex-start}
html.account-page #native #displayName {
  box-sizing: border-box; width: 100%; max-width: 280px; min-width: 0;
  height: 40px; min-height: 40px; padding: 8px 11px; font-size: 14px;
  border-radius: 8px; line-height: 1.4;
}
html.account-page #native #displayNameForm .button {
  width: auto; min-height: 36px; padding: 7px 14px; align-self: flex-start;
}
@media (prefers-reduced-motion: reduce) {
  html.account-page #native .profile-disclosure-icon {transition:none}
}
