.audit-page {
  margin: 0;
  padding: 0;
}

.audit-main {
  min-height: 100vh;
  margin-left: 235px;
  padding: 34px;
  background: #f4f7fb;
  color: #172033;
  box-sizing: border-box;
}

.audit-page-header,
.audit-section-heading,
.audit-run-row,
.audit-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.audit-page-header {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.audit-eyebrow,
.audit-step {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.audit-page-header h1 {
  margin: 6px 0 8px;
  font-size: 30px;
}

.audit-page-header p,
.audit-section-heading p,
.audit-upload-title p,
.audit-progress p,
.audit-empty-result p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.audit-header-badge,
.audit-status-badge {
  padding: 8px 13px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.audit-panel {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 26px;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.audit-section-heading {
  margin-bottom: 22px;
}

.audit-section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.audit-section-heading h2 {
  margin: 0;
  font-size: 20px;
}

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

.audit-upload-card {
  padding: 20px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fbfcfe;
}

.audit-upload-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.audit-upload-title h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.audit-file-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.audit-file-icon.official {
  background: #dcfce7;
  color: #15803d;
}

.audit-drop-zone {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: 0.18s ease;
}

.audit-drop-zone:hover,
.audit-drop-zone:focus-within,
.audit-drop-zone.is-dragging {
  border-color: #3b82f6;
  background: #eff6ff;
}

.audit-drop-zone input {
  display: none;
}

.audit-drop-zone span {
  color: #94a3b8;
  font-size: 13px;
}

.audit-file-info {
  margin-top: 12px;
}

.audit-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eef2f7;
  font-size: 13px;
}

.audit-file-row + .audit-file-row {
  margin-top: 7px;
}

.audit-file-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-file-row span {
  flex: 0 0 auto;
  color: #64748b;
}

.audit-run-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #edf0f4;
}

.audit-run-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.audit-run-note span {
  color: #64748b;
  font-size: 13px;
}

.audit-primary-button,
.audit-secondary-button {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.audit-primary-button {
  background: #2563eb;
  color: #ffffff;
}

.audit-secondary-button {
  background: #0f766e;
  color: #ffffff;
}

.audit-primary-button:disabled,
.audit-secondary-button:disabled {
  background: #d7dde6;
  color: #8a94a4;
  cursor: not-allowed;
}

.audit-progress-track {
  height: 9px;
  margin-bottom: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf3;
}

.audit-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.25s ease;
}

.audit-progress-copy strong {
  font-size: 14px;
}

.audit-progress-copy span {
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
}

.audit-progress p {
  margin-top: 7px;
}

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

.audit-summary-grid article {
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #f8fafc;
}

.audit-summary-grid span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.audit-summary-grid strong {
  font-size: 25px;
}

.audit-summary-grid .pass strong {
  color: #15803d;
}

.audit-summary-grid .fail strong {
  color: #dc2626;
}

.audit-summary-grid .review strong {
  color: #d97706;
}

.audit-empty-result {
  display: flex;
  min-height: 190px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #d7dde6;
  border-radius: 12px;
  background: #fbfcfe;
  text-align: center;
}

.audit-empty-result strong {
  margin: 9px 0 3px;
}

.audit-empty-icon {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #64748b;
  font-weight: 900;
}

@media (max-width: 900px) {
  .audit-main {
    margin-left: 235px;
    padding: 22px;
  }

  .audit-upload-grid,
  .audit-summary-grid {
    grid-template-columns: 1fr;
  }
}
