.fun-auth { font-family: system-ui, sans-serif; }
.fun-auth.form, .fun-auth.signed {
  background: #14110e;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 14px;
  padding: 14px 16px;
  color: #f4efe6;
}
.fun-auth label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: #e4d2a0; }
.fun-hint { font-size: .8rem; color: #b8a990; line-height: 1.45; margin: 0 0 10px; }
.fun-auth input {
  width: 100%; box-sizing: border-box; margin: 0 0 8px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(212,175,55,.3);
  background: #0c0a08; color: #f4efe6; font: inherit;
}
.fun-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fun-btn {
  appearance: none; border: 0; border-radius: 10px; padding: 10px 14px;
  background: #6b2c3e; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.fun-btn.ghost { background: transparent; border: 1px solid rgba(212,175,55,.45); color: #e4d2a0; }
.fun-err { color: #ff8e8e; font-size: .85rem; margin: 8px 0 0; }
.fun-who { margin-bottom: 8px; }
.fun-who strong { color: #e4d2a0; }

/* Personal pace sign-in — visible on tutors */
.learner-bar.pace-bar {
  margin: 0.5rem auto 0.75rem;
  max-width: 987px;
  padding: 0.85rem 1rem;
  background: rgba(36, 28, 22, 0.92);
  border: 1px solid rgba(184, 149, 74, 0.4);
  border-radius: 13px;
  color: #f4efe6;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.pace-intro {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  font-family: system-ui, sans-serif;
}
.pace-intro strong {
  font-size: 0.95rem;
  color: #e4d2a0;
}
.pace-intro span {
  font-size: 0.8rem;
  color: #c4b8a8;
  line-height: 1.4;
}
.pace-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #b8a898;
  font-family: system-ui, sans-serif;
}
.learner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
}
.learner-stats .who { flex: 1 1 100%; }
.learner-stats b { color: #e4d2a0; }
.learner-stats .linkish {
  background: transparent;
  border: 1px solid rgba(184,149,74,.45);
  color: #e4d2a0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
}
.fun-auth.form, .fun-auth.signed {
  background: #14110e !important;
  border: 1px solid rgba(212,175,55,.4) !important;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.fun-auth label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e4d2a0;
  margin-bottom: 0.35rem;
  font-family: system-ui, sans-serif;
}
.fun-auth .fun-hint {
  font-size: 0.78rem;
  color: #b8a898;
  line-height: 1.45;
  margin: 0 0 0.65rem;
  font-family: system-ui, sans-serif;
}
.fun-auth input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(184,149,74,.35);
  background: #0c0907;
  color: #f4efe6;
  font-size: 0.9rem;
  font-family: system-ui, sans-serif;
}
.fun-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.fun-btn {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #b8954a;
  background: #b8954a;
  color: #1c1612;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.fun-btn.ghost {
  background: transparent;
  color: #e4d2a0;
}
.fun-err {
  color: #e08080;
  font-size: 0.8rem;
  margin: 0.4rem 0 0;
  font-family: system-ui, sans-serif;
}
.fun-who { font-family: system-ui, sans-serif; font-size: 0.9rem; color: #f4efe6; margin-bottom: 0.35rem; }
@media (max-width: 520px) {
  .learner-bar.pace-bar { margin-left: 0.5rem; margin-right: 0.5rem; }
  .fun-actions { flex-direction: column; }
  .fun-btn { justify-content: center; }
}

.improve-box {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(184,149,74,0.12);
  border: 1px solid rgba(184,149,74,0.35);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: #e8dfd0;
}
.improve-box strong { color: #e4d2a0; display: block; margin-bottom: 0.35rem; }
.improve-box ul { margin: 0; padding-left: 1.1rem; line-height: 1.45; }

/* FORCE visible pace sign-in */
#learner-bar.learner-bar.pace-bar,
.learner-bar.pace-bar,
#learner-bar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 987px;
  margin: 12px auto !important;
  padding: 14px 16px !important;
  background: #241c16 !important;
  border: 2px solid #b8954a !important;
  border-radius: 14px !important;
  color: #f4efe6 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35) !important;
  position: relative !important;
  z-index: 50 !important;
}
.pace-intro strong { font-size: 1.05rem !important; color: #e4d2a0 !important; }
.fun-auth.form { display: block !important; }
.fun-auth input { min-height: 42px; font-size: 16px !important; }
.fun-btn { min-height: 40px; }
