:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 40px auto;
}

.narrow {
  width: min(560px, calc(100vw - 32px));
}

.panel {
  background: #ffffff;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(23, 32, 42, 0.08);
}

.brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.muted,
.label,
small {
  color: #607080;
}

.badge {
  border: 1px solid #b9c8d6;
  border-radius: 999px;
  padding: 6px 10px;
  color: #2a5d84;
  font-size: 13px;
  white-space: nowrap;
}

.lookup {
  margin-top: 28px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 650;
}

.inline,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c7d1da;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 16px;
}

.inline input {
  flex: 1 1 260px;
}

button,
.button {
  min-height: 44px;
  border: 1px solid #c7d1da;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  padding: 0 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.wide {
  width: 100%;
}

.order {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.hidden {
  display: none;
}

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

.stats div {
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 14px;
}

.stats span {
  display: block;
  font-size: 26px;
  font-weight: 750;
}

.dropzone {
  border: 2px dashed #a9bac8;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #f8fafb;
}

.dropzone input {
  display: none;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone span {
  margin-top: 6px;
  color: #607080;
  font-weight: 400;
}

.preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.preview img,
.photo-link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dce3ea;
}

.message {
  margin: 18px 0 0;
  color: #8a4b12;
}

.uploads {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.upload-card {
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 16px;
}

.upload-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.photo-link {
  color: inherit;
  text-decoration: none;
}

.photo-link span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

@media (max-width: 640px) {
  .shell {
    margin: 16px auto;
    width: min(100vw - 20px, 960px);
  }

  .panel {
    padding: 18px;
  }

  .brand {
    display: block;
  }

  .badge {
    display: inline-block;
    margin-top: 8px;
  }
}
