.dbb2 { max-width: 640px; }
.dbb2-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dbb2-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.dbb2-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.dbb2-panel { display: flex; flex-direction: column; gap: 12px; }
.dbb2-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.dbb2-panel input, .dbb2-panel select { padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; }
.dbb2-panel input:focus, .dbb2-panel select:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.dbb2-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dbb2-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.dbb2-btn {
  padding: 9px 14px; font-size: 13.5px; font-weight: 700; border: 1px solid #19616a; border-radius: 6px;
  background: #19616a; color: #fff; cursor: pointer; width: fit-content;
}
.dbb2-btn:hover { background: #144e55; border-color: #144e55; }
.dbb2-btn:focus { outline: 2px solid #19616a; outline-offset: 2px; }

.dbb2-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.dbb2-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }
.dbb2-tab-note { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.dbb2-section-title { font-size: 13px; font-weight: 700; color: #27331f; margin: 0; }
.dbb2-divider { border: none; border-top: 1px solid #d9e0d4; margin: 4px 0; }

/* searchable list rows (sounds, item sources) */
.dbb2-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.dbb2-list-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.dbb2-list-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dbb2-list-item code { font-family: ui-monospace, monospace; font-size: 13.5px; color: #19616a; font-weight: 700; }
.dbb2-list-item span.dbb2-desc { font-size: 12.5px; color: #5b6b56; }
.dbb2-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: #5b6b56; background: #fff; border: 1px solid #d9e0d4; border-radius: 4px; padding: 2px 6px;
  white-space: nowrap;
}
.dbb2-tag-teal { color: #fff; background: #19616a; border-color: #19616a; }
.dbb2-empty { font-size: 13px; color: #5b6b56; padding: 10px 0; }

/* reference tables (trial spawner configs) */
.dbb2-table-wrap { overflow-x: auto; }
table.dbb2-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.dbb2-table th, table.dbb2-table td {
  text-align: left; padding: 9px 11px; border: 1px solid #d9e0d4; vertical-align: top;
}
table.dbb2-table th {
  background: #19616a; color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.02em;
}
table.dbb2-table tbody tr:nth-child(even) { background: #f3f4f8; }
table.dbb2-table td code { font-family: ui-monospace, monospace; color: #19616a; font-weight: 700; }

/* version comparison output */
.dbb2-out { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dbb2-changelog {
  padding: 12px 14px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.dbb2-changelog-title { font-size: 13px; font-weight: 700; color: #27331f; margin: 0 0 8px; }
.dbb2-changelog ul { margin: 0; padding-left: 18px; }
.dbb2-changelog li { font-size: 13.5px; color: #27331f; margin: 0 0 6px; }
.dbb2-changelog li:last-child { margin-bottom: 0; }
.dbb2-changelog-empty { font-size: 13.5px; color: #5b6b56; font-style: italic; }

/* splash text archive */
.dbb2-splash-grid { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.dbb2-splash-item {
  padding: 9px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
  font-size: 14px; color: #27331f; font-style: italic;
}
.dbb2-splash-item.dbb2-splash-highlight {
  background: #19616a; color: #fff; border-color: #19616a; font-weight: 700;
}

/* end poem reader */
.dbb2-poem-frame {
  background: #0b0f0a; border: 1px solid #27331f; border-radius: 8px; padding: 28px 22px;
  max-height: 420px; overflow-y: auto;
}
.dbb2-poem-text {
  font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 2; color: #dce6d6;
  text-align: center; white-space: pre-line; letter-spacing: 0.01em;
}
.dbb2-poem-placeholder-tag {
  display: inline-block; margin-bottom: 14px; font-family: ui-monospace, monospace; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; color: #dce6d6; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; padding: 3px 8px;
}

@media (max-width: 480px) {
  .dbb2-row3 { grid-template-columns: 1fr; }
  .dbb2-row2 { grid-template-columns: 1fr; }
}
