:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #edf5ff;
  background: #06101b;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #06101b;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(42, 110, 169, 0.24), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(87, 63, 145, 0.18), transparent 31%),
    linear-gradient(145deg, #06101b 0%, #0a1827 48%, #07131f 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 17px max(22px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: rgba(6, 16, 27, 0.88);
  border-bottom: 1px solid rgba(166, 207, 241, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #f5f9ff;
  background: linear-gradient(145deg, #347ab5, #1d4c77);
  border: 1px solid rgba(158, 210, 248, 0.42);
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
  font-weight: 600;
}

.brand-text small {
  color: #8ea6bc;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-navigation a {
  color: #aebfd0;
  font-size: 0.88rem;
  font-weight: 700;
}

.header-navigation a:hover {
  color: #ffffff;
}

.admin-button {
  min-height: 42px;
  padding: 10px 17px;
  color: #f3f9ff;
  background: rgba(19, 47, 73, 0.88);
  border: 1px solid rgba(145, 196, 237, 0.34);
  border-radius: 999px;
}

.admin-button:hover {
  background: rgba(31, 74, 111, 0.98);
}

.grader-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 30px;
  align-items: stretch;
}

.eyebrow,
.step-label,
.panel-label,
.status-label {
  margin: 0 0 12px;
  color: #8fc0e7;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.hero-panel h1 {
  max-width: 790px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.042em;
}

.hero-summary {
  max-width: 760px;
  margin: 25px 0 0;
  color: #afc1d1;
  font-size: 1.02rem;
  line-height: 1.78;
}

.status-card {
  padding: 27px;
  background: linear-gradient(
    145deg,
    rgba(18, 45, 70, 0.92),
    rgba(8, 25, 42, 0.94)
  );
  border: 1px solid rgba(149, 195, 232, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.status-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.status-card p {
  margin: 16px 0 0;
  color: #9eb2c4;
  line-height: 1.68;
}

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

.panel {
  padding: 28px;
  background: rgba(8, 25, 42, 0.78);
  border: 1px solid rgba(150, 195, 232, 0.16);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
}

.required-label,
.review-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: #a9d5f5;
  background: rgba(40, 94, 137, 0.24);
  border: 1px solid rgba(133, 190, 233, 0.24);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.upload-zone {
  min-height: 280px;
  margin-top: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
  background: rgba(9, 29, 48, 0.68);
  border: 1px dashed rgba(142, 194, 235, 0.44);
  border-radius: 20px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  transform: translateY(-2px);
  background: rgba(20, 53, 82, 0.8);
  border-color: rgba(162, 216, 255, 0.78);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: #dff2ff;
  background: linear-gradient(145deg, #347bb5, #1f527f);
  border-radius: 17px;
  font-size: 1.7rem;
  font-weight: 300;
}

.upload-zone strong {
  margin-top: 5px;
  font-size: 1.05rem;
}

.upload-zone > span:last-child {
  max-width: 420px;
  color: #91a8bb;
  font-size: 0.88rem;
  line-height: 1.55;
}

.file-summary {
  margin-top: 16px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(14, 39, 62, 0.82);
  border: 1px solid rgba(139, 187, 225, 0.17);
  border-radius: 15px;
}

.file-summary > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  color: #8198ac;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#selectedFileName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-summary button {
  padding: 8px 12px;
  color: #f0f6fc;
  background: transparent;
  border: 1px solid rgba(143, 185, 219, 0.26);
  border-radius: 999px;
}

.image-preview {
  margin-top: 16px;
  max-height: 380px;
  overflow: hidden;
  background: #02070c;
  border: 1px solid rgba(144, 190, 228, 0.14);
  border-radius: 16px;
}

.image-preview img {
  width: 100%;
  max-height: 380px;
  display: block;
  object-fit: contain;
}

form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid label > span {
  color: #afc1d0;
  font-size: 0.8rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #edf6ff;
  background: rgba(5, 18, 30, 0.88);
  border: 1px solid rgba(144, 190, 228, 0.22);
  border-radius: 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(129, 199, 249, 0.82);
  box-shadow: 0 0 0 3px rgba(70, 145, 202, 0.15);
}

select option {
  color: #111827;
}

.form-code-information {
  margin-top: 20px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(16, 42, 66, 0.7);
  border-radius: 13px;
}

.form-code-information > span {
  color: #91a8ba;
  font-size: 0.77rem;
  font-weight: 750;
}

.form-code-information > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

code {
  padding: 6px 8px;
  color: #b9dcf7;
  background: rgba(4, 15, 25, 0.72);
  border-radius: 7px;
  font-size: 0.72rem;
}

.confirmation-field {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #9fb2c3;
  font-size: 0.83rem;
  line-height: 1.55;
}

.confirmation-field input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 12px 19px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  margin-top: 22px;
  color: #f7fbff;
  background: linear-gradient(145deg, #347db8, #1e527f);
  border: 1px solid rgba(154, 210, 249, 0.43);
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.secondary-button {
  color: #d8e8f5;
  background: rgba(15, 39, 61, 0.75);
  border: 1px solid rgba(144, 189, 225, 0.24);
}

.review-panel {
  margin-top: 20px;
}

.review-message {
  margin-top: 22px;
  padding: 16px;
  color: #b5c6d5;
  background: rgba(13, 38, 60, 0.76);
  border-left: 3px solid #4a9ad4;
  border-radius: 10px;
  line-height: 1.65;
}

.response-summary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.response-summary-grid > div {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(7, 22, 36, 0.72);
  border: 1px solid rgba(142, 185, 220, 0.13);
  border-radius: 13px;
}

.response-summary-grid span {
  color: #8399ac;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.response-summary-grid strong {
  overflow-wrap: anywhere;
}

.review-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.review-actions .primary-button {
  margin-top: 0;
}

.information-section {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.information-section article {
  min-height: 180px;
  padding: 23px;
  background: rgba(8, 25, 41, 0.6);
  border: 1px solid rgba(146, 189, 224, 0.12);
  border-radius: 19px;
}

.information-section article > span {
  color: #71a9d4;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.information-section h3 {
  margin: 25px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.information-section p {
  margin: 0;
  color: #93a9bb;
  font-size: 0.84rem;
  line-height: 1.65;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #71869a;
  border-top: 1px solid rgba(169, 205, 237, 0.1);
  font-size: 0.77rem;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer strong {
  color: #a9bbc9;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-panel,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .response-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .information-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 13px 15px;
    align-items: flex-start;
  }

  .brand-text small {
    display: none;
  }

  .header-navigation {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
  }

  .header-navigation a {
    display: none;
  }

  .grader-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 38px;
  }

  .hero-panel h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .panel {
    padding: 21px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-code-information {
    align-items: flex-start;
    flex-direction: column;
  }

  .response-summary-grid {
    grid-template-columns: 1fr;
  }

  .review-actions {
    flex-direction: column;
  }

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

  .site-footer {
    width: min(100% - 24px, 1180px);
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}
