/* ============ left navigator ============ */

.lz-nav { display: grid; gap: 14px; }
.lz-nav-progress { display: grid; gap: 4px; padding: 2px; }
.lz-nav-group { display: grid; gap: 2px; }
.lz-nav-group-title {
  font: 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-foreground); padding: 0 4px 4px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.lz-nav-group-title b { color: var(--muted-foreground); font-weight: 600; }
.lz-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px; border-radius: calc(var(--radius) - 4px);
  font-size: 13.5px; color: var(--muted-foreground);
  transition: color .15s, background .15s;
}
.lz-nav-item:hover { color: var(--foreground); background: var(--secondary); }
.lz-nav-item.active { color: var(--foreground); background: var(--accent); }
.lz-nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-foreground); flex: none; }
.lz-nav-item.ok .lz-nav-dot { background: var(--success); }
.lz-nav-item.bad .lz-nav-dot { background: var(--destructive); }

/* ============ mobile top progress ============ */

.lz-mobile-progress {
  display: none;
  position: sticky; top: 56px; z-index: 30;
  padding: 7px 24px;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lz-mobile-progress .lz-progress { height: 4px; }

/* ============ mobile bottom bar ============ */

.lz-bottom-bar {
  display: none;
  position: sticky; bottom: 0; z-index: 35;
  align-items: center; gap: 16px; padding: 12px 24px;
  background: color-mix(in oklch, var(--background) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.lz-bottom-left { flex: 1; display: grid; gap: 4px; }
.lz-bottom-count { font: 11px var(--font-mono); color: var(--muted-foreground); }

/* ============ Sheet ============ */

.lz-sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgb(0 0 0 / .5);
}
.lz-sheet {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  background: var(--card); border-left: 1px solid var(--border);
  box-shadow: -24px 0 64px rgb(0 0 0 / .4);
}
.lz-sheet[hidden], .lz-sheet-backdrop[hidden] { display: none; }
.lz-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.lz-sheet-head h2 { margin: 0; font-size: 17px; color: var(--foreground); }
.lz-sheet-close {
  width: 30px; height: 30px; border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px); background: transparent;
  color: var(--foreground); cursor: pointer; font-size: 15px; line-height: 1;
}
.lz-sheet-close:hover { background: var(--secondary); }
.lz-sheet-body { padding: 18px 20px 24px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }

/* ============ responsive visibility ============ */

@media (max-width: 1279px) {
  .lz-nav { display: none; }
}

@media (max-width: 1079px) {
  .lz-side { display: none; }
  .lz-mobile-progress { display: block; }
  .lz-bottom-bar { display: flex; }
  .lz-sheet {
    top: auto; left: 0; bottom: 0; width: 100vw; height: auto; max-height: 86vh;
    border-left: none; border-top: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -24px 64px rgb(0 0 0 / .4);
  }
}
