/* GENERATED from @mbanc/shell 1.0.4 (mbanc-ai-website/shell/src/shell.css, header + panel
   sections) by tools/pack-and-vendor.ps1 - do not edit here. RegistrationDesk is static
   HTML, so it takes the header chrome as a copy and keeps its own token files. */
/* ═══════════════════════════════════════════════════════════════
   HEADER CHROME - rendered by <MbancHeader> (src/MbancHeader.js)
   68px fixed bar; every app's content offset assumes exactly 68px.
   ═══════════════════════════════════════════════════════════════ */
.mb-header, .mb-header *, .mb-header *::before, .mb-header *::after { box-sizing: border-box; }
.mb-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; padding: 0 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--mb-header-bg);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--mb-hairline-2);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--mb-ink);
  pointer-events: none;
  animation: mbHdrIn 0.6s ease forwards;
}
.mb-header > * { pointer-events: auto; }
@keyframes mbHdrIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mbNavIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mbCenterIn { from { opacity: 0; } to { opacity: 1; } }

.mb-header-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.mb-logo {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  transition: all 0.3s var(--ease-out, ease);
}
.mb-logo:hover { filter: drop-shadow(0 0 10px var(--mb-red-glow)); transform: scale(1.05); }
.mb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mb-sep { width: 1px; height: 28px; flex-shrink: 0; background: linear-gradient(180deg, transparent, var(--mb-hairline), transparent); }

.mb-title {
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; line-height: 1;
  display: inline-flex; align-items: baseline; white-space: nowrap;
  color: var(--mb-ink); text-decoration: none;
  opacity: 0; animation: mbNavIn 0.4s 0.15s ease forwards;
}
a.mb-title:hover { text-decoration: none; }
.mb-title-b { color: var(--mb-red); }

.mb-nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.mb-nav-link {
  padding: 6px 18px; border-radius: 10px;
  font-size: 15px; font-weight: 500; line-height: 1.5; white-space: nowrap;
  color: var(--mb-ink-3); text-decoration: none; background: transparent; border: 0; cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--ease-out, ease);
  opacity: 0; animation: mbNavIn 0.4s ease forwards;
}
.mb-nav-link:nth-child(1) { animation-delay: 0.20s; }
.mb-nav-link:nth-child(2) { animation-delay: 0.25s; }
.mb-nav-link:nth-child(3) { animation-delay: 0.30s; }
.mb-nav-link:nth-child(4) { animation-delay: 0.35s; }
.mb-nav-link:nth-child(n+5) { animation-delay: 0.40s; }
.mb-nav-link:hover { background: var(--mb-hairline-2); color: var(--mb-ink); text-decoration: none; }
.mb-nav-link.active {
  /* Glow on the text only - no chip. */
  background: transparent; color: var(--mb-ember); box-shadow: none;
  text-shadow:
    0 0 6px  color-mix(in srgb, var(--mb-red) 90%, transparent),
    0 0 14px color-mix(in srgb, var(--mb-red) 55%, transparent),
    0 0 24px color-mix(in srgb, var(--mb-red) 30%, transparent);
}

.mb-eyebrow {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; white-space: nowrap; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mb-ember);
  opacity: 0; animation: mbCenterIn 0.5s 0.2s ease forwards;
}
/* Set by fitEyebrow() (theme.js) while the nav or right group would touch
   it. visibility, not display, so it keeps a box to measure. */
.mb-eyebrow.mb-eyebrow-off { visibility: hidden; }
.mb-eyebrow::before, .mb-eyebrow::after {
  content: ""; width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mb-ember) 45%, transparent), transparent);
}

.mb-header-right { display: flex; align-items: center; gap: 18px; min-width: 0; opacity: 0; animation: mbNavIn 0.4s 0.3s ease forwards; }
.mb-right-slot { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mb-user { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--mb-ink-2); white-space: nowrap; }
.mb-role {
  padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--mb-red-soft); color: var(--mb-red);
}
.mb-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px; padding: 0;
  border: 1px solid color-mix(in srgb, var(--mb-red) 20%, transparent);
  background: var(--mb-red-soft); color: var(--mb-ember);
  font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
  transition: all 0.25s;
}
.mb-logout {
  padding: 4px 12px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--mb-red) 20%, transparent);
  background: var(--mb-red-soft); color: var(--mb-ember);
  font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1.5;
  letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: all 0.25s;
}
.mb-iconbtn:hover, .mb-logout:hover {
  background: color-mix(in srgb, var(--mb-red) 15%, transparent);
  border-color: color-mix(in srgb, var(--mb-red) 50%, transparent);
  color: var(--mb-red); box-shadow: 0 0 12px var(--mb-red-glow); text-decoration: none;
}

/* Desktop-only wrappers: layout-neutral on desktop, dropped on phones
   (their content moves into the menu panel). */
.mb-header-right > span.mb-desk { display: contents; }
.mb-menu-btn { display: none; }

@media (max-width: 1280px) { .mb-eyebrow { display: none; } }
@media (max-width: 900px) {
  .mb-header { padding: 0 16px; gap: 10px; }
  .mb-header-left, .mb-header-right { gap: 10px; }
  .mb-nav-link { padding: 6px 10px; font-size: 14px; }
  .mb-user { display: none; }
}

/* ── Phone (< 721px): bar = logo + title + theme + menu button. Nav, the
   right slot, user, settings and logout move into the menu panel. ── */
@media (max-width: 720px) {
  .mb-header { padding: 0 12px 0 14px; }
  .mb-header-left { gap: 12px; min-width: 0; flex: 1; }
  .mb-header-right { gap: 8px; flex-shrink: 0; }
  .mb-logo { width: 36px; height: 36px; }
  .mb-sep { height: 24px; }
  .mb-title { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .mb-header-left > .mb-nav { display: none; }
  .mb-header-right > .mb-desk, .mb-header-right > span.mb-desk { display: none; }
  .mb-menu-btn { display: inline-flex; width: 38px; height: 38px; }
  .mb-header-right .mb-iconbtn { width: 38px; height: 38px; }
}
/* The panel is a child of the (transformed, backdrop-filtered) header, so
   "fixed" resolves against the 68px header box: size with top + height,
   not insets, and use a solid fill (nested backdrop blur cannot see
   the page, and any transparency lets text ghost through). */
.mb-menu-scrim {
  position: fixed; top: 68px; left: 0; right: 0; height: 100vh;
  background: color-mix(in srgb, var(--mb-navy) 45%, transparent);
  animation: mbCenterIn 0.2s ease;
}
.mb-menu {
  position: fixed; top: 68px; left: 0; right: 0;
  max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto;
  padding: 10px 12px 16px;
  background: var(--mb-navy);
  border-bottom: 1px solid var(--mb-hairline);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 6px;
  animation: mbMenuIn 0.22s var(--ease-out, ease);
}
@keyframes mbMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mb-menu-user { padding: 6px 6px 10px; border-bottom: 1px solid var(--mb-hairline-2); }
.mb-menu-user .mb-user { display: inline-flex; font-size: 15px; }
.mb-menu-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.mb-menu-nav .mb-nav-link {
  display: block; padding: 12px 14px; border-radius: 12px;
  font-size: 16px; color: var(--mb-ink-2); opacity: 1; animation: none;
}
.mb-menu-nav .mb-nav-link.active { background: var(--mb-red-soft); text-shadow: none; color: var(--mb-ember); font-weight: 600; }
.mb-menu-slot { padding: 10px 14px; border-top: 1px solid var(--mb-hairline-2); }
.mb-menu-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 6px 2px; border-top: 1px solid var(--mb-hairline-2);
}
.mb-menu-row {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px;
  font-size: 15px; font-weight: 500; color: var(--mb-ink-2); text-decoration: none;
}
.mb-menu-row svg { color: var(--mb-ember); }
.mb-menu-actions .mb-logout { padding: 9px 16px; font-size: 12px; }
@media (min-width: 721px) { .mb-menu, .mb-menu-scrim { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mb-header, .mb-title, .mb-nav-link, .mb-eyebrow, .mb-header-right, .mb-menu, .mb-menu-scrim { animation: none; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   APPEARANCE PANEL - window.mbancThemeUI.open()  (src/theme.js)
   ═══════════════════════════════════════════════════════════════ */
.mbts-overlay { position: fixed; inset: 0; z-index: 9000; font-family: var(--font-sans); font-size: 14px; }
.mbts-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--mb-navy) 35%, transparent); backdrop-filter: blur(2px); animation: mbCenterIn 0.25s var(--ease-out, ease); }
.mbts-panel {
  position: fixed; top: 64px; right: 20px; width: 320px; padding: 20px; border-radius: 18px;
  background: var(--mb-glass-strong); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border: 1px solid var(--mb-hairline); box-shadow: 0 24px 60px -12px rgba(0,0,0,.5), var(--mb-inset-hi);
  color: var(--mb-ink); animation: mbtsIn 0.3s var(--ease-out, ease);
}
@keyframes mbtsIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.mbts-eyebrow { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mb-ember); }
.mbts-title { font-size: 15px; font-weight: 700; color: var(--mb-ink); margin: 4px 0 2px; letter-spacing: -.01em; }
.mbts-sub { font-size: 11px; color: var(--mb-ink-3); margin-bottom: 16px; }
.mbts-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 13px; margin-bottom: 8px;
  background: var(--mb-glass-2); border: 1px solid var(--mb-hairline);
  transition: all .2s var(--ease-out, ease); cursor: pointer; color: inherit; font-family: inherit;
}
.mbts-opt:hover { background: var(--mb-glass-hover); border-color: color-mix(in srgb, var(--mb-red) 40%, transparent); transform: translateX(2px); }
.mbts-opt.sel { border-color: color-mix(in srgb, var(--mb-red) 65%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mb-red) 45%, transparent), 0 0 18px var(--mb-red-glow); }
.mbts-opt.na .mbts-sw { filter: grayscale(.6); opacity: .7; }
.mbts-sw { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; border: 1px solid var(--mb-hairline); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); position: relative; overflow: hidden; }
.mbts-sw::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sw-a); box-shadow: 0 0 8px var(--sw-a); }
.mbts-meta { flex: 1; min-width: 0; }
.mbts-name { display: block; font-size: 13px; font-weight: 600; color: var(--mb-ink); line-height: 1.25; }
.mbts-desc { display: block; font-size: 10px; color: var(--mb-ink-3); margin-top: 1px; }
.mbts-na { display: block; font-size: 10px; color: var(--mb-ember); margin-top: 2px; }
.mbts-check { color: var(--mb-red); font-size: 14px; opacity: 0; transition: opacity .2s; }
.mbts-opt.sel .mbts-check { opacity: 1; }
