/* ── Header ──────────────────────────────────────────────────────────────── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  padding-top: calc(0.7rem + var(--safe-top));
  background: oklch(var(--b2));
  border-bottom: 1px solid oklch(var(--bc) / 7%);
  box-shadow: var(--shadow-header);
  flex-shrink: 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.header-krill {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(0, 212, 170, 0.55))
          drop-shadow(0 0 10px rgba(255, 140, 0, 0.35));
}

.title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: oklch(var(--p));
  text-transform: uppercase;
}

/* ── Header breadcrumb ────────────────────────────────────────────────────── */

.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.breadcrumb-project,
.breadcrumb-session {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  color: oklch(var(--bc) / 65%);
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
  transition: color 0.15s, background 0.1s;
}

.breadcrumb-project:hover,
.breadcrumb-session:hover {
  color: oklch(var(--bc) / 90%);
  background: oklch(var(--bc) / 7%);
}

.breadcrumb-sep {
  color: oklch(var(--bc) / 30%);
  font-size: 0.82rem;
  user-select: none;
}

.breadcrumb-session {
  color: oklch(var(--bc) / 85%);
  font-weight: 500;
}

.breadcrumb-chevron {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  border-radius: var(--radius-sm);
  color: oklch(var(--bc) / 45%);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.1s;
}

.breadcrumb-chevron:hover {
  color: oklch(var(--bc) / 80%);
  background: oklch(var(--bc) / 7%);
}

header.breadcrumb-active .header-brand {
  display: none;
}
