:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f0f2e8;
  background: #101714;
  font-synthesis: none;
  --green: #bded83;
  --line: #34443a;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 14% 20%, #273f2d50, transparent 52%), #101714;
  min-height: 100svh;
}
button,
textarea {
  font: inherit;
}
main {
  max-width: 980px;
  margin: auto;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 48px 32px;
}
.workspace {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.check-panel {
  border: 1px solid #486149;
  background: linear-gradient(135deg, #22312670, #17231b40);
  border-radius: 5px;
  padding: 27px;
  box-shadow: 0 16px 55px #0002;
}
form label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 92px;
  max-height: 200px;
  background: #0c130f;
  color: #f0f2e8;
  border: 1px solid #425547;
  border-radius: 3px;
  padding: 15px;
  font: 16px/1.6 monospace;
  overflow-wrap: anywhere;
  outline-offset: 3px;
}
textarea::placeholder {
  color: #7e9081;
}
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
}
textarea[aria-invalid='true'] {
  border-color: #f49486;
}
button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  background: var(--green);
  color: #142013;
  border: 0;
  border-radius: 3px;
  padding: 12px 18px;
  margin-top: 14px;
  font: 700 11px monospace;
  letter-spacing: 1px;
  cursor: pointer;
}
button:hover {
  background: #cef5a0;
}
button:disabled {
  cursor: wait;
  opacity: 0.75;
}
button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.input-error {
  color: #ffad9e;
  font-size: 12px;
  line-height: 1.5;
}
.result {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 23px;
  min-height: 66px;
  color: #b3c0b5;
}
.result-symbol {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #4b5a4c;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.result-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#result-label {
  font-size: 16px;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin: 0;
}
.result[data-state='eligible'] {
  color: var(--green);
}
.result[data-state='ineligible'] {
  color: #ff9b89;
}
.result[data-state='error'] {
  color: #e6d09c;
}
.result[data-state='eligible'] .result-symbol {
  border-color: #96b96c;
  background: #bded830b;
}
.result[data-state='ineligible'] .result-symbol {
  border-color: #ad6c60;
  background: #ff9b8908;
}
.result[data-state='loading'] .result-symbol {
  animation: check-spin 2s linear infinite;
}
.requirements {
  padding: 4px 0;
}
h2 {
  font: 500 13px monospace;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 20px;
}
ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 45px;
  border-bottom: 1px solid #2d3b32;
}
.collection-number {
  font: 9px monospace;
  color: #748579;
  width: 16px;
}
.collection-name {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
}
.collection-status {
  margin-left: auto;
  font: 9px monospace;
  letter-spacing: 0.7px;
  color: #9daf9e;
}
li[data-state='held'] .collection-status {
  color: var(--green);
}
li[data-state='missing'] .collection-status {
  color: #ff9b89;
}
@keyframes check-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  main {
    padding: max(24px, env(safe-area-inset-top)) 22px
      max(24px, env(safe-area-inset-bottom));
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .check-panel {
    padding: 21px;
  }
  .requirements {
    padding: 0 3px;
  }
}
@media (max-width: 350px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .check-panel {
    padding: 17px;
  }
  #result-label {
    font-size: 14px;
  }
  .result {
    gap: 12px;
  }
  .collection-name {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
