/* Shared by the homepage, React public pages and server/static public pages. */
.fwc-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(5, 10, 20, .96);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .22);
  backdrop-filter: blur(16px);
  font-family: "Geist Variable", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}
.fwc-site-header * { box-sizing: border-box; }
.fwc-site-header__inner {
  display: flex;
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fwc-site-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.fwc-site-header__brand:hover { color: #fff; }
.fwc-site-header__brand img { display: block; width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; }
.fwc-site-header__brand span { display: grid; line-height: 1.05; }
.fwc-site-header__brand strong { font-size: .96rem; font-weight: 800; }
.fwc-site-header__brand small { margin-top: 3px; color: #fbbf24; font-size: .72rem; font-weight: 700; }
.fwc-site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.fwc-site-header__actions > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #e5e7eb;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.fwc-site-header__actions > a:hover { color: #fff; }
.fwc-site-header__menu { position: relative; }
.fwc-site-header__menu summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #64748b;
  border-radius: 6px;
  color: #e5e7eb;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.fwc-site-header__menu summary::-webkit-details-marker { display: none; }
.fwc-site-header__menu summary::marker { content: ""; }
.fwc-site-header__menu summary:hover,
.fwc-site-header__menu[open] summary { background: #1e293b; color: #fff; }
.fwc-site-header__menu summary svg { flex: 0 0 auto; }
.fwc-site-header__menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  width: min(340px, calc(100vw - 24px));
  max-height: min(70vh, calc(100vh - 86px));
  max-height: min(70dvh, calc(100dvh - 86px));
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 2px;
  padding: 8px;
  border: 1px solid #475569;
  border-top: 3px solid #dc2626;
  border-radius: 8px;
  background: #0b1220;
  box-shadow: 0 18px 36px #02061766;
}
.fwc-site-header__menu:not([open]) .fwc-site-header__menu-panel { display: none; }
.fwc-site-header__menu-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-radius: 5px;
  padding: 10px 12px;
  color: #e5e7eb;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
.fwc-site-header__menu-panel a:hover { background: #1e293b; color: #fff; }
.fwc-site-header__menu-panel a[aria-current="page"] { background: #dc2626; color: #fff; }
.fwc-site-header__actions .fwc-site-header__create {
  border: 1px solid #dc2626;
  border-radius: 6px;
  background: #dc2626;
  padding: 0 16px;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: 0 14px 28px -18px rgba(220, 38, 38, .95);
}
.fwc-site-header__actions .fwc-site-header__create:hover { border-color: #ef4444; background: #ef4444; }
.fwc-site-header a:focus-visible,
.fwc-site-header summary:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; border-radius: 3px; }
@media (max-width: 700px) {
  .fwc-site-header__inner { width: calc(100% - 20px); min-height: 62px; gap: 8px; }
  .fwc-site-header__brand img { width: 42px; height: 42px; }
  .fwc-site-header__brand span { display: none; }
  .fwc-site-header__actions { gap: 2px; }
  .fwc-site-header__actions > a { min-height: 44px; padding: 0 8px; font-size: .8rem; }
  .fwc-site-header__menu { position: static; }
  .fwc-site-header__menu summary { min-height: 44px; gap: 5px; padding: 0 8px; font-size: .8rem; }
  .fwc-site-header__menu-panel { top: calc(100% + 1px); right: 10px; left: 10px; width: auto; max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); }
  .fwc-site-header__actions .fwc-site-header__create { padding: 0 10px; font-size: .77rem; }
}
@media (max-width: 430px) {
  .fwc-site-header__actions .fwc-site-header__create { width: 112px; white-space: normal; line-height: 1.08; text-align: center; }
}
@media print { .fwc-site-header { display: none; } }
