/* LIGHTC_CP_NAV_R1 — sidebar visibility, scrolling and native details UX.
   Loaded after the existing app and premium styles. Navigation permissions are untouched. */
html body .cpr3-shell .cpr3-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
html body .cpr3-shell .cpr3-sidebar > .cpr3-sidebar-top,
html body .cpr3-shell .cpr3-sidebar > .cpr3-home-link,
html body .cpr3-shell .cpr3-sidebar > .r19-favorites,
html body .cpr3-shell .cpr3-sidebar > .lc-nav-tools,
html body .cpr3-shell .cpr3-sidebar > .cpr3-sidebar-foot {
  flex-shrink: 0 !important;
}
html body .cpr3-shell .cpr3-sidebar .cpr3-nav {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-padding-block: 12px;
  scrollbar-width: auto;
  scrollbar-color: rgba(178, 208, 228, .66) rgba(255,255,255,.045);
  padding: 6px 4px 15px !important;
  border-block-start: 1px solid rgba(255,255,255,.07);
  border-block-end: 1px solid rgba(255,255,255,.10);
}
html body .cpr3-shell .cpr3-sidebar .cpr3-nav::-webkit-scrollbar { width: 8px; }
html body .cpr3-shell .cpr3-sidebar .cpr3-nav::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 12px; }
html body .cpr3-shell .cpr3-sidebar .cpr3-nav::-webkit-scrollbar-thumb { background: rgba(178,208,228,.5); border-radius: 12px; }
html body .cpr3-shell .cpr3-sidebar .cpr3-sidebar-foot {
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}
html body .cpr3-shell .cpr3-sidebar .r19-favorites { max-height: 126px; overflow-y: auto; }
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-section { min-width: 0; }
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-section > .cpr3-nav-summary {
  min-width: 0;
  outline-offset: 1px;
  border: 1px solid transparent;
}
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-summary .cpr2-nav-section-title {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-section[open] > .cpr3-nav-summary {
  color: #fff;
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.09);
}
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-section.is-current > .cpr3-nav-summary {
  color: #fff !important;
  border-color: rgba(255,174,80,.34);
  background: rgba(255,174,80,.12) !important;
}
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-link.active {
  box-shadow: inset 3px 0 0 rgba(255,174,80,.9);
}
html[dir="rtl"] body .cpr3-shell .cpr3-sidebar .cpr3-nav-link.active { box-shadow: inset -3px 0 0 rgba(255,174,80,.9); }
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-section[data-lc-hidden="true"],
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-link[data-lc-hidden="true"] { display: none !important; }
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-summary:focus-visible,
html body .cpr3-shell .cpr3-sidebar .cpr3-nav-link:focus-visible,
html body .cpr3-shell .cpr3-sidebar .lc-nav-clear:focus-visible,
html body .cpr3-shell .cpr3-sidebar .lc-nav-search:focus-visible { outline: 2px solid #ffd292 !important; outline-offset: 2px; }
.lc-nav-tools[hidden], .lc-nav-hint[hidden], .lc-nav-clear[hidden] { display: none !important; }
html body .cpr3-shell .cpr3-sidebar .lc-nav-tools {
  padding: 3px 1px 2px;
  display: grid;
  gap: 4px;
}
html body .cpr3-shell .cpr3-sidebar .lc-nav-search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  padding-inline: 10px 5px;
  background: rgba(255,255,255,.06);
  min-height: 37px;
}
html body .cpr3-shell .cpr3-sidebar .lc-nav-search-wrap:focus-within { border-color: rgba(255,194,119,.65); }
html body .cpr3-shell .cpr3-sidebar .lc-nav-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  font-family: inherit;
  font-size: 12px;
  direction: inherit;
}
html body .cpr3-shell .cpr3-sidebar .lc-nav-search::placeholder { color: rgba(255,255,255,.55); }
html body .cpr3-shell .cpr3-sidebar .lc-nav-clear {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  color: #fff;
  cursor: pointer;
}
html body .cpr3-shell .cpr3-sidebar .lc-nav-feedback {
  display: block;
  min-height: 14px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  padding-inline: 7px;
}
html body .cpr3-shell .cpr3-sidebar .lc-nav-feedback:empty { display: none; }
html body .cpr3-shell .cpr3-sidebar .lc-nav-hint {
  color: rgba(255,255,255,.71);
  text-align: center;
  font-size: 10px;
  padding: 1px 4px;
  flex: 0 0 auto;
}
@media (max-height: 650px) {
  html body .cpr3-shell .cpr3-sidebar { padding-block: 9px !important; gap: 7px !important; }
  html body .cpr3-shell .cpr3-sidebar .r19-favorites { max-height: 70px; }
  html body .cpr3-shell .cpr3-sidebar .cpr3-sidebar-foot { padding: 7px !important; }
}
@media (max-width: 1100px) {
  html body .cpr3-shell .cpr3-sidebar { height: 100dvh !important; max-height: 100dvh !important; }
  html body .cpr3-shell .cpr3-sidebar .cpr3-nav { flex: 1 1 0% !important; min-height: 0 !important; }
}
