.audit-input-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(183, 255, 74, 0.07), transparent 32rem),
    var(--bg);
}

.audit-input-topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 11, 0.9);
  backdrop-filter: blur(18px);
}

.audit-input-topbar-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
}

.audit-input-topbar .brand-glyph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.audit-input-private {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-input-private i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(183, 255, 74, 0.08);
}

.audit-input-shell {
  width: min(calc(100% - 32px), 980px);
  padding-block: 54px 96px;
}

.audit-input-hero {
  max-width: 760px;
  margin-bottom: 36px;
}

.audit-input-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.audit-input-eyebrow span {
  padding: 5px 8px;
  border: 1px solid rgba(183, 255, 74, 0.24);
  border-radius: 999px;
  color: var(--lime);
}

.audit-input-hero h1,
.privacy-document h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.audit-input-hero > p:not(.audit-input-eyebrow) {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--text-soft);
  font-size: 17px;
}

.audit-input-progress {
  display: flex;
  max-width: 520px;
  align-items: center;
  color: #737a75;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-input-progress span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.audit-input-progress span i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  font-style: normal;
}

.audit-input-progress span.is-current {
  color: var(--text);
}

.audit-input-progress span.is-current i {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--lime-dark);
}

.audit-input-progress b {
  width: 54px;
  height: 1px;
  margin-inline: 10px;
  background: var(--border-strong);
}

.audit-input-form {
  display: grid;
  gap: 18px;
}

.audit-input-card,
.audit-submit-card,
.audit-success-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(21, 24, 22, 0.98), rgba(13, 15, 14, 0.98));
  box-shadow: var(--shadow-card);
}

.audit-input-card {
  padding: 28px;
}

.audit-card-heading {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.audit-card-heading > div > span,
.audit-submit-card > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.audit-card-heading h2,
.audit-submit-card h2,
.audit-success-card h2 {
  margin-bottom: 7px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.038em;
}

.audit-card-heading p,
.audit-submit-card p,
.audit-success-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.audit-photo-count {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.audit-photo-count.is-ready {
  border-color: rgba(183, 255, 74, 0.28);
  background: rgba(183, 255, 74, 0.06);
  color: var(--lime);
}

.audit-dropzone {
  position: relative;
  display: grid;
  min-height: 174px;
  place-items: center;
  border: 1px dashed rgba(226, 233, 228, 0.23);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.audit-dropzone:hover,
.audit-dropzone.is-dragging {
  border-color: rgba(183, 255, 74, 0.58);
  background: rgba(183, 255, 74, 0.035);
}

.audit-dropzone.is-dragging {
  transform: scale(0.995);
}

.audit-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.audit-file-input:focus-visible + label {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

.audit-dropzone label {
  display: grid;
  width: 100%;
  min-height: 172px;
  cursor: pointer;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
}

.audit-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid rgba(183, 255, 74, 0.22);
  border-radius: 13px;
  background: rgba(183, 255, 74, 0.05);
  color: var(--lime);
}

.audit-upload-icon svg,
.audit-upload-privacy svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.audit-dropzone label strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.audit-dropzone label small {
  color: var(--muted);
  font-size: 12px;
}

.audit-inline-error,
.audit-form-error,
.audit-field-error {
  min-height: 0;
  margin: 9px 0 0;
  color: #ff938c;
  font-size: 12px;
  font-weight: 650;
}

.audit-inline-error:empty,
.audit-form-error:empty,
.audit-field-error:empty {
  display: none;
}

.audit-photo-list {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.audit-photo-list:empty {
  display: none;
}

.audit-photo-item {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(6, 8, 7, 0.65);
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.audit-photo-item:hover {
  border-color: rgba(226, 233, 228, 0.2);
}

.audit-photo-item.is-dragging {
  opacity: 0.42;
}

.audit-photo-item.is-drop-target {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.audit-photo-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1b1e1c;
}

.audit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audit-photo-fallback {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.audit-photo-position {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(4, 6, 5, 0.76);
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}

.audit-photo-meta {
  display: grid;
  min-width: 0;
  padding: 11px 12px 8px;
}

.audit-photo-meta strong,
.audit-photo-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-photo-meta strong {
  font-size: 12px;
}

.audit-photo-meta small {
  color: var(--muted);
  font-size: 10px;
}

.audit-photo-optimized {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(183, 255, 74, 0.08);
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.audit-photo-controls {
  display: grid;
  padding: 0 8px 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.audit-photo-controls button,
.audit-photo-controls label {
  display: grid;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}

.audit-photo-controls button:hover,
.audit-photo-controls label:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.audit-photo-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.audit-photo-controls button span {
  display: none;
}

.audit-photo-controls label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.audit-photo-controls label:has(input:focus-visible) {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.audit-photo-controls [data-remove] {
  color: #df8e87;
}

.audit-upload-privacy {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(183, 255, 74, 0.1);
  border-radius: 13px;
  background: rgba(183, 255, 74, 0.025);
}

.audit-upload-privacy > span {
  flex: 0 0 auto;
  color: var(--lime);
}

.audit-upload-privacy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.audit-upload-privacy strong {
  color: var(--text-soft);
}

.audit-upload-privacy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.audit-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 720;
}

.audit-field > span {
  display: flex;
  justify-content: space-between;
}

.audit-field > span small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.audit-field input,
.audit-field select,
.audit-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: 0;
  background: rgba(5, 7, 6, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.audit-field input,
.audit-field select {
  padding: 0 13px;
}

.audit-field textarea {
  min-height: 140px;
  padding: 13px;
  resize: vertical;
  line-height: 1.5;
}

.audit-field input:focus,
.audit-field select:focus,
.audit-field textarea:focus {
  border-color: rgba(183, 255, 74, 0.72);
  box-shadow: 0 0 0 3px rgba(183, 255, 74, 0.07);
}

.audit-field input[aria-invalid="true"],
.audit-field select[aria-invalid="true"] {
  border-color: rgba(255, 123, 115, 0.7);
}

.audit-field-wide {
  grid-column: span 1;
}

.audit-field-full {
  position: relative;
  grid-column: 1 / -1;
}

.audit-character-count {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}

.audit-submit-card {
  display: grid;
  position: relative;
  padding: 26px 28px;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-color: rgba(183, 255, 74, 0.16);
}

.audit-submit-actions {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.audit-submit-actions .button {
  width: 100%;
}

.audit-submit-actions p {
  margin: 0;
  text-align: center;
  font-size: 10px;
}

.audit-submit-button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.audit-upload-progress {
  grid-column: 1 / -1;
}

.audit-upload-progress > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 11px;
}

.audit-upload-progress > i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.audit-upload-progress > i b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 180ms ease;
}

.audit-form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.audit-success-card {
  display: grid;
  max-width: 680px;
  margin-inline: auto;
  padding: 42px;
  place-items: center;
  text-align: center;
  border-color: rgba(183, 255, 74, 0.2);
}

.audit-success-card[hidden] {
  display: none;
}

.audit-success-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-dark);
  font-weight: 900;
}

.audit-success-card > p:first-of-type {
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.audit-success-card code {
  margin: 18px 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #090b0a;
  color: var(--text-soft);
  font-size: 11px;
}

.audit-success-card small {
  margin-top: 8px;
  color: var(--muted);
}

.audit-input-footer {
  border-top: 1px solid var(--border);
}

.audit-input-footer .container {
  display: flex;
  min-height: 76px;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.audit-input-footer span {
  color: var(--text);
  font-weight: 800;
}

.audit-input-footer p {
  flex: 1;
  margin: 0;
}

.audit-input-footer a {
  color: var(--text-soft);
}

.privacy-main {
  padding-block: 72px 100px;
}

.privacy-document {
  width: min(calc(100% - 32px), 760px);
}

.privacy-intro {
  max-width: 680px;
  margin: 20px 0 42px;
  color: var(--text-soft);
  font-size: 18px;
}

.privacy-document section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.privacy-document section h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.privacy-document section p {
  margin: 0;
  color: var(--muted);
}

.privacy-document .button {
  margin-top: 24px;
}

@media (max-width: 700px) {
  .audit-input-shell {
    padding-block: 36px 70px;
  }

  .audit-input-hero h1,
  .privacy-document h1 {
    font-size: clamp(38px, 11.5vw, 50px);
  }

  .audit-input-progress b {
    width: 24px;
    margin-inline: 6px;
  }

  .audit-input-card {
    padding: 20px;
    border-radius: 19px;
  }

  .audit-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-field-grid {
    grid-template-columns: 1fr;
  }

  .audit-field-wide,
  .audit-field-full {
    grid-column: auto;
  }

  .audit-submit-card {
    padding: 22px 20px;
    grid-template-columns: 1fr;
  }

  .audit-submit-actions {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .audit-input-topbar-inner {
    min-height: 58px;
  }

  .audit-input-private {
    font-size: 9px;
  }

  .audit-input-shell {
    width: min(calc(100% - 24px), 980px);
  }

  .audit-input-hero {
    margin-bottom: 28px;
  }

  .audit-input-hero > p:not(.audit-input-eyebrow) {
    font-size: 15px;
  }

  .audit-input-progress {
    font-size: 9px;
  }

  .audit-input-progress span i {
    width: 21px;
    height: 21px;
  }

  .audit-card-heading {
    gap: 12px;
  }

  .audit-card-heading h2,
  .audit-submit-card h2,
  .audit-success-card h2 {
    font-size: 25px;
  }

  .audit-dropzone,
  .audit-dropzone label {
    min-height: 140px;
  }

  .desktop-upload-copy {
    display: none;
  }

  .audit-photo-list {
    gap: 8px;
  }

  .audit-photo-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-photo-controls button,
  .audit-photo-controls label {
    min-height: 42px;
    font-size: 10px;
  }

  .audit-photo-controls button span {
    display: inline;
  }

  .audit-upload-privacy {
    margin-top: 14px;
  }

  .audit-submit-card .button,
  .audit-success-card .button {
    min-height: 54px;
  }

  .audit-success-card {
    padding: 30px 20px;
  }

  .audit-input-footer .container {
    min-height: 96px;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-block: 18px;
  }

  .audit-input-footer p {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audit-dropzone,
  .audit-photo-item,
  .audit-upload-progress > i b {
    transition: none;
  }
}
