:root {
  --nav-text: #46535b;
  --nav-accent: #245edb;
  --nav-line: #e4e9ec;
}
body {
  background: #f5f7f9;
  letter-spacing: 0;
}
.shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
}
.side {
  background: #fff;
  color: var(--nav-text);
  border-right: 1px solid var(--nav-line);
  padding: 0;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 24px 20px 22px;
  min-height: 92px;
  flex-shrink: 0;
  font-size: 17px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #245edb;
}
.brand-mark img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
}
.brand strong {
  color: #172a32;
  display: block;
  font-size: 17px;
  font-weight: 750;
}
.brand small {
  display: block;
  font-size: 11px;
  color: #7a878e;
  margin-top: 3px;
  font-weight: 500;
}
.nav {
  padding: 0 12px 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.nav-group {
  border: 0;
  padding: 0;
  margin: 5px 0 12px;
}
.nav-group > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 10px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: #7b878d;
  font-weight: 650;
  border-radius: 5px;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > summary:hover {
  background: #f5f7f8;
  color: #2e434b;
}
.nav-group > summary .group-icon {
  width: 15px;
  height: 15px;
  opacity: 0.5;
}
.nav-group > summary .chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: transform 0.15s;
}
.nav-group[open] > summary .chevron {
  transform: rotate(90deg);
}
.nav-items {
  display: grid;
  gap: 3px;
  margin-top: 3px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 13px;
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  text-align: left;
  color: var(--nav-text);
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  line-height: 1.4;
}
.nav button img,
.sidebar-footer img {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  flex-shrink: 0;
}
.nav button:hover {
  background: #e9f0ff;
  color: #1d4faa;
}
.nav button.active {
  background: var(--nav-accent);
  color: #fff;
  box-shadow: none;
  font-weight: 650;
}
.nav button.active img {
  opacity: 1;
  filter: brightness(0) invert(1);
}
.nav button:focus-visible,
.nav summary:focus-visible,
.sidebar-footer button:focus-visible,
.shell-icon-button:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 2px;
}
.sidebar-footer {
  border-top: 1px solid var(--nav-line);
  margin: 0 16px;
  padding: 14px 0;
  flex-shrink: 0;
}
.sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #69767c;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  text-align: left;
}
.sidebar-footer button:hover {
  color: #a82c3b;
  background: #fff2f2;
}
.mobile-bar,
.sidebar-backdrop,
#sidebarClose {
  display: none;
}
.shell-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dce4e5;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.shell-icon-button img {
  width: 19px;
  height: 19px;
  opacity: 0.7;
}
.main {
  min-width: 0;
  padding: 28px 30px;
  overflow: visible;
}
@media (max-width: 1100px) and (min-width: 801px) {
  .shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
  .main {
    padding: 24px 20px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    height: 60px;
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid var(--nav-line);
  }
  .mobile-bar strong {
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100dvh;
    width: min(288px, calc(100vw - 40px));
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.18s ease,
      visibility 0.18s;
  }
  .drawer-open .side {
    transform: translateX(0);
    visibility: visible;
  }
  .drawer-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #14232966;
    border: 0;
    padding: 0;
    width: 100%;
    height: 100%;
  }
  .drawer-lock {
    overflow: hidden;
  }
  .brand {
    padding: 20px 16px;
    min-height: 84px;
  }
  #sidebarClose {
    display: inline-grid;
    margin-left: auto;
    border: 0;
  }
  .nav {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 12px 16px;
    scrollbar-width: thin;
  }
  .nav button {
    width: 100%;
    white-space: normal;
  }
  .main {
    padding: 20px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .side,
  .nav-group > summary .chevron {
    transition: none;
  }
}
