/* PromptShield demo. Layout: input on the left, verdict and findings on the right. */

.shield {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bar:last-child {
  margin: 12px 0 0;
}

.bar h2,
.bar h3 {
  margin: 0;
}

.bar select {
  margin-left: 6px;
  max-width: 220px;
}

#input {
  width: 100%;
  resize: vertical;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
}

.verdict {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.25s, background 0.25s;
}

.gauge {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 3px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.gauge b {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
}

.gauge span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-mute);
}

.level {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.verdict[data-level="High"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.verdict[data-level="High"] .gauge {
  border-color: var(--danger);
  box-shadow: 0 0 28px rgba(226, 69, 107, 0.45);
}

.verdict[data-level="Medium"] {
  border-color: var(--ember);
  background: var(--hot-soft);
}

.verdict[data-level="Medium"] .gauge {
  border-color: var(--ember);
}

.verdict[data-level="Low"] .gauge {
  border-color: var(--gold);
}

.verdict[data-level="Clean"] {
  border-color: var(--ok);
  background: var(--ok-soft);
}

.verdict[data-level="Clean"] .gauge {
  border-color: var(--ok);
}

.result h4,
.result h3 {
  line-height: inherit;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin: 20px 0 8px;
}

.findings,
.misses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.findings li,
.misses li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.findings strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.findings .pts {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--hot);
}

.findings q {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold-pale);
  margin: 4px 0;
  quotes: none;
  word-break: break-word;
}

.findings span.why {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.marked mark {
  background: rgba(226, 69, 107, 0.32);
  color: var(--ink);
  border-bottom: 2px solid var(--danger);
  border-radius: 2px;
  padding: 0 1px;
}

pre {
  max-height: 300px;
  overflow: auto;
  word-break: break-word;
}

@media (max-width: 860px) {
  .shield {
    grid-template-columns: 1fr;
  }
}
