* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #172033;
}

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

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

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #5865d8;
}

h1 {
  margin: 6px 0 8px;
  font-size: 38px;
}

h2 { margin-top: 0; }

.header p {
  margin: 0;
  color: #667085;
}

.panel {
  background: white;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

label, .field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #667085;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border: 1px solid #cfd6e4;
  border-radius: 10px;
  padding: 14px;
  font: inherit;
  line-height: 1.5;
}

textarea:focus {
  outline: 2px solid #d8dcff;
  border-color: #6b75dd;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

button {
  border: 0;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 700;
  cursor: pointer;
  background: #3946c6;
  color: white;
}

button.secondary {
  background: #eef1f6;
  color: #344054;
}

button:disabled {
  opacity: .6;
  cursor: wait;
}

.badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.pass {
  background: #e8f7ee;
  color: #176b3a;
}

.badge.stop {
  background: #fdecec;
  color: #a52a2a;
}

.badge.neutral {
  background: #edf0f6;
  color: #475467;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.field-value {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.mono, pre {
  font-family: Consolas, "Courier New", monospace;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e1e6ef;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tab {
  background: #eef1f6;
  color: #344054;
}

.tab.active {
  background: #3946c6;
  color: white;
}

.output {
  display: none;
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: #101828;
  color: #e8eefc;
  overflow: auto;
  max-height: 560px;
  white-space: pre-wrap;
  word-break: break-word;
}

.output.active { display: block; }

.error-panel {
  border-color: #f1b7b7;
}

.error-panel h2 {
  color: #a52a2a;
}

.hidden { display: none; }

@media (max-width: 700px) {
  .shell { margin: 22px auto; }
  .header { flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
}
