@import url('../shared.css');

.output-panel {
  min-height: 24rem;
  max-height: 24rem;
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid #dbe2ea;
  border-radius: 0.9rem;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.6;
}

.line {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.5rem;
}

.line-no {
  color: #94a3b8;
  text-align: right;
  user-select: none;
}

.line-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #0f172a;
}

.line-empty {
  color: #94a3b8;
}

.line-break {
  color: #64748b;
  margin-left: 0.25rem;
}

.line-no-break {
  color: #ef4444;
  margin-left: 0.25rem;
}

.token-space,
.token-space-run,
.token-tab,
.token-nbsp,
.token-uws,
.token-null {
  border-radius: 0.35rem;
  padding: 0 0.2rem;
}

.token-space {
  background: #e2e8f0;
  color: #334155;
}

.token-space-run {
  background: #bfdbfe;
  color: #1e3a8a;
}

.token-tab {
  background: #fde68a;
  color: #78350f;
}

.token-nbsp,
.token-uws {
  background: #ddd6fe;
  color: #4c1d95;
}

.token-null {
  background: #fecaca;
  color: #7f1d1d;
  font-weight: 700;
}

.trailing-group {
  background: rgba(248, 113, 113, 0.12);
  border-radius: 0.4rem;
}

.summary-card {
  border: 1px solid #dbe2ea;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.65rem 0.75rem;
}

.summary-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.summary-value {
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.detail-box {
  border: 1px dashed #cbd5e1;
  border-radius: 0.7rem;
  background: #ffffff;
  padding: 0.55rem 0.7rem;
}

.detail-title {
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.2rem;
}

.detail-list {
  margin: 0;
  padding-left: 1rem;
}
