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

/* Repeatable keyframe / event rows */
.dct-list { display: flex; flex-direction: column; gap: 8px; }
.dct-list-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dct-list-row input, .dct-list-row select { flex: 1; min-width: 60px; }
.dct-list-row .dct-tick-input { flex: 0 0 74px; }
.dct-list-row .dct-time-input { flex: 0 0 74px; }
.dct-btn-remove {
  flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid #d9e0d4; border-radius: 6px; background: #fff;
  color: #27331f; cursor: pointer; font-size: 16px; line-height: 1; font-weight: 700;
}
.dct-btn-remove:hover { border-color: #19616a; color: #19616a; }
.dct-btn-add {
  align-self: flex-start; padding: 8px 14px; font-size: 13px; font-weight: 700; border: 1px solid #19616a;
  border-radius: 6px; background: #fff; color: #19616a; cursor: pointer;
}
.dct-btn-add:hover { background: #19616a; color: #fff; }

/* Keyframe / event table preview */
.dct-table-wrap { overflow-x: auto; border: 1px solid #d9e0d4; border-radius: 6px; }
.dct-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dct-table th, .dct-table td {
  padding: 7px 9px; text-align: left; border-bottom: 1px solid #d9e0d4; white-space: nowrap;
}
.dct-table th { background: #f3f4f8; color: #27331f; font-weight: 700; }
.dct-table td { color: #5b6b56; font-family: ui-monospace, monospace; }
.dct-table tr:last-child td { border-bottom: none; }

/* Generated text / JSON output block, styled like the reference tool's command blocks */
.dct-out { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dct-code {
  margin: 0; padding: 12px 14px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
  font-family: ui-monospace, monospace; font-size: 13px; color: #19616a; font-weight: 600;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.dct-out span.dct-out-desc { font-size: 12.5px; color: #5b6b56; }
.dct-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.dct-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }
.dct-warn {
  font-size: 12.5px; color: #27331f; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
  padding: 8px 10px; margin: 0 0 4px;
}

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