/* One compact header for public pages, the workspace, stories and administration. */
@font-face { font-family: "AstroFace Brand"; src: url("/assets/fonts/passport-prata-v1.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
body.af-header-layout { --header-h: 80px; --af-header-surface: linear-gradient(115deg, #221d35d9, #141525e8 60%, #1a172be8); }
html:has(body.af-header-layout) { scrollbar-gutter: stable; scrollbar-width: thin; }
body.af-header-layout.af-home-menu-open #app-main { padding-top: calc(var(--header-h) + 4px) !important; }
body.af-header-layout.af-home-menu-open #home-menu { max-width: 1280px !important; }
body.af-header-layout .af-masthead {
  position: fixed; inset: 16px auto auto 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px; width: min(1280px, calc(100% - 48px)); height: 64px; z-index: 120;
}
.af-brand-filter { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
body.af-header-layout .af-masthead:has(details[open]) { z-index: 1250; }
body.af-header-layout header.af-unified-header.app-header {
  position: relative !important; inset: auto !important; transform: none !important; flex: 1 1 0; min-width: 0;
  display: flex !important; align-items: center !important; justify-content: flex-start !important;
  width: auto !important; max-width: none !important; height: 64px !important;
  margin: 0 !important; padding: 10px 20px !important; gap: 24px !important; overflow: visible !important; box-sizing: border-box;
  border: 1px solid #b997ed73 !important; border-radius: 28px !important;
  background: var(--af-header-surface) !important;
  box-shadow: 0 10px 36px #0003 !important; backdrop-filter: blur(22px) saturate(120%) !important; z-index: 120 !important;
  color: #f5efff; font-family: AstroFace, Inter, 'Segoe UI', sans-serif;
}
body.af-header-layout header.af-unified-header.app-header:has(details[open]) { z-index: 1250 !important; }
html.agent-embedded body.af-header-layout .af-masthead,
body.agent-embedded.af-header-layout .af-masthead { display: none !important; }
body.af-header-layout .af-detached-brand {
  position: relative; isolation: isolate;
  display: flex !important; align-items: center !important; justify-content: flex-start !important; flex: 0 0 auto !important;
  width: auto !important; min-width: 0 !important; height: 64px; margin: 0 !important; box-sizing: border-box;
  padding: 1px 14px 1px 10px !important; gap: 8px !important; border: 1px solid #b997ed73 !important;
  border-radius: 20px !important; background: var(--af-header-surface) !important;
  box-shadow: 0 10px 36px #0003; backdrop-filter: blur(22px) saturate(120%); color: #fff; text-decoration: none;
}
.af-detached-brand > img { display: block; width: 60px; height: 60px; flex: 0 0 60px; object-fit: contain; filter: url("#af-monogram-alpha"); }
.af-brand-name, .af-unified-header .af-brand-name { display: block !important; flex: 0 0 auto; padding: 0; border: 0; font-family: "AstroFace Brand", Georgia, serif; font-size: 25px; font-style: normal; font-weight: 400; line-height: 1.25; letter-spacing: -.035em; white-space: nowrap; color: #fff; text-shadow: none; }
.af-detached-brand .af-brand-name { font-size: 27.5px; max-width: none !important; opacity: 1 !important; overflow: visible !important; }
.site-footer .af-brand-name { font-size: 30px; }
img[src*="astroface-symbol.svg"], .site-footer .site-brand { mix-blend-mode: screen !important; }
.af-unified-header #quick-form, .af-unified-header > .top-nav { display: none !important; }
.af-unified-header .af-profile-bar { display: flex !important; align-items: center; flex: 1 1 180px; min-width: 0; width: auto; margin: 0; padding: 0; gap: 0; position: static; }
.af-unified-header .af-profile-menu { position: relative; min-width: 0; max-width: 100%; }
.af-unified-header .af-profile-trigger { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 300px; min-height: 44px; padding: 0 3px; cursor: pointer; list-style: none; border-radius: 12px; }
.af-unified-header .af-profile-trigger::-webkit-details-marker { display: none; }
.af-unified-header .af-profile-trigger::before, .af-unified-header .af-profile-trigger::after { display: none !important; }
.af-unified-header .af-profile-mark { display: grid !important; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; color: #c2a6f0; background: #b693f01a; }
.af-unified-header .af-profile-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.af-unified-header .af-profile-copy { display: block !important; min-width: 0; }
.af-unified-header .af-profile-copy strong { display: block; max-width: 240px; margin: 0; color: #f2ecfb; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-unified-header .af-profile-copy > span { display: none !important; }
.af-profile-chevron { display: grid; place-items: center; flex: 0 0 16px; color: #d4c3ed; }
.af-profile-chevron svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.af-profile-menu[open] .af-profile-chevron { transform: rotate(180deg); }
.af-primary-navigation { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; margin-left: auto; white-space: nowrap; }
.af-primary-navigation a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 22px; color: #cfc0e6; font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.af-primary-navigation a:hover { color: #fff; background: #b391ee12; }
.af-primary-navigation a.active { color: #f1ddff; border-color: #b693f031; background: #9b73e329; }
body.af-header-layout .af-unified-header .af-legacy-menu { display: block !important; position: relative !important; flex: 0 0 40px !important; margin: 0 !important; padding: 0 !important; }
body.af-header-layout .af-unified-header #af-tools-menu[hidden] { display: none !important; }
.af-unified-header .af-legacy-menu > summary { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; list-style: none; cursor: pointer; border: 1px solid #b89be025; border-radius: 14px; color: #e2cafa; background: #b593eb0a; }
.af-unified-header .af-legacy-menu > summary::-webkit-details-marker { display: none; }
.af-unified-header .af-legacy-menu > summary svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; }
body.af-header-layout .af-unified-header .af-legacy-menu > nav, .af-profile-dropdown {
  position: absolute !important; top: calc(100% + 16px) !important; right: 0 !important; left: auto !important;
  width: min(320px, calc(100vw - 48px)) !important; max-height: calc(100dvh - 108px); overflow-y: auto; box-sizing: border-box;
  margin: 0; padding: 14px; border: 1px solid #b797e14d; border-radius: 18px; color: #ede4f7; background: #171525f5; box-shadow: 0 16px 60px #0008; backdrop-filter: blur(20px);
}
.af-unified-header .af-profile-dropdown { left: 0 !important; right: auto !important; }
.af-unified-header .af-legacy-menu:not([open]) > nav, .af-profile-menu:not([open]) > .af-profile-dropdown { display: none !important; }
.af-unified-header .af-legacy-menu nav a, .af-unified-header .af-profile-dropdown > a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: #dfd2ed; font-size: 14px; line-height: 1.4; text-decoration: none; }
.af-unified-header .af-legacy-menu nav a:hover, .af-unified-header .af-profile-dropdown > a:hover { background: #b391ee14; color: #fff; }
.af-header-caption { display: block; padding: 4px 12px; color: #ac9abd; font-size: 11px; line-height: 1.5; letter-spacing: .06em; }
.af-profile-details { margin: 4px 12px 12px; color: #c7b9d7; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
body.af-header-layout header.af-unified-header.app-header .af-profile-bar .af-profile-edit { display: flex !important; align-items: center !important; justify-content: flex-start; width: 100% !important; min-width: 0 !important; min-height: 44px !important; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 10px; color: #f0e1ff; background: #a882e923; font-family: inherit !important; font-size: 14px !important; font-weight: 500; line-height: 1.4; white-space: normal; cursor: pointer; box-sizing: border-box; text-decoration: none; }
body.af-header-layout header.af-unified-header.app-header .af-profile-bar .af-profile-edit::after { display: none !important; }
.af-header-shortcuts { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #b99be126; }
.af-header-mobile-navigation { display: none; }
body.af-header-layout .af-unified-header .header-actions.af-header-actions { display: grid !important; width: 100%; gap: 4px; margin: 8px 0 0 !important; padding-top: 8px; border-top: 1px solid #b99be126; }
.af-unified-header .af-header-actions > :is(button, a), .af-unified-header #admin-logout { display: flex !important; align-items: center; justify-content: flex-start; gap: 10px; width: 100% !important; height: auto; min-height: 44px; margin: 0; padding: 10px 12px; border: 0; border-radius: 10px; color: #dfd2ed; background: transparent; font-size: 14px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.af-unified-header .af-header-actions > [hidden], .af-unified-header #admin-logout[hidden] { display: none !important; }
.af-unified-header .af-header-actions svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.af-unified-header .af-header-actions .sr-only { position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important; white-space: normal; }
.af-unified-header :is(a, button, summary):focus-visible, .af-detached-brand:focus-visible { outline: 2px solid #d0b3f4; outline-offset: 3px; }
body.admin-page.af-header-layout > main { padding-top: 110px; }
@media (max-width: 1100px) {
  body.af-header-layout .af-masthead { gap: 14px; }
  body.af-header-layout header.af-unified-header.app-header { gap: 14px !important; padding-inline: 16px !important; }
  .af-primary-navigation a { padding-inline: 12px; font-size: 13px; }
}
@media (max-width: 980px) {
  .af-primary-navigation { display: none; }
  .af-header-mobile-navigation { display: grid; }
  .af-unified-header .af-profile-menu { position: static; }
  .af-unified-header .af-profile-dropdown { top: calc(100% + 12px) !important; left: auto !important; right: 0 !important; width: min(320px, calc(100vw - 48px)) !important; }
  .af-unified-header .af-profile-trigger { max-width: 100%; }
  .af-unified-header .af-profile-copy strong { max-width: none; }
}
@media (max-width: 640px) {
  body.af-header-layout { --header-h: 76px; }
  body.af-header-layout .af-masthead { top: 10px; width: calc(100% - 24px); height: 56px; gap: 10px; }
  body.af-header-layout header.af-unified-header.app-header { height: 56px !important; padding: 7px 8px !important; gap: 10px !important; border-radius: 22px !important; }
  body.af-header-layout .af-detached-brand { height: 56px; padding: 3px 8px !important; gap: 6px !important; border-radius: 18px !important; }
  .af-detached-brand > img { width: 48px; height: 48px; flex-basis: 48px; }
  .af-detached-brand .af-brand-name { font-size: 22px; }
  .af-unified-header .af-profile-trigger { gap: 8px; padding: 0; }
  .af-unified-header .af-profile-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .af-unified-header .af-profile-copy strong { font-size: 13px; }
  .af-unified-header .af-legacy-menu > summary { width: 36px; height: 36px; border-radius: 12px; }
  body.af-header-layout .af-unified-header .af-legacy-menu { flex-basis: 36px !important; }
}
@media (max-width: 360px) {
  body.af-header-layout .af-detached-brand { padding-inline: 6px !important; gap: 5px !important; }
  .af-detached-brand .af-brand-name { font-size: 20px; }
  body.af-header-layout header.af-unified-header.app-header { padding-inline: 6px !important; }
  .af-unified-header .af-profile-trigger { gap: 5px; }
  .af-unified-header .af-profile-copy strong { font-size: 12px; }
  .af-unified-header .af-profile-chevron { width: 14px; height: 14px; flex-basis: 14px; }
  .af-unified-header .af-profile-mark { display: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body.af-header-layout { --af-header-surface: #171525; }
  body.af-header-layout header.af-unified-header.app-header, body.af-header-layout .af-detached-brand { backdrop-filter: none !important; }
}
@media print { body.af-header-layout .af-masthead { display: none !important; } }
