/* One navigation column at every size. Loaded after legacy/theme rules. */
.layout { grid-template-columns: 288px minmax(0, 1fr); }
.layout > .sidebar {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  padding: 24px 14px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar > .brand-row { flex: 0 0 auto; margin: 0 12px 20px; }
.sidebar > .nav {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 3px 5px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #b77e40 transparent;
  scrollbar-gutter: stable;
}
.sidebar > .nav::-webkit-scrollbar { display: block; width: 6px; }
.sidebar > .nav::-webkit-scrollbar-thumb { background: #b77e40; border-radius: 8px; }
.sidebar .nav-category,
.sidebar .nav-category[open] {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 12px;
}
.sidebar .nav-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  padding: 12px 12px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .12em;
  font-weight: 700;
  color: #dab894;
  border-radius: 8px;
}
.sidebar .nav-category > summary::-webkit-details-marker { display: none; }
.sidebar .nav-category > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.sidebar .nav-category[open] > summary::after { transform: rotate(45deg); }
.sidebar .nav-category .nav-subtitle {
  display: block;
  padding: 14px 12px 7px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: #d4af86;
}
.sidebar .nav button[data-view] {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  height: auto;
  margin: 3px 0;
  padding: 11px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #e1c7ab;
  white-space: normal;
  overflow: visible;
}
.sidebar .nav button[data-view] > span:last-child {
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
.sidebar .nav button[data-view] .icon,
.sidebar .nav button[data-view] .icon svg { width: 20px; height: 20px; }
.sidebar .nav button[data-view].active {
  color: #f3f7f1;
  background: #4d4031;
  border-color: #ca9c6a;
  box-shadow: inset 3px 0 0 var(--nav-accent, #ddc0a0);
}
.sidebar .nav button[data-view].active::after { display: none; }
.sidebar .nav button[data-view]:hover { color: #ffffff; background: #42362a; }
.sidebar .nav button[data-view]:focus-visible,
.sidebar .nav-category > summary:focus-visible { outline: 2px solid #e3cbb0; outline-offset: -2px; }
.sidebar > .sidebar-bottom {
  position: static;
  display: grid;
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 0;
  gap: 12px;
}
.sidebar-bottom .logout { display: flex; align-items: center; gap: 8px; min-height: 36px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .layout { grid-template-columns: 264px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .layout { display: block; }
  .layout > .sidebar { position: relative; height: auto; padding: 16px 14px 10px; }
  .sidebar > .brand-row { margin: 0 6px 12px; }
  .sidebar > .nav { flex: none; max-height: 42vh; max-height: 42dvh; }
  .sidebar > .sidebar-bottom { margin-top: 8px; }
  .sidebar-bottom .profile-mini { display: none; }
  .sidebar-bottom .logout { justify-self: end; }
}
