/* Gameficate Craft — 📄 Question papers step (js/sections/PapersSection.js, PaperEditor.js). */
.paper-modes {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.paper-modes .kind-card {
  padding: 14px 16px;
}
.paper-modes .kc-desc {
  font-size: 13px;
}
/* ---------- the papers ---------- */
.pc-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 800;
}
.paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.paper-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.paper-card.ok {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}
.paper-card.open {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 20%, transparent);
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--navy);
}
.pc-state {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: color-mix(in srgb, var(--amber) 16%, #fff);
  color: var(--amber);
}
.pc-state.ok {
  background: color-mix(in srgb, var(--green) 14%, #fff);
  color: var(--green);
}
.pc-meta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.pc-warn {
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
}
.pc-acts {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
/* ---------- reviewing one paper ---------- */
.paper-review {
  border: 2px solid var(--orange);
}
.pr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pr-head small {
  font-size: 14px;
  color: var(--muted);
}
.pr-ok {
  font-weight: 900;
  color: var(--green);
}
.pr-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.pr-row {
  display: grid;
  grid-template-columns: 30px 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.pr-row.warn {
  border-color: color-mix(in srgb, var(--amber) 50%, var(--line));
}
.pr-row.err {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
}
.pr-n {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}
.pr-ic {
  width: 30px;
  height: 30px;
}
.pr-q {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.pr-a {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.pr-type {
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 900;
}
.pr-ans {
  color: var(--green);
  font-weight: 900;
}
.pr-issue {
  font-weight: 900;
  color: var(--amber);
}
.pr-row.err .pr-issue {
  color: var(--red);
}
.pr-acts {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.pr-pick {
  max-width: 170px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.pr-pick.wide {
  max-width: 460px;
  width: 100%;
}
/* ---------- sections of a paper (js/sections/PaperSectionsEditor.js) ---------- */
.paper-sections {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.ps-row {
  display: grid;
  grid-template-columns: 36px minmax(180px, 1.4fr) 90px 90px minmax(220px, 2fr) minmax(130px, auto) auto;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.ps-letter {
  align-self: center;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}
.ps-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ps-cell small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.ps-cell select,
.ps-cell input {
  width: 100%;
  padding: 7px 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
}
.ps-cell input:disabled {
  background: var(--soft);
  color: var(--muted);
}
.ps-diffrow {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ps-diffrow select {
  flex: 1 1 auto;
  min-width: 120px;
}
.ps-mix {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}
.ps-mix input {
  width: 52px;
  padding: 7px 4px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
}
.ps-has {
  align-self: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
}
.ps-has small {
  font-weight: 700;
  color: var(--muted);
}
.ps-has.short {
  color: var(--amber);
}
.ps-has.short::after {
  content: ' ⚠';
}
.ps-acts {
  display: flex;
  gap: 4px;
  align-self: center;
}
.ps-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ps-total {
  font-weight: 900;
  color: var(--navy);
}
@media (max-width: 1280px) {
  .ps-row {
    grid-template-columns: 36px 1fr 1fr;
  }
}
/* ---------- extras on paper cards and in the review ---------- */
.pc-diff {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.pr-sechead {
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.pr-diff {
  font-weight: 800;
}
.pr-marks {
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 14%, #fff);
  color: var(--orange-d);
  font-weight: 900;
}
.pr-sec {
  font-weight: 900;
  color: var(--navy);
}
