.lab-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 82px;
  padding: .6rem clamp(1rem, 3vw, 2.25rem);
  background: rgba(20, 9, 11, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.lab-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.lab-brand img {
  width: 52px;
  height: 48px;
  object-fit: contain;
}
.lab-brand span { display: grid; gap: .05rem; }
.lab-brand strong { font-family: var(--serif); font-size: 1rem; }
.lab-brand small { color: var(--muted); font-size: .67rem; }

.mode-nav {
  display: flex;
  justify-content: center;
  gap: .35rem;
}
.mode-button {
  min-height: 46px;
  border: 1px solid transparent;
  background: transparent;
  padding: .7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  color: var(--muted);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.mode-button span {
  margin-right: .45rem;
  font-size: .68rem;
  color: var(--brass);
}
.mode-button:hover { color: var(--cream); background: rgba(242,231,208,.05); }
.mode-button.is-active {
  color: var(--cream);
  border-color: rgba(242,231,208,.14);
  background: rgba(242,231,208,.08);
}

.lab-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--uvita-vivid);
  box-shadow: 0 0 0 5px rgba(192,57,76,.12);
}

.mode-view { min-height: calc(100vh - 82px); }
.mode-view[hidden] { display: none !important; }
.mode-intro {
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
}
.mode-intro p:last-child {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

@media (max-width: 820px) {
  .lab-header {
    grid-template-columns: 1fr auto;
    gap: .5rem;
  }
  .lab-brand span, .lab-status { display: none; }
  .mode-nav { justify-content: flex-end; }
  .mode-button { padding: .65rem .8rem; font-size: .78rem; }
  .mode-button span { display: none; }
}

@media (max-width: 480px) {
  .lab-header { min-height: 68px; }
  .lab-brand img { width: 42px; height: 40px; }
  .mode-button { min-height: 44px; }
  .mode-intro { min-height: calc(100vh - 68px); }
}
