:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #07111f;
  color: #e9f3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(28, 160, 255, 0.14), transparent 35rem),
    #07111f;
}

button,
input,
textarea {
  font: inherit;
}

.assessment-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.assessment-header,
.results-heading,
.field-row,
.button-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.assessment-header {
  margin-bottom: 28px;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1rem;
}

.eyebrow,
.label,
.subtle {
  color: #8fa9c2;
}

.eyebrow {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.75rem;
}

.lede {
  max-width: 760px;
  color: #aec2d8;
}

.panel,
.result-card {
  border: 1px solid rgba(138, 185, 226, 0.18);
  background: rgba(11, 27, 45, 0.86);
  border-radius: 14px;
}

.panel {
  padding: 22px;
  margin-top: 18px;
}

.field-row {
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
  flex: 1;
}

.field span {
  color: #a8bfd5;
  font-size: 0.85rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #32516d;
  border-radius: 9px;
  padding: 12px 14px;
  background: #081725;
  color: #f0f8ff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #4fb9ff;
}

.exclusions-field {
  margin: 16px 0;
}

.button {
  border: 1px solid #3a688c;
  border-radius: 9px;
  padding: 11px 16px;
  background: #102b40;
  color: #e9f5ff;
  cursor: pointer;
}

.button.primary {
  background: #1177b8;
  border-color: #1b92dc;
}

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

.status-pill,
.grade-card,
.metric {
  border: 1px solid rgba(91, 192, 255, 0.28);
  background: rgba(27, 109, 158, 0.14);
  border-radius: 10px;
}

.status-pill {
  padding: 8px 12px;
  white-space: nowrap;
}

.verification-grid,
.summary-grid,
.results-grid {
  display: grid;
  gap: 14px;
}

.verification-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.verification-grid > div {
  min-width: 0;
}

code {
  display: block;
  margin-top: 6px;
  padding: 10px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #06121e;
  color: #8ed7ff;
}

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

.metric {
  padding: 14px;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
}

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

.result-card {
  padding: 18px;
}

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

.grade-card {
  min-width: 92px;
  padding: 12px 18px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
}

.finding,
.asset,
.selection {
  padding: 10px 0;
  border-bottom: 1px solid rgba(138, 185, 226, 0.12);
}

.finding:last-child,
.asset:last-child,
.selection:last-child {
  border-bottom: 0;
}

.finding-title,
.asset-title {
  font-weight: 700;
}

.finding-meta,
.asset-meta {
  color: #8fa9c2;
  font-size: 0.82rem;
}

.selection {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.selection input {
  width: auto;
  margin-top: 3px;
}

.deep-results {
  margin-top: 18px;
}

.developer-panel pre {
  max-height: 480px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #a8d7ef;
}

.hidden {
  display: none !important;
}

.error {
  color: #ffb3b3;
}

.success {
  color: #9ef0ba;
}

@media (max-width: 760px) {
  .assessment-header,
  .field-row,
  .results-heading,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .verification-grid,
  .summary-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }
}
