/* Engineer adapters; shared theme, colors, and chrome are copied unchanged. */
.auth-card { max-width: 34rem; }
.theme-icon { width: 1.25rem; height: 1.25rem; }
.theme-icon-sun { display: none; }
[data-bs-theme="dark"] .theme-icon-sun { display: block; }
[data-bs-theme="dark"] .theme-icon-moon { display: none; }
.form-fields p { margin-bottom: 1rem; }
.form-fields label { display: block; margin-bottom: .35rem; }
.form-fields .helptext { display: block; font-size: .8rem; color: var(--app-muted); margin-top: .3rem; }
.errorlist { color: var(--bs-danger-text-emphasis); padding-left: 1.25rem; }
td, th { overflow-wrap: anywhere; }

.content-list {
  list-style: disc outside;
  padding-left: 1.4rem;
  margin: 0 0 1rem;
  line-height: 1.75;
}
.content-list > li + li { margin-top: .45rem; }
.content-list:last-child { margin-bottom: 0; }

#sidebar .sidebar-tree { margin: 0; padding: 0; }
#sidebar .sidebar-tree .sidebar-tree {
  margin-left: .65rem;
  padding-left: .45rem;
  border-left: 1px solid var(--app-border, var(--bs-border-color));
}
#sidebar .sidebar-branch > summary {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  list-style: none;
}
#sidebar .sidebar-branch > summary::-webkit-details-marker { display: none; }
#sidebar .sidebar-tree .nav-link {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
  padding: .4rem .35rem;
}
#sidebar .sidebar-tree .nav-link.active {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .15);
  border-radius: .4rem;
  font-weight: 700;
}
#sidebar .sidebar-chevron {
  flex: 0 0 .85rem;
  padding-top: .4rem;
  text-align: center;
}
#sidebar .sidebar-chevron::before { content: '\203A'; display: inline-block; }
#sidebar .sidebar-branch[open] > summary > .sidebar-chevron::before { transform: rotate(90deg); }
#sidebar .sidebar-tree .sidebar-leaf { padding-left: .85rem; }
#sidebar .sidebar-branch > summary:focus-visible { outline: 2px solid var(--bs-primary); }
