.sbd-container {
  max-width: 1020px;
}

.sbd-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #32145f;
}

.sbd-textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid #d7caf8;
  border-radius: 12px;
  padding: 16px;
  background: #fcfbff;
  font: 15px/1.55 Consolas, Monaco, monospace;
  color: #27165b;
}

.sbd-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.sbd-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

/* Result card */
.sbd-result {
  margin-top: 28px;
}

.sbd-card {
  border-radius: 16px;
  padding: 22px 26px;
  border: 1px solid;
  margin-bottom: 16px;
}

.sbd-card-hard {
  background: linear-gradient(180deg, #fff5f5 0%, #fff0f0 100%);
  border-color: #fca5a5;
}

.sbd-card-soft {
  background: linear-gradient(180deg, #fffbeb 0%, #fff7d6 100%);
  border-color: #fcd34d;
}

.sbd-card-info {
  background: linear-gradient(180deg, #f0f9ff 0%, #e8f4ff 100%);
  border-color: #7dd3fc;
}

.sbd-card-unknown {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: #d1d5db;
}

.sbd-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sbd-code-badge {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: Consolas, Monaco, monospace;
  padding: 6px 16px;
  border-radius: 10px;
  white-space: nowrap;
}

.badge-hard    { background: #fee2e2; color: #991b1b; }
.badge-soft    { background: #fef3c7; color: #92400e; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-unknown { background: #f3f4f6; color: #374151; }

.sbd-type-label {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.label-hard    { color: #b91c1c; }
.label-soft    { color: #b45309; }
.label-info    { color: #1d4ed8; }
.label-unknown { color: #4b5563; }

.sbd-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #1a1a2e;
}

.sbd-card p {
  margin: 0 0 10px;
  color: #444;
  font-size: 0.97rem;
}

.sbd-action-box {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
}

.sbd-action-box strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.sbd-action-box p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #374151;
}

/* Multi-match list */
.sbd-matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Reference table */
.sbd-reference {
  margin-top: 32px;
}

.sbd-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sbd-ref-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.sbd-ref-code {
  font-family: Consolas, Monaco, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #4f46e5;
}

.sbd-ref-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a2e;
  margin: 4px 0 3px;
}

.sbd-ref-desc {
  font-size: 0.83rem;
  color: #6b7280;
  margin: 0;
}
