.correction-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.28));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.correction-entry h2 {
  margin: 0 0 6px;
  color: var(--text, #f8fafc);
  font-size: 1.2rem;
  line-height: 1.25;
}

.correction-entry p:not(.eyebrow) {
  margin: 0;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
}

.correction-entry-button,
.correction-form button {
  border: 0;
  border-radius: 7px;
  padding: 11px 14px;
  background: var(--page-accent, var(--accent, #a3e635));
  color: #071019;
  font: inherit;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

.correction-entry-button {
  flex: 0 0 auto;
}

.correction-modal[hidden] {
  display: none;
}

.correction-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.correction-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.78);
  backdrop-filter: blur(5px);
}

.correction-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(86vh, 780px);
  overflow: auto;
  border: 1px solid rgba(226, 232, 244, 0.22);
  border-radius: 8px;
  background: #101621;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.correction-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(226, 232, 244, 0.18);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f8fafc);
  font: inherit;
  cursor: pointer;
}

.correction-form {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.correction-form h2 {
  margin: 0 42px 6px 0;
  color: var(--text, #f8fafc);
  font-size: 1.55rem;
  line-height: 1.2;
}

.correction-page,
.correction-help,
.correction-status {
  margin: 0;
  color: var(--muted, #94a3b8);
  line-height: 1.45;
}

.correction-form label {
  display: grid;
  gap: 7px;
  color: var(--text, #f8fafc);
  font-weight: 780;
}

.correction-form label span {
  font-size: 0.86rem;
}

.correction-form input,
.correction-form select,
.correction-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(226, 232, 244, 0.2);
  border-radius: 7px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f8fafc);
  font: inherit;
}

.correction-form select option {
  color: #0f1622;
}

.correction-form textarea {
  min-height: 102px;
  resize: vertical;
}

.correction-form input[type="file"] {
  color: var(--muted, #94a3b8);
}

.correction-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.correction-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.correction-form button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.correction-form .correction-secondary {
  border: 1px solid rgba(226, 232, 244, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #f8fafc);
}

.correction-status[data-mode="error"] {
  color: #ffb3b3;
}

.correction-status[data-mode="success"] {
  color: #96f2c1;
}

.correction-modal-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .correction-entry {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .correction-entry-button {
    width: 100%;
  }

  .correction-modal {
    align-items: end;
    padding: 10px;
  }

  .correction-dialog {
    max-height: 92vh;
  }

  .correction-form {
    padding: 22px 16px 16px;
  }

  .correction-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .correction-actions button {
    width: 100%;
  }
}
