:root {
  --lime: #d8ee28;
  --black: #101010;
  --charcoal: #202225;
  --muted: #666b73;
  --line: #d9dde2;
  --soft: #f4f6f8;
  --white: #ffffff;
  --danger: #b42318;
  --ok: #197a2f;
  --focus: #2c65d8;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #eef1f3;
  color: var(--charcoal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

button, input, select, textarea {
  font: inherit;
}

button, select, input, textarea {
  min-height: 48px;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--soft);
}

.topbar {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 16px 14px;
  background: var(--white);
  border-bottom: 5px solid var(--lime);
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: 128px 1fr;
    gap: 12px;
  }

  .brand-logo {
    width: 128px;
  }
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.12;
}

.panel {
  padding: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  margin: 8px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe3e7;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width .2s ease;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.description {
  color: #42464c;
  font-size: 17px;
}

.field {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}

label, .field-label {
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 2px solid #c9ced5;
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  padding: 12px 13px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.choice {
  width: 100%;
  min-height: 68px;
  padding: 14px;
  border: 2px solid #bfc6ce;
  background: var(--white);
  color: var(--charcoal);
  text-align: left;
}

.choice[aria-pressed="true"] {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  box-shadow: inset 0 -5px 0 var(--lime);
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.photo-box {
  margin: 18px 0;
  padding: 14px;
  border: 2px dashed #aeb6c0;
  border-radius: 8px;
  background: #fafbfb;
}

.photo-title {
  margin-bottom: 10px;
  font-weight: 900;
}

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

.photo-add,
.primary,
.submit {
  width: 100%;
  padding: 14px 16px;
  background: var(--lime);
  color: var(--black);
  text-transform: uppercase;
}

.submit {
  min-height: 64px;
  font-size: 21px;
}

.photo-preview {
  display: grid;
  gap: 12px;
}

.photo-preview img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-meta {
  display: grid;
  gap: 2px;
  color: var(--ok);
}

.photo-actions,
.nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary {
  padding: 12px 14px;
  border: 2px solid #c7cdd4;
  background: var(--white);
  color: var(--charcoal);
}

.danger {
  color: var(--danger);
}

.nav-row {
  margin-top: 18px;
}

.full-row {
  grid-column: 1 / -1;
}

.error {
  margin: 12px 0 0;
  padding: 12px;
  border-left: 5px solid var(--danger);
  background: #fff3f1;
  color: #71190f;
  font-weight: 800;
}

.notice {
  margin: 12px 0;
  padding: 12px;
  border-left: 5px solid var(--lime);
  background: #fbfde9;
  font-weight: 800;
}

.review-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.review-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.evidence-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.evidence-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.evidence-head h3 {
  margin: 0;
  font-size: 18px;
}

.review-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.review-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}

.edit-btn {
  min-height: 40px;
  padding: 8px 10px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
}

.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumbs img {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.evidence-summary p {
  margin: 4px 0;
}

.success-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  font-size: 44px;
  font-weight: 900;
}

@media (min-width: 680px) {
  .app-shell { margin-block: 24px; border-radius: 10px; overflow: hidden; }
  .panel { padding: 24px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid.three { grid-template-columns: repeat(3, 1fr); }
}
