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

.wbdt-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wbdt-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wbdt-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.wbdt-section {
  border: 1px solid #d9e0d4; border-radius: 8px; padding: 14px; background: #fff;
  display: flex; flex-direction: column; gap: 12px;
}
.wbdt-section h3 { margin: 0; font-size: 14.5px; color: #27331f; }
.wbdt-section h4 { margin: 0; font-size: 13.5px; color: #19616a; }

.wbdt-out { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.wbdt-cmd {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.wbdt-cmd code { font-family: ui-monospace, monospace; font-size: 13.5px; color: #19616a; font-weight: 700; }
.wbdt-cmd span { font-size: 12.5px; color: #5b6b56; }
.wbdt-copy {
  padding: 6px 10px; font-size: 12.5px; font-weight: 700; border: 1px solid #19616a; border-radius: 6px;
  background: #fff; color: #19616a; cursor: pointer; white-space: nowrap;
}
.wbdt-copy:hover { background: #19616a; color: #fff; }
.wbdt-copy.wbdt-copied { background: #19616a; color: #fff; }

.wbdt-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.wbdt-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }

.wbdt-diagram { display: flex; justify-content: center; padding: 8px 0; }
.wbdt-diagram svg { max-width: 100%; height: auto; }
.wbdt-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #5b6b56; justify-content: center; }
.wbdt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wbdt-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #d9e0d4; }

.wbdt-table-wrap { overflow-x: auto; }
table.wbdt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.wbdt-table caption { text-align: left; font-size: 13px; font-weight: 700; color: #27331f; padding-bottom: 8px; }
table.wbdt-table th, table.wbdt-table td {
  border: 1px solid #d9e0d4; padding: 8px 10px; text-align: left; vertical-align: top;
}
table.wbdt-table thead th { background: #f3f4f8; color: #27331f; font-weight: 700; }
table.wbdt-table tbody th { background: #f3f4f8; color: #19616a; font-weight: 700; white-space: nowrap; }
table.wbdt-table td.wbdt-yes { color: #19616a; font-weight: 700; }
table.wbdt-table td.wbdt-no { color: #5b6b56; }

.wbdt-cmd-syntax {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.wbdt-cmd-syntax code { font-family: ui-monospace, monospace; font-size: 13.5px; color: #19616a; font-weight: 700; }

@media (max-width: 560px) {
  .wbdt-row2, .wbdt-row3, .wbdt-row4 { grid-template-columns: 1fr; }
}
