:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --text: #101828;
  --muted: rgba(16, 24, 40, 0.62);
  --border: rgba(16, 24, 40, 0.12);
  --shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 8px 20px rgba(16, 24, 40, 0.06);

  --blue: #5a48ff;
  --blue-2: #7a6cff;
  --green: #2bb673;
  --orange: #ff9f43;
  --red: #e04f5f;

  --gold: #d9b17a;
  --silver: #bcb6ad;
  --bronze: #8c7359;

  --optA: #5a48ff;
  --optB: #16a3ff;
  --optC: #ff9f43;
  --optD: #2bb673;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(900px 600px at 18% -10%, rgba(90, 72, 255, 0.14), transparent 55%),
    radial-gradient(900px 700px at 82% 0%, rgba(22, 163, 255, 0.12), transparent 55%),
    radial-gradient(1200px 800px at 50% 100%, rgba(255, 159, 67, 0.1), transparent 55%), var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

.bg {
  background: var(--bg);
}

.snowing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px);
  background-size: 160px 160px, 240px 240px, 320px 320px;
  background-position: 0 0, 40px 90px, 120px 20px;
  opacity: 0.7;
  transform: translateY(-20vh);
  animation: snowfall 10s linear infinite;
  z-index: 1;
}

.snowing::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 55%);
  z-index: 0;
}

@keyframes snowfall {
  to {
    transform: translateY(30vh);
  }
}

.panel {
  position: relative;
  z-index: 2;
}

.hidden {
  display: none !important;
}

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 22px 64px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 0 auto;
}

.panelWide {
  max-width: 880px;
}

.panelNarrow {
  max-width: 560px;
  text-align: center;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(90, 72, 255, 0.22);
  background: rgba(90, 72, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 14px;
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  outline: none;
}

.inputBig {
  padding: 16px 16px;
  font-size: 18px;
}

.loginForm {
  display: grid;
  gap: 18px;
}

.loginTitle {
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  color: var(--text);
}

.loginSubtitle {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-top: 6px;
}

.avatarGrid2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 720px) {
  .avatarGrid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.avatarCard {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px 12px 16px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.avatarCard.selected {
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(90, 72, 255, 0.18);
}

.avatarCircle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: #fbfbfd;
}

.avatarCircle svg {
  width: 40px;
  height: 40px;
}

.avatarCircle img {
  width: 40px;
  height: 40px;
}

.avatarLabel {
  font-weight: 600;
  color: var(--text);
}

.avatarCheck {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.9);
  transition: 120ms ease;
}

.avatarCard.selected .avatarCheck {
  opacity: 1;
  transform: scale(1);
}

.btn2 {
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn2.primary {
  background: var(--blue);
  color: #fff;
}

.btn2.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitTitle {
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
}

.waitSubtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.waitLoader {
  margin: 18px auto 0;
  display: inline-flex;
  gap: 10px;
}

.waitLoader .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(90, 72, 255, 0.35);
  animation: pulse 1s ease-in-out infinite;
}

.waitLoader .dot:nth-child(2) {
  animation-delay: 0.15s;
}

.waitLoader .dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.quiz {
  max-width: 1120px;
  margin: 0 auto;
}

.quizTop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
}

.quizMeta {
  color: var(--text);
  font-weight: 600;
}

.quizRight {
  text-align: right;
}

.quizPercent {
  color: var(--blue);
  font-weight: 800;
}

.quizTime {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 2px solid rgba(90, 72, 255, 0.26);
  background: rgba(90, 72, 255, 0.1);
  color: rgba(16, 24, 40, 0.78);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-soft);
}

.quizTime.urgent {
  border-color: rgba(224, 79, 95, 0.38);
  background: rgba(224, 79, 95, 0.12);
  color: rgba(224, 79, 95, 1);
  animation: tick 700ms ease-in-out infinite;
}

@keyframes tick {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #e9edf5;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.progressFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
}

.questionCard {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
}

.questionText2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.optionsGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 760px) {
  .optionsGrid {
    grid-template-columns: 1fr;
  }
}

.optCard {
  --opt: var(--optA);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px 18px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  text-align: left;
  min-height: 84px;
  transition: transform 90ms ease, box-shadow 90ms ease, border-color 90ms ease;
}

.optCard:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.optCard:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.optCard[data-letter="A"] {
  --opt: var(--optA);
}

.optCard[data-letter="B"] {
  --opt: var(--optB);
}

.optCard[data-letter="C"] {
  --opt: var(--optC);
}

.optCard[data-letter="D"] {
  --opt: var(--optD);
}

.optLetter {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--opt);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.optText {
  font-size: 18px;
  font-weight: 800;
  color: rgba(16, 24, 40, 0.86);
  line-height: 1.2;
}

.optCard.chosen {
  border-color: rgba(16, 24, 40, 0.22);
}

.optCard.chosen[data-letter="A"] {
  border-color: rgba(90, 72, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(90, 72, 255, 0.18), var(--shadow-soft);
}

.optCard.chosen[data-letter="B"] {
  border-color: rgba(22, 163, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(22, 163, 255, 0.18), var(--shadow-soft);
}

.optCard.chosen[data-letter="C"] {
  border-color: rgba(255, 159, 67, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.2), var(--shadow-soft);
}

.optCard.chosen[data-letter="D"] {
  border-color: rgba(43, 182, 115, 0.75);
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.18), var(--shadow-soft);
}

.optCard.correct {
  border-color: rgba(43, 182, 115, 0.55);
  background: rgba(43, 182, 115, 0.06);
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.14), var(--shadow-soft);
}

.optCard.correct .optLetter {
  background: rgba(43, 182, 115, 1);
}

.optCard.correct .optText {
  color: rgba(16, 24, 40, 0.9);
}

.optCard.correct::after {
  content: "✓";
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(43, 182, 115, 0.16);
  color: rgba(43, 182, 115, 1);
  font-weight: 900;
}

.optCard.wrong {
  border-color: rgba(224, 79, 95, 0.55);
  background: rgba(224, 79, 95, 0.06);
  box-shadow: 0 0 0 4px rgba(224, 79, 95, 0.14), var(--shadow-soft);
}

.optCard.wrong.chosen .optLetter {
  background: rgba(224, 79, 95, 1);
}

.bonusWrap {
  margin-top: 26px;
}

.qrAnswerWrap {
  margin-top: 22px;
  border-radius: 22px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.qrAnswerTitle {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.86);
  text-align: center;
}

.qrAnswerImg {
  width: min(320px, 70vw);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.qrAnswerMeta {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.bonusBanner {
  border-radius: 18px;
  border: 2px solid rgba(90, 72, 255, 0.28);
  background: linear-gradient(90deg, rgba(90, 72, 255, 0.16), rgba(43, 182, 115, 0.12));
  padding: 22px 18px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: rgba(43, 182, 115, 1);
  box-shadow: var(--shadow-soft);
}

.finalHeader {
  text-align: center;
  margin-bottom: 18px;
}

.finalTitleRow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.finalTitle {
  font-size: 36px;
  font-weight: 900;
  color: var(--blue);
}

.trophy {
  font-size: 26px;
  opacity: 0.7;
}

.finalSubtitle {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
}

.finalIcons {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.finalIcon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.finalIcon svg {
  width: 42px;
  height: 42px;
}

.finalIcon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.podium2 {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

@media (max-width: 860px) {
  .podium2 {
    grid-template-columns: 1fr;
  }
}

.podiumCol {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.podiumTop {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.podiumAvatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid #e9edf5;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  position: relative;
}

.podiumAvatar svg {
  width: 54px;
  height: 54px;
}

.podiumAvatar img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.podiumAvatar.empty {
  opacity: 0.5;
}

.podiumRank {
  position: absolute;
  bottom: -10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid #e9edf5;
  font-weight: 900;
  color: rgba(21, 34, 56, 0.7);
}

.podiumName {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
}

.podiumScore {
  font-weight: 900;
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
}

.podiumScore span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.podiumBase {
  width: 100%;
  max-width: 220px;
  border-radius: 14px 14px 0 0;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 34, 56, 0.08);
}

.podiumPosText {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 34px;
}

.pos1 .podiumBase {
  height: 210px;
  background: linear-gradient(180deg, rgba(217, 177, 122, 0.95), rgba(217, 177, 122, 0.82));
}

.pos2 .podiumBase {
  height: 180px;
  background: linear-gradient(180deg, rgba(188, 182, 173, 0.95), rgba(188, 182, 173, 0.82));
}

.pos3 .podiumBase {
  height: 160px;
  background: linear-gradient(180deg, rgba(140, 115, 89, 0.95), rgba(140, 115, 89, 0.82));
}

.ranking2 {
  margin-top: 26px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-right: 6px;
}

.rankRow2 {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px 14px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
}

.rankMe {
  box-shadow: 0 0 0 4px rgba(224, 140, 98, 0.18), var(--shadow-soft);
  border-color: rgba(224, 140, 98, 0.35);
}

.rankPos2 {
  font-weight: 900;
  color: rgba(21, 34, 56, 0.6);
  text-align: center;
}

.rankAvatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fbfbfd;
  display: grid;
  place-items: center;
}

.rankAvatar svg {
  width: 32px;
  height: 32px;
}

.rankAvatar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.rankNameWrap {
  display: grid;
  gap: 4px;
}

.rankName {
  font-weight: 900;
  color: var(--text);
}

.rankSub {
  font-size: 12px;
  color: var(--muted);
}

.rankPts {
  font-weight: 900;
  color: var(--blue);
  font-size: 16px;
  text-align: right;
  min-width: 80px;
}

.rankPts span {
  display: block;
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* Professor */

.tHeader {
  margin-bottom: 22px;
}

.tTitleRow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.tTitle {
  font-size: 40px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.6px;
}

.tSubtitle {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.authBar {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.authUser {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.86);
}

.authLogin {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.authHint {
  color: rgba(16, 24, 40, 0.7);
  font-weight: 800;
}

.googleBtn {
  min-height: 40px;
}

.tTopGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

@media (max-width: 1040px) {
  .tTopGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.statCard {
  --stat: var(--blue);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 86px;
  position: relative;
  overflow: hidden;
}

.statCard.blue {
  --stat: var(--optA);
}

.statCard.green {
  --stat: var(--optD);
}

.statCard.orange {
  --stat: var(--optC);
}

.statCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--stat);
}

.statIcon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(16, 24, 40, 0.06);
}

.statValue {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.statLabel {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.controlCard {
  background: var(--card);
  border: 1px solid rgba(90, 72, 255, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.marketingGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

@media (max-width: 980px) {
  .marketingGrid {
    grid-template-columns: 1fr;
  }
}

.marketingCard {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.marketingTitle {
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.marketingText {
  margin: 0;
}

.ruleList {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(16, 24, 40, 0.86);
  font-weight: 700;
}

.whatsappBtn {
  background: rgba(43, 182, 115, 1);
  border-color: rgba(43, 182, 115, 1);
  color: #fff;
}

.whatsappBtn:hover {
  filter: brightness(0.96);
}

.whatsappBtn:focus-visible {
  outline: 3px solid rgba(43, 182, 115, 0.35);
  outline-offset: 2px;
}

.whatsIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.controlTitle {
  font-weight: 900;
  color: var(--text);
}

.btnWide {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(16, 24, 40, 0.86);
  border-radius: 14px;
  padding: 14px 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btnWide.primary {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.btnWide.danger {
  border: 0;
  background: var(--red);
  color: #fff;
}

.btnWide:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qrSmallWrap {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.qrSmall {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfbfd;
}

.joinLink {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  word-break: break-all;
}

.tMidGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

@media (max-width: 1040px) {
  .tMidGrid {
    grid-template-columns: 1fr;
  }
}

.cardBlock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.cardBlockTitle {
  font-weight: 900;
  color: var(--text);
  font-size: 20px;
  margin-bottom: 12px;
}

.editorTopRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.editorActions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.editorList {
  display: grid;
  gap: 14px;
}

.editorCard {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.editorCardTitle {
  font-weight: 900;
  font-size: 18px;
}

.editorTextarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.3;
}

.editorOpts {
  display: grid;
  gap: 10px;
}

.editorOptRow {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.editorOptBadge {
  width: 56px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
}

.editorOptBadge.optA {
  background: var(--optA);
}
.editorOptBadge.optB {
  background: var(--optB);
}
.editorOptBadge.optC {
  background: var(--optC);
}
.editorOptBadge.optD {
  background: var(--optD);
}

.editorCorrectRow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.editorCorrectLabel {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.86);
}

.editorSelect {
  max-width: 720px;
}

.editorCardActions {
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
}

.editorPdfRow,
.editorIaRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.editorIaRow {
  grid-template-columns: 1fr 1fr auto;
}

.editorSticky {
  position: sticky;
  top: 10px;
  z-index: 50;
}

.editorSticky::before {
  content: "";
  position: absolute;
  inset: -10px -10px auto -10px;
  height: 10px;
}

.editorSticky {
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(6px);
}

.sideStack {
  display: grid;
  gap: 18px;
}

.infoCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.infoCard.infoBlue {
  background: rgba(90, 72, 255, 0.1);
  border-color: rgba(90, 72, 255, 0.22);
}

.infoKicker {
  font-size: 12px;
  font-weight: 900;
  color: rgba(16, 24, 40, 0.6);
  letter-spacing: 0.6px;
}

.infoKicker2 {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(16, 24, 40, 0.65);
}

.infoQuestion {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.infoAnswer {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(21, 34, 56, 0.72);
}

.infoDivider {
  height: 1px;
  background: rgba(21, 34, 56, 0.12);
  margin: 14px 0;
}

.statLines {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.statLine {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(21, 34, 56, 0.72);
  font-weight: 700;
}

.statLine strong {
  color: var(--blue);
  font-weight: 900;
}

.top5List {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.top5Row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.top5Avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: #fbfbfd;
}

.top5Avatar svg {
  width: 28px;
  height: 28px;
}

.top5Avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.top5Name {
  font-weight: 900;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top5Pts {
  font-weight: 900;
  color: var(--blue);
}

.studentList {
  display: grid;
  gap: 12px;
  max-height: 440px;
  overflow: auto;
  padding-right: 6px;
}

.roomsGrid2 {
  grid-template-columns: 1fr 1fr;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

@media (max-width: 980px) {
  .roomsGrid2 {
    grid-template-columns: 1fr;
  }
}

.scanGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .scanGrid {
    grid-template-columns: 1fr;
  }
}

.scanControls {
  display: grid;
  gap: 10px;
}

.scanStatus {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(16, 24, 40, 0.72);
  font-weight: 800;
}

.scanTimer {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(90, 72, 255, 0.22);
  background: rgba(90, 72, 255, 0.08);
  color: rgba(16, 24, 40, 0.86);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

.scanQuestion {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(16, 24, 40, 0.92);
  font-weight: 900;
}

.scanOptions {
  display: grid;
  gap: 10px;
}

.scanOpt {
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.scanOptBadge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
}

.scanOptText {
  font-weight: 800;
  color: rgba(16, 24, 40, 0.86);
}

.scanLast {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(43, 182, 115, 0.22);
  background: rgba(43, 182, 115, 0.08);
  color: rgba(16, 24, 40, 0.84);
  font-weight: 900;
}

.scanVideoWrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(16, 24, 40, 0.06);
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}

.scanHud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.scanHudTop {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.scanVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111827;
}

.scanOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

body.scanMode .tHeader,
body.scanMode .cardBlock:not(.scanBlock) {
  display: none;
}

body.scanMode .page {
  max-width: none;
  padding: 0;
}

body.scanMode .scanBlock {
  position: fixed;
  inset: 0;
  border-radius: 0;
  margin: 0;
}

body.scanMode .scanGrid {
  height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
}

body.scanMode .scanVideoWrap {
  min-height: auto;
  height: 100%;
}

body.scanMode .scanControls {
  gap: 12px;
  padding: 8px 6px;
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 10px;
}

body.scanMode .scanTimerBarWrap {
  margin-top: -6px;
}

body.scanMode .scanControls > :not(.scanTimer):not(.scanQuestion):not(.scanOptions):not(.scanAnswered):not(.scanCamHint):not(.scanMiniRow) {
  display: none;
}

body.scanMode .scanQuestion {
  font-size: 30px;
  line-height: 1.15;
  padding: 22px 22px;
  max-height: 22vh;
  overflow: auto;
}

body.scanMode .scanCorrect {
  border-radius: 16px;
  border: 2px solid rgba(43, 182, 115, 0.32);
  background: rgba(43, 182, 115, 0.1);
  padding: 16px 16px;
  display: grid;
  gap: 8px;
}

body.scanMode .scanCorrectKicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: rgba(16, 24, 40, 0.72);
}

body.scanMode .scanCorrectRow {
  display: flex;
  gap: 12px;
  align-items: center;
}

body.scanMode .scanCorrectBadge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(43, 182, 115, 1);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
}

body.scanMode .scanCorrectText {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  color: rgba(16, 24, 40, 0.92);
}

body.scanMode.scanReveal .scanTimerBar {
  background: linear-gradient(90deg, rgba(43, 182, 115, 1), rgba(90, 72, 255, 1));
}

body.scanMode .scanTimer {
  font-size: 32px;
  padding: 14px 18px;
}

body.scanMode .scanTimer.urgent {
  animation: scanFlash 650ms ease-in-out infinite;
}

@keyframes scanFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 79, 95, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(224, 79, 95, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 79, 95, 0);
  }
}

body.scanMode .scanTimerBarWrap {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

body.scanMode .scanTimerBar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--optD), var(--optA));
  transition: width 140ms linear;
}

body.scanMode .scanTimerBar.urgent {
  background: linear-gradient(90deg, rgba(224, 79, 95, 1), rgba(255, 159, 67, 1));
}

body.scanMode .scanCamHint {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 79, 95, 0.22);
  background: rgba(224, 79, 95, 0.08);
  color: rgba(16, 24, 40, 0.86);
  font-weight: 900;
  font-size: 13px;
}

body.scanMode .scanMiniRow {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.scanMode .scanMiniRow .btnWide {
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 13px;
}

body.scanMode .scanOpt {
  padding: 14px 14px;
}

body.scanMode .scanOpt.correct {
  border-color: rgba(43, 182, 115, 0.38);
  background: rgba(43, 182, 115, 0.12);
}

body.scanMode .scanTimerSmall {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(16, 24, 40, 0.86);
  font-weight: 900;
  font-size: 13px;
}

body.scanMode .scanOptBadge {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 18px;
}

body.scanMode .scanOptText {
  font-size: 18px;
  line-height: 1.2;
}

body.scanMode .scanOptions {
  max-height: 36vh;
  overflow: auto;
  padding-right: 4px;
}

body.scanMode .scanAnsweredList {
  max-height: 24vh;
}

body.scanMode .scanTimer {
  font-size: 24px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  text-align: center;
}

body.scanMode .scanTimerSmall {
  position: static;
  right: auto;
  bottom: auto;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-weight: 900;
  padding: 12px 14px;
  font-size: 24px;
}

body.scanMode .scanAnswered {
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px 14px;
  display: grid;
  gap: 10px;
  min-height: 0;
}

body.scanMode .scanAnsweredTitle {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.9);
}

body.scanMode .scanAnsweredList {
  max-height: 32vh;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

body.scanMode .scanAnsweredRow {
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  font-weight: 800;
  color: rgba(16, 24, 40, 0.86);
}

body.scanMode .scanAnsweredRow.ok {
  border-color: rgba(43, 182, 115, 0.38);
  background: rgba(43, 182, 115, 0.12);
  color: rgba(16, 24, 40, 0.92);
}

body.scanMode #scanStartBtn,
body.scanMode #scanStopBtn {
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 13px;
}

body.scanMode .scanStatus {
  padding: 10px 12px;
  font-size: 13px;
}

body.scanMode .scanLast {
  padding: 10px 12px;
  font-size: 13px;
}

.cardsForm {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .cardsForm {
    grid-template-columns: 1fr;
  }
}

.cardsList {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}

.cardSetRow {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (max-width: 980px) {
  .cardSetRow {
    grid-template-columns: 1fr;
  }
}

.cardSetLeft {
  min-width: 0;
}

.cardSetTitle {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.9);
}

.cardSetSub {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.cardPreview {
  margin-top: 12px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 12px;
  width: min(300px, 100%);
  margin-left: 0;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  grid-template-rows: 36px 1fr 36px;
  gap: 10px;
  align-items: center;
  justify-items: center;
}

.cardPreview .qr {
  grid-column: 2;
  grid-row: 2;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  overflow: hidden;
}

.cardPreview .qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cardSide {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: var(--optA);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
}

.cardSide.top {
  grid-column: 2;
  grid-row: 1;
  background: var(--optA);
}

.cardSide.right {
  grid-column: 3;
  grid-row: 2;
  transform: rotate(90deg);
  background: var(--optD);
}

.cardSide.bottom {
  grid-column: 2;
  grid-row: 3;
  transform: rotate(180deg);
  background: var(--optC);
}

.cardSide.left {
  grid-column: 1;
  grid-row: 2;
  transform: rotate(-90deg);
  background: var(--optB);
}

.cardSetActions {
  display: inline-flex;
  gap: 10px;
  align-items: start;
  justify-content: flex-end;
  justify-self: end;
}

.studentRow {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.studentLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studentAvatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fbfbfd;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.studentAvatar svg {
  width: 32px;
  height: 32px;
}

.studentAvatar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.studentNameWrap {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.studentName {
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studentPts {
  color: rgba(21, 34, 56, 0.6);
  font-weight: 700;
  font-size: 13px;
}

.statusPill {
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.statusPill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(21, 34, 56, 0.28);
}

.statusPill.ok {
  background: rgba(79, 124, 87, 0.16);
  color: rgba(79, 124, 87, 1);
}

.statusPill.ok::before {
  background: rgba(79, 124, 87, 1);
}

.statusPill.free {
  background: rgba(43, 182, 115, 0.14);
  color: rgba(43, 182, 115, 1);
}

.statusPill.free::before {
  background: rgba(43, 182, 115, 1);
}

.statusPill.wait {
  background: rgba(107, 114, 128, 0.14);
  color: rgba(107, 114, 128, 1);
}

.statusPill.wait::before {
  background: rgba(107, 114, 128, 1);
}

.statusPill.off {
  background: rgba(107, 114, 128, 0.1);
  color: rgba(107, 114, 128, 1);
  opacity: 0.8;
}

.barChart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  padding: 12px 10px 6px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.barItem {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  gap: 8px;
  justify-items: center;
}

.barValue {
  font-weight: 900;
  color: rgba(21, 34, 56, 0.55);
  font-size: 12px;
}

.barTrack {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  background: rgba(16, 24, 40, 0.06);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.barFill {
  width: 100%;
  background: var(--optA);
  border-radius: 10px 10px 0 0;
  transition: height 140ms ease;
}

.barItem[data-letter="A"] .barFill {
  background: var(--optA);
}

.barItem[data-letter="B"] .barFill {
  background: var(--optB);
}

.barItem[data-letter="C"] .barFill {
  background: var(--optC);
}

.barItem[data-letter="D"] .barFill {
  background: var(--optD);
}

.barLabel {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.72);
  min-width: 34px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.qrModal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.qrModalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 34, 56, 0.4);
}

.qrModalCard {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
  justify-items: center;
  animation: pop 120ms ease-out;
}

.cardsModalCard {
  width: min(980px, calc(100vw - 32px));
  max-height: min(86vh, 820px);
  overflow: auto;
  justify-items: stretch;
}

.cardsModalRoom {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.86);
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
}

.finalModalCard {
  width: min(980px, calc(100vw - 32px));
  max-height: min(92vh, 920px);
  overflow: auto;
  justify-items: stretch;
}

@keyframes pop {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0.65;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.qrModalClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 900;
  color: rgba(21, 34, 56, 0.7);
}

.qrModalTitle {
  font-weight: 900;
  color: var(--text);
}

.qrLarge {
  width: 360px;
  height: 360px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fbfbfd;
}

@media (max-width: 420px) {
  .qrLarge {
    width: 300px;
    height: 300px;
  }
}

.joinLinkLarge {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
  word-break: break-all;
  text-align: center;
}

.roomsForm {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 720px) {
  .roomsForm {
    grid-template-columns: 1fr;
  }
}

.roomsCreateWrap {
  margin-top: 10px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.roomsCreateTitle {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.92);
}

.stepsBar {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.stepDot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(16, 24, 40, 0.7);
}

.stepDot.active {
  border-color: rgba(43, 182, 115, 0.45);
  color: rgba(43, 182, 115, 1);
  background: rgba(43, 182, 115, 0.12);
}

.stepLine {
  height: 2px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.14);
}

.createStep {
  display: grid;
  gap: 10px;
}
.roomTags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.tagPill {
  font-size: 11px;
  background: #f3f4f6;
  color: #4b5563;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.previewQuestionItem {
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #eee;
}
.previewQuestionItem strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
}
.previewQuestionItem ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.previewQuestionItem li {
  padding: 4px 0;
  color: #4b5563;
}
.searchWrap .input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s;
}
.searchWrap .input:focus {
  border-color: var(--blue);
  outline: none;
}

.createStepTitle {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.84);
}

.createActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.roomsSuggestions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roomsSugBtn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.roomRow {
  cursor: pointer;
  text-align: left;
}

.roomRow.roomActive {
  border: 2px solid rgba(43, 182, 115, 0.9);
  background: rgba(43, 182, 115, 0.12);
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.12);
}

.roomsStudentsPanel {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.roomsPublicWrap {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.roomsPublicTitle {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.86);
}

.roomsStudentsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.roomsStudentsTitle {
  font-weight: 900;
  color: rgba(16, 24, 40, 0.86);
}

.roomsStudentsList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roomsChip {
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  color: rgba(16, 24, 40, 0.78);
  background: rgba(255, 255, 255, 0.86);
}

.rowActions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.actionBtn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  color: rgba(16, 24, 40, 0.75);
}

.actionBtn.primary {
  border-color: rgba(43, 182, 115, 0.35);
  color: rgba(43, 182, 115, 1);
}

.actionBtn.danger {
  border-color: rgba(224, 79, 95, 0.35);
  color: rgba(224, 79, 95, 1);
}
