:root {
  --navy-950: #071f2e;
  --navy-900: #0a2f44;
  --navy-800: #103e55;
  --teal-700: #087f79;
  --teal-600: #0c9a90;
  --teal-100: #dff6f2;
  --gold-500: #d5a84f;
  --gold-100: #f9eed7;
  --slate-900: #17232d;
  --slate-700: #40515e;
  --slate-500: #71808b;
  --slate-300: #cbd6dc;
  --slate-200: #dfe7eb;
  --slate-100: #eef3f5;
  --white: #ffffff;
  --green: #13795b;
  --green-bg: #e6f6ef;
  --red: #b13a3a;
  --red-bg: #fff0ef;
  --amber: #9a6700;
  --shadow-sm: 0 8px 24px rgba(7, 31, 46, .07);
  --shadow-lg: 0 24px 70px rgba(7, 31, 46, .14);
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--slate-900);
  background:
    radial-gradient(circle at 8% 5%, rgba(12,154,144,.12), transparent 26rem),
    radial-gradient(circle at 95% 30%, rgba(213,168,79,.11), transparent 23rem),
    #f4f7f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(7, 31, 46, .97);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 35px rgba(7,31,46,.15);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  color: var(--navy-950);
  background: linear-gradient(135deg, #f3d89d, var(--gold-500));
  box-shadow: inset 0 1px rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 1.02rem; letter-spacing: .01em; }
.brand-copy small { color: #bcd0da; font-size: .78rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: #e6f3f3;
  background: rgba(255,255,255,.075);
  font-size: .82rem;
  font-weight: 800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57d6a3;
  box-shadow: 0 0 0 4px rgba(87,214,163,.13);
}

.workspace {
  width: min(1380px, calc(100% - 36px));
  margin: clamp(28px, 4vw, 58px) auto 60px;
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 58px);
}

.workspace-intro {
  position: sticky;
  top: 30px;
  min-height: 610px;
  padding: clamp(28px, 3.5vw, 48px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(155deg, rgba(10,47,68,.98), rgba(7,31,46,.98)),
    var(--navy-950);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.workspace-intro::before,
.workspace-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.workspace-intro::before {
  width: 260px;
  height: 260px;
  right: -140px;
  top: -110px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.018);
}

.workspace-intro::after {
  width: 170px;
  height: 170px;
  left: -105px;
  bottom: -65px;
  background: rgba(12,154,144,.16);
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #edd59f;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold-500); }

.workspace-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  margin: 22px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c8d9e0;
  line-height: 1.7;
}

.step-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}

.step-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; }

.step-list li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  color: #f1d99e;
  background: rgba(255,255,255,.06);
  font-size: .74rem;
  font-weight: 900;
}

.step-list div { display: grid; gap: 3px; }
.step-list strong { font-size: .9rem; }
.step-list small { color: #adc4ce; font-size: .76rem; line-height: 1.45; }

.upload-limits {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.055);
}

.upload-limits svg { width: 21px; fill: #70d2c9; flex: 0 0 auto; }
.upload-limits p { display: grid; gap: 3px; margin: 0; }
.upload-limits strong { font-size: .78rem; }
.upload-limits span { color: #b7cbd4; font-size: .72rem; }

.release-label {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: #7896a4;
  font-size: .67rem;
  letter-spacing: .04em;
}

.submission-form { min-width: 0; }

.form-card {
  margin-bottom: 22px;
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
}

.card-heading,
.heading-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-heading { margin-bottom: 26px; }
.card-heading-split { justify-content: space-between; }

.step-number {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--teal-700);
  background: var(--teal-100);
  font-size: .76rem;
  font-weight: 900;
}

.card-heading p {
  margin: 0 0 3px;
  color: var(--teal-700);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  line-height: 1.2;
}

.file-count {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.comments-field { margin-top: 19px; }

label:not(.check-row) {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-700);
  font-size: .78rem;
  font-weight: 800;
}

label span[aria-hidden="true"], .check-row em { color: var(--red); font-style: normal; }

input, textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 11px;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input { min-height: 48px; padding: 11px 13px; }
textarea { min-height: 110px; padding: 13px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #9aa7af; }

input:focus, textarea:focus, .drop-zone:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(12,154,144,.13);
}

.drop-zone {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 22px;
  border: 1.5px dashed #86aaa9;
  border-radius: 18px;
  color: var(--slate-700);
  text-align: center;
  background: linear-gradient(145deg, #f8fbfb, #f1f7f6);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--teal-600);
  background: var(--teal-100);
  transform: translateY(-1px);
}

.drop-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  box-shadow: 0 10px 24px rgba(8,127,121,.22);
}

.drop-icon svg { width: 29px; fill: currentColor; }
.drop-zone strong { color: var(--navy-900); font-size: 1.08rem; }
.drop-zone > span { font-size: .83rem; }
.drop-zone small { max-width: 620px; margin-top: 5px; color: var(--slate-500); font-size: .69rem; line-height: 1.45; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(213,168,79,.5); outline-offset: 2px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary { margin-top: 8px; color: var(--navy-900); background: var(--white); border-color: var(--slate-300); box-shadow: 0 4px 12px rgba(7,31,46,.06); }
.secondary:hover { border-color: var(--teal-600); }
.ghost { color: var(--navy-900); background: var(--slate-100); }
.danger { color: var(--red); background: var(--red-bg); }
.primary { min-width: 205px; color: var(--white); background: linear-gradient(135deg, var(--navy-800), var(--teal-700)); box-shadow: 0 12px 24px rgba(8,127,121,.2); }
.primary:hover { box-shadow: 0 15px 29px rgba(8,127,121,.27); }
.primary svg { width: 19px; fill: currentColor; }

.progress-wrap { margin-top: 22px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--slate-500); font-size: .74rem; font-weight: 750; }

progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--slate-100);
  accent-color: var(--teal-600);
}

progress::-webkit-progress-bar { background: var(--slate-100); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--navy-800), var(--teal-600)); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--navy-800), var(--teal-600)); border-radius: 999px; }

.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 13px; }

table { width: 100%; min-width: 700px; border-collapse: collapse; background: var(--white); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--slate-200); text-align: left; font-size: .76rem; vertical-align: middle; }
th { color: var(--slate-500); background: #f8fafb; font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 27px; color: var(--slate-500); text-align: center; }
.status-uploading { color: var(--amber); font-weight: 850; }
.status-success { color: var(--green); font-weight: 850; }
.status-error { color: var(--red); font-weight: 850; }
.remove-btn { padding: 7px 9px; border: 0; border-radius: 7px; color: var(--red); background: var(--red-bg); font: inherit; font-weight: 800; cursor: pointer; }

.review-card { margin-bottom: 0; }
.check-panel { overflow: hidden; border: 1px solid var(--slate-200); border-radius: 14px; }

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 17px;
  cursor: pointer;
}

.check-row + .check-row { border-top: 1px solid var(--slate-200); }
.check-row:hover { background: #f9fbfb; }
.check-row input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--teal-700); }
.check-row > span { display: grid; gap: 4px; color: var(--slate-500); font-size: .76rem; line-height: 1.45; }
.check-row strong { color: var(--slate-900); font-size: .8rem; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.secondary-actions { display: flex; gap: 9px; }

.message { display: none; margin-top: 18px; padding: 13px 15px; border: 1px solid transparent; border-radius: 11px; font-size: .8rem; font-weight: 800; line-height: 1.45; }
.message.show { display: block; }
.message.success { color: var(--green); background: var(--green-bg); border-color: #bee6d5; }
.message.error { color: var(--red); background: var(--red-bg); border-color: #f0c9c5; }
.message.info { color: var(--navy-800); background: #eaf3f7; border-color: #c6dce5; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 25px clamp(18px, 4vw, 64px);
  color: #8ba3ae;
  background: var(--navy-950);
  font-size: .72rem;
}

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .workspace-intro { position: relative; top: 0; min-height: 0; }
  .workspace-intro h1 { max-width: 16ch; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .step-list li { grid-template-columns: 42px 1fr; }
}

@media (max-width: 720px) {
  .topbar { min-height: 74px; padding: 13px 16px; }
  .brand-mark { width: 43px; height: 43px; border-radius: 12px; }
  .brand-copy small { display: none; }
  .status-pill { padding: 8px 11px; }
  .workspace { width: min(100% - 22px, 1380px); margin: 20px auto 34px; gap: 16px; }
  .workspace-intro { padding: 28px 23px; border-radius: 20px; }
  .workspace-intro h1 { margin-top: 18px; font-size: 2.25rem; }
  .step-list { grid-template-columns: 1fr; gap: 13px; margin: 27px 0; }
  .release-label { display: none; }
  .form-card { margin-bottom: 15px; padding: 22px 17px; border-radius: 17px; }
  .card-heading { align-items: flex-start; margin-bottom: 22px; }
  .card-heading-split { display: grid; }
  .file-count { margin-left: 58px; width: max-content; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .field-full { grid-column: auto; }
  .comments-field { margin-top: 16px; }
  .drop-zone { min-height: 245px; padding: 25px 16px; }
  .table-wrap { border: 0; overflow: visible; }
  table, tbody { display: block; min-width: 0; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--slate-200); border-radius: 11px; background: #fbfcfc; }
  tbody td { display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
  tbody td:nth-child(1) { grid-column: 1 / -1; color: var(--navy-900); font-weight: 850; }
  tbody td:nth-child(2), tbody td:nth-child(3) { color: var(--slate-500); }
  tbody td:nth-child(4) { grid-column: 1; margin-top: 5px; }
  tbody td:nth-child(5) { grid-column: 2; grid-row: 3; }
  tbody .empty { display: block; padding: 20px; text-align: center; }
  tbody tr:has(.empty) { display: block; }
  .actions { align-items: stretch; flex-direction: column-reverse; }
  .secondary-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .primary { width: 100%; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: .88rem; }
  .status-pill { font-size: .7rem; }
  .workspace-intro h1 { font-size: 2rem; }
  .secondary-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
