@font-face {
  font-family: Nunito;
  src: url(vietnamese.woff2) format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Nunito;
  src: url(latin.woff2) format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #172b4e;
  --muted: #596b82;
  --blue: #245bd4;
  --line: #d9e3ee;
  --paper: #f7f9fc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    400 16px/1.48 Nunito,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrap {
  width: min(1176px, calc(100% - 88px));
  margin-inline: auto;
}
header,
footer {
  background: white;
}
header {
  border-bottom: 1px solid var(--line);
}
.nav,
nav,
.brand,
.adminlink,
nav a,
.btn,
.iconbtn,
.actions,
.split,
.inline,
.tags,
.meta,
.subject,
.bar,
.pager,
.line,
.specs span,
footer span,
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
.nav {
  min-height: 80px;
  gap: 28px;
}
.brand {
  color: #183659;
  line-height: 1.25;
  gap: 12px;
}
.brand small,
.brand strong,
td small,
.panel small {
  display: block;
}
.brand small {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 830;
}
.brand strong {
  font-size: 17px;
  font-weight: 900;
}
.logo,
.symbol {
  display: grid;
  place-items: center;
  background: #2458cd;
  color: #fff;
  width: 47px;
  height: 47px;
  border-radius: 14px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}
.nav nav {
  margin-left: auto;
}
.adminlink,
nav a {
  font-weight: 750;
  font-size: 0.94rem;
  color: #50647a;
  padding: 9px 14px;
  border-radius: 10px;
}
.active,
nav a:hover {
  background: #edf3ff;
  color: #2558c3 !important;
}
.adminlink {
  border: 1px solid var(--line);
  background: white;
}
.wrap:is(main) {
  flex: 1;
  padding: 30px 0 40px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d3e6f9;
  border-radius: 24px;
  background: linear-gradient(102deg, #e9f4ff 0%, #eaf5ff 46%, #deecff);
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  min-height: 292px;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background-image:
    linear-gradient(#bdd6f259 1px, transparent 1px),
    linear-gradient(90deg, #bdd6f259 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent, black);
  z-index: -1;
}
.hero-copy {
  align-self: center;
  padding: 36px 0 36px 43px;
  z-index: 1;
}
.year {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  color: #2555a7;
  background: #ffffffc9;
  border: 1px solid #c8dcf5;
  font-size: 0.84rem;
  font-weight: 780;
  padding: 5px 12px;
}
.hero h1 {
  font-size: clamp(2.7rem, 4.4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.15;
  font-weight: 900;
  margin: 14px 0 7px;
}
.hero h1 em {
  color: #245bcd;
  font-style: normal;
  white-space: nowrap;
  display: inline-block;
}
.hero p {
  margin: 0;
  color: #465e7a;
  font-size: 1.06rem;
}
.actions,
.meta,
.tags,
.bar,
.inline {
  flex-wrap: wrap;
}
.actions {
  margin-top: 16px;
}
.hero .actions {
  margin-top: 26px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-art img {
  position: absolute;
  width: min(104%, 468px);
  height: 292px;
  object-fit: contain;
  transform: rotate(-3deg);
}
.hero-art i {
  width: 255px;
  height: 255px;
  border-radius: 50%;
  border: 1px dashed #b4cdec;
  background: #d4e7ff80;
  outline: 14px solid #deecff70;
}
input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #548aeb;
  outline-offset: 3px;
}
.btn,
.iconbtn {
  display: inline-flex;
  justify-content: center;
  border: 1px solid #d0dce8;
  background: white;
  border-radius: 10px;
  min-height: 42px;
  padding: 9px 15px;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.35;
}
.btn:hover:not(:disabled),
.iconbtn:hover {
  background: #f4f7fd;
  border-color: #a8bbd3;
}
.btn.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 3px 7px #2552c71a;
}
.btn.primary:hover {
  background: #1a4fc1;
}
.small {
  min-height: 35px;
  padding: 7px 11px;
  font-size: 0.88rem;
}
.btn.plain,
.link {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 730;
}
.btn.danger,
.red,
.error {
  color: #ac3444;
}
.link {
  padding: 5px;
}
.block {
  margin-top: 32px;
}
.block h2,
.panel > h2:first-child,
.panel > h3:first-child,
.admin-main > h1,
.split h2 {
  margin: 0;
}
.block p {
  margin: 4px 0 15px;
  color: var(--muted);
}
h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 2.1rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.18rem;
}
h1,
h2,
h3,
b,
strong {
  font-weight: 820;
}
.grades {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}
.grade {
  padding: 19px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--edge);
  text-align: left;
  transition: transform 0.16s;
}
.grade:hover,
.grade.selected {
  transform: translateY(-2px);
}
.grade.selected {
  outline: 2px solid var(--fg);
}
.grade b {
  font-size: 1.18rem;
  white-space: nowrap;
}
.grade > svg {
  margin-left: auto;
  opacity: 0.7;
}
.grade span {
  display: grid;
  place-items: center;
  background: var(--block);
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  border-radius: 14px;
}
.grade span svg {
  transform: rotate(-8deg);
}
.g0 {
  --bg: #fff3e9;
  --fg: #a74921;
  --edge: #f5d9c2;
  --block: #ffdcc2;
}
.g1 {
  --bg: #ebf8ef;
  --fg: #27704e;
  --edge: #c8e7d5;
  --block: #ccedd6;
}
.g2 {
  --bg: #eef3ff;
  --fg: #355cad;
  --edge: #d0def8;
  --block: #d7e5ff;
}
.g3 {
  --bg: #f4efff;
  --fg: #6a4aa7;
  --edge: #dfd3f5;
  --block: #e4d7fc;
}
.g4 {
  --bg: #fff7de;
  --fg: #89641f;
  --edge: #f0dfa8;
  --block: #ffeaa6;
}
.split,
.line {
  justify-content: space-between;
}
.block > .split {
  margin-bottom: 14px;
}
.block > .split p {
  margin-bottom: 0;
}
.subject {
  padding-left: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.subject select {
  background-color: transparent;
  border: 0;
  width: auto;
  font-size: 0.9rem;
  padding-left: 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.examcard,
.panel,
.empty {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
  min-width: 0;
}
.examcard {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px;
  box-shadow: 0 2px 4px #182b4a05;
}
.examcard > .btn {
  margin-left: auto;
}
.thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 146px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #dad7ff, #eee5ff);
  color: #6956b0;
}
.thumb:before,
.thumb:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  border: 1px solid #b4a4dd;
  transform: rotate(-15deg);
  left: -26px;
  bottom: -34px;
}
.thumb:after {
  inset: -38px -22px auto auto;
}
.thumb span {
  transform: rotate(-8deg);
}
.thumb span:after {
  content: "";
  display: block;
  width: 43px;
  height: 5px;
  background: #a795d8;
  border-radius: 2px;
  margin-left: 4px;
  transform: skewX(-26deg);
}
.tag {
  font-size: 0.78rem;
  padding: 4px 8px;
  line-height: 1.3;
  color: #485970;
  background: #eff2f7;
  border-radius: 6px;
  font-weight: 760;
}
.blue {
  color: #2655ae;
  background: #eaf1ff;
}
.yellow,
.gold {
  color: #89691f;
  background: #fff3cf;
}
.green {
  color: #236847;
  background: #e8f5ec;
}
.meta {
  gap: 8px 17px;
  color: var(--muted);
  font-size: 0.91rem;
}
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.examtext h3 {
  margin: 7px 0;
  font-size: 1.36rem;
}
footer {
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #65758b;
  font-size: 0.88rem;
}
footer svg {
  color: #6384ba;
}
.muted,
small {
  color: var(--muted);
}
.empty {
  text-align: center;
  border-style: dashed;
  color: var(--muted);
}
.empty b {
  display: block;
  color: var(--ink);
}
.empty p {
  margin: 6px 0;
}
.symbol {
  width: 63px;
  height: 63px;
  background: #eaf1ff;
  color: #285cc8;
  margin-bottom: 18px;
}
.symbol.gold {
  background: #fff2cc;
  color: #a97816;
}
.back {
  display: inline-block;
  margin-bottom: 15px;
  font-weight: 750;
}
.twocol {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.twocol.quiz {
  grid-template-columns: minmax(0, 2.1fr) minmax(235px, 1fr);
  margin-top: 14px;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.specs svg {
  color: #557bc0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 750;
  font-size: 0.9rem;
  min-width: 0;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid #ccd9e7;
  border-radius: 9px;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 1rem;
  font-weight: 500;
}
select {
  appearance: none;
  padding-right: 33px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23576980' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
textarea {
  resize: vertical;
}
.check {
  cursor: pointer;
  font-size: 0.94rem;
}
.check input,
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.stack > .btn,
.grid2 > .btn {
  justify-self: start;
}
.error {
  font-size: 0.92rem;
}
.error:empty {
  display: none;
}
.quiz .stack {
  gap: 11px;
}
.option {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  text-align: left;
  padding: 13px;
}
.option b {
  background: #f0f3f8;
  border-radius: 7px;
  padding: 3px 9px;
}
.option.picked {
  border: 2px solid var(--blue);
  color: #2558bc;
  background: #edf3ff;
}
.blue-text {
  color: var(--blue);
}
.clock {
  background: #fff1d1;
  color: #895b13;
  border-radius: 8px;
  padding: 8px;
}
.clock:empty {
  display: none;
}
.qnav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 15px 0;
}
.qnav button {
  min-height: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.qnav .done {
  background: #dff4e7;
  color: #286d4c;
}
.qnav .now {
  outline: 2px solid var(--blue);
}
progress {
  width: 100%;
  height: 9px;
  accent-color: var(--blue);
}
.qimg {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  display: block;
  margin: 12px 0;
}
.result {
  max-width: 830px;
  margin: auto;
}
.centered {
  text-align: center;
}
.center {
  justify-content: center;
}
.centered .symbol,
.auth .symbol {
  margin: 0 auto 14px;
}
.score {
  font-size: 3.8rem;
  color: var(--blue);
}
.score small {
  display: inline;
  font-size: 1.45rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metrics > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
}
.metrics span {
  font-size: 0.9rem;
  color: var(--muted);
}
.metrics b {
  font-size: 1.6rem;
}
.line,
details,
.review {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-weight: 750;
  cursor: pointer;
}
.auth {
  max-width: 460px;
  margin: 28px auto;
}
.auth > h1,
.auth > p {
  text-align: center;
}
.admin-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  align-self: start;
}
.side a,
.side > b,
.side .btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  justify-content: flex-start;
  padding: 9px 10px;
  font-size: 0.94rem;
  color: #4c6079;
  border-radius: 8px;
  font-weight: 720;
}
.admin-main {
  min-width: 0;
}
.admin-main > h1 {
  font-size: 1.95rem;
  margin: 0 0 16px;
}
.bar {
  align-items: end;
  margin: 12px 0;
}
.bar .field {
  min-width: 120px;
  flex: 1;
}
.grid2,
.grid3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel .split + .grid3,
.panel h2 + form,
.panel details .grid3 {
  margin-top: 12px;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 10px 9px;
  border-bottom: 1px solid #e1e8f0;
  vertical-align: top;
}
th {
  background: #f4f7fc;
  font-size: 0.83rem;
  white-space: nowrap;
}
td small {
  font-size: 0.8rem;
  margin: 2px 0;
}
.pager {
  justify-content: flex-end;
  margin: 12px 0;
  font-size: 0.9rem;
}
.drop {
  display: grid;
  justify-items: center;
  gap: 5px;
  position: relative;
  background: #f1f6ff;
  border: 2px dashed #a6bdda;
  border-radius: 12px;
  padding: 23px;
  color: #365e9b;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop span {
  font-size: 0.9rem;
}
.pool {
  background: #eef4ff;
  padding: 13px;
  border-radius: 10px;
}
.picklist {
  max-height: 230px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.picklist label {
  padding: 4px 0;
}
.chart {
  display: flex;
  align-items: flex-end;
  min-height: 110px;
  gap: 9px;
  margin-top: 15px;
}
.chart > div {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
}
.chart i {
  display: block;
  width: 75%;
  background: #729af2;
  border-radius: 4px 4px 0 0;
}
.chart small {
  font-size: 0.8rem;
}
.correct {
  color: #216e49;
  font-weight: 750;
}
.review p {
  margin: 0.3em 0;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}
legend {
  font-weight: 750;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(475px, calc(100% - 28px));
  max-height: 89vh;
  padding: 0;
  box-shadow: 0 20px 80px #152c4755;
}
dialog.wide {
  width: min(880px, calc(100% - 28px));
}
dialog::backdrop {
  background: #17304b70;
}
.dialog-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-h h2 {
  font-size: 1.31rem;
  margin: 0;
}
.dialog-b {
  padding: 20px;
}
.iconbtn {
  width: 35px;
  height: 35px;
  min-height: 0;
  padding: 0;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: #213d58;
  color: white;
  border-radius: 10px;
  padding: 12px 18px;
  z-index: 9999;
}
#toast.bad {
  background: #963649;
}
.boot {
  margin: auto;
  padding: 38px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1020px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero-copy {
    padding-left: 28px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .grades {
    gap: 8px;
  }
  .grade {
    padding: 15px 10px;
    gap: 8px;
  }
  .grade b {
    font-size: 1.06rem;
  }
  .grade span {
    width: 38px;
    height: 39px;
    border-radius: 10px;
  }
  .grade span svg {
    width: 25px;
  }
  .admin-grid {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 14px;
  }
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    flex-wrap: wrap;
    min-height: 65px;
    padding: 9px 0 5px;
    gap: 7px;
  }
  .brand {
    gap: 8px;
  }
  .brand small {
    font-size: 10px;
  }
  .brand strong {
    font-size: 14px;
  }
  .logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .adminlink {
    margin-left: auto;
    font-size: 0.84rem;
    padding: 7px 8px;
  }
  .nav nav {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .nav nav a {
    font-size: 0.84rem;
    padding: 6px 10px;
  }
  .wrap:is(main) {
    padding: 17px 0 27px;
  }
  .hero {
    min-height: 230px;
    grid-template-columns: 1.35fr 1fr;
    border-radius: 18px;
  }
  .hero-copy {
    padding: 22px 0 22px 20px;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .hero p {
    font-size: 0.97rem;
  }
  .hero .actions {
    margin-top: 17px;
    gap: 7px;
  }
  .hero .btn {
    font-size: 0.9rem;
    padding: 8px 11px;
  }
  .hero-art img {
    height: auto;
    width: 110%;
  }
  .hero-art i {
    width: 72%;
    height: auto;
    aspect-ratio: 1;
  }
  .year {
    font-size: 0.75rem;
  }
  .grade {
    flex-direction: column;
    gap: 4px;
    padding: 10px 3px;
    border-radius: 12px;
  }
  .grade > svg {
    display: none;
  }
  .block {
    margin-top: 24px;
  }
  .block h2 {
    font-size: 1.4rem;
  }
  .block .split {
    flex-wrap: wrap;
  }
  .block p {
    font-size: 0.92rem;
  }
  .thumb {
    width: 96px;
    height: 84px;
  }
  .examcard {
    padding: 14px;
    gap: 14px;
  }
  .examtext h3 {
    font-size: 1.15rem;
  }
  .examcard .btn {
    font-size: 0.88rem;
    padding: 8px 10px;
  }
  .meta {
    font-size: 0.86rem;
    gap: 5px 10px;
  }
  .twocol,
  .twocol.quiz,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .side {
    flex-direction: row;
    overflow-x: auto;
    min-width: 0;
    padding: 6px;
  }
  .side > * {
    flex-shrink: 0;
  }
  .side > b {
    display: none;
  }
  .side a {
    font-size: 0.84rem;
  }
  .panel {
    padding: 17px;
  }
  .specs {
    gap: 9px;
  }
  .qnav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .admin-main > h1 {
    font-size: 1.65rem;
  }
  footer .wrap {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
}
@media (max-width: 490px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 280px;
  }
  .hero-copy {
    padding: 18px;
  }
  .hero h1 {
    max-width: 63%;
    font-size: 2.26rem;
    line-height: 1.05;
    margin: 13px 0 9px;
  }
  .hero h1 em {
    display: block;
  }
  .hero p {
    max-width: 57%;
    font-size: 0.92rem;
  }
  .hero-art {
    position: absolute;
    width: 44%;
    height: 150px;
    right: -3%;
    top: 47px;
    z-index: 0;
  }
  .hero-art img {
    width: 118%;
    max-width: 235px;
  }
  .hero .actions {
    margin-top: 18px;
  }
  .grade {
    padding: 9px 2px;
  }
  .grade span {
    width: 32px;
    height: 32px;
  }
  .grade b {
    font-size: 0.94rem;
  }
  .grade span svg {
    width: 22px;
  }
  .grades {
    gap: 6px;
  }
  .examcard {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }
  .thumb {
    width: 70px;
    height: 78px;
  }
  .examcard > .btn {
    grid-column: 1/-1;
    margin: 0;
    width: 100%;
  }
  .tags {
    gap: 4px;
  }
  .tag {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .result .metrics > div {
    padding: 8px;
    font-size: 0.85rem;
  }
  .bar .field {
    flex-basis: 100%;
  }
  .dialog-b,
  .dialog-h {
    padding: 14px;
  }
  .panel h1 {
    font-size: 1.7rem;
  }
  .qnav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.doc-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.doc-img {
  display: inline-block;
  max-width: min(100%, 26rem);
  max-height: 18rem;
  object-fit: contain;
  vertical-align: middle;
  margin: 0.3rem;
}
.doc-thumb {
  max-width: 7rem;
  max-height: 4rem;
  vertical-align: middle;
}
.qr-img {
  max-width: min(100%, 18rem);
}
.upload-zone {
  border: 2px dashed #95b8cc;
  background: #f5fafc;
  border-radius: 14px;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 1.4rem;
  text-align: center;
  cursor: pointer;
}
.upload-zone.over,
.upload-zone:focus-within {
  border-color: #197593;
  background: #e7f6fc;
}
.upload-zone span,
.q-preview .muted {
  font-size: 0.9rem;
}
.upload-zone input {
  max-width: 100%;
}
.q-editor,
.q-preview {
  border-bottom: 1px solid #d7e4e8;
  padding: 0.75rem 0;
}
.q-editor summary,
details > summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.q-editor summary .tag {
  margin-left: 0.45rem;
}
.q-editor .actions {
  margin: 0.35rem 0 0;
}
.q-editor .issue {
  display: block;
  color: #934519;
}
.q-preview > div {
  margin: 0.4em 0;
}
.notice {
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  background: #fff5dd;
  color: #684908;
}
#exam-list {
  min-width: 0;
}
#exam-list table {
  min-width: 1000px;
}
#exam-list td:nth-child(2) {
  min-width: 11rem;
}
#exam-list .field {
  margin: 0;
}
#exam-list .field span:empty {
  display: none;
}
#checks .metrics {
  margin-bottom: 0.65rem;
}
#editor .panel > h3 {
  margin: 0;
}
#editor input:disabled,
#editor textarea:disabled {
  opacity: 0.58;
}
#editor .error:empty {
  display: none;
}
