.eng10-online-overlay {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: none;
  background: #eef3f9;
  color: #12213d;
  font-family: var(--f, "Plus Jakarta Sans", "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif);
}

.eng10-online-overlay.open {
  display: block;
}

.eng10-online-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 12% -10%, rgba(244, 167, 29, .18), transparent 30%),
    linear-gradient(180deg, #f7faff, #eef3f9);
}

.eng10-online-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(18, 33, 61, .09);
  backdrop-filter: blur(14px);
}

.eng10-online-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(18, 33, 61, .12);
  border-radius: 12px;
  background: #fff;
  color: #12213d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.eng10-online-kicker {
  color: #7a8499;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.eng10-online-head h2 {
  margin: 2px 0 0;
  color: #0f1f3d;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.eng10-online-progress {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff4d6;
  color: #8a5208;
  border: 1px solid rgba(244, 167, 29, .34);
  font-size: 12px;
  font-weight: 950;
}

.eng10-online-result {
  position: fixed;
  inset: 0;
  z-index: 5300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 31, 61, .56);
  color: #12213d;
  backdrop-filter: blur(10px);
}

.eng10-online-result-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 9px;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(18, 33, 61, .1);
  box-shadow: 0 28px 80px rgba(15, 31, 61, .22);
  text-align: center;
}

.eng10-online-result-label {
  color: #718096;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eng10-online-score {
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.eng10-online-score span {
  color: #718096;
  font-size: 17px;
}

.eng10-online-result-text {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.eng10-online-result-note {
  width: 100%;
  max-width: 360px;
  margin-top: 4px;
  border-radius: 12px;
  padding: 7px 11px;
  background: #fff8e8;
  border: 1px solid rgba(244, 167, 29, .28);
  color: #8a5208;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.eng10-online-result-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.eng10-online-result-actions button {
  min-height: 40px;
  border: 1px solid rgba(18, 33, 61, .12);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #12213d;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.eng10-online-result-actions button.primary {
  border-color: #0f1f3d;
  background: #0f1f3d;
  color: #fff;
}

.eng10-online-submit-state {
  position: fixed;
  inset: 0;
  z-index: 5320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 31, 61, .38);
  color: #12213d;
  backdrop-filter: blur(8px);
  animation: eng10OnlineFadeIn .18s ease both;
}

.eng10-online-submit-panel {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 16px 17px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 255, .96));
  border: 1px solid rgba(99, 138, 218, .22);
  box-shadow: 0 24px 70px rgba(15, 31, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .92);
  animation: eng10OnlinePanelIn .22s cubic-bezier(.2, .8, .2, 1) both;
}

.eng10-online-submit-state strong,
.eng10-online-submit-state span {
  display: block;
}

.eng10-online-submit-state strong {
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 950;
}

.eng10-online-submit-state span {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.eng10-online-submit-spinner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 45%, transparent 47%),
    conic-gradient(from 0deg, rgba(29, 78, 216, .12), #1d4ed8, #22c55e, rgba(29, 78, 216, .12));
  box-shadow: 0 0 0 1px rgba(29, 78, 216, .10), 0 10px 22px rgba(29, 78, 216, .14);
  animation: eng10OnlineSpin .9s linear infinite;
  flex: 0 0 auto;
}

@keyframes eng10OnlineSpin {
  to { transform: rotate(360deg); }
}

@keyframes eng10OnlineFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes eng10OnlinePanelIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.eng10-online-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.eng10-online-source,
.eng10-online-paper {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(18, 33, 61, .09);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(18, 33, 61, .08);
}

.eng10-online-source {
  border-radius: 18px;
  padding: 16px;
}

.eng10-online-paper {
  border-radius: 18px;
  padding: 14px;
}

.eng10-online-source-block h3 {
  margin: 0 0 10px;
  color: #0f1f3d;
  font-size: 14px;
  font-weight: 950;
}

.eng10-online-source-block p {
  margin: 0 0 10px;
  color: #1d2b43;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.75;
}

.eng10-online-source-block strong,
.eng10-online-q-text strong,
.eng10-online-option strong,
.eng10-online-rewrite-prompt strong {
  color: #0f2a55;
  font-weight: 950;
}

.eng10-online-source-block u,
.eng10-online-q-text u,
.eng10-online-option u,
.eng10-online-rewrite-prompt u {
  color: #0f2a55;
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.eng10-online-source-block.muted {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.eng10-online-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.eng10-online-page-title strong {
  min-width: 0;
  color: #12213d;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.eng10-online-q-card {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid rgba(18, 33, 61, .08);
  border-radius: 14px;
  background: #fff;
}

.eng10-online-q-card.review-correct {
  border-color: rgba(20, 131, 78, .24);
  background: linear-gradient(180deg, #fff, #f6fdf9);
}

.eng10-online-q-card.review-wrong {
  border-color: rgba(220, 38, 38, .24);
  background: linear-gradient(180deg, #fff, #fff8f8);
}

.eng10-online-q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.eng10-online-q-num {
  color: #7a8499;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eng10-online-review-badge {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 950;
}

.eng10-online-review-badge.ok {
  border: 1px solid rgba(20, 131, 78, .24);
  background: #eafaf2;
  color: #047857;
}

.eng10-online-review-badge.bad {
  border: 1px solid rgba(220, 38, 38, .24);
  background: #fff1f2;
  color: #be123c;
}

.eng10-online-q-text {
  color: #12213d;
  font-size: 13.5px;
  font-weight: 760;
  line-height: 1.55;
}

.eng10-online-options {
  display: grid;
  gap: 7px;
}

.eng10-online-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 42px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(18, 33, 61, .1);
  background: #f8fafc;
  color: #22314a;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  cursor: pointer;
}

.eng10-online-option.selected {
  border-color: rgba(61, 126, 248, .42);
  background: rgba(61, 126, 248, .09);
  color: #1d4ed8;
}

.eng10-online-option.correct {
  border-color: rgba(20, 131, 78, .36);
  background: #ecfdf5;
  color: #065f46;
}

.eng10-online-option.wrong {
  border-color: rgba(220, 38, 38, .32);
  background: #fff1f2;
  color: #991b1b;
}

.eng10-online-option input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.eng10-online-review-panel {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 3px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(18, 33, 61, .08);
  background: #fbfdff;
}

.eng10-online-review-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 12px;
}

.eng10-online-review-row span,
.eng10-online-review-explain span {
  color: #718096;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.eng10-online-review-row strong {
  color: #12213d;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.eng10-online-review-row strong.ok {
  color: #047857;
}

.eng10-online-review-row strong.bad {
  color: #be123c;
}

.eng10-online-review-explain {
  display: grid;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px dashed rgba(18, 33, 61, .12);
}

.eng10-online-review-explain p {
  margin: 0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.55;
}

.eng10-online-input {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(18, 33, 61, .12);
  background: #f8fafc;
  color: #12213d;
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 760;
  outline: none;
}

textarea.eng10-online-input {
  resize: vertical;
  line-height: 1.5;
}

.eng10-online-input:focus {
  border-color: rgba(61, 126, 248, .55);
  box-shadow: 0 0 0 4px rgba(61, 126, 248, .12);
  background: #fff;
}

.eng10-online-word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.eng10-online-source-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(244, 167, 29, .26);
  background: linear-gradient(180deg, #fffaf0, #fff7e1);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.eng10-online-source-bank.empty {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background: #fbfdff;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.eng10-online-word-bank button {
  min-height: 30px;
  border: 1px solid rgba(18, 33, 61, .1);
  border-radius: 999px;
  background: #fff8e8;
  color: #8a5208;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.eng10-online-bank-chip {
  min-height: 32px;
  border: 1px solid rgba(154, 94, 9, .18);
  border-radius: 999px;
  background: #fff;
  color: #89520a;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 950;
  cursor: grab;
  box-shadow: 0 5px 12px rgba(154, 94, 9, .08);
  transition: transform .16s ease, opacity .16s ease, color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  will-change: transform;
}

.eng10-online-bank-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 94, 9, .32);
  box-shadow: 0 8px 18px rgba(154, 94, 9, .13);
}

.eng10-online-bank-chip:active,
.eng10-online-bank-chip.dragging {
  cursor: grabbing;
  transform: scale(.96);
  opacity: .62;
}

.eng10-online-bank-chip.selected {
  background: #0f1f3d;
  border-color: #0f1f3d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 31, 61, .18);
}

.eng10-online-bank-chip:disabled {
  cursor: default;
  opacity: .72;
}

.eng10-online-drop-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 28px;
  margin: 0 2px;
  padding: 2px 10px;
  vertical-align: baseline;
  border: 1px dashed rgba(61, 126, 248, .45);
  border-radius: 10px;
  background: #f5f9ff;
  color: #1d4ed8;
  font: inherit;
  font-weight: 950;
  cursor: copy;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, opacity .16s ease;
  will-change: transform;
}

.eng10-online-drop-blank:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 126, 248, .68);
  background: #eef5ff;
  box-shadow: 0 8px 18px rgba(61, 126, 248, .12);
}

.eng10-online-drop-blank.filled {
  border-style: solid;
  border-color: rgba(20, 131, 78, .35);
  background: #effbf4;
  color: #11623f;
  cursor: grab;
}

.eng10-online-drop-blank.filled.dragging {
  transform: scale(.96);
  opacity: .58;
}

.eng10-online-drop-blank:disabled {
  cursor: default;
}

.eng10-online-fill-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.eng10-online-fill-card .eng10-online-q-num {
  margin-right: 8px;
}

.eng10-online-fill-status {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(18, 33, 61, .09);
  background: #f8fafc;
}

.eng10-online-fill-status span {
  color: #7a8499;
  font-size: 12px;
  font-weight: 950;
}

.eng10-online-fill-status strong {
  color: #12213d;
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.eng10-online-fill-status.filled {
  border-color: rgba(20, 131, 78, .22);
  background: #f2fbf6;
}

.eng10-online-rewrite-prompt {
  padding: 9px 11px;
  border-left: 3px solid #f4a71d;
  border-radius: 10px;
  background: #fff8e8;
  color: #68440b;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
}

.eng10-online-images {
  display: grid;
  gap: 10px;
}

.eng10-online-image-frame {
  margin: 0;
}

.eng10-online-image-frame img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(18, 33, 61, .1);
  background: #fff;
}

.eng10-online-image-frame figcaption {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.eng10-online-missing-image {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px dashed rgba(217, 119, 6, .42);
  border-radius: 12px;
  background: #fff8e8;
  color: #8a5208;
  font-size: 12px;
  font-weight: 800;
}

.eng10-online-missing-image strong {
  color: #12213d;
}

.eng10-online-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid rgba(18, 33, 61, .09);
}

.eng10-online-foot button {
  min-height: 42px;
  border: 1px solid rgba(18, 33, 61, .11);
  border-radius: 13px;
  background: #fff;
  color: #162743;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.eng10-online-foot button.primary {
  background: #0f1f3d;
  border-color: #0f1f3d;
  color: #fff;
}

.eng10-online-foot button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .eng10-online-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .eng10-online-progress {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .eng10-online-main {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .eng10-online-source,
  .eng10-online-paper {
    overflow: visible;
  }

  .eng10-online-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .eng10-online-foot button.primary {
    grid-column: 1 / -1;
  }
}
