/* BudunOS front header layout variants
 * Body: bos-header-v-{id}
 * Bar:  .main-header.bos-header--{id}
 *
 * CRITICAL: never set position:relative on .bos-header — it overrides
 * .main-header{position:fixed} and leaves body padding-top as empty gap.
 */

/* ---------- Base: keep fixed chrome ---------- */
.main-header.bos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: auto;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.bos-header .logo-wrapper {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.bos-header .logo {
  line-height: 1.2;
}

.bos-header .navbar-wrapper {
  height: auto;
}

.bos-header .navbar-wrapper > ul {
  height: auto;
  align-items: center;
}

.bos-header-inner {
  width: 100%;
}

/* Body offsets per variant (desktop) */
body.bos-header-v-classic,
body.bos-header-v-compact,
body.bos-header-v-bold,
body.bos-header-v-centered,
body.bos-header-v-material {
  padding-top: 70px;
}

body.bos-header-v-island,
body.bos-header-v-liquid {
  padding-top: 72px;
}

body.bos-header-v-stacked {
  padding-top: 70px;
}

body.bos-header-v-stacked.bos-header-has-topbar {
  padding-top: 106px;
}

body.bos-header-v-glass {
  padding-top: 72px;
}

body.bos-header-v-aurora {
  padding-top: 118px;
}

@media (max-width: 767.98px) {
  body.bos-header-v-classic,
  body.bos-header-v-compact,
  body.bos-header-v-bold,
  body.bos-header-v-centered,
  body.bos-header-v-island,
  body.bos-header-v-stacked,
  body.bos-header-v-glass,
  body.bos-header-v-liquid,
  body.bos-header-v-material,
  body.bos-header-v-aurora {
    padding-top: 56px;
  }

  body.bos-header-v-stacked.bos-header-has-topbar {
    padding-top: 88px;
  }

  .main-header.bos-header {
    min-height: 56px;
  }
}

/* =========================================================
 * Classic — single clean row
 * ========================================================= */
.bos-header--classic {
  height: 70px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.night-mode .bos-header--classic,
html[data-bs-theme="dark"] .bos-header--classic {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.bos-header-classic-grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  height: 70px;
}

.bos-header-classic-search {
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.bos-header-classic-nav {
  justify-self: end;
}

@media (max-width: 767.98px) {
  .bos-header--classic {
    height: 56px;
  }
  .bos-header-classic-grid {
    grid-template-columns: 1fr auto;
    height: 56px;
    gap: 0.5rem;
  }
}

/* =========================================================
 * Compact → Command palette search
 * ========================================================= */
.bos-header--compact {
  height: 70px;
  background: var(--header-bg-color);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.bos-header-command-grid {
  display: grid;
  grid-template-columns: auto minmax(280px, 560px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}

.bos-header-command-search {
  justify-content: center;
  width: 100%;
}

.bos-header-command-search-shell {
  position: relative;
  width: 100%;
}

.bos-header-command-search-shell .search-wrapper,
.bos-header-command-search-shell .bos-search {
  width: 100%;
  display: block !important;
}

.bos-header-command-search-shell .bos-search-input.form-control,
.bos-header-command-search-shell .search-wrapper .form-control {
  height: 44px;
  border-radius: 14px;
  padding-inline: 2.75rem 3.4rem;
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.night-mode .bos-header-command-search-shell .bos-search-input.form-control,
html[data-bs-theme="dark"] .bos-header-command-search-shell .bos-search-input.form-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.bos-header-command-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 2px 6px;
  pointer-events: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bos-header--compact .navbar-wrapper > ul > li > a {
  border-radius: 12px;
}

@media (max-width: 767.98px) {
  .bos-header--compact,
  .bos-header-command-grid {
    height: 56px;
  }
  .bos-header-command-grid {
    grid-template-columns: 1fr auto;
  }
}

/* =========================================================
 * Island — floating bar aligned to site .container
 * ========================================================= */
.bos-header--island {
  height: 72px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  justify-content: flex-start;
  padding: 8px 0 0;
}

.bos-header-island-frame {
  width: 100%;
  margin: 0 auto;
}

.bos-header-island-shell {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(220px, 420px) minmax(120px, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.night-mode .bos-header-island-shell,
html[data-bs-theme="dark"] .bos-header-island-shell {
  background: rgba(30, 37, 43, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.bos-header-island-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.bos-header--island .logo-wrapper {
  padding-left: 0.2rem;
}

.bos-header--island .logo img {
  max-height: 28px;
}

.bos-header-island-search {
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.bos-header-island-search .search-wrapper,
.bos-header-island-search .bos-search {
  width: 100%;
  max-width: 420px;
  display: block !important;
  margin: 0 auto;
}

.bos-header--island .bos-search-input.form-control,
.bos-header--island .search-wrapper .form-control {
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.12);
  border-color: transparent;
  height: 36px;
  min-height: 36px;
  font-size: 0.875rem;
}

.bos-header-island-nav {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.bos-header--island .navbar-wrapper > ul > li > a {
  border-radius: 12px;
  width: 34px;
  height: 34px;
}

@media (max-width: 767.98px) {
  .bos-header--island {
    height: 56px;
    padding: 4px 0 0;
  }
  .bos-header-island-shell {
    grid-template-columns: 1fr auto;
    border-radius: 16px;
    min-height: 44px;
    padding: 0.25rem 0.45rem;
  }
  .bos-header-island-search {
    display: none !important;
  }
}

/* =========================================================
 * Stacked — optional dark utility strip + classic bar
 * ========================================================= */
.bos-header--stacked {
  height: 70px;
  padding: 0;
  justify-content: flex-start;
  background: var(--header-bg-color);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.bos-header--stacked.bos-header--has-topbar {
  height: 106px;
}

.bos-header-utility {
  height: 36px;
  display: flex;
  align-items: center;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  line-height: 1.3;
}

body.night-mode .bos-header-utility,
html[data-bs-theme="dark"] .bos-header-utility {
  background: #070b12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bos-header-utility-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}

.bos-header-utility-slogan {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
}

.bos-header-utility-slogan.is-empty {
  flex: 1 1 auto;
}

.bos-header-utility-meta {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  text-align: right;
  color: rgba(255, 255, 255, 0.78);
}

.bos-header-utility-meta a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.bos-header-utility-meta a:hover {
  color: #fff;
  text-decoration: underline;
}

.bos-header-utility-meta i,
.bos-header-utility-meta .fa,
.bos-header-utility-meta .fab,
.bos-header-utility-meta .fas {
  font-size: 14px;
  vertical-align: middle;
}

.bos-header-stacked-main {
  height: 70px;
  display: flex;
  align-items: center;
}

.bos-header--stacked .bos-header-classic-grid {
  height: 70px;
}

@media (max-width: 767.98px) {
  .bos-header--stacked {
    height: 56px;
  }
  .bos-header--stacked.bos-header--has-topbar {
    height: 88px;
  }
  .bos-header-utility {
    height: 32px;
    font-size: 11.5px;
  }
  .bos-header-utility-grid {
    min-height: 32px;
  }
  .bos-header-stacked-main,
  .bos-header--stacked .bos-header-classic-grid {
    height: 56px;
  }
  .bos-header-utility-meta {
    gap: 0.45rem;
  }
}

/* =========================================================
 * Glass — frosted sticky bar over page content
 * ========================================================= */
.bos-header--glass {
  height: 72px;
  padding: 10px 0;
  justify-content: flex-start;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  pointer-events: none;
}

.bos-header-glass-frame {
  width: 100%;
  pointer-events: auto;
}

.bos-header-glass-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

body.night-mode .bos-header-glass-shell,
html[data-bs-theme="dark"] .bos-header-glass-shell {
  background: rgba(30, 37, 43, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.bos-header-glass-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.bos-header--glass .logo-wrapper {
  padding-left: 0.15rem;
}

.bos-header--glass .logo img {
  max-height: 28px;
}

.bos-header-glass-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bos-header-glass-menu::-webkit-scrollbar {
  display: none;
}

.bos-header-glass-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.78;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.bos-header-glass-link:hover {
  opacity: 1;
  background: rgba(94, 114, 228, 0.12);
  color: var(--link-color, #5e72e4);
}

.bos-header-glass-link.is-active {
  opacity: 1;
  background: rgba(94, 114, 228, 0.16);
  color: var(--link-color, #5e72e4);
}

.bos-header-glass-link .header-icon,
.bos-header-glass-link .bos-sb-ico,
.bos-header-glass-link .svg-container {
  width: 15px;
  height: 15px;
}

.bos-header-glass-nav {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.bos-header--glass .navbar-wrapper > ul > li > a {
  border-radius: 12px;
  width: 34px;
  height: 34px;
}

@media (max-width: 767.98px) {
  .bos-header--glass {
    height: 56px;
    padding: 4px 0 0;
  }
  .bos-header-glass-shell {
    grid-template-columns: 1fr auto;
    min-height: 44px;
    border-radius: 16px;
    padding: 0.25rem 0.45rem;
  }
}

/* =========================================================
 * Bold → Rail brand block + workspace
 * ========================================================= */
.bos-header--bold {
  height: 70px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bos-header-rail-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 70px;
  width: 100%;
}

.bos-header-rail-brand {
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  background: #0f172a;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.bos-header-rail-brand::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 114, 228, 0.55), transparent 70%);
  pointer-events: none;
}

.bos-header-rail-brand .logo-wrapper {
  padding-left: 0;
  position: relative;
  z-index: 1;
}

.bos-header-rail-brand .logo,
.bos-header-rail-brand .logo-wrapper {
  color: #fff;
}

.bos-header-rail-brand .logo img {
  max-height: 32px;
  filter: brightness(0) invert(1);
}

.bos-header-rail-brand .logo .logo-dark {
  display: none !important;
}

.bos-header-rail-brand .logo .logo-light {
  display: inline-block !important;
}

.bos-header-rail-brand .menu-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.bos-header-rail-brand .menu-icon .header-icon svg {
  fill: #fff;
  color: #fff;
}

.bos-header-rail-workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: var(--header-bg-color);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.night-mode .bos-header-rail-workspace,
html[data-bs-theme="dark"] .bos-header-rail-workspace {
  background: var(--header-bg-color-dark);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.bos-header-rail-search {
  flex: 1 1 auto;
  max-width: 480px;
}

.bos-header-rail-nav {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .bos-header-rail-shell {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .bos-header--bold,
  .bos-header-rail-shell {
    height: 56px;
  }
  .bos-header-rail-shell {
    grid-template-columns: 1fr auto;
  }
  .bos-header-rail-brand {
    background: var(--header-bg-color);
    color: inherit;
    padding: 0 0.75rem;
  }
  body.night-mode .bos-header-rail-brand,
  html[data-bs-theme="dark"] .bos-header-rail-brand {
    background: var(--header-bg-color-dark);
  }
  .bos-header-rail-brand .logo img {
    filter: none;
  }
  .bos-header-rail-brand .logo .logo-dark {
    display: none;
  }
  body.night-mode .bos-header-rail-brand .logo .logo-light,
  html[data-bs-theme="dark"] .bos-header-rail-brand .logo .logo-light {
    display: none !important;
  }
  body.night-mode .bos-header-rail-brand .logo .logo-dark,
  html[data-bs-theme="dark"] .bos-header-rail-brand .logo .logo-dark {
    display: inline-block !important;
    filter: none;
  }
  .bos-header-rail-workspace {
    padding: 0 0.5rem 0 0;
    border-bottom: 0;
    background: transparent;
  }
  .bos-header-rail-brand::after {
    display: none;
  }
}

/* =========================================================
 * Centered → Dock (brand center, chip tray actions)
 * ========================================================= */
.bos-header--centered {
  height: 70px;
  background: var(--header-bg-color);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.bos-header-dock-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: 70px;
}

.bos-header-dock-search {
  justify-content: flex-start;
  max-width: 340px;
}

.bos-header-dock-brand {
  display: flex;
  justify-content: center;
}

.bos-header-dock-brand .logo-wrapper {
  padding-left: 0;
  justify-content: center;
}

.bos-header-dock-nav {
  display: flex;
  justify-content: flex-end;
}

.bos-header-dock-chiptray {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body.night-mode .bos-header-dock-chiptray,
html[data-bs-theme="dark"] .bos-header-dock-chiptray {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.07);
}

.bos-header-dock-chiptray .navbar-wrapper {
  width: auto;
}

.bos-header-dock-chiptray .navbar-wrapper > ul {
  gap: 2px;
}

.bos-header-dock-chiptray .navbar-wrapper > ul > li > a {
  border-radius: 999px;
  width: 38px;
  height: 38px;
}

@media (max-width: 767.98px) {
  .bos-header--centered,
  .bos-header-dock-grid {
    height: 56px;
  }
  .bos-header-dock-grid {
    grid-template-columns: 1fr auto;
  }
  .bos-header-dock-brand {
    justify-content: flex-start;
  }
  .bos-header-dock-chiptray {
    background: transparent;
    border: 0;
    padding: 0;
  }
}

/* =========================================================
 * Liquid — Apple liquid glass capsule + ambient glow
 * ========================================================= */
.bos-header--liquid {
  height: 72px;
  padding: 10px 0;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.bos-header-liquid-glow {
  position: absolute;
  top: -24px;
  left: 12%;
  width: 42%;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 40%, rgba(94, 114, 228, 0.35), transparent 68%),
    radial-gradient(circle at 75% 50%, rgba(56, 189, 248, 0.22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.bos-header-liquid-frame {
  position: relative;
  z-index: 1;
  width: 100%;
}

.bos-header-liquid-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 28px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}

body.night-mode .bos-header-liquid-shell,
html[data-bs-theme="dark"] .bos-header-liquid-shell {
  background: linear-gradient(180deg, rgba(38, 45, 52, 0.78), rgba(30, 37, 43, 0.5));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.bos-header-liquid-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 0.25rem;
}

.bos-header--liquid .logo img {
  max-height: 26px;
}

.bos-header-liquid-search {
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.bos-header-liquid-search .search-wrapper,
.bos-header-liquid-search .bos-search {
  width: 100%;
  max-width: 420px;
  display: block !important;
  margin: 0 auto;
}

.bos-header--liquid .bos-search-input.form-control,
.bos-header--liquid .search-wrapper .form-control {
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.night-mode .bos-header--liquid .bos-search-input.form-control,
html[data-bs-theme="dark"] .bos-header--liquid .bos-search-input.form-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.bos-header-liquid-nav {
  display: flex;
  justify-content: flex-end;
}

.bos-header--liquid .navbar-wrapper > ul > li > a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

@media (max-width: 767.98px) {
  .bos-header--liquid {
    height: 56px;
    padding: 4px 0 0;
  }
  .bos-header-liquid-glow {
    display: none;
  }
  .bos-header-liquid-shell {
    grid-template-columns: 1fr auto;
    border-radius: 18px;
    min-height: 44px;
  }
  .bos-header-liquid-search {
    display: none !important;
  }
}

/* =========================================================
 * Material — Google Material You tonal bar
 * ========================================================= */
.bos-header--material {
  height: 70px;
  padding: 8px 0;
  justify-content: flex-start;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bos-header-material-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 54px;
  padding: 0.35rem 0.75rem 0.35rem 0.9rem;
  border-radius: 28px;
  background: color-mix(in srgb, var(--link-color, #5e72e4) 14%, #ffffff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.night-mode .bos-header-material-shell,
html[data-bs-theme="dark"] .bos-header-material-shell {
  background: color-mix(in srgb, var(--link-color, #5e72e4) 22%, #1e252b);
  box-shadow: none;
}

.bos-header-material-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.bos-header--material .logo img {
  max-height: 28px;
}

.bos-header-material-search {
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.bos-header-material-search-field {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 72%, transparent);
}

body.night-mode .bos-header-material-search-field,
html[data-bs-theme="dark"] .bos-header-material-search-field {
  background: rgba(255, 255, 255, 0.06);
}

.bos-header-material-search-field .search-wrapper,
.bos-header-material-search-field .bos-search {
  width: 100%;
  display: block !important;
}

.bos-header--material .bos-search-input.form-control,
.bos-header--material .search-wrapper .form-control {
  height: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.bos-header-material-nav {
  display: flex;
  justify-content: flex-end;
}

.bos-header-material-actions {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 55%, transparent);
}

body.night-mode .bos-header-material-actions,
html[data-bs-theme="dark"] .bos-header-material-actions {
  background: rgba(255, 255, 255, 0.05);
}

.bos-header--material .navbar-wrapper > ul > li > a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

@media (max-width: 767.98px) {
  .bos-header--material {
    height: 56px;
    padding: 4px 0 0;
  }
  .bos-header-material-shell {
    grid-template-columns: 1fr auto;
    min-height: 44px;
    border-radius: 22px;
  }
  .bos-header-material-search {
    display: none !important;
  }
  .bos-header-material-actions {
    background: transparent;
    padding: 0;
  }
}

/* =========================================================
 * Aurora — layered wash stage + floating search shelf
 * ========================================================= */
.bos-header--aurora {
  height: 118px;
  padding: 0;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.bos-header-aurora-stage {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bos-header-aurora-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(167, 139, 250, 0.28), rgba(56, 189, 248, 0.18), rgba(52, 211, 153, 0.16));
  opacity: 0.95;
  pointer-events: none;
}

body.night-mode .bos-header-aurora-wash,
html[data-bs-theme="dark"] .bos-header-aurora-wash {
  background:
    linear-gradient(105deg, rgba(129, 140, 248, 0.28), rgba(14, 165, 233, 0.18), rgba(16, 185, 129, 0.14));
  opacity: 0.85;
}

.bos-header-aurora-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 58px;
}

.bos-header-aurora-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.bos-header--aurora .logo img {
  max-height: 28px;
}

.bos-header-aurora-nav {
  display: flex;
  justify-content: flex-end;
}

.bos-header--aurora .navbar-wrapper > ul > li > a {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
}

body.night-mode .bos-header--aurora .navbar-wrapper > ul > li > a,
html[data-bs-theme="dark"] .bos-header--aurora .navbar-wrapper > ul > li > a {
  background: rgba(255, 255, 255, 0.06);
}

.bos-header-aurora-shelf {
  height: 60px;
  display: flex;
  align-items: center;
  margin-top: -6px;
}

.bos-header-aurora-search {
  max-width: 560px;
  margin: 0 auto;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.night-mode .bos-header-aurora-search,
html[data-bs-theme="dark"] .bos-header-aurora-search {
  background: rgba(38, 45, 52, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.bos-header-aurora-search .search-wrapper,
.bos-header-aurora-search .bos-search {
  width: 100%;
  display: block !important;
}

.bos-header--aurora .bos-search-input.form-control,
.bos-header--aurora .search-wrapper .form-control {
  height: 38px;
  min-height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .bos-header--aurora {
    height: 56px;
  }
  .bos-header-aurora-stage,
  .bos-header-aurora-top {
    height: 56px;
  }
  .bos-header--aurora .navbar-wrapper > ul > li > a {
    background: transparent;
  }
}

/* Chat pane offset (Budun OS) — keep variant heights compatible */
@media (min-width: 1200px) {
  body:not(.n_chat) .main-header.bos-header {
    padding-right: 75px;
  }
  body.n_chat .main-header.bos-header {
    padding-right: 0;
  }
}
