* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f4f4f5; color: #18181b; }

/* —— Site header —— */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.site-header__left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.88;
}

.site-logo__img {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.site-nav__login {
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-nav__login:hover {
  border-color: rgba(64, 16, 230, 0.3);
  box-shadow: 0 0 0 2px rgba(64, 16, 230, 0.07);
}

.site-main { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }
.hero h1 { margin-top: 0; }
.form-card { background: #fff; padding: 1.5rem; border-radius: 8px; display: grid; gap: 1rem; }
.form-card--narrow { max-width: 400px; }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; }
input, textarea { padding: 0.5rem 0.65rem; border: 1px solid #d4d4d8; border-radius: 6px; font: inherit; }
.btn { display: inline-block; padding: 0.55rem 1rem; border-radius: 6px; border: 1px solid #d4d4d8; background: #fff; cursor: pointer; text-decoration: none; color: inherit; font: inherit; }
.btn--primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.flash { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash--error { background: #fee2e2; color: #991b1b; }
.flash--success { background: #dcfce7; color: #166534; }
.muted { color: #71717a; }
.badge { font-size: 0.75rem; background: #e4e4e7; padding: 0.15rem 0.45rem; border-radius: 4px; }
.pres-list { list-style: none; padding: 0; }
.pres-list li { background: #fff; margin-bottom: 0.5rem; padding: 0.75rem 1rem; border-radius: 6px; display: flex; justify-content: space-between; }
.outline-list li { margin-bottom: 1rem; }
.slide-card { background: #fff; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.slide-json { white-space: pre-wrap; font-size: 0.8rem; background: #f4f4f5; padding: 0.5rem; border-radius: 4px; overflow: auto; }
.theme-picker { border: none; margin: 0; padding: 0; }
.theme-picker__legend { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.65rem; padding: 0; }
.theme-picker__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
@media (min-width: 520px) { .theme-picker__grid { grid-template-columns: repeat(4, 1fr); } }
.theme-picker__card {
  display: grid; gap: 0.35rem; padding: 0.5rem; border: 2px solid #e4e4e7; border-radius: 8px;
  cursor: pointer; background: #fff; transition: border-color 0.15s;
}
.theme-picker__card:has(input:checked) { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.theme-picker__card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-picker__preview { display: block; height: 2.5rem; border-radius: 4px; }
.theme-picker__name { font-size: 0.8rem; font-weight: 600; }
.theme-picker__desc { font-size: 0.65rem; color: #71717a; line-height: 1.3; }
.theme-switch { margin-bottom: 1.25rem; display: grid; gap: 0.75rem; }
.foxy-deck { margin-top: 0.5rem; }
