:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ec;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --accent: #0ea5a3;
  --accent-soft: #ccfbf1;
  --green: #15803d;
  --red: #b42318;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(249, 115, 22, 0.14), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(14, 165, 163, 0.12), transparent 24%),
    linear-gradient(135deg, #fffaf4, #eef7ff 55%, #f7fff8);
}

body.theme-junior {
  --brand: #fb923c;
  --brand-dark: #ea580c;
  --accent: #16a34a;
  --accent-soft: #dcfce7;
}

body.theme-senior {
  --brand: #f97316;
  --brand-dark: #c2410c;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
}

.hidden { display: none !important; }

.scene-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: block;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 28px;
  opacity: 0.22;
  filter: blur(1px);
  animation: floatShape 8s ease-in-out infinite;
}

.shape-one {
  left: 4%;
  top: 16%;
  background: #f97316;
  transform: rotate(18deg);
}

.shape-two {
  right: 7%;
  top: 20%;
  width: 120px;
  border-radius: 50%;
  background: #0ea5a3;
  animation-delay: -2s;
}

.shape-three {
  left: 68%;
  bottom: 10%;
  width: 110px;
  background: #84cc16;
  transform: rotate(45deg);
  animation-delay: -4s;
}

body.theme-senior .shape {
  border-radius: 18px;
  opacity: 0.16;
}

@keyframes floatShape {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

.quiz-shell,
.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.center-card {
  position: relative;
  width: min(720px, 100%);
  margin: 8vh auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: 22px;
  padding: 38px;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(14px);
}

.center-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.sound-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.danger { color: var(--red); }
.eyebrow.success { color: var(--green); }

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
}

h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(24px, 4vw, 42px); }

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

.meta-row,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.primary-btn {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.20);
}

.secondary-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.option-card:hover {
  transform: translateY(-2px);
}

.quiz-view {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quiz-view::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: linear-gradient(90deg, var(--brand), var(--accent), #84cc16);
}

.quiz-topbar,
.quiz-actions,
.section-head,
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.progress-pill,
.score-box {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: #fff;
  font-weight: 900;
}

.progress-track {
  height: 12px;
  background: #e8eef7;
  border-radius: 999px;
  margin: 20px 0 24px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: inherit;
  transition: width .25s ease;
}

.question-panel {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(236, 253, 245, 0.94));
  border: 1px solid #fed7aa;
  margin-bottom: 16px;
  animation: cardIn .28s ease both;
}

body.theme-senior .question-panel {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 247, 237, 0.94));
  border-color: #bfdbfe;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-banner {
  margin: 0 0 16px;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  animation: popIn .2s ease both;
}

.feedback-banner.is-correct {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.feedback-banner.is-wrong {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.option-card {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.option-card span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 1000;
}

.option-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(17px, 2.1vw, 23px);
}

.option-card.correct {
  border-color: #22c55e;
  background: #f0fdf4;
  animation: correctPulse .38s ease both;
}

.option-card.wrong {
  border-color: #ef4444;
  background: #fef2f2;
  animation: wrongShake .32s ease both;
}

.option-card:disabled {
  cursor: default;
}

@keyframes correctPulse {
  50% { transform: scale(1.025); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  65% { transform: translateX(5px); }
}

.score-large {
  font-size: 56px;
  font-weight: 1000;
  margin: 18px 0 0;
}

.admin-header { margin-bottom: 24px; }

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

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

.wide-card { grid-column: 1 / -1; }
.stack-form { display: flex; flex-direction: column; gap: 12px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form-error { color: var(--red); font-weight: 700; }
.option-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalog-list { display: grid; gap: 12px; }

.link-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.link-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

@media (max-width: 760px) {
  .quiz-shell,
  .admin-shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
  }

  .center-card,
  .quiz-view {
    border-radius: 18px;
    padding: 24px;
  }

  .admin-grid,
  .options-grid,
  .link-card,
  .option-editor {
    grid-template-columns: 1fr;
  }

  .quiz-topbar,
  .quiz-actions,
  .section-head,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sound-toggle {
    position: static;
    margin-bottom: 16px;
  }
}

/* Grade band visual personalities */
body.grade-band-1 {
  --brand: #f97316;
  --brand-dark: #c2410c;
  --accent: #22c55e;
  --accent-soft: #dcfce7;
  background:
    radial-gradient(circle at 14% 12%, rgba(251, 146, 60, 0.28), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.22), transparent 24%),
    linear-gradient(135deg, #fff7ed, #f0fdf4 58%, #eff6ff);
}

body.grade-band-2 {
  --brand: #eab308;
  --brand-dark: #a16207;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 179, 8, 0.25), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(6, 182, 212, 0.22), transparent 26%),
    linear-gradient(135deg, #fefce8, #ecfeff 58%, #fff7ed);
}

body.grade-band-3 {
  --brand: #f97316;
  --brand-dark: #c2410c;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(249, 115, 22, 0.18), transparent 26%),
    linear-gradient(135deg, #f8fafc, #eff6ff 55%, #fff7ed);
}

body.grade-band-4 {
  --brand: #f97316;
  --brand-dark: #c2410c;
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.16), transparent 26%),
    linear-gradient(135deg, #f8fafc, #f5f3ff 56%, #fff7ed);
}

body.grade-band-1 .center-card,
body.grade-band-1 .quiz-view {
  border-radius: 32px;
}

body.grade-band-1 .question-panel {
  border-radius: 30px;
  border: 3px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #f0fdf4);
}

body.grade-band-1 .option-card {
  border-radius: 28px;
  min-height: 118px;
  border-width: 3px;
}

body.grade-band-1 .option-card span {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

body.grade-band-2 .question-panel {
  border: 2px dashed #facc15;
  background: linear-gradient(135deg, #fefce8, #ecfeff);
}

body.grade-band-2 .option-card {
  border-style: dashed;
  box-shadow: 0 14px 26px rgba(14, 116, 144, 0.10);
}

body.grade-band-3 .quiz-view,
body.grade-band-4 .quiz-view {
  border-radius: 16px;
}

body.grade-band-3 .question-panel {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

body.grade-band-3 .option-card {
  border-radius: 14px;
}

body.grade-band-4 .question-panel {
  border-color: #c4b5fd;
  background:
    linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(255, 247, 237, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(124, 58, 237, 0.05) 18px 19px);
}

body.grade-band-4 .option-card {
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fafafa);
}

body.grade-band-4 .option-card span {
  border-radius: 10px;
}

body.grade-band-1 .shape-one,
body.grade-band-1 .shape-two,
body.grade-band-1 .shape-three {
  border-radius: 50%;
}

body.grade-band-2 .shape-one,
body.grade-band-2 .shape-three {
  border-radius: 20px;
  transform: rotate(45deg);
}

body.grade-band-3 .shape,
body.grade-band-4 .shape {
  opacity: 0.13;
  border-radius: 14px;
}

body.grade-band-4 .shape-two {
  border-radius: 8px;
}

/* Strong grade mode overrides - intentionally distinct */
body.grade-band-1 {
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 146, 60, 0.40), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(34, 197, 94, 0.36), transparent 18%),
    radial-gradient(circle at 50% 86%, rgba(59, 130, 246, 0.24), transparent 22%),
    linear-gradient(135deg, #fff7ed, #fef9c3 48%, #dcfce7);
}

body.grade-band-1 .center-card,
body.grade-band-1 .quiz-view {
  max-width: 900px;
  border: 5px solid #111827;
  border-radius: 42px;
  background: #fffdf7;
  box-shadow: 14px 14px 0 #111827, 0 30px 70px rgba(15, 23, 42, 0.14);
}

body.grade-band-1 .center-card::before,
body.grade-band-1 .quiz-view::before {
  height: 18px;
  background: repeating-linear-gradient(90deg, #f97316 0 40px, #22c55e 40px 80px, #3b82f6 80px 120px, #facc15 120px 160px);
}

body.grade-band-1 h1,
body.grade-band-1 h2,
body.grade-band-1 h3 {
  letter-spacing: 0;
  color: #111827;
}

body.grade-band-1 .options-grid {
  grid-template-columns: 1fr;
}

body.grade-band-1 .option-card {
  min-height: 128px;
  border: 4px solid #111827;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 8px 8px 0 #facc15;
}

body.grade-band-1 .option-card:nth-child(2n) { box-shadow: 8px 8px 0 #86efac; }
body.grade-band-1 .option-card:nth-child(3n) { box-shadow: 8px 8px 0 #93c5fd; }

body.grade-band-1 .option-card span {
  width: 58px;
  height: 58px;
  border: 3px solid #111827;
  background: #f97316;
  color: #fff;
}

body.grade-band-2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  background:
    linear-gradient(rgba(14, 116, 144, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #ecfeff, #fff7ed 58%, #fefce8);
  background-size: 28px 28px, 28px 28px, auto;
}

body.grade-band-2 .center-card,
body.grade-band-2 .quiz-view {
  border-radius: 10px;
  border: 3px dashed #0e7490;
  background: #fffffb;
  box-shadow: 0 24px 0 rgba(14, 116, 144, 0.12), 0 34px 70px rgba(15, 23, 42, 0.12);
}

body.grade-band-2 .center-card::before,
body.grade-band-2 .quiz-view::before {
  height: 14px;
  background: linear-gradient(90deg, #06b6d4, #facc15, #fb923c);
}

body.grade-band-2 .question-panel {
  border-radius: 8px;
  border: 3px dashed #f59e0b;
  background:
    linear-gradient(rgba(250, 204, 21, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.10) 1px, transparent 1px),
    #fffbeb;
  background-size: 22px 22px;
}

body.grade-band-2 .option-card {
  border-radius: 8px;
  border: 3px dashed #0891b2;
  background: #ffffff;
}

body.grade-band-2 .option-card span {
  border-radius: 6px;
  background: #fef08a;
}

body.grade-band-3 {
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(120deg, rgba(249, 115, 22, 0.10), transparent 34%),
    linear-gradient(315deg, rgba(37, 99, 235, 0.15), transparent 36%),
    #f8fafc;
}

body.grade-band-3 .quiz-shell {
  width: min(1240px, calc(100% - 36px));
}

body.grade-band-3 .center-card,
body.grade-band-3 .quiz-view {
  border-radius: 6px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.18);
}

body.grade-band-3 .center-card::before,
body.grade-band-3 .quiz-view::before {
  height: 6px;
  background: linear-gradient(90deg, #f97316, #2563eb);
}

body.grade-band-3 .quiz-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  column-gap: 22px;
  align-items: start;
}

body.grade-band-3 .quiz-topbar,
body.grade-band-3 .progress-track,
body.grade-band-3 .question-panel,
body.grade-band-3 .feedback-banner,
body.grade-band-3 .quiz-actions {
  grid-column: 1 / -1;
}

body.grade-band-3 .options-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.grade-band-3 .question-panel {
  border-radius: 6px;
  border-left: 8px solid #f97316;
  background: #ffffff;
}

body.grade-band-3 .option-card {
  min-height: 150px;
  align-items: flex-start;
  flex-direction: column;
  border-radius: 6px;
  border-width: 1px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

body.grade-band-3 .option-card span {
  border-radius: 4px;
  background: #dbeafe;
}

body.grade-band-4 {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 14%, rgba(249, 115, 22, 0.22), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.26), transparent 22%),
    linear-gradient(135deg, #111827, #18181b 56%, #2d1b12);
}

body.grade-band-4 .center-card,
body.grade-band-4 .quiz-view {
  border-radius: 0;
  border: 1px solid rgba(249, 115, 22, 0.55);
  background: rgba(17, 24, 39, 0.94);
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.40), 0 26px 80px rgba(0, 0, 0, 0.35);
}

body.grade-band-4 .muted,
body.grade-band-4 .eyebrow,
body.grade-band-4 label {
  color: #cbd5e1;
}

body.grade-band-4 .center-card::before,
body.grade-band-4 .quiz-view::before {
  height: 4px;
  background: linear-gradient(90deg, #f97316, #7c3aed, #22d3ee);
}

body.grade-band-4 .question-panel {
  border-radius: 0;
  border: 1px solid rgba(124, 58, 237, 0.65);
  border-left: 6px solid #f97316;
  background:
    linear-gradient(135deg, rgba(31, 41, 55, 0.98), rgba(24, 24, 27, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 23px);
}

body.grade-band-4 .options-grid {
  gap: 10px;
}

body.grade-band-4 .option-card {
  border-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(31, 41, 55, 0.94);
  color: #f8fafc;
  box-shadow: none;
}

body.grade-band-4 .option-card:hover {
  border-color: #f97316;
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.20);
}

body.grade-band-4 .option-card span,
body.grade-band-4 .progress-pill,
body.grade-band-4 .score-box,
body.grade-band-4 .meta-row span,
body.grade-band-4 .sound-toggle,
body.grade-band-4 .secondary-btn {
  border-radius: 0;
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(15, 23, 42, 0.90);
  color: #f8fafc;
}

body.grade-band-4 .option-card.correct {
  background: rgba(20, 83, 45, 0.95);
}

body.grade-band-4 .option-card.wrong {
  background: rgba(127, 29, 29, 0.95);
}

@media (max-width: 900px) {
  body.grade-band-3 .quiz-view {
    display: block;
  }

  body.grade-band-3 .options-grid {
    grid-template-columns: 1fr;
  }
}

/* Revision: keep junior styling, restore 2x2 options and light senior themes */
body.grade-band-1 .options-grid,
body.grade-band-2 .options-grid,
body.grade-band-3 .options-grid,
body.grade-band-4 .options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.grade-band-3 {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(249, 115, 22, 0.18), transparent 26%),
    linear-gradient(135deg, #f8fafc, #eff6ff 55%, #fff7ed);
}

body.grade-band-4 {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.16), transparent 26%),
    linear-gradient(135deg, #f8fafc, #f5f3ff 56%, #fff7ed);
}

body.grade-band-3 .quiz-shell,
body.grade-band-4 .quiz-shell {
  width: min(1120px, calc(100% - 32px));
}

body.grade-band-3 .quiz-view,
body.grade-band-4 .quiz-view {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(217, 226, 236, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

body.grade-band-3 .center-card,
body.grade-band-4 .center-card {
  border-radius: 22px;
  border: 1px solid rgba(217, 226, 236, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

body.grade-band-3 .center-card::before,
body.grade-band-3 .quiz-view::before,
body.grade-band-4 .center-card::before,
body.grade-band-4 .quiz-view::before {
  height: 9px;
  background: linear-gradient(90deg, var(--brand), var(--accent), #84cc16);
}

body.grade-band-3 .muted,
body.grade-band-4 .muted {
  color: var(--muted);
}

body.grade-band-3 .eyebrow,
body.grade-band-4 .eyebrow {
  color: var(--brand-dark);
}

body.grade-band-3 .question-panel {
  border-radius: 22px;
  border: 1px solid #bfdbfe;
  border-left: 1px solid #bfdbfe;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 247, 237, 0.94));
}

body.grade-band-4 .question-panel {
  border-radius: 22px;
  border: 1px solid #c4b5fd;
  border-left: 1px solid #c4b5fd;
  background:
    linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(255, 247, 237, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(124, 58, 237, 0.05) 18px 19px);
}

body.grade-band-3 .option-card,
body.grade-band-4 .option-card {
  min-height: 104px;
  align-items: center;
  flex-direction: row;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

body.grade-band-3 .option-card {
  border-radius: 14px;
}

body.grade-band-4 .option-card {
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fafafa);
}

body.grade-band-3 .option-card span {
  border-radius: 4px;
  background: #dbeafe;
  color: var(--ink);
}

body.grade-band-4 .option-card span,
body.grade-band-4 .progress-pill,
body.grade-band-4 .score-box,
body.grade-band-4 .meta-row span,
body.grade-band-4 .sound-toggle,
body.grade-band-4 .secondary-btn {
  border-radius: 10px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

body.grade-band-4 .option-card.correct,
body.grade-band-3 .option-card.correct {
  border-color: #22c55e;
  background: #f0fdf4;
}

body.grade-band-4 .option-card.wrong,
body.grade-band-3 .option-card.wrong {
  border-color: #ef4444;
  background: #fef2f2;
}

@media (max-width: 760px) {
  body.grade-band-1 .options-grid,
  body.grade-band-2 .options-grid,
  body.grade-band-3 .options-grid,
  body.grade-band-4 .options-grid {
    grid-template-columns: 1fr;
  }
}

/* Quiz footer spacing */
.quiz-actions {
  margin-top: 28px;
  padding-top: 6px;
}

/* Center the classroom quiz platform */
.quiz-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-shell > section {
  width: 100%;
}

.quiz-view {
  min-height: auto;
}

@media (max-width: 760px) {
  .quiz-shell {
    min-height: 100vh;
    align-items: center;
  }
}

/* Result celebration */
.celebration-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#result-view > :not(.celebration-layer) {
  position: relative;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -18px;
  left: var(--left);
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: var(--color);
  opacity: 0;
  animation: confettiFall 1.7s ease-out var(--delay) forwards;
}

.confetti-piece.party {
  width: 14px;
  height: 24px;
  animation-duration: 2.3s;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(.75);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 420px, 0) rotate(520deg) scale(1);
  }
}

body.grade-band-1 #result-view h1,
body.grade-band-2 #result-view h1 {
  animation: resultPop .5s ease both;
}

@keyframes resultPop {
  0% { transform: scale(.9); }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Admin secure link controls */
.link-card.is-inactive {
  opacity: 0.64;
}

.link-card.is-inactive h3::after {
  content: " Inactive";
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  vertical-align: middle;
}

.link-actions {
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
}

.link-actions input {
  min-width: 0;
}

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

  .link-actions input {
    grid-column: 1 / -1;
  }
}

.danger-btn {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff5f5;
}

.danger-btn:hover {
  border-color: #ef4444;
}

/* Question and answer images */
.question-media {
  margin-top: 18px;
}

.question-image {
  display: block;
  max-width: min(520px, 100%);
  max-height: 300px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.option-image {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.option-card:has(.option-image) {
  align-items: flex-start;
  flex-wrap: wrap;
}

.option-card:has(.option-image) strong {
  flex: 1 1 calc(100% - 58px);
}

body.grade-band-1 .option-image {
  border: 3px solid #111827;
  border-radius: 20px;
}

/* Hierarchical admin manager */
.admin-actions,
.card-actions,
.modal-actions,
.modal-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.admin-breadcrumbs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.manager-panel {
  display: grid;
  gap: 18px;
}

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

.manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manager-list {
  display: grid;
  gap: 14px;
}

.manager-card,
.question-admin-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.question-admin-card h3,
.manager-card h3 {
  font-size: 22px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.54);
}

.modal-card {
  width: min(820px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.checkbox-line {
  flex-direction: row;
  align-items: center;
}

.checkbox-line input {
  width: auto;
}

.admin-thumb,
.admin-preview {
  display: block;
  max-width: 220px;
  max-height: 140px;
  object-fit: contain;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.admin-preview.small {
  max-width: 130px;
  max-height: 90px;
}

@media (max-width: 860px) {
  .manager-grid,
  .manager-card,
  .question-admin-card,
  .manager-head {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* Admin polish pass */
.admin-shell {
  width: min(1280px, calc(100% - 40px));
  padding: 24px 0 40px;
}

.admin-header {
  margin-bottom: 18px;
}

.admin-header h1 {
  font-size: clamp(30px, 3.2vw, 46px);
}

.admin-header .muted {
  font-size: 16px;
  margin: 8px 0 0;
}

.admin-actions .secondary-btn {
  padding: 10px 14px;
}

.admin-breadcrumbs {
  margin: 0 0 14px;
  gap: 7px;
}

.admin-breadcrumbs button {
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-head {
  padding: 18px 22px;
  border-radius: 12px;
}

.manager-head h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.manager-head .muted {
  font-size: 16px;
  margin: 8px 0 0;
}

.manager-head .primary-btn {
  padding: 12px 18px;
  min-width: 118px;
}

.manager-card,
.question-admin-card,
.link-card {
  padding: 16px 18px;
  border-radius: 12px;
}

.manager-card h3,
.question-admin-card h3,
.link-card h3 {
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.05;
}

.manager-card .muted,
.question-admin-card .muted,
.link-card .muted {
  font-size: 15px;
  margin: 8px 0 0;
}

.link-card {
  grid-template-columns: minmax(320px, 1fr) minmax(520px, 0.95fr);
  gap: 18px;
}

.link-actions {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(110px, auto));
  gap: 10px;
}

.link-actions input {
  grid-column: 1 / -1;
  font-size: 14px;
  height: 44px;
}

.link-actions .secondary-btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 12px;
}

.card-actions .secondary-btn,
.card-actions .primary-btn {
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 12px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
}

.modal-card h2 {
  font-size: 28px;
}

.modal-card label {
  font-size: 12px;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  font-size: 15px;
}

@media (max-width: 1100px) {
  .link-card {
    grid-template-columns: 1fr;
  }

  .link-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-actions input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-shell {
    width: min(100% - 20px, 1280px);
  }

  .manager-head,
  .manager-card,
  .question-admin-card,
  .link-card {
    padding: 14px;
  }

  .link-actions,
  .card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Result stages */
.result-card {
  transition: background .2s ease, border-color .2s ease;
}

.result-emoji {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  margin: 4px 0 14px;
  animation: emojiBounce .8s ease both;
}

.result-remark {
  width: min(560px, 100%);
  margin: 8px auto 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.result-perfect {
  background: linear-gradient(135deg, #fff7ed, #f0fdf4);
}

.result-excellent {
  background: linear-gradient(135deg, #fffbeb, #eff6ff);
}

.result-progress {
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.result-practice {
  background: linear-gradient(135deg, #fff7ed, #f8fafc);
}

.result-retry {
  background: linear-gradient(135deg, #f8fafc, #fff1f2);
}

.result-perfect .result-emoji {
  animation: partyPop .9s ease both infinite alternate;
}

.result-excellent .result-emoji {
  animation: trophyShine 1.1s ease both infinite alternate;
}

.result-progress .result-emoji {
  animation: starPulse 1s ease both infinite alternate;
}

.result-practice .result-emoji {
  animation: ideaGlow 1.1s ease both infinite alternate;
}

.result-retry .result-emoji {
  animation: retrySpin 1.3s ease both infinite;
}

.confetti-piece.result-retry {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: .55;
}

.confetti-piece.result-practice {
  width: 8px;
  height: 16px;
  opacity: .65;
}

.confetti-piece.result-progress,
.confetti-piece.result-excellent {
  opacity: .85;
}

@keyframes emojiBounce {
  0% { transform: translateY(12px) scale(.8); opacity: 0; }
  70% { transform: translateY(-4px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes partyPop {
  from { transform: rotate(-5deg) scale(1); }
  to { transform: rotate(5deg) scale(1.12); }
}

@keyframes trophyShine {
  from { filter: drop-shadow(0 0 0 rgba(250, 204, 21, 0)); transform: translateY(0); }
  to { filter: drop-shadow(0 0 18px rgba(250, 204, 21, .72)); transform: translateY(-5px); }
}

@keyframes starPulse {
  from { transform: scale(1); }
  to { transform: scale(1.14); }
}

@keyframes ideaGlow {
  from { filter: drop-shadow(0 0 0 rgba(251, 146, 60, 0)); }
  to { filter: drop-shadow(0 0 14px rgba(251, 146, 60, .7)); }
}

@keyframes retrySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Grade 1-2 and 3-4 split refinement */
body.grade-band-1 {
  background:
    radial-gradient(circle at 16% 16%, rgba(251, 146, 60, 0.34), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(34, 197, 94, 0.30), transparent 18%),
    radial-gradient(circle at 48% 88%, rgba(96, 165, 250, 0.22), transparent 24%),
    linear-gradient(135deg, #fff7ed, #fef9c3 48%, #dcfce7);
}

body.grade-band-1 .center-card,
body.grade-band-1 .quiz-view {
  border-radius: 46px;
  border-width: 5px;
}

body.grade-band-1 .question-panel {
  border-radius: 36px;
  background: linear-gradient(135deg, #fff7ed, #fefce8 52%, #f0fdf4);
}

body.grade-band-1 .option-card {
  border-radius: 36px;
  min-height: 120px;
}

body.grade-band-1 .option-card span {
  border-radius: 50%;
  width: 56px;
  height: 56px;
}

body.grade-band-1 .shape-one,
body.grade-band-1 .shape-two,
body.grade-band-1 .shape-three {
  opacity: 0.26;
  border-radius: 50%;
}

body.grade-band-1 .shape-three {
  border-radius: 34% 66% 56% 44%;
}

body.grade-band-2 {
  background:
    linear-gradient(rgba(14, 116, 144, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #ecfeff, #fff7ed 58%, #fefce8);
  background-size: 30px 30px, 30px 30px, auto;
}

body.grade-band-2 .center-card,
body.grade-band-2 .quiz-view {
  border-radius: 24px;
  border: 3px solid #0e7490;
  box-shadow: 10px 10px 0 rgba(14, 116, 144, 0.13), 0 28px 65px rgba(15, 23, 42, 0.12);
}

body.grade-band-2 .question-panel {
  border-radius: 22px;
  border: 3px dashed #f59e0b;
  background:
    linear-gradient(rgba(250, 204, 21, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.08) 1px, transparent 1px),
    #fffbeb;
  background-size: 24px 24px;
}

body.grade-band-2 .option-card {
  border-radius: 22px;
  border: 3px solid #0891b2;
  box-shadow: 6px 6px 0 rgba(6, 182, 212, 0.18);
}

body.grade-band-2 .option-card span {
  border-radius: 12px;
  background: #fef08a;
}

body.grade-band-2 .shape-one,
body.grade-band-2 .shape-three {
  border-radius: 20px;
  opacity: 0.18;
}

body.grade-band-2 .shape-two {
  border-radius: 14px;
  opacity: 0.16;
}

/* Keep answer feedback from shifting the quiz layout */
.feedback-banner.hidden {
  display: block !important;
  visibility: hidden;
  min-height: 50px;
  margin-bottom: 12px;
  padding: 12px 16px;
}

.feedback-banner {
  min-height: 50px;
  margin-bottom: 12px;
  padding: 12px 16px;
}

.quiz-actions {
  margin-top: 18px;
}

/* Grade 1-2 keeps playful style, but uses compact uniform quiz sizing */
body.grade-band-1 .question-panel {
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 12px;
}

body.grade-band-1 .option-card {
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 28px;
}

body.grade-band-1 .option-card span {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

body.grade-band-1 .option-card strong {
  font-size: clamp(16px, 1.8vw, 20px);
}

body.grade-band-1 .options-grid {
  gap: 14px;
}

/* WhizQuest brand layer */
:root {
  --brand: #EC7B21;
  --brand-dark: #c45a0b;
  --ink: #09090b;
  --muted: #52525b;
  --line: #e4e4e7;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(9, 9, 11, 0.10);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(236, 123, 33, 0.16), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(9, 9, 11, 0.07), transparent 24%),
    linear-gradient(135deg, #fafafa, #f4f4f5 55%, #fff7ed);
}

.auth-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.quiz-brand {
  position: fixed;
  z-index: 4;
  top: 18px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(9, 9, 11, 0.08);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.quiz-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
}

.primary-btn:hover {
  background: #18181b;
}

.secondary-btn:hover,
.admin-breadcrumbs button:hover {
  border-color: rgba(236, 123, 33, 0.42);
  color: var(--brand-dark);
}

.eyebrow {
  color: var(--brand-dark);
}

.center-card::before,
.quiz-view::before,
.manager-head::before {
  background: linear-gradient(90deg, var(--brand), #09090b, var(--brand));
}

.manager-head,
.manager-card,
.question-admin-card,
.link-card,
.modal-card,
.center-card,
.quiz-view {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.admin-breadcrumbs button,
.meta-row span,
.progress-pill,
.score-box,
input,
select,
textarea {
  border-color: var(--line);
}

.link-card.is-inactive h3::after {
  background: #fff7ed;
  color: var(--brand-dark);
}

@media (max-width: 760px) {
  .quiz-brand {
    position: static;
    margin: 10px auto 0;
    width: fit-content;
  }
}

/* WhizQuest admin typography and button refinement */
.admin-shell {
  font-size: 14px;
}

.admin-header h1 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

.manager-head h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

.center-card h1 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

.manager-card h3,
.question-admin-card h3,
.link-card h3 {
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
}

.admin-header .muted,
.manager-head .muted,
.manager-card .muted,
.question-admin-card .muted,
.link-card .muted,
.center-card .muted {
  font-size: 14px;
  line-height: 1.45;
  color: #5f6673;
}

.brand-lockup {
  font-size: 12px;
  margin-bottom: 10px;
}

.admin-logo {
  height: 34px;
}

.auth-logo {
  height: 46px;
  margin-bottom: 14px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .11em;
}

.primary-btn,
.secondary-btn,
.admin-breadcrumbs button,
.link-actions .secondary-btn,
.card-actions .secondary-btn,
.card-actions .primary-btn {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.primary-btn {
  background: #09090b;
  color: #fff;
  border: 1px solid #09090b;
}

.primary-btn:hover {
  background: #EC7B21;
  border-color: #EC7B21;
}

.secondary-btn {
  background: #fff;
  color: #18181b;
  border: 1px solid #d4d4d8;
}

.secondary-btn:hover {
  background: #fff7ed;
  border-color: #EC7B21;
  color: #c45a0b;
}

button[data-copy] {
  background: #fff7ed;
  border-color: rgba(236, 123, 33, .35);
  color: #c45a0b;
}

button[data-open-grade],
button[data-open-subject],
button[data-open-lesson],
button[data-open-quiz] {
  background: #09090b;
  border-color: #09090b;
  color: #fff;
}

button[data-open-grade]:hover,
button[data-open-subject]:hover,
button[data-open-lesson]:hover,
button[data-open-quiz]:hover {
  background: #EC7B21;
  border-color: #EC7B21;
  color: #fff;
}

button[data-edit-grade],
button[data-edit-subject],
button[data-edit-lesson],
button[data-edit-quiz],
button[data-edit-question] {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #27272a;
}

button[data-toggle-quiz],
button[data-regen-quiz] {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

button[data-toggle-quiz]:hover,
button[data-regen-quiz]:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}

.danger-btn,
button[data-delete-subject],
button[data-delete-lesson],
button[data-delete-quiz],
button[data-delete-question] {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.danger-btn:hover,
button[data-delete-subject]:hover,
button[data-delete-lesson]:hover,
button[data-delete-quiz]:hover,
button[data-delete-question]:hover {
  background: #ffe4e6;
  border-color: #fb7185;
  color: #9f1239;
}

.manager-head,
.manager-card,
.question-admin-card,
.link-card {
  padding: 14px 16px;
}

.link-actions input {
  height: 40px;
  font-size: 13px;
}

.admin-breadcrumbs button {
  font-size: 13px;
  padding: 8px 12px;
}

.modal-card h2 {
  font-size: 24px;
}

.modal-card {
  border-radius: 14px;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-field button {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.password-field button:hover {
  border-color: #EC7B21;
  color: #EC7B21;
}
