@import url("./prototype.css");

.brand-mark {
  text-decoration: none;
}

.flash-stack {
  display: grid;
  gap: 8px;
  max-width: 1440px;
  margin: 0 auto 14px;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(23, 19, 49, .12);
  font-weight: 900;
}

.flash.error {
  color: #fff;
  background: var(--red);
}

.flash.success {
  color: var(--ink);
  background: var(--yellow);
}

.main-nav form {
  margin: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.email-card {
  color: var(--ink);
  text-decoration: none;
}

.email-card .toolbar {
  margin-top: 12px;
}

.email-card form {
  margin: 0;
}

.qr-code {
  display: block;
  width: min(190px, 100%);
  aspect-ratio: 1;
  margin-top: 14px;
  border: 6px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 0 rgba(23, 19, 49, .14);
}

form label {
  margin-top: 14px;
}

hr {
  margin: 20px 0;
  border: 0;
  border-top: 2px solid rgba(23, 19, 49, .12);
}

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

.form-note {
  margin: 12px 0 0;
  color: rgba(23, 19, 49, .72);
  font-weight: 700;
}

.inline-link {
  display: block;
  margin-top: 10px;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: rgba(23, 19, 49, .06);
  border: 2px solid rgba(23, 19, 49, .08);
  font-size: .82rem;
}

.question-preview,
.student-image-wrap img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin-top: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .8);
}

.student-image-wrap {
  margin: 18px 0 10px;
}

.student-meta-row,
.projector-summary-grid {
  display: grid;
  gap: 10px;
}

.student-meta-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
  font-weight: 900;
  text-transform: capitalize;
}

.projector-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: min(720px, 100%);
}

.projector-stat {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  border: 2px solid rgba(255, 255, 255, .18);
  color: #fff;
}

.projector-stat span {
  display: block;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  opacity: .78;
}

.projector-stat strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
}

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

.check-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid rgba(23, 19, 49, .12);
  border-radius: 8px;
  background: rgba(23, 19, 49, .04);
  font-weight: 800;
}

.question-mode.is-hidden,
.student-submit-row.is-hidden,
.student-image-wrap.is-hidden {
  display: none;
}

.is-disabled {
  opacity: .45;
}

.compact-table th,
.compact-table td {
  white-space: nowrap;
}

.correct-choice,
.result-bar.is-correct {
  outline: 3px solid rgba(255, 255, 255, .85);
}

.ordering-card,
.ordering-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(23, 19, 49, .1);
}

.ordering-card + .ordering-card,
.ordering-row + .ordering-row {
  margin-top: 12px;
}

.ordering-position,
.ordering-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-weight: 1000;
  color: #fff;
  background: var(--purple);
}

.ordering-actions {
  display: flex;
  gap: 8px;
}

.ordering-results {
  display: grid;
  gap: 12px;
}

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