/* Grown-ups admin — layered on top of app.css tokens. */

.admin {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--gap-fluid);
  display: flex;
  flex-direction: column;
  gap: var(--gap-fluid);
}

.admin__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.admin__back {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.admin__back:hover { color: var(--text-primary); background: var(--bg-surface-elevated); }
.admin__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  font-size: clamp(1.1rem, 1rem + 1vw, 1.5rem);
}

/* Gate */
.gate { display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); width: 100%; padding: clamp(1rem, 4vw, 3rem) 0; }
.gate__card {
  width: 100%;
  max-width: min(420px, 100%);
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 1rem + 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}
.gate__emoji { font-size: 2.5rem; }
.gate__card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.gate__card p { color: var(--text-secondary); }
.gate__error { color: var(--accent-rose); font-weight: 800; }
.gate__hint { font-size: 0.9rem; color: var(--text-muted); }
.gate__hint code { background: var(--bg-surface-elevated); padding: 0.1rem 0.4rem; border-radius: 6px; }

/* Editor */
.editor { display: flex; flex-direction: column; gap: var(--gap-fluid); }
.editor__intro { color: var(--text-secondary); max-width: 60ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--gap-fluid);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
}
.card__avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.card__avatar svg { width: 100%; height: 100%; display: block; }
.card__body { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0.75rem;
}
.card__wardrobe summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.card__wardrobe .grid { margin-top: 0.5rem; }

.swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.toolbar, .pinrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.pinrow { justify-content: flex-start; }
.status {
  font-weight: 800;
  color: var(--accent-emerald);
  background: color-mix(in srgb, var(--accent-emerald) 12%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 35%, transparent);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  align-self: flex-start;
}

/* Recovery / email sign-in */
.gate__recover { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.linklike {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
  padding: 0.4rem;
}
.recover { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.recover__msg { font-weight: 800; color: var(--accent-rose); text-align: left; }
.recover__msg--ok { color: var(--accent-emerald); }

.emailcard {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.emailcard h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.emailcard p { color: var(--text-secondary); }
.emailcard__row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.emailcard__row sl-input { flex: 1 1 220px; min-width: 0; }

@media (max-width: 460px) {
  .card { grid-template-columns: 1fr; }
  .card__avatar { width: 84px; height: 84px; }
}
