/* Thomas Teacher shared beauty layer — improved daily by beauty loop (21 days) */
:root {
  --phi: 1.6180339887;
  --teacher-day: 0;
  --beauty-glow: rgba(184, 149, 74, 0.22);
}

/* Learner bar */
.learner-bar {
  max-width: 987px;
  margin: 0 auto;
  padding: 8px 13px;
  background: rgba(36, 28, 22, 0.92);
  border: 1px solid rgba(184, 149, 74, 0.35);
  border-radius: 13px;
  color: #f4efe6;
  box-shadow: 0 8px 21px rgba(0,0,0,.25);
}
.learner-join {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.learner-join input {
  border: 1px solid rgba(184,149,74,.35);
  border-radius: 8px;
  padding: 8px 10px;
  background: #1c1612;
  color: #f4efe6;
  font: inherit;
  min-height: 40px;
}
.learner-join button {
  background: #6b2c3e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.learner-label { font-size: 0.85rem; color: #e4d2a0; margin-right: 4px; }
.learner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 0.85rem;
}
.learner-stats b { color: #e4d2a0; }
.learner-stats .who { margin-right: auto; }
.learner-stats .linkish {
  background: transparent;
  border: 1px solid rgba(184,149,74,.4);
  color: #e4d2a0;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
}

/* Congrats overlay */
.thomas-congrats {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 9, 7, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1000;
  padding: 21px;
}
.thomas-congrats.show { opacity: 1; pointer-events: auto; }
.thomas-congrats-card {
  background: linear-gradient(165deg, #fffdf8, #f4efe6);
  color: #1c1612;
  border-radius: 13px;
  border: 2px solid #b8954a;
  box-shadow: 0 13px 34px rgba(0,0,0,.35), 0 0 0 8px var(--beauty-glow);
  padding: 21px 34px;
  max-width: 420px;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.thomas-congrats-card.level-up {
  border-color: #6b2c3e;
  box-shadow: 0 13px 34px rgba(107,44,62,.35), 0 0 0 8px rgba(107,44,62,.15);
}
.thomas-congrats-card strong {
  display: block;
  font-size: 1.6rem;
  color: #6b2c3e;
  margin-bottom: 8px;
}
.thomas-congrats-card ul { margin: 0 0 13px; padding-left: 1.1rem; line-height: 1.45; }
.thomas-congrats-ok {
  background: #6b2c3e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Day-0 baseline beauty hooks (loop mutates below marker) */
/* BEAUTY_LOOP_BEGIN */
:root { --teacher-day: 8; }
/* Day 8: Student bubble depth */
body.teacher-app .msg.you { box-shadow: 0 5px 13px rgba(74,31,44,.25); }

/* BEAUTY_LOOP_END */

/* pride-fix: mobile learner bar */
@media (max-width: 520px) {
  .learner-bar { margin: 0 8px 8px; padding: 8px; }
  .learner-stats { font-size: 0.75rem; gap: 6px 10px; }
  .thomas-congrats-card { padding: 16px; }
}
/* Thomas ownership strip */
.thomas-owned {
  text-align: center; font-size: 0.72rem; color: #9a9080; margin: 0.5rem 0 0;
}
.thomas-owned b { color: #d4af37; }
