header {
  height: 64px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 229, 233, 0.75);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
  color: inherit;
}

/* App switcher dropdown — shown once a session exists */
.app-switcher { position: relative; display: inline-block; }
.app-switcher-btn {
  font-size: 14px; color: var(--muted); background: none; border: none;
  cursor: pointer; padding: 0;
}
.app-switcher-btn:hover { color: var(--text); }
.app-switcher-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
  min-width: 160px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.app-switcher-menu a {
  display: block; padding: 8px 12px; font-size: 13px; color: var(--text);
  text-decoration: none;
}
.app-switcher-menu a:hover { background: var(--bg); }

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
  animation: fade-up 0.55s ease both;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.detector {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
  animation: fade-up 0.7s ease both;
}

.settings-flow {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
