/* Navigation (Kickoff 24): the show switcher, tab bars of merged pages, the "Showing:" chip,
   the tool-off notice, the command palette and the phone bar. Light and dark by the app's theme. */
:root { --mx-p: #4536b7; --mx-p-text: #4536b7; --mx-soft: #ebe8fb; --mx-line: #dfe3ee; --mx-fg: #171a2b; --mx-muted: #545b72; --mx-card: #fff; --mx-warn-bg: #fdf1cf; --mx-warn-fg: #6b4700; }
[data-bs-theme="dark"] { --mx-p-text: #b3a8f7; --mx-soft: #231f4a; --mx-line: #262c44; --mx-fg: #eef0fa; --mx-muted: #a4acc6; --mx-card: #121626; --mx-warn-bg: #33290d; --mx-warn-fg: #fcd36b; }

/* sidebar */
.mx-switch { padding: 4px 0 10px; }
.mx-switch-btn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--mx-line);
  background: var(--mx-card); color: var(--mx-fg); font-weight: 600; font-size: 14px; text-align: left; }
.mx-switch-btn::after { margin-left: auto; }
.mx-switch-dot { width: 14px; height: 14px; border-radius: 5px; flex: 0 0 auto; }
.mx-switch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-switch-menu { max-height: 60vh; overflow: auto; min-width: 220px; }
.mx-nav-desc { display: block; font-size: 11px; font-weight: 400; color: var(--mx-muted); line-height: 1.25; white-space: normal; }
.navbar-vertical .navbar-vertical-label { font-variant: small-caps; letter-spacing: .08em; }
.navbar-vertical .nav-link.active { color: var(--mx-p-text); font-weight: 700; }
.navbar-vertical-collapsed .mx-switch-name, .navbar-vertical-collapsed .mx-nav-desc, .navbar-vertical-collapsed .mx-switch-btn::after { display: none; }
.navbar-vertical-collapsed .mx-switch-btn { justify-content: center; padding: 8px; }

/* above the page */
.mx-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--mx-line); margin: 0 0 18px; scrollbar-width: thin; }
.mx-tabs-title { font-weight: 700; font-size: 18px; color: var(--mx-fg); margin-right: 16px; white-space: nowrap; }
.mx-tabs a { white-space: nowrap; padding: 10px 12px 11px; color: var(--mx-muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; min-height: 44px; display: inline-flex; align-items: center; }
.mx-tabs a:hover { color: var(--mx-fg); }
.mx-tabs a[aria-current="page"] { color: var(--mx-p-text); border-bottom-color: var(--mx-p-text); }
.mx-tabs a:focus-visible, .mx-chip a:focus-visible, .mx-switch-btn:focus-visible, .mx-notice-btn:focus-visible, .mx-mobilebar a:focus-visible, .mx-mobilebar button:focus-visible { outline: 2px solid var(--mx-p-text); outline-offset: 2px; }
.mx-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--mx-soft); color: var(--mx-fg); border-radius: 999px; padding: 6px 14px; font-size: 13px; margin: 0 0 14px; }
.mx-chip a { color: var(--mx-p-text); font-weight: 600; }
.mx-notice { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--mx-warn-bg); color: var(--mx-warn-fg); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 14px; }
.mx-notice form { margin: 0; }
.mx-notice-btn { min-height: 36px; padding: 6px 14px; border-radius: 10px; border: 1px solid currentColor; background: transparent; color: inherit; font-weight: 600; }

/* command palette */
.mx-palette { border: 0; border-radius: 16px; padding: 0; width: min(620px, 94vw); background: var(--mx-card); color: var(--mx-fg); box-shadow: 0 24px 80px rgba(0, 0, 0, .45); margin-top: 12vh; }
.mx-palette::backdrop { background: rgba(6, 8, 18, .6); }
.mx-palette input { width: 100%; border: 0; border-bottom: 1px solid var(--mx-line); background: transparent; color: var(--mx-fg); padding: 16px 18px; font-size: 16px; outline: 0; }
.mx-palette input::placeholder { color: var(--mx-muted); opacity: 1; }
.mx-palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.mx-palette li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.mx-palette li[aria-selected="true"] { background: var(--mx-soft); color: var(--mx-p-text); }
.mx-palette li small { color: var(--mx-muted); white-space: nowrap; }
.mx-palette-hint { margin: 0; padding: 8px 18px 12px; font-size: 12px; color: var(--mx-muted); }

/* phones */
.mx-mobilebar { display: none; }
@media (max-width: 768px) {
  .mx-mobilebar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--mx-card);
    border-top: 1px solid var(--mx-line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .mx-mobilebar a, .mx-mobilebar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: transparent;
    color: var(--mx-muted); font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 10px; }
  .mx-mobilebar a[aria-current="page"] { color: var(--mx-p-text); }
  .mx-mobilebar svg { width: 20px; height: 20px; }
  body.mx-has-mobilebar .content { padding-bottom: 84px; }
  .mx-tabs-title { display: none; }
}
