* {
  box-sizing: border-box;
}

body.quiz-editor-page {
  --quiz-admin-context-shell-max: 1560px;
  --editor-bg: #07111f;
  --editor-surface: rgba(15, 23, 42, 0.94);
  --editor-surface-2: rgba(17, 31, 48, 0.92);
  --editor-surface-3: rgba(30, 41, 59, 0.72);
  --editor-border: rgba(148, 163, 184, 0.24);
  --editor-border-strong: rgba(45, 212, 191, 0.48);
  --editor-text: #e5f2ff;
  --editor-muted: #9fb2c8;
  --editor-dim: #7488a3;
  --editor-primary: #14b8a6;
  --editor-primary-strong: #0f766e;
  --editor-primary-soft: rgba(20, 184, 166, 0.16);
  --editor-amber: #f59e0b;
  --editor-amber-soft: rgba(245, 158, 11, 0.18);
  --editor-red: #ef4444;
  --editor-red-soft: rgba(239, 68, 68, 0.14);
  --editor-info: #38bdf8;
  --editor-radius: 8px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px;
  background: linear-gradient(180deg, #0b1627 0%, var(--editor-bg) 100%);
  background-attachment: fixed;
  color: var(--editor-text);
  font-family: var(--font-body, Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.quiz-editor-page .hidden {
  display: none !important;
}

.quiz-editor-page button,
.quiz-editor-page input,
.quiz-editor-page textarea {
  font: inherit;
}

.quiz-editor-page button {
  cursor: pointer;
}

.quiz-editor-page button:disabled {
  cursor: default;
  opacity: 0.5;
}

.editor-loading,
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--editor-bg);
  color: var(--editor-text);
  padding: 20px;
  text-align: center;
}

#auth-overlay {
  z-index: 8000;
}

.editor-loading p {
  margin: 16px 0 0;
  color: var(--editor-muted);
  font-weight: 700;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(148, 163, 184, 0.34);
  border-top-color: var(--editor-primary);
  border-radius: 50%;
  animation: quiz-editor-spin 1s linear infinite;
}

@keyframes quiz-editor-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-panel {
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--editor-border);
  border-radius: var(--editor-radius);
  background: var(--editor-surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid var(--editor-border-strong);
  background: var(--editor-primary-soft);
  color: #baf7ee;
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-panel h2 {
  margin: 0 0 10px;
  color: var(--editor-text);
}

.auth-panel p {
  margin: 0 0 22px;
  color: var(--editor-muted);
  line-height: 1.6;
}

.quiz-editor-main {
  min-width: 0;
}

.editor-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: calc(100dvh - 220px);
  gap: 12px;
}

.editor-header,
.editor-info,
.editor-panel,
.editor-footer {
  border: 1px solid var(--editor-border);
  border-radius: var(--editor-radius);
  background: linear-gradient(180deg, var(--editor-surface), rgba(12, 24, 41, 0.94));
  box-shadow: 0 18px 42px rgba(5, 10, 25, 0.24);
}

.editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.editor-titleblock {
  min-width: 0;
}

.editor-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  background: rgba(20, 184, 166, 0.1);
  color: #90f2e5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-titleblock h1 {
  margin: 0;
  color: var(--editor-text);
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
  line-height: 1.15;
}

.editor-meta-line {
  margin-top: 8px;
  color: var(--editor-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.editor-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.editor-btn,
.editor-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--editor-border);
  border-radius: var(--editor-radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--editor-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

.editor-btn:hover:not(:disabled),
.editor-icon-btn:hover:not(:disabled) {
  border-color: var(--editor-border-strong);
  background: rgba(20, 184, 166, 0.12);
}

.editor-btn:active:not(:disabled),
.editor-icon-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.editor-btn-primary {
  border-color: rgba(45, 212, 191, 0.52);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.92), rgba(13, 148, 136, 0.92));
  color: #ecfffb;
}

.editor-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2dd4bf, var(--editor-primary-strong));
}

.editor-btn-danger {
  border-color: rgba(248, 113, 113, 0.38);
  background: var(--editor-red-soft);
  color: #fecaca;
}

.editor-btn-small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.editor-btn-block {
  width: 100%;
}

.editor-icon-btn {
  min-width: 42px;
  padding: 0 10px;
}

.editor-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--editor-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--editor-muted);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.editor-pill-good {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(20, 184, 166, 0.14);
  color: #99f6e4;
}

.editor-pill-info {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 116, 144, 0.16);
  color: #bae6fd;
}

.editor-pill-accent {
  border-color: rgba(245, 158, 11, 0.34);
  background: var(--editor-amber-soft);
  color: #fde68a;
}

.editor-pill-warn {
  border-color: rgba(245, 158, 11, 0.44);
  background: var(--editor-amber-soft);
  color: #fcd34d;
}

.editor-pill-danger {
  border-color: rgba(239, 68, 68, 0.44);
  background: var(--editor-red-soft);
  color: #fecaca;
}

.editor-info {
  padding: 14px;
}

.editor-info-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.editor-info-head h2,
.panel-head h2,
.inspect h3 {
  margin: 0;
  color: var(--editor-text);
}

.editor-info-head p {
  margin: 5px 0 0;
  color: var(--editor-muted);
  font-size: 0.86rem;
}

.editor-info-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(120px, 0.8fr)) minmax(220px, 1.4fr) minmax(220px, 1.4fr) minmax(220px, 1.4fr);
  gap: 10px;
  margin-top: 12px;
}

.editor-info.is-closed .editor-info-grid {
  display: none;
}

.editor-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.editor-field span,
.section-title,
.question-search label {
  color: var(--editor-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz-editor-page input,
.quiz-editor-page textarea {
  width: 100%;
  border: 1px solid var(--editor-border);
  border-radius: var(--editor-radius);
  background: rgba(5, 13, 25, 0.62);
  color: var(--editor-text);
  outline: none;
}

.quiz-editor-page input {
  min-height: 38px;
  padding: 0 11px;
}

.quiz-editor-page textarea {
  padding: 11px;
  resize: vertical;
  line-height: 1.5;
}

.quiz-editor-page input:focus,
.quiz-editor-page textarea:focus {
  border-color: var(--editor-border-strong);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

.editor-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(430px, 1fr) minmax(300px, 360px);
  gap: 12px;
}

.editor-panel {
  min-height: 0;
  overflow: hidden;
}

.question-nav,
.question-editor,
.preview-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.question-editor {
  grid-template-rows: auto minmax(0, 1fr);
}

.preview-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.panel-head small {
  display: block;
  margin-top: 3px;
  color: var(--editor-muted);
  font-weight: 800;
}

.editor-panel-head {
  align-items: center;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.question-search {
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.question-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.question-list-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--editor-muted);
  text-align: center;
  border: 1px dashed var(--editor-border);
  border-radius: var(--editor-radius);
}

.qrow {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  min-height: 72px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--editor-radius);
  background: rgba(15, 23, 42, 0.62);
  color: var(--editor-text);
  text-align: left;
}

.qrow:hover {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(20, 184, 166, 0.08);
}

.qrow.is-active {
  border-color: var(--editor-border-strong);
  background: rgba(20, 184, 166, 0.16);
  box-shadow: inset 3px 0 0 var(--editor-primary);
}

.qrow.has-error {
  border-color: rgba(245, 158, 11, 0.36);
}

.qnum {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--editor-radius);
  background: rgba(255, 255, 255, 0.06);
  color: #ccfbf1;
  font-size: 0.8rem;
  font-weight: 900;
}

.qbody {
  min-width: 0;
}

.qtext {
  color: var(--editor-text);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.mini {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--editor-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.mini-good,
.mini-green {
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(20, 184, 166, 0.12);
  color: #99f6e4;
}

.mini-info {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 116, 144, 0.16);
  color: #bae6fd;
}

.mini-warn {
  border-color: rgba(245, 158, 11, 0.36);
  background: var(--editor-amber-soft);
  color: #fde68a;
}

.statusicon {
  color: var(--editor-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.addbar {
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.editbody,
.preview-body {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.editor-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--editor-radius);
  background: rgba(15, 23, 42, 0.5);
}

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

.section-title small {
  color: var(--editor-dim);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

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

.type-tab {
  min-height: 38px;
  border: 1px solid var(--editor-border);
  border-radius: var(--editor-radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--editor-muted);
  font-weight: 900;
}

.type-tab.is-active {
  border-color: var(--editor-border-strong);
  background: rgba(20, 184, 166, 0.18);
  color: #ccfbf1;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 170px 56px;
  gap: 8px;
  align-items: stretch;
}

.dropzone {
  min-height: 70px;
  border: 1px dashed rgba(45, 212, 191, 0.34);
  border-radius: var(--editor-radius);
  background: rgba(20, 184, 166, 0.08);
  color: #99f6e4;
  font-weight: 900;
}

.image-thumb {
  min-height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--editor-border);
  border-radius: var(--editor-radius);
  background: rgba(3, 7, 18, 0.42);
  color: var(--editor-dim);
  font-size: 0.82rem;
  text-align: center;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  max-height: 112px;
  object-fit: contain;
}

.question-textarea {
  min-height: 118px;
  font-size: 1rem;
}

.explanation-textarea {
  min-height: 88px;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 72px 52px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--editor-radius);
  background: rgba(3, 7, 18, 0.24);
}

.option-letter {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--editor-radius);
  background: rgba(45, 212, 191, 0.14);
  color: #ccfbf1;
  font-size: 0.8rem;
  font-weight: 900;
}

.correct-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  color: var(--editor-muted);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.correct-label input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--editor-primary);
}

.answer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.answer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 7px 0 10px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #ccfbf1;
  font-size: 0.82rem;
  font-weight: 900;
}

.answer-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ccfbf1;
  font-weight: 900;
}

.editor-note {
  margin: 0;
  color: var(--editor-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.student-card {
  padding: 16px;
  border: 1px solid #d7e2ef;
  border-radius: var(--editor-radius);
  background: #fbfdff;
  color: #102033;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.student-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: #334155;
  font-weight: 900;
}

.student-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: var(--editor-radius);
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.student-image {
  height: 132px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #dbe7f4;
  border-radius: var(--editor-radius);
  background: #eff6ff;
}

.student-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.student-question {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.48;
  white-space: pre-line;
}

.student-options {
  display: grid;
  gap: 8px;
}

.student-opt {
  display: grid;
  grid-template-columns: 24px 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #d4dee9;
  border-radius: var(--editor-radius);
  background: #ffffff;
  color: #1f2937;
  font-weight: 800;
}

.student-opt.is-correct {
  border-color: #14b8a6;
  background: #f0fdfa;
}

.student-bubble {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
}

.student-opt.is-correct .student-bubble {
  border-color: #14b8a6;
  box-shadow: inset 0 0 0 4px #ffffff;
  background: #14b8a6;
}

.student-letter {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--editor-radius);
  background: #eef2f7;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.teacher-answer {
  margin-top: 14px;
  padding: 11px;
  border-radius: var(--editor-radius);
  background: #f8fafc;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.55;
}

.inspect {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--editor-radius);
  background: rgba(15, 23, 42, 0.58);
}

.checkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  color: #c7d4e7;
  font-size: 0.86rem;
}

.inspect-divider {
  height: 1px;
  margin: 13px 0;
  background: rgba(148, 163, 184, 0.18);
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.footer-status {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--editor-muted);
  font-size: 0.86rem;
}

.status {
  min-height: 20px;
  color: #99f6e4;
  font-weight: 800;
}

.status.error {
  color: #fecaca;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  width: min(860px, 94vw);
  max-height: 86vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--editor-radius);
  background: linear-gradient(180deg, #13243d, #0d1a2e);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal h2,
.modal p {
  margin: 0;
}

.modal p {
  margin-top: 5px;
  color: var(--editor-muted);
}

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

.modal-card {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--editor-radius);
  background: rgba(255, 255, 255, 0.05);
}

.modal-card h3 {
  margin: 8px 0 0;
  color: var(--editor-text);
  font-size: 1.4rem;
}

.error-item {
  width: 100%;
  display: block;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--editor-radius);
  background: rgba(245, 158, 11, 0.1);
  color: var(--editor-text);
  text-align: left;
}

.error-item strong {
  display: block;
  margin-bottom: 6px;
}

.error-item span {
  color: #fde68a;
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10020;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: var(--editor-radius);
  background: #11243d;
  color: #eaf2ff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.theme-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  min-width: 48px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--editor-border);
  border-radius: var(--editor-radius);
  background: rgba(20, 184, 166, 0.92);
  color: #ecfffb;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1360px) {
  .editor-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editor-workspace {
    grid-template-columns: minmax(240px, 290px) minmax(390px, 1fr) minmax(280px, 330px);
  }

  .media-grid {
    grid-template-columns: 1fr 140px 54px;
  }
}

@media (max-width: 1120px) {
  body.quiz-editor-page {
    padding: 14px;
  }

  .editor-header {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    justify-content: flex-start;
  }
}

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

  .question-nav {
    min-height: 440px;
  }

  .question-editor,
  .preview-panel {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  body.quiz-editor-page {
    padding: 10px;
  }

  .editor-header,
  .editor-info,
  .editbody,
  .preview-body {
    padding: 12px;
  }

  .editor-info-grid,
  .type-tabs,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .option-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .correct-label,
  .option-row .option-delete {
    grid-column: 2;
    justify-content: flex-start;
  }

  .editor-footer,
  .modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-actions,
  .footer-actions {
    justify-content: flex-start;
  }

  .editor-actions > *,
  .footer-actions > * {
    flex: 1 1 150px;
  }

  .student-card {
    padding: 12px;
  }
}
