/* Natural Text */

.nt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin: 1rem 0 0.25rem;
}

.nt-plan-chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
}

.nt-profile-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.nt-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  font: inherit;
}

.nt-wordcount {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono, ui-monospace, monospace);
}

.nt-wordcount.is-over {
  color: #fca5a5;
}

.nt-input {
  min-height: 16rem;
}

.nt-summary {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.nt-pass { color: var(--accent-hot); }
.nt-fail { color: #fcd34d; }

.nt-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

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

.nt-subhead {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--brand);
}

.nt-view {
  min-height: 10rem;
  padding: 1rem 1.1rem;
  line-height: 1.55;
}

.nt-view-plain {
  margin: 0;
  white-space: pre-wrap;
}

.nt-hl-hard {
  background: rgba(252, 165, 165, 0.28);
  border-bottom: 2px solid #f87171;
  cursor: pointer;
}

.nt-hl-warn {
  background: rgba(252, 211, 77, 0.22);
  border-bottom: 2px solid #fbbf24;
  cursor: pointer;
}

.nt-hl-info {
  background: rgba(125, 211, 252, 0.18);
  border-bottom: 1px dotted #7dd3fc;
  cursor: pointer;
}

mark.is-active {
  outline: 2px solid rgba(0, 196, 154, 0.55);
  outline-offset: 1px;
}

.nt-findings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.nt-finding-btn {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.nt-sev {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.nt-sev-hard .nt-sev { color: #fca5a5; }
.nt-sev-warn .nt-sev { color: #fcd34d; }
.nt-sev-info .nt-sev { color: #7dd3fc; }

.nt-card-codes {
  margin: 0 0 0.35rem;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.8rem;
  color: var(--accent-hot);
}

.nt-card-text {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.nt-card-suggestion {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(0, 196, 154, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(0, 196, 154, 0.08);
}
