/* SIDEBAR — Chambers light treatment */
.ls-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--ls-sidebar-width);
  height: 100vh;
  background: var(--ls-sidebar-surface);
  border-right: 1px solid var(--ls-gray-100);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  transition: transform var(--ls-transition-base);
}

.ls-sidebar-logo {
  padding: 20px 24px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: var(--ls-space-3);
  height: var(--ls-topbar-height);
  flex-shrink: 0;
}

.ls-sidebar-logo img {
  height: 40px;
  width: auto;
}

.ls-sidebar-logo-text {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  letter-spacing: -0.01em;
}

.ls-sidebar-logo-text span {
  color: var(--ls-gold);
}

.ls-sidebar-profile {
  margin: 4px 16px 8px;
  padding: 12px;
  border: 1px solid var(--ls-sidebar-card-border);
  background: var(--ls-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: var(--ls-space-3);
}

.ls-sidebar-profile .ls-avatar {
  background: var(--ls-gold);
  color: var(--ls-white);
}

.ls-sidebar-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ls-sidebar-profile-name {
  font-size: var(--ls-text-sm);
  font-weight: var(--ls-weight-semibold);
  color: var(--ls-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-sidebar-profile-status {
  font-size: var(--ls-text-xs);
  color: var(--ls-gray-600);
  margin-top: 2px;
}

.ls-sidebar-nav {
  flex: 1;
  padding: 14px 0;
}

.ls-sidebar-section {
  margin-bottom: 22px;
}

.ls-sidebar-section-label {
  padding: 6px 26px 9px;
  font-size: var(--ls-text-xs);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-sidebar-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.ls-sidebar-section-label::-webkit-details-marker {
  display: none;
}

.ls-sidebar-section-label:hover {
  color: var(--ls-gray-600);
}

.ls-sidebar-section-caret {
  width: 13px;
  height: 13px;
  color: var(--ls-gray-400);
  transition: transform var(--ls-transition-fast);
}

.ls-sidebar-section:not([open]) .ls-sidebar-section-caret {
  transform: rotate(-90deg);
}

.ls-sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 2px 14px;
  padding: 10px 14px;
  color: var(--ls-gray-600);
  font-size: 13.5px;
  font-weight: var(--ls-weight-medium);
  transition: all var(--ls-transition-fast);
  border-radius: 10px;
  text-decoration: none;
}

.ls-sidebar-link:hover {
  color: var(--ls-navy);
  background: var(--ls-hover-warm);
}

.ls-sidebar-link.active {
  color: var(--ls-navy);
  background: var(--ls-brass-tint);
  font-weight: var(--ls-weight-semibold);
  box-shadow: inset 0 0 0 1px var(--ls-brass-keyline);
}

/* Standalone top-level nav item (Dashboard) — sits above the accordions */
.ls-sidebar-standalone {
  margin-bottom: 12px;
}

.ls-sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ls-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--ls-sidebar-card-border);
}

.ls-plan-badge {
  background: linear-gradient(135deg, var(--ls-plan-grad-from), var(--ls-plan-grad-to));
  color: var(--ls-gold-dark);
  border: 1px solid var(--ls-brass-keyline);
  border-radius: var(--ls-radius-md);
  padding: var(--ls-space-2) var(--ls-space-3);
  font-size: var(--ls-text-xs);
  font-weight: var(--ls-weight-semibold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ls-space-2);
}

.ls-plan-badge a {
  color: var(--ls-gold);
  font-size: var(--ls-text-xs);
  font-weight: var(--ls-weight-semibold);
  text-decoration: none;
}

.ls-plan-badge a:hover {
  color: var(--ls-gold-dark);
}

/* TOPBAR */
.ls-topbar {
  position: fixed;
  top: 0;
  left: var(--ls-sidebar-width);
  right: 0;
  height: var(--ls-topbar-height);
  background: var(--ls-white);
  border-bottom: 1px solid var(--ls-gray-100);
  display: flex;
  align-items: center;
  padding: 0 var(--ls-space-8);
  justify-content: space-between;
  z-index: 100;
  box-shadow: var(--ls-shadow-sm);
}

.ls-topbar-title {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
}

/* Breadcrumbs (topbar) — replaces the duplicated page title */
.ls-breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: var(--ls-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.ls-breadcrumbs-item {
  display: flex;
  align-items: center;
}

.ls-breadcrumbs-item a {
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-500);
  text-decoration: none;
  transition: color var(--ls-transition-fast);
}

.ls-breadcrumbs-item a:hover {
  color: var(--ls-gold);
}

.ls-breadcrumbs-current {
  font-size: var(--ls-text-sm);
  font-weight: var(--ls-weight-semibold);
  color: var(--ls-navy);
}

.ls-breadcrumbs-sep {
  color: var(--ls-gray-400);
  font-size: var(--ls-text-sm);
  line-height: 1;
}

/* Onboarding checklist helpers (token-only; avoids inline styles) */
.ls-onboarding-card {
  max-width: 720px;
}

.ls-onboarding-step-label {
  font-size: var(--ls-text-base);
}

.ls-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--ls-space-3);
}

.ls-topbar-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ls-gray-400);
  width: 36px;
  height: 36px;
  border-radius: var(--ls-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ls-transition-fast);
  position: relative;
}

.ls-topbar-icon-btn:hover {
  background: var(--ls-gray-50);
  color: var(--ls-navy);
}

.ls-topbar-icon-btn svg {
  width: 18px;
  height: 18px;
}

.ls-topbar-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--ls-danger);
  border-radius: var(--ls-radius-full);
  border: 2px solid var(--ls-white);
}

.ls-topbar-user {
  display: flex;
  align-items: center;
  gap: var(--ls-space-2);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--ls-space-1) var(--ls-space-2);
  border-radius: var(--ls-radius-md);
  transition: background var(--ls-transition-fast);
}

.ls-topbar-user:hover {
  background: var(--ls-gray-50);
}

.ls-topbar-user-name {
  font-size: var(--ls-text-sm);
  font-weight: var(--ls-weight-semibold);
  color: var(--ls-navy);
}

.ls-sidebar-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ls-gray-600);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

/* MAIN */
.ls-main {
  margin-left: var(--ls-sidebar-width);
  margin-top: var(--ls-topbar-height);
  min-height: calc(100vh - var(--ls-topbar-height));
  padding: var(--ls-space-8);
  background: var(--ls-off-white);
}

.ls-page-header {
  margin-bottom: var(--ls-space-8);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ls-space-4);
}

.ls-page-title {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-3xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  margin: 0 0 var(--ls-space-2);
}

.ls-page-subtitle {
  font-size: var(--ls-text-base);
  color: var(--ls-gray-500);
  margin: 0;
}

.ls-page-actions {
  display: flex;
  gap: var(--ls-space-3);
  align-items: center;
}

/* GRID */
.ls-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ls-space-6);
}

.ls-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ls-space-6);
}

.ls-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ls-space-6);
}

/* PUBLIC NAV */
.ls-public-nav {
  background: var(--ls-white);
  border-bottom: 1px solid var(--ls-gray-100);
  padding: 0 var(--ls-space-8);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ls-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ls-public-nav-logo {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-2xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--ls-space-2);
}

.ls-public-nav-logo img {
  height: 42px;
  width: auto;
}

.ls-public-nav-logo span {
  color: var(--ls-gold);
}

.ls-public-nav-links {
  display: flex;
  align-items: center;
  gap: var(--ls-space-6);
}

.ls-public-nav-link {
  color: var(--ls-gray-600);
  font-size: var(--ls-text-sm);
  font-weight: var(--ls-weight-medium);
  text-decoration: none;
  transition: color var(--ls-transition-fast);
}

.ls-public-nav-link:hover {
  color: var(--ls-navy);
}

.ls-public-footer {
  background: var(--ls-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--ls-space-12) var(--ls-space-8);
}

.ls-public-footer-inner {
  max-width: var(--ls-content-max);
  margin: 0 auto;
}

.ls-public-footer a {
  color: rgba(255, 255, 255, 0.7);
  margin-right: var(--ls-space-4);
  font-size: var(--ls-text-sm);
}

.ls-public-footer a:hover {
  color: var(--ls-gold);
}

.ls-footer-disclaimer {
  font-size: var(--ls-text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--ls-space-6);
  padding-top: var(--ls-space-6);
  border-top: 1px solid var(--ls-navy-light);
  line-height: 1.6;
}

/* LANDING SECTIONS */
.ls-section {
  padding: var(--ls-space-16) var(--ls-space-8);
}

.ls-section--navy {
  background: var(--ls-navy);
  color: var(--ls-white);
}

.ls-section--off-white {
  background: var(--ls-off-white);
}

.ls-section--white {
  background: var(--ls-white);
}

.ls-section-inner {
  max-width: var(--ls-content-max);
  margin: 0 auto;
}

.ls-section-title {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-4xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  text-align: center;
  margin-bottom: var(--ls-space-4);
}

.ls-section--navy .ls-section-title {
  color: var(--ls-white);
}

.ls-section-subtitle {
  font-size: var(--ls-text-lg);
  color: var(--ls-gray-500);
  text-align: center;
  margin: 0 auto var(--ls-space-12);
  max-width: 720px;
}

.ls-section--navy .ls-section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.ls-eyebrow {
  display: inline-block;
  font-size: var(--ls-text-xs);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--ls-space-3);
}

.ls-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--ls-space-12);
  align-items: center;
}

.ls-hero-title {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-5xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-white);
  line-height: 1.08;
  margin-bottom: var(--ls-space-6);
}

.ls-hero-subtitle {
  font-size: var(--ls-text-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: var(--ls-space-8);
}

.ls-hero-actions {
  display: flex;
  gap: var(--ls-space-3);
  flex-wrap: wrap;
}

.ls-hero-preview {
  background: var(--ls-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ls-radius-xl);
  padding: var(--ls-space-6);
  box-shadow: var(--ls-shadow-xl);
}

.ls-hero-preview-title {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-base);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  margin-bottom: var(--ls-space-4);
}

.ls-hero-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ls-space-3);
  border-radius: var(--ls-radius-md);
  background: var(--ls-off-white);
  margin-bottom: var(--ls-space-2);
}

.ls-hero-preview-item:last-child {
  margin-bottom: 0;
}

.ls-hero-preview-label {
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-600);
  font-weight: var(--ls-weight-medium);
}

.ls-hero-preview-value {
  font-size: var(--ls-text-sm);
  color: var(--ls-navy);
  font-weight: var(--ls-weight-semibold);
}

.ls-feature-card {
  background: var(--ls-white);
  border: 1px solid var(--ls-gray-100);
  border-radius: var(--ls-radius-lg);
  padding: var(--ls-space-6);
  box-shadow: var(--ls-shadow-sm);
  transition: all var(--ls-transition-base);
}

.ls-feature-card:hover {
  box-shadow: var(--ls-shadow-md);
  transform: translateY(-2px);
  border-color: var(--ls-gray-200);
}

.ls-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ls-radius-md);
  background: var(--ls-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ls-space-4);
}

.ls-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--ls-navy);
}

.ls-feature-title {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-lg);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  margin-bottom: var(--ls-space-2);
}

.ls-feature-text {
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-500);
  line-height: 1.6;
  margin: 0;
}

.ls-step {
  display: flex;
  gap: var(--ls-space-4);
  align-items: flex-start;
  margin-bottom: var(--ls-space-6);
}

.ls-step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--ls-radius-full);
  background: var(--ls-gold);
  color: var(--ls-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-lg);
  font-weight: var(--ls-weight-bold);
  flex-shrink: 0;
}

.ls-step-body h3 {
  font-size: var(--ls-text-xl);
  margin-bottom: var(--ls-space-2);
}

.ls-step-body p {
  color: var(--ls-gray-500);
  margin: 0;
}

.ls-price-card {
  background: var(--ls-white);
  border: 1px solid var(--ls-gray-100);
  border-radius: var(--ls-radius-lg);
  padding: var(--ls-space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--ls-shadow-sm);
  position: relative;
}

.ls-price-card--featured {
  background: var(--ls-navy);
  border-color: var(--ls-navy);
  color: var(--ls-white);
}

.ls-price-card--featured .ls-price-name,
.ls-price-card--featured .ls-price-amount,
.ls-price-card--featured .ls-price-features li {
  color: var(--ls-white);
}

.ls-price-card--featured .ls-price-features li {
  border-color: rgba(255, 255, 255, 0.1);
}

.ls-price-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--ls-gold);
  color: var(--ls-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--ls-radius-full);
  font-size: var(--ls-text-xs);
  font-weight: var(--ls-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ls-price-name {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-lg);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
}

.ls-price-amount {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-4xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  margin: var(--ls-space-2) 0;
  line-height: 1;
}

.ls-price-amount small {
  font-size: var(--ls-text-sm);
  font-weight: var(--ls-weight-normal);
  color: var(--ls-gray-500);
}

.ls-price-card--featured .ls-price-amount small {
  color: rgba(255, 255, 255, 0.6);
}

.ls-price-features {
  list-style: none;
  margin: var(--ls-space-4) 0;
  padding: 0;
  flex: 1;
}

.ls-price-features li {
  padding: var(--ls-space-2) 0;
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-600);
  border-bottom: 1px solid var(--ls-gray-50);
}

.ls-price-features li:last-child {
  border-bottom: none;
}

.ls-trust-bar {
  text-align: center;
  padding: var(--ls-space-8);
  background: var(--ls-white);
}

.ls-trust-bar h3 {
  font-size: var(--ls-text-xl);
  margin-bottom: var(--ls-space-3);
}

/* AUTH */
.ls-auth-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ls-space-8);
  background: var(--ls-off-white);
}

.ls-auth-card {
  background: var(--ls-white);
  border: 1px solid var(--ls-gray-100);
  border-radius: var(--ls-radius-lg);
  padding: var(--ls-space-8);
  box-shadow: var(--ls-shadow-md);
  width: 100%;
  max-width: 420px;
}

.ls-auth-card--wide {
  max-width: 520px;
}

.ls-auth-logo {
  text-align: center;
  margin-bottom: var(--ls-space-5);
}

.ls-auth-logo img {
  height: 48px;
  margin: 0 auto;
}

.ls-auth-title {
  font-family: var(--ls-font-display);
  font-size: var(--ls-text-2xl);
  font-weight: var(--ls-weight-bold);
  color: var(--ls-navy);
  text-align: center;
  margin: 0 0 var(--ls-space-2);
}

.ls-auth-subtitle {
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-500);
  text-align: center;
  margin-bottom: var(--ls-space-6);
}

.ls-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ls-space-3);
}

.ls-auth-footer {
  text-align: center;
  margin-top: var(--ls-space-6);
  padding-top: var(--ls-space-6);
  border-top: 1px solid var(--ls-gray-100);
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-500);
}

.ls-auth-footer a {
  color: var(--ls-navy);
  font-weight: var(--ls-weight-semibold);
}

.ls-forgot-link {
  text-align: right;
  display: block;
  margin-top: var(--ls-space-1);
  font-size: var(--ls-text-xs);
  color: var(--ls-gray-500);
}

/* AUTH — split (Register) */
.ls-auth-split {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: var(--ls-space-12);
  width: 100%;
  max-width: 1100px;
  background: var(--ls-white);
  border: 1px solid var(--ls-gray-100);
  border-radius: var(--ls-radius-lg);
  padding: var(--ls-space-10);
  box-shadow: var(--ls-shadow-md);
}

.ls-auth-split-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ls-auth-split-left .ls-auth-logo {
  text-align: left;
  margin-bottom: var(--ls-space-6);
}

.ls-auth-split-left .ls-auth-logo img {
  margin: 0;
}

.ls-auth-split-left .ls-auth-title {
  text-align: left;
  font-size: var(--ls-text-3xl);
  margin-bottom: var(--ls-space-3);
}

.ls-auth-tagline {
  font-size: var(--ls-text-base);
  color: var(--ls-gray-500);
  margin: 0 0 var(--ls-space-6);
}

.ls-auth-value-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--ls-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--ls-space-4);
}

.ls-auth-value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ls-space-3);
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-600);
  line-height: 1.5;
}

.ls-auth-value-item i {
  color: var(--ls-gold);
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.ls-auth-signin {
  font-size: var(--ls-text-sm);
  color: var(--ls-gray-500);
  margin: 0;
}

.ls-auth-signin a {
  color: var(--ls-navy);
  font-weight: var(--ls-weight-semibold);
}

.ls-auth-split-right {
  display: flex;
  flex-direction: column;
}

.ls-auth-split-right .ls-form-group {
  margin-bottom: var(--ls-space-3);
}

@media (max-width: 900px) {
  .ls-auth-split {
    grid-template-columns: 1fr;
    gap: var(--ls-space-6);
    padding: var(--ls-space-6);
    max-width: 520px;
  }

  .ls-auth-split-left .ls-auth-logo,
  .ls-auth-split-left .ls-auth-title {
    text-align: center;
  }

  .ls-auth-split-left .ls-auth-logo img {
    margin: 0 auto;
  }

  .ls-auth-tagline {
    text-align: center;
  }

  .ls-auth-value-list {
    margin-bottom: var(--ls-space-4);
  }

  .ls-auth-signin {
    text-align: center;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .ls-sidebar { transform: translateX(-100%); }
  .ls-sidebar.open { transform: translateX(0); }
  .ls-main { margin-left: 0; }
  .ls-topbar { left: 0; }
  .ls-sidebar-mobile-btn { display: flex; }
  .ls-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ls-hero-grid { grid-template-columns: 1fr; }
  .ls-hero-title { font-size: var(--ls-text-4xl); }
}

@media (max-width: 768px) {
  .ls-main { padding: var(--ls-space-4); }
  .ls-grid-2, .ls-grid-3 { grid-template-columns: 1fr; }
  .ls-topbar { padding: 0 var(--ls-space-4); }
  .ls-public-nav { padding: 0 var(--ls-space-4); }
  .ls-section { padding: var(--ls-space-12) var(--ls-space-4); }
  .ls-auth-row { grid-template-columns: 1fr; }

  /* Breadcrumbs live in a FIXED-height topbar (--ls-topbar-height), so they must
     never wrap: a 4-level trail wraps to 83-106px on a phone and is clipped by the
     68px bar. Collapse to "parent > current" and ellipsize, keeping one 22px line.
     The hidden ancestors are still reachable from the sidebar.
     nth-last-child(-n+3) = the last three <li> (parent, separator, current) —
     the list alternates item/separator, and the current crumb is always last. */
  .ls-breadcrumbs-list { flex-wrap: nowrap; min-width: 0; }
  .ls-breadcrumbs-item:not(:nth-last-child(-n+3)),
  .ls-breadcrumbs-sep:not(:nth-last-child(-n+3)) { display: none; }
  .ls-breadcrumbs-item { min-width: 0; }
  .ls-breadcrumbs-sep { flex: none; }
  .ls-breadcrumbs-item a,
  .ls-breadcrumbs-current {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .ls-grid-4 { grid-template-columns: 1fr; }
  .ls-topbar-user-name { display: none; }
}
