:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #181818;
  background: #f7f7f5;
}

main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 12vh, 128px) 0;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.intro {
  margin: 0 0 34px;
  color: #5d5d59;
  font-size: 16px;
  line-height: 1.5;
}

.drop-surface {
  display: grid;
  width: 100%;
  min-height: 300px;
  padding: 48px 28px;
  place-items: center;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: 1px solid #aaa9a4;
  border-radius: 18px;
  transition: border-color 120ms ease, background 120ms ease;
}

.drop-surface:hover,
.drop-surface:focus-visible,
.drop-surface.is-dragging {
  background: #fafaf8;
  border-color: #242424;
  outline: none;
}

.upload-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 22px;
  place-items: center;
  font-size: 23px;
  line-height: 1;
  border: 1px solid #b5b4ae;
  border-radius: 12px;
}

h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drop-copy {
  margin: 0;
  color: #686864;
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.picker-action {
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  color: #242424;
  cursor: pointer;
  background: #fff;
  border: 1px solid #9d9c97;
  border-radius: 9px;
}

.picker-action:hover,
.picker-action:focus-visible {
  border-color: #242424;
  outline: 2px solid transparent;
}

.selection {
  min-height: 22px;
  margin: 18px 0 0;
  color: #444440;
  font-size: 14px;
}

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

.upload-limit {
  margin: 14px 0 0;
  font-size: 12px;
  color: #6b6b6b;
}

.intake-status {
  margin: 16px 0 0;
  min-height: 0;
}

.intake-alert {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #111;
  background: #f5f5f4;
  color: #111;
  font-size: 13px;
}

.intake-progress {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background-color: #e4e4e2;
}

.intake-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: #111;
  transition: width 200ms ease-out;
}

/* Converting: duration unknowable from here, so the bar sweeps instead of fills. */
.intake-progress.is-indeterminate .intake-progress-fill {
  width: 30%;
  animation: intake-sweep 1.3s ease-in-out infinite;
}

@keyframes intake-sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(440%); }
}

.intake-work-message {
  margin: 10px 0 0;
  color: #444;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .intake-progress.is-indeterminate .intake-progress-fill {
    width: 100%;
    animation: none;
    opacity: 0.35;
  }
  /* The ticking seconds in the message still show liveness without motion. */
}

/*
 * The pin-check app adds one button the readback intake never had: a start
 * action that is disabled until both a project and a parts list are chosen.
 * Without this it renders identically to an enabled button, so the page reads
 * as broken rather than as waiting for something.
 */
.picker-action:disabled {
  color: #9a9a95;
  cursor: not-allowed;
  background: #f2f2f0;
  border-color: #d5d4cf;
}

.picker-action:disabled:hover {
  border-color: #d5d4cf;
}
