/* PSRU application shell
 * Load after psru-theme.css and before psru-components.css.
 * Owns layout, navigation, header, responsive shell, and shared focus behavior.
 */

.guide-header {
  backdrop-filter: blur(14px);
  background: rgba(249, 252, 251, .88);
  border-bottom: 1px solid rgba(220, 233, 228, .92);
  box-shadow: 0 .2rem 1.3rem rgba(6, 59, 47, .045);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-main > section { margin-inline: auto; max-width: 1540px; }

.app-shell {
  --dashboard-sidebar-expanded: 18.5rem;
  --dashboard-sidebar-collapsed: 5.4rem;
}

.sidebar-panel {
  --sidebar-text-primary: #fff;
  --sidebar-text-secondary: rgba(255, 255, 255, .9);
  --sidebar-text-muted: rgba(255, 255, 255, .74);
  background:
    radial-gradient(circle at 18% 88%, rgba(208, 161, 59, .17), transparent 12rem),
    linear-gradient(165deg, var(--psru-green-950) 0%, var(--psru-green-900) 58%, #0a4939 100%);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.app-sidebar-desktop {
  border-right: 0;
  box-shadow: .85rem 0 2.8rem rgba(6, 59, 47, .1);
  flex: 0 0 var(--dashboard-sidebar-expanded);
  height: 100vh;
  min-height: 100vh;
  padding: 1rem .9rem;
  position: sticky;
  top: 0;
  transition: flex-basis .2s ease, width .2s ease;
  width: var(--dashboard-sidebar-expanded);
}

.sidebar-panel::before {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  content: "";
  height: 15rem;
  left: -8rem;
  position: absolute;
  top: 40%;
  width: 15rem;
  z-index: -1;
}

.sidebar-panel::after {
  background: rgba(255, 255, 255, .055);
  border-radius: 38% 62% 58% 42%;
  content: "";
  height: 12rem;
  position: absolute;
  right: -7.5rem;
  top: 5.2rem;
  transform: rotate(18deg);
  width: 12rem;
  z-index: -1;
}

/* Approved crest slot. Keep .psru-brand-mark in the markup as the text fallback
 * until a reviewed local image is supplied. An <img> may use this class directly. */
.psru-brand-logo {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 1.05rem 1.05rem 1.05rem .35rem;
  box-shadow: 0 .55rem 1.3rem rgba(0, 0, 0, .16);
  display: block;
  flex: 0 0 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  padding: .28rem;
  width: 3.25rem;
}

.sidebar-topbar {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  min-height: 3.25rem;
}

.sidebar-collapse-button,
.guide-menu-toggle {
  align-items: center;
  border: 0;
  display: inline-flex;
  justify-content: center;
}

.sidebar-collapse-button {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: .75rem;
  color: var(--sidebar-text-secondary);
  flex: 0 0 2.75rem;
  height: 2.75rem;
  transition: background-color .15s ease, transform .2s ease;
}

.sidebar-collapse-button:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.sidebar-workspace {
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: .95rem;
  display: grid;
  gap: .1rem;
  margin: .85rem 0 1rem;
  padding: .72rem .78rem;
}

.sidebar-workspace span {
  color: var(--sidebar-text-muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sidebar-workspace strong { color: #fff; font-size: .82rem; line-height: 1.4; }

.sidebar-workspace small { color: var(--sidebar-text-secondary); font-size: .68rem; line-height: 1.45; }

.sidebar-edition {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99rem;
  color: var(--sidebar-text-secondary);
  display: inline-flex;
  font-size: .68rem;
  font-weight: 600;
  gap: .42rem;
  margin-top: 1.15rem;
  padding: .38rem .65rem;
}

.sidebar-edition i { color: var(--psru-gold-500); }

.sidebar-navigation {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 .16rem .8rem 0;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
  scrollbar-width: thin;
}

.sidebar-nav-group + .sidebar-nav-group { margin-top: .85rem; }

.sidebar-nav-label {
  color: var(--sidebar-text-muted);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .08em;
  margin: 0 .7rem .34rem;
  text-transform: uppercase;
}

.sidebar-panel .nav-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: .8rem;
  color: var(--sidebar-text-secondary);
  display: flex;
  font-size: .86rem;
  font-weight: 620;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .52rem .6rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  width: 100%;
}

.sidebar-nav-icon {
  align-items: center;
  background: rgba(255, 255, 255, .07);
  border-radius: .68rem;
  color: var(--sidebar-text-secondary);
  display: inline-flex;
  flex: 0 0 2rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.sidebar-nav-copy { display: grid; flex: 1 1 auto; gap: .02rem; min-width: 0; }

.sidebar-nav-title { line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-nav-meta { color: var(--sidebar-text-muted); font-size: .65rem; font-weight: 550; }

.sidebar-nav-count { color: var(--sidebar-text-muted); font-size: .66rem; font-variant-numeric: tabular-nums; }

.sidebar-panel .nav-link:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transform: translateX(.14rem);
}

.sidebar-panel .nav-link.active {
  background: linear-gradient(105deg, #fff 0%, #f3fbf7 100%);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: inset .22rem 0 0 var(--psru-gold-500), 0 .55rem 1.25rem rgba(0, 0, 0, .13);
  color: var(--psru-green-950);
}

.sidebar-panel .nav-link.active .sidebar-nav-icon {
  background: linear-gradient(145deg, var(--psru-gold-100), var(--psru-green-50));
  color: var(--psru-gold-600);
}

.sidebar-panel .nav-link.active .sidebar-nav-meta,
.sidebar-panel .nav-link.active .sidebar-nav-count { color: var(--psru-green-700); }

.sidebar-status {
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .76);
  flex: 0 0 auto;
  padding-top: .75rem;
}

.sidebar-status > div {
  align-items: center;
  display: flex;
  gap: .65rem;
  margin-top: .48rem;
}

.sidebar-status i {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border-radius: .55rem;
  color: var(--psru-gold-500);
  display: inline-flex;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.app-shell.sidebar-collapsed .app-sidebar-desktop {
  flex-basis: var(--dashboard-sidebar-collapsed);
  padding-inline: .7rem;
  width: var(--dashboard-sidebar-collapsed);
}

.app-shell.sidebar-collapsed .sidebar-topbar { flex-direction: column; gap: .55rem; }

.app-shell.sidebar-collapsed .sidebar-collapse-button { transform: rotate(180deg); }

.app-shell.sidebar-collapsed .sidebar-brand-copy,
.app-shell.sidebar-collapsed .sidebar-edition,
.app-shell.sidebar-collapsed .sidebar-workspace,
.app-shell.sidebar-collapsed .sidebar-nav-label,
.app-shell.sidebar-collapsed .sidebar-nav-copy,
.app-shell.sidebar-collapsed .sidebar-nav-count,
.app-shell.sidebar-collapsed .sidebar-status { display: none; }

.app-shell.sidebar-collapsed .sidebar-navigation { margin-top: 1rem; padding-right: 0; width: 100%; }

.app-shell.sidebar-collapsed .sidebar-nav-group + .sidebar-nav-group { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: .6rem; padding-top: .6rem; }

.app-shell.sidebar-collapsed .sidebar-panel .nav-link { gap: 0; justify-content: center; min-height: 3rem; padding: .45rem; }

.app-shell.sidebar-collapsed .sidebar-panel .nav-link:hover { transform: none; }

.guide-mobile-sidebar {
  --bs-offcanvas-width: min(20rem, calc(100vw - 1.25rem));
  border-right: 0 !important;
  box-shadow: 1rem 0 3rem rgba(6, 36, 29, .24);
}

.sidebar-mobile-header { border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 1rem; }

.sidebar-mobile-header .psru-brand-mark,
.sidebar-mobile-header .psru-brand-logo { flex-basis: 2.7rem; height: 2.7rem; width: 2.7rem; }

.sidebar-mobile-header .btn-close { height: 2.75rem; margin: 0; opacity: .78; padding: 0; width: 2.75rem; }

.sidebar-mobile-body { display: flex; flex-direction: column; min-height: 0; padding: .25rem .85rem 1rem; }

.guide-mobile-sidebar .sidebar-workspace { margin-top: .75rem; }

.guide-mobile-sidebar .sidebar-navigation { margin-right: -.25rem; padding-right: .35rem; }

.guide-mobile-sidebar .sidebar-status { margin-top: auto; }

.guide-menu-toggle {
  background: var(--psru-green-950);
  border-radius: .8rem;
  color: #fff;
  flex: 0 0 2.75rem;
  height: 2.75rem;
}

.guide-menu-toggle:hover { background: var(--psru-green-800); color: #fff; }

.guide-mobile-section { color: var(--psru-green-700); font-size: .7rem; font-weight: 650; margin-top: .08rem; }

.guide-header-tools { max-width: 100%; }

.guide-filters {
  background: #fff;
  border: 1px solid rgba(220, 233, 228, .95);
  border-radius: 1.05rem;
  box-shadow: 0 .45rem 1.35rem rgba(6, 59, 47, .065);
  padding: .32rem;
}

.guide-search-wrap { min-width: 16rem; position: relative; }

.guide-search-wrap > i {
  color: var(--psru-ink-500);
  left: .95rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.guide-search-wrap .form-control { min-width: 15rem; padding-left: 2.55rem; }

.guide-filters .form-select { min-width: 11rem; }

.guide-filters .form-control,
.guide-filters .form-select { background-color: #f5faf8; border-color: transparent; }

.sidebar-panel .nav-link:focus-visible,
.sidebar-collapse-button:focus-visible,
.guide-menu-toggle:focus-visible,
.guide-panel button:focus-visible,
.guide-panel a:focus-visible,
.guide-header input:focus-visible,
.guide-header select:focus-visible {
  outline: .2rem solid #f2c14e;
  outline-offset: .18rem;
}

@media (max-width: 991.98px) {
  .guide-header { position: static; }

  .guide-header-tools { align-items: stretch !important; width: 100%; }

  .guide-filters { width: 100%; }

  .guide-search-wrap,
    .guide-filters .form-control,
    .guide-filters .form-select { flex: 1 1 12rem; min-width: 0; }

  .guide-title-block { width: 100%; }

  .guide-title-block .psru-brand-mark,
  .guide-title-block .psru-brand-logo { box-shadow: none; flex-basis: 2.75rem; height: 2.75rem; width: 2.75rem; }
}

@media (max-width: 575.98px) {
  body.psru-theme { font-size: .95rem; }

  .app-main > section { padding: .75rem !important; }

  .guide-header { padding: .72rem .75rem !important; }

  .guide-title-block .psru-eyebrow,
    .guide-page-subtitle,
    .guide-header-tools .psru-template-chip { display: none; }

  .guide-menu-toggle { flex-basis: 2.75rem; }

  .psru-page-title { font-size: 1.04rem; line-height: 1.25; }

  .guide-header-tools { gap: .55rem !important; }

  .guide-filters {
      display: grid !important;
      gap: .4rem !important;
      grid-template-columns: minmax(0, 1.4fr) minmax(7.4rem, .8fr);
      padding: .25rem;
    }

  .guide-search-wrap { width: 100%; }

  .guide-search-wrap .form-control { width: 100%; }

  .guide-filters .form-control,
    .guide-filters .form-select { font-size: .82rem; min-height: 2.75rem; padding-right: 1.9rem; }

  .guide-search-wrap > i { left: .75rem; }

  .guide-search-wrap .form-control { padding-left: 2.15rem; }
}

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
}

.guide-header {
  padding: 0 1.5rem;
}

.guide-header-primary {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 5.25rem;
  padding-block: .75rem;
}

.guide-title-cluster,
.guide-header-actions,
.guide-user-compact,
.guide-commandbar {
  align-items: center;
  display: flex;
}

.guide-title-cluster { gap: .85rem; min-width: 0; }

.guide-title-block { min-width: 0; }

.guide-header-actions { flex: 0 0 auto; gap: .65rem; }

.guide-breadcrumb { margin-bottom: .2rem; }

.guide-breadcrumb ol {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-breadcrumb li {
  color: var(--psru-ink-500);
  font-size: .68rem;
  font-weight: 650;
}

.guide-breadcrumb li + li::before {
  color: #9aaca6;
  content: "/";
  margin-right: .35rem;
}

.guide-breadcrumb li[aria-current="page"] { color: var(--psru-green-800); }

.guide-notification-button,
.guide-filter-clear,
.guide-current-favorite {
  align-items: center;
  background: var(--psru-surface);
  border: 1px solid var(--psru-border);
  color: var(--psru-ink-700);
  display: inline-flex;
  justify-content: center;
}

.guide-notification-button {
  border-radius: .85rem;
  height: 2.75rem;
  position: relative;
  width: 2.75rem;
}

.guide-notification-button > span {
  align-items: center;
  background: var(--psru-gold-500);
  border: 2px solid #fff;
  border-radius: 99rem;
  color: #3e2b05;
  display: flex;
  font-size: .58rem;
  font-weight: 800;
  height: 1.15rem;
  justify-content: center;
  min-width: 1.15rem;
  padding-inline: .15rem;
  position: absolute;
  right: -.32rem;
  top: -.28rem;
}

.guide-user-compact {
  background: #fff;
  border: 1px solid var(--psru-border);
  border-radius: .95rem;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .3rem .75rem .3rem .35rem;
}

.guide-user-compact > span {
  align-items: center;
  background: var(--psru-green-100);
  border-radius: .72rem;
  color: var(--psru-green-900);
  display: inline-flex;
  flex: 0 0 2.15rem;
  font-weight: 800;
  height: 2.15rem;
  justify-content: center;
}

.guide-user-compact > div { display: grid; line-height: 1.25; }

.guide-user-compact strong { color: var(--psru-ink-900); font-size: .76rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.guide-user-compact small { color: var(--psru-ink-500); font-size: .62rem; }

.guide-commandbar {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--psru-border);
  border-radius: 1.05rem 1.05rem 0 0;
  box-shadow: 0 -.15rem 1rem rgba(6, 59, 47, .025);
  gap: .5rem;
  margin-bottom: -1px;
  padding: .45rem;
}

.guide-commandbar .guide-search-wrap { flex: 1 1 22rem; min-width: 13rem; }

.guide-commandbar .guide-search-wrap .form-control { min-width: 0; width: 100%; }

.guide-commandbar .form-control,
.guide-commandbar .form-select {
  background-color: #f5f9f7;
  border-color: transparent;
}

.guide-commandbar .form-select { flex: 0 1 12rem; min-width: 10rem; }

.guide-filter-clear {
  border-radius: .8rem;
  flex: 0 0 2.75rem;
  height: 2.75rem;
  opacity: .45;
  width: 2.75rem;
}

.guide-filter-clear.is-active { color: var(--psru-green-900); opacity: 1; }

.guide-filter-result {
  color: var(--psru-ink-500);
  flex: 0 0 auto;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  padding-inline: .4rem;
  white-space: nowrap;
}

.sidebar-navigation { padding-bottom: .5rem; }

.sidebar-nav-group {
  border: 0;
  display: block;
}

.sidebar-nav-group + .sidebar-nav-group { margin-top: .45rem; }

.sidebar-group-toggle {
  align-items: center;
  border-radius: .65rem;
  color: var(--sidebar-text-muted);
  cursor: pointer;
  display: flex;
  font-size: .64rem;
  font-weight: 750;
  justify-content: space-between;
  letter-spacing: .075em;
  list-style: none;
  min-height: 2.35rem;
  padding: .4rem .68rem;
  text-transform: uppercase;
}

.sidebar-group-toggle::-webkit-details-marker { display: none; }

.sidebar-group-toggle:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.sidebar-group-toggle i { font-size: .62rem; transition: transform .18s ease; }

.sidebar-nav-group:not([open]) .sidebar-group-toggle i { transform: rotate(-90deg); }

.sidebar-nav-items { padding-top: .15rem; }

.sidebar-nav-row { align-items: center; display: flex; gap: .25rem; position: relative; }

.sidebar-nav-row .nav-link { min-width: 0; }

.sidebar-favorite-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: .65rem;
  color: var(--sidebar-text-muted);
  display: inline-flex;
  flex: 0 0 2.5rem;
  height: 2.75rem;
  justify-content: center;
  opacity: 0;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.sidebar-nav-row:hover .sidebar-favorite-button,
.sidebar-favorite-button:focus-visible,
.sidebar-favorite-button[aria-pressed="true"] { opacity: 1; }

.sidebar-favorite-button:hover,
.sidebar-favorite-button[aria-pressed="true"] { background: rgba(255, 255, 255, .08); color: var(--psru-gold-500); }

.sidebar-nav-badge,
.sidebar-nav-ready {
  align-items: center;
  border-radius: 99rem;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .64rem;
  font-weight: 800;
  justify-content: center;
  min-height: 1.35rem;
  min-width: 1.35rem;
}

.sidebar-nav-badge { background: rgba(242, 212, 141, .16); color: #f6dc9b; }

.sidebar-nav-ready { color: #bff1dd; }

.sidebar-panel .nav-link.active .sidebar-nav-badge { background: var(--psru-gold-100); color: #674d14; }

.sidebar-panel .nav-link.active .sidebar-nav-ready { color: var(--psru-green-700); }

.sidebar-smart-section {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: .8rem;
  margin: 0 0 .55rem;
  padding: .45rem;
}

.sidebar-smart-section[hidden] { display: none; }

.sidebar-smart-heading {
  align-items: center;
  color: var(--sidebar-text-muted);
  display: flex;
  font-size: .62rem;
  font-weight: 700;
  gap: .4rem;
  padding: .15rem .35rem .35rem;
  text-transform: uppercase;
}

.sidebar-smart-heading i { color: var(--psru-gold-500); }

.sidebar-shortcuts { display: flex; flex-wrap: wrap; gap: .3rem; }

.sidebar-shortcut {
  align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid transparent;
  border-radius: .58rem;
  color: var(--sidebar-text-secondary);
  display: inline-flex;
  font-size: .68rem;
  gap: .38rem;
  min-height: 2.35rem;
  min-width: 0;
  padding: .35rem .55rem;
}

.sidebar-shortcut:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.sidebar-shortcut span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, .13);
  flex: 0 0 auto;
  padding-top: .65rem;
}

.sidebar-runtime-summary {
  display: grid;
  gap: .3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .55rem;
}

.sidebar-runtime-summary span {
  align-items: center;
  background: rgba(255, 255, 255, .055);
  border-radius: .65rem;
  color: var(--sidebar-text-secondary);
  display: flex;
  font-size: .59rem;
  gap: .28rem;
  min-width: 0;
  padding: .35rem .42rem;
}

.sidebar-runtime-summary i { color: var(--psru-gold-500); }

.sidebar-runtime-summary strong { color: #fff; font-size: .7rem; }

.sidebar-user-panel { position: relative; }

.sidebar-user-panel > summary {
  align-items: center;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .85rem;
  cursor: pointer;
  display: flex;
  gap: .6rem;
  list-style: none;
  min-height: 3.25rem;
  padding: .4rem .55rem;
}

.sidebar-user-panel > summary::-webkit-details-marker { display: none; }

.sidebar-user-avatar {
  align-items: center;
  background: #fff;
  border-radius: .68rem;
  color: var(--psru-green-900);
  display: inline-flex;
  flex: 0 0 2.15rem;
  font-size: .76rem;
  font-weight: 800;
  height: 2.15rem;
  justify-content: center;
  position: relative;
}

.sidebar-user-avatar > span {
  background: #4ed19e;
  border: 2px solid var(--psru-green-900);
  border-radius: 50%;
  bottom: -.08rem;
  height: .58rem;
  position: absolute;
  right: -.08rem;
  width: .58rem;
}

.sidebar-user-copy { display: grid; flex: 1; line-height: 1.25; min-width: 0; }

.sidebar-user-copy strong { color: #fff; font-size: .73rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-user-copy small { color: var(--sidebar-text-muted); font-size: .61rem; }

.sidebar-user-panel > summary > i { color: var(--sidebar-text-muted); }

.sidebar-user-menu {
  background: #fff;
  border-radius: .8rem;
  color: var(--psru-ink-900);
  display: grid;
  gap: .45rem;
  margin-top: .4rem;
  padding: .65rem;
}

.sidebar-user-menu > div { align-items: center; display: flex; font-size: .68rem; justify-content: space-between; }

.sidebar-user-menu > div span { color: var(--psru-ink-500); }

.sidebar-account-action {
  align-items: center;
  background: var(--psru-green-50);
  border: 0;
  border-radius: .55rem;
  color: var(--psru-green-900);
  display: flex;
  font-size: .7rem;
  font-weight: 700;
  gap: .45rem;
  justify-content: center;
  min-height: 2.35rem;
  text-decoration: none;
  width: 100%;
}

.sidebar-account-action:disabled { color: var(--psru-ink-500); opacity: .68; }

.app-shell.sidebar-collapsed .sidebar-group-toggle,
.app-shell.sidebar-collapsed .sidebar-smart-section,
.app-shell.sidebar-collapsed .sidebar-favorite-button,
.app-shell.sidebar-collapsed .sidebar-runtime-summary,
.app-shell.sidebar-collapsed .sidebar-user-copy,
.app-shell.sidebar-collapsed .sidebar-user-panel > summary > i,
.app-shell.sidebar-collapsed .sidebar-user-menu { display: none; }

.app-shell.sidebar-collapsed .sidebar-nav-group:not([open]) > .sidebar-nav-items { display: flex; }

.app-shell.sidebar-collapsed .sidebar-nav-items { padding-top: 0; }

.app-shell.sidebar-collapsed .sidebar-user-panel > summary { justify-content: center; padding: .35rem; }

.app-shell.sidebar-collapsed .sidebar-footer { padding-top: .65rem; }

@media (min-width: 992px) {
  .guide-header { padding-inline: 2rem; }
}

@media (max-width: 991.98px) {
  .guide-header { padding: 0 1rem .8rem; }

  .guide-header-primary { min-height: 4.6rem; }

  .guide-user-compact { display: none; }

  .sidebar-mobile-body { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }

  .sidebar-favorite-button { opacity: 1; }
}

@media (max-width: 575.98px) {
  .guide-header { padding: 0 .75rem .65rem; }

  .guide-header-primary { gap: .45rem; min-height: 4.15rem; padding-block: .55rem; }

  .guide-title-cluster { gap: .55rem; }

  .guide-header-actions { gap: .4rem; }

  .guide-notification-button { height: 2.75rem; width: 2.75rem; }

  .guide-page-subtitle { display: none; }

  .guide-breadcrumb li:not(:last-child) { display: none; }

  .guide-breadcrumb li + li::before { display: none; }

  .guide-breadcrumb li { font-size: .64rem; }

  .guide-commandbar {
      border-radius: .9rem;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 2.75rem;
      padding: .35rem;
    }

  .guide-commandbar .guide-search-wrap { grid-column: 1 / -1; min-width: 0; }

  .guide-commandbar .form-select { min-width: 0; width: 100%; }

  .guide-filter-result { grid-column: 1 / -1; padding: .05rem .45rem .2rem; }

  .sidebar-shortcut { min-height: 2.75rem; }

  .sidebar-group-toggle { min-height: 2.75rem; }
}
