/*===============================================*\
|| TerraLoc app chrome: header and footer         ||
|| ---------------------------------------------- ||
|| The bar. One for every page; on the landing,    ||
|| tl-landing.css lifts this same bar off          ||
|| the ground and onto the hero. An app page has   ||
|| no hero, so here the chrome holds its own       ||
|| ground and stays put while the page scrolls.    ||
|| Tokens only, from terraloc-theme.css.           ||
\*===============================================*/

/*
 * Everything here is scoped under .tl-appbar so it cannot leak into a section
 * block, and it overrides the Bootstrap navbar classes
 * DynamicMenu emits rather than replacing them: the menu markup is core and
 * changing it would break every other template in the fork.
 */

/* ---------- header ---------- */

.tl-appbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--tl-paper);
  border-bottom: 1px solid var(--tl-hairline);
}

.tl-appbar-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 60px;
  /* Full bleed, matching the container-fluid the section blocks use: chrome
     that stops at 1440 while the page under it runs to the edge reads as a
     misalignment, not as a frame. The gutter is Bootstrap's own. */
  /* The site gutter, so the logo lines up with the first heading on the
     page under it. Declared in terraloc-theme.css. */
  padding: 0 var(--tl-page-gutter, 1.5rem);
}

/* The brand lockup is the site logo, in two variants: the light-ground file on
   the day face, the light-on-dark file on the night face and over the landing
   hero. Both are in the markup and CSS picks one, so no request is wasted
   swapping them and there is no flash on a theme change. */
.tl-appbar .tl-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.tl-brand-logo { display: block; width: auto; }
.tl-appbar .tl-brand-logo { height: 30px; }

.tl-brand-logo--dark { display: none; }
[data-bs-theme="dark"] .tl-brand-logo--light { display: none; }
[data-bs-theme="dark"] .tl-brand-logo--dark { display: block; }

/* ---------- nav ----------
   DynamicMenu emits .navbar-collapse > ul.navbar-nav > li.nav-item > a.nav-link
   with .active on the current page. Mono, uppercase and tracked: the same
   voice as .tl-eyebrow, so the nav reads as instrument labelling rather than
   as a marketing menu. */

.tl-appbar .navbar-collapse { flex: 1 1 auto; }

.tl-appbar .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .25rem;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.tl-appbar .nav-link {
  display: block;
  padding: .5rem .75rem;
  font-family: var(--tl-font-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tl-muted);
  text-decoration: none;
  border-radius: var(--tl-radius-sm);
  position: relative;
}

.tl-appbar .nav-link:hover,
.tl-appbar .nav-link:focus-visible { color: var(--tl-ink); }

/* 2px accent rule under the current page: the same 22x2 device the eyebrow
   uses, turned horizontal. */
.tl-appbar .nav-link.active { color: var(--tl-ink); }
.tl-appbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .125rem;
  height: 2px;
  background: var(--tl-accent);
}

/* ---------- dropdowns ----------
   A parent entry renders as .nav-link-parent plus a separate .nav-caret-btn
   that owns the Bootstrap toggle, so the parent stays a real link to its own
   page and only the caret opens the submenu. */

.tl-appbar .nav-item.dropdown { position: relative; display: flex; align-items: center; }

.tl-appbar .nav-link-parent { padding-right: .25rem; }

.tl-appbar .nav-caret-btn {
  border: 0;
  background: none;
  padding: .5rem .5rem .5rem .125rem;
  color: var(--tl-dim);
  line-height: 1;
}
.tl-appbar .nav-caret-btn:hover { color: var(--tl-ink); }
.tl-appbar .nav-caret-icon { font-size: .5rem; }

.tl-appbar .navbar-nav .dropdown-menu {
  /* The template sets border-width to 0, so a border-color alone drew nothing,
     and it defines --bs-dropdown-box-shadow without ever applying it. Both are
     set here rather than through the variables for that reason. */
  --bs-dropdown-bg: var(--tl-panel);
  --bs-dropdown-border-width: 1px;
  --bs-dropdown-border-color: var(--tl-hairline);
  --bs-dropdown-border-radius: var(--tl-radius);
  --bs-dropdown-color: var(--tl-muted);
  --bs-dropdown-link-color: var(--tl-muted);
  --bs-dropdown-link-hover-bg: var(--tl-paper-deep);
  --bs-dropdown-link-hover-color: var(--tl-ink);
  --bs-dropdown-link-active-bg: var(--tl-paper-deep);
  --bs-dropdown-link-active-color: var(--tl-ink);

  /* The template pads the panel 0.8rem on each side and then the item pads
     again, which insets every label by more than a quarter of its own height. */
  --bs-dropdown-padding-x: 0;
  --bs-dropdown-padding-y: .25rem;
  --bs-dropdown-min-width: 12rem;

  /* The theme's own rule at this specificity sets `border: 1px solid
     var(--bs-border-color)` and `box-shadow: none`, so both are restated here
     rather than left to the --bs-dropdown-* variables. */
  border: 1px solid var(--tl-hairline);
  box-shadow: var(--tl-lift);

  /*
   * Pinned under the whole item, not under the caret.
   *
   * Bootstrap drives this dropdown with Popper, and Popper's reference is the
   * element carrying data-bs-toggle, which DynamicMenu puts on the little caret
   * button rather than the parent link. The panel was landing under the caret,
   * indented by the width of the label beside it. Popper writes position, inset
   * and transform as inline styles, so overriding it needs !important; the nav
   * is a plain horizontal bar and the panel belongs at the item's left edge,
   * which is what these three lines say without Popper's help.
   */
  position: absolute !important;
  inset: 100% auto auto 0 !important;
  transform: none !important;
  margin-top: 0;
}

.tl-appbar .navbar-nav .dropdown-item {
  font-family: var(--tl-font-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem .875rem;
  white-space: nowrap;
}

/* The active child already marks its parent, so this is a quiet accent rather
   than a second "current page" bar inside the panel. */
.tl-appbar .navbar-nav .dropdown-item.active,
.tl-appbar .navbar-nav .dropdown-item:active { color: var(--tl-accent); background: transparent; }

@media (max-width: 1199.98px) {
  .tl-appbar .nav-item.dropdown { flex-wrap: wrap; }
  .tl-appbar .navbar-nav .dropdown-menu {
    /* Popper's inline transform has to go here too, or the open panel is
       nudged sideways once the bar has wrapped. */
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
  }
}

/* ---------- right-hand actions ---------- */

.tl-appbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex: none;
}

.tl-appbar-link {
  font-family: var(--tl-font-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tl-muted);
  text-decoration: none;
  padding: .5rem .5rem;
  white-space: nowrap;
}
.tl-appbar-link:hover { color: var(--tl-ink); }

.tl-appbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 42px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--tl-radius);
  background: var(--tl-cta);
  color: var(--tl-cta-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
/* An orange button darkens to the orange hover, not to --tl-accent-hover:
   that is the GREEN ramp, and the sign-up button turned pale sage on hover. */
.tl-appbar-btn:hover { background: var(--tl-cta-hover); color: var(--tl-cta-ink); }

/* Used on both an <a> (upload) and a <button> (theme), so the button's own
   defaults are cleared here rather than in a separate rule. */
.tl-appbar-icon {
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--tl-hairline);
  border-radius: var(--tl-radius);
  background: var(--tl-panel);
  color: var(--tl-muted);
  text-decoration: none;
}
.tl-appbar-icon:hover { color: var(--tl-ink); border-color: var(--tl-dim); }

/*
 * The language switcher ([[jscms_language_switcher style=dropdown flags=false]]).
 *
 * JScms prints it as a Bootstrap nav item, a bare "EN" link that sat between the
 * theme square and the account button looking like stray text. It wears the
 * icon square's frame here, widened for the code: globe, code, caret, the same
 * height, border and ground as its neighbours, with the language's flag.
 */
.tl-appbar-actions .jscms-lang-switcher { margin: 0 !important; }
.tl-appbar-actions .jscms-lang-switcher > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  height: 34px;
  padding: 0 .5rem 0 .625rem !important;
  border: 1px solid var(--tl-hairline);
  border-radius: var(--tl-radius);
  background: var(--tl-panel);
  color: var(--tl-muted);
  font-family: var(--tl-font-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-decoration: none;
}
.tl-appbar-actions .jscms-lang-switcher > .nav-link .small { font-size: inherit; }
.tl-appbar-actions .jscms-lang-switcher > .nav-link i,
.tl-appbar-actions .jscms-lang-switcher > .nav-link > span:first-child { margin: 0 !important; font-size: .8125rem; line-height: 1; }
.tl-appbar-actions .jscms-lang-switcher > .nav-link::after {
  margin: 0 0 0 .125rem;
  border-top-width: .28em;
  border-right-width: .24em;
  border-left-width: .24em;
  color: var(--tl-dim);
}
.tl-appbar-actions .jscms-lang-switcher > .nav-link:hover,
.tl-appbar-actions .jscms-lang-switcher > .nav-link[aria-expanded="true"] { color: var(--tl-ink); border-color: var(--tl-dim); }

/* The list: each language in its own name, its code beside it, a check on the
   one being read. The same panel as the menu's dropdowns. */
.tl-appbar-actions .jscms-lang-switcher .dropdown-menu {
  min-width: 11rem;
  margin-top: .375rem !important;
  padding: .25rem 0;
  border: 1px solid var(--tl-hairline);
  border-radius: var(--tl-radius);
  background: var(--tl-panel);
  box-shadow: var(--tl-lift);
}
/* The bar opens its dropdowns on hover (functions.js) and closes them when the
   pointer leaves the item. The gap under the button is not part of the item,
   so crossing it closed the menu before the pointer reached it. This strip
   spans the gap, invisible, and belongs to the item. */
.tl-appbar-actions .jscms-lang-switcher .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -.625rem;
  height: .625rem;
}
.tl-appbar-actions .jscms-lang-switcher .dropdown-item > span { margin: 0 !important; font-size: 1rem; line-height: 1; }
.tl-appbar-actions .jscms-lang-switcher .dropdown-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .875rem;
  color: var(--tl-ink);
  font-size: .875rem;
  background: transparent;
}
.tl-appbar-actions .jscms-lang-switcher .dropdown-item::after {
  content: attr(data-lang);
  margin-left: auto;
  font-family: var(--tl-font-mono);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tl-dim);
}
.tl-appbar-actions .jscms-lang-switcher .dropdown-item:hover,
.tl-appbar-actions .jscms-lang-switcher .dropdown-item:focus { background: var(--tl-paper-deep); color: var(--tl-accent); }
.tl-appbar-actions .jscms-lang-switcher .dropdown-item.active { color: var(--tl-accent); font-weight: 600; }
/* A fixed slot left of every name, holding the check on the current one, so
   the names and the codes line up whichever language is ticked. */
.tl-appbar-actions .jscms-lang-switcher .dropdown-item::before {
  content: "";
  flex: none;
  width: .75rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .6875rem;
  margin-right: -.25rem;
}
.tl-appbar-actions .jscms-lang-switcher .dropdown-item.active::before { content: "\f00c"; color: var(--tl-accent); }

/* The toggler only exists below the nav breakpoint. */
.tl-appbar .navbar-toggler {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--tl-hairline);
  border-radius: var(--tl-radius);
  background: var(--tl-panel);
  color: var(--tl-ink);
}

/* ---------- the mobile panel ----------
   Below xl the menu is a card under the bar, on the page's own face: paper on
   the day face, the night panel on the night face, never a colour of its own.
   SkyTrackPro's panel, in TerraLoc's palette. Labels in sentence case at
   reading size: the mono, tracked capitals are the desktop bar's instrument
   voice, and stacked eight deep in a panel they read as shouting. Every
   submenu is open, in an inset card under its parent: the hamburger already
   opened the menu, a second tap per section is one too many, and a chevron
   that opens a list was the least obvious control in the panel. */
@media (max-width: 1199.98px) {
  .tl-appbar-wrap { flex-wrap: wrap; gap: .75rem; }
  .tl-appbar .navbar-toggler { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .tl-appbar-actions { order: 2; }
  .tl-appbar .navbar-collapse:not(.show):not(.collapsing) { display: none; }

  /*
   * The framework already takes this out of flow: .navbar-expand-xl
   * .navbar-collapse is absolute with left/right 0 and top 100%, hanging the
   * panel below the bar. So it needs insetting rather than margins: an
   * absolute box resolves against the padding box, and left: 0 is the bar's
   * outer edge.
   *
   * With every submenu open the list is taller than a phone, so the card
   * scrolls inside the screen rather than running off the bottom of it. The
   * core prints navbar-nav-scroll on the list, which caps it at 75vh and
   * scrolls it on its own; one scroll, the card's, is the one that is wanted.
   */
  .tl-appbar .navbar-collapse {
    left: var(--tl-page-gutter, 1.5rem);
    right: var(--tl-page-gutter, 1.5rem);
    top: calc(100% + .375rem);
    max-height: calc(100svh - 5.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .375rem;
    border: 1px solid var(--tl-hairline);
    border-radius: var(--tl-radius-xl);
    background: var(--tl-panel);
    box-shadow: var(--tl-lift-lg);
  }
  .tl-appbar .navbar-collapse .navbar-nav-scroll { max-height: none; overflow: visible; }

  .tl-appbar .navbar-nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }

  /* A row per item, with a rule between rather than under the last one. */
  .tl-appbar .navbar-collapse .navbar-nav > .nav-item {
    display: block;
    padding: .125rem 0;
    border-bottom: 1px solid var(--tl-hairline);
  }
  .tl-appbar .navbar-collapse .navbar-nav > .nav-item:last-child { border-bottom: 0; }

  /* 44px is the tap target. The specificity matches the theme's own
     .nav-item .nav-link rule rather than fighting it. */
  .tl-appbar .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .75rem;
    border-radius: var(--tl-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--tl-ink);
  }
  .tl-appbar .navbar-collapse .navbar-nav .nav-item .nav-link:hover { background: var(--tl-paper-deep); }

  /* The page being read: a filled row with the accent bar at its edge, the
     same mark for a top-level page and for a child. A parent whose child is
     the current page is only set in bold: the child carries the mark. */
  .tl-appbar .navbar-collapse .navbar-nav > .nav-item > .nav-link.active:not(.nav-link-parent),
  .tl-appbar .navbar-collapse .navbar-nav .dropdown-item.active {
    background: color-mix(in srgb, var(--tl-accent) 12%, transparent);
    color: var(--tl-accent);
    font-weight: 600;
  }
  .tl-appbar .navbar-collapse .nav-link-parent.active { font-weight: 600; }
  .tl-appbar .navbar-collapse .nav-link-parent.active::after { display: none; }
  .tl-appbar .navbar-collapse .nav-link.active::after,
  .tl-appbar .navbar-collapse .dropdown-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: auto;
    top: .625rem;
    bottom: .625rem;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
    background: var(--tl-accent);
  }

  /* The submenu, always open: an inset card under its parent. */
  .tl-appbar .navbar-collapse .nav-caret-btn { display: none; }
  .tl-appbar .navbar-collapse .nav-item.dropdown > .nav-link { flex: 1 1 auto; }
  .tl-appbar .navbar-collapse .navbar-nav .dropdown-menu {
    display: block !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: auto;
    min-width: 0;
    margin: .125rem .5rem .5rem;
    padding: .25rem;
    border: 1px solid var(--tl-hairline);
    border-radius: var(--tl-radius-lg);
    background: var(--tl-paper);
    box-shadow: none;
  }
  .tl-appbar .navbar-collapse .navbar-nav .dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .75rem;
    border-radius: var(--tl-radius);
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    color: var(--tl-muted);
  }
  .tl-appbar .navbar-collapse .navbar-nav .dropdown-item:hover { background: var(--tl-paper-deep); color: var(--tl-ink); }
  .tl-appbar .navbar-collapse .navbar-nav .dropdown-item.active:hover { background: color-mix(in srgb, var(--tl-accent) 12%, transparent); color: var(--tl-accent); }

  .tl-appbar-link { padding: .5rem .25rem; }
}

/* ---------- the phone bar ----------
   Below 576px the bar is the brand, the account and the menu button, on one
   row. Theme and language take the foot of the menu sheet instead: with them
   the bar needed about 480px and broke onto a second row on every phone, the
   logo left pinned to the top edge above a row of buttons. */

.tl-appbar-sheet-foot { display: none; }

@media (max-width: 575.98px) {
  /* Scoped under .tl-appbar to outrank `.tl-appbar .nav-item.dropdown`,
     which the switcher also is and which sets display: flex. And only where
     the sheet row is on the page: the header is baked, so a page baked
     before the row existed keeps both in the bar rather than losing the
     language switch altogether. That happened on dev.terraloc.app, where
     the stylesheet arrived and the new markup did not. */
  .tl-appbar:has([data-tl-sheet-foot]) .tl-appbar-actions > .tl-appbar-roomy,
  .tl-appbar:has([data-tl-sheet-foot]) .tl-appbar-actions > .jscms-lang-switcher { display: none; }

  /* The height of the squares beside it, so the row reads as one row. */
  .tl-appbar-btn { height: 34px; padding: 0 .875rem; font-size: .8125rem; }

  /* Pinned to the foot of the card, which scrolls once every submenu is
     open: the language is what a visitor who cannot read the page is looking
     for, so it must not sit below the fold of the menu. The negative margin
     takes it to the card's edges so the list scrolls away behind it. */
  .tl-appbar .navbar-collapse .tl-appbar-sheet-foot {
    position: sticky;
    bottom: -.375rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .375rem -.375rem -.375rem;
    padding: .625rem .5rem .5rem;
    border-top: 1px solid var(--tl-hairline);
    background: var(--tl-panel);
  }

  /* Every language at once, as a segmented switch: the one being read is
     raised onto the panel's ground, the others sit in the trough. */
  .tl-appbar-sheet-foot .jscms-lang-switcher {
    flex: 1 1 auto;
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--tl-hairline);
    border-radius: var(--tl-radius);
    background: var(--tl-paper-deep);
  }
  .tl-appbar-sheet-foot .jscms-lang-switcher .list-inline-item { flex: 1 1 0; margin: 0; }
  /* The core prints Bootstrap's colour utilities on these links (text-reset,
     text-body), and those carry !important. */
  .tl-appbar-sheet-foot .jscms-lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 36px;
    border-radius: var(--tl-radius-sm);
    color: var(--tl-muted) !important;
    font-size: .875rem;
    font-weight: 600 !important;
    text-decoration: none;
  }
  .tl-appbar-sheet-foot .jscms-lang-switcher a > span { margin: 0 !important; font-size: 1rem; line-height: 1; }
  .tl-appbar-sheet-foot .jscms-lang-switcher a[aria-current] {
    background: var(--tl-panel);
    color: var(--tl-ink) !important;
    box-shadow: 0 0 0 1px var(--tl-hairline), var(--tl-lift);
  }

  .tl-appbar-sheet-foot .tl-appbar-icon { flex: none; width: 44px; height: 44px; }

  /* Three languages or more: the names no longer fit side by side (at 360
     three leave each about 85px, and "Deutsch" with its flag needs more), so
     each segment shows its flag and code. Five fit on one row at 360; past
     that they wrap onto a second row rather than off the card. The name
     stays in the link for screen readers, set at size 0; the code is the
     core's own data-lang. */
  .tl-appbar-sheet-foot .jscms-lang-switcher:has(> li:nth-child(3)) { flex-wrap: wrap; }
  .tl-appbar-sheet-foot .jscms-lang-switcher:has(> li:nth-child(3)) .list-inline-item { flex: 1 0 2.75rem; }
  .tl-appbar-sheet-foot .jscms-lang-switcher:has(> li:nth-child(3)) a { gap: 0; font-size: 0; }
  .tl-appbar-sheet-foot .jscms-lang-switcher:has(> li:nth-child(3)) a::after {
    content: attr(data-lang);
    /* The spacing is here, not a flex gap: the name, at size 0, is still a
       flex item, and a gap each side of it pushed the code off its flag. */
    margin-left: .3125rem;
    font-family: var(--tl-font-mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
}


/* ---------- the account dropdown ----------
   [[jscms_dashboard_menu]] is core: it renders the avatar, an unread badge,
   the notifications list that dashboard-menu.js fills in, and the profile
   links as an accordion. It replaced two hand-rolled icons that only linked
   to the profile page and to logout. Only the surface is styled here; the
   markup and behaviour belong to the core. */

.jscms-dashboard-toggle {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 .5rem 0 .25rem;
  border: 1px solid var(--tl-hairline);
  border-radius: var(--tl-radius);
  background: var(--tl-panel);
  color: var(--tl-ink);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}
.jscms-dashboard-toggle:hover { border-color: var(--tl-dim); color: var(--tl-ink); }

.jscms-dashboard-avatar { display: inline-flex; align-items: center; }
.jscms-dashboard-avatar img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* The unread count. Danger red rather than --tl-live: amber and the CTA
   orange both mean "out there right now" in this palette, and a notification
   count is not that. */
.jscms-dashboard-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--tl-danger);
  color: var(--tl-white);
  font-family: var(--tl-font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--tl-panel);
}

.jscms-dashboard-menu {
  width: 320px;
  max-width: 92vw;
  max-height: min(78vh, 560px);
  overflow-y: auto;
  margin-top: .5rem;
  padding: .5rem;
  border: 1px solid var(--tl-hairline);
  border-radius: var(--tl-radius-lg);
  background: var(--tl-panel);
  box-shadow: var(--tl-lift-lg);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.jscms-dashboard-menu::-webkit-scrollbar { width: 0; height: 0; display: none; }

.jscms-dashboard-menu .accordion,
.jscms-dashboard-menu .accordion-item { background: transparent; border: 0; }
.jscms-dashboard-menu .accordion-button {
  background: transparent;
  color: var(--tl-muted);
  font-size: .8125rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: var(--tl-radius-sm);
  box-shadow: none;
}
.jscms-dashboard-menu .accordion-button:not(.collapsed) { background: transparent; color: var(--tl-accent); }
.jscms-dashboard-menu .accordion-button:focus { outline: 0; box-shadow: none; }
.jscms-dashboard-menu .accordion-button::after { width: .9rem; height: .9rem; background-size: .9rem; }

.jscms-dashboard-menu .dropdown-item {
  padding: .45rem .75rem;
  border-radius: var(--tl-radius-sm);
  color: var(--tl-ink);
  font-size: .875rem;
}
.jscms-dashboard-menu .dropdown-item:hover,
.jscms-dashboard-menu .dropdown-item:focus { background: var(--tl-paper-deep); color: var(--tl-accent); }
.jscms-dashboard-menu .dropdown-item.text-danger:hover,
.jscms-dashboard-menu .dropdown-item.text-danger:focus { background: var(--tl-danger-bg); color: var(--tl-danger); }

.jscms-dashboard-notify .jscms-bell-head { padding: .25rem .5rem .5rem; }
.jscms-dashboard-notify .jscms-bell-list {
  max-height: 260px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.jscms-dashboard-notify .jscms-bell-list::-webkit-scrollbar { width: 0; height: 0; display: none; }
.jscms-dashboard-notify .jscms-bell-item { border-radius: var(--tl-radius-sm); }
