* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f6f4fb;
  color: #2b2240;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #5b3fb3;
  color: white;
  padding: 0.75rem 1.5rem;
}
.topbar a, .topbar button {
  color: white;
  text-decoration: none;
  margin-inline-start: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.brand { font-weight: bold; font-size: 1.2rem; }
.container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.card-row { display: flex; gap: 1rem; margin-top: 1rem; }
.card-link {
  flex: 1;
  display: block;
  background: white;
  border: 1px solid #ddd6f3;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #2b2240;
  font-size: 1.2rem;
}
.avatar-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.avatar-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ddd6f3;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  background: white;
}
.avatar-emoji { font-size: 2.5rem; }
.topic-list { list-style: none; padding: 0; }
.topic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid #ddd6f3;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.badge { background: #c7f0d8; color: #146c43; padding: 0.1rem 0.5rem; border-radius: 6px; font-size: 0.85rem; }
.inline { display: inline; }
.error { color: #b3261e; }
.question { border: 1px solid #ddd6f3; border-radius: 10px; margin-bottom: 1rem; padding: 1rem; background: white; }
.option { display: block; margin: 0.3rem 0; }
.result { padding: 1rem; border-radius: 10px; margin-bottom: 1rem; }
.result.pass { background: #e4f7ea; }
.result.fail { background: #fdeeee; }
.transcript { background: white; border: 1px solid #ddd6f3; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; max-height: 50vh; overflow-y: auto; }
.message { margin-bottom: 0.6rem; }
.message.teacher strong { color: #5b3fb3; }
.budget-bar { background: #eee; border-radius: 8px; height: 14px; overflow: hidden; margin: 0.5rem 0; }
.budget-bar-fill { background: #5b3fb3; height: 100%; }
.decisions, .spend-lines { list-style: none; padding: 0; }
.decisions li, .spend-lines li { background: white; border: 1px solid #ddd6f3; border-radius: 8px; padding: 0.5rem 0.75rem; margin-bottom: 0.4rem; }
.decision-type { font-weight: bold; }
input, button { font-size: 1rem; padding: 0.5rem; border-radius: 8px; border: 1px solid #ccc; }
button { background: #5b3fb3; color: white; border: none; cursor: pointer; }
form label { display: block; margin: 0.5rem 0; }
