.cmit { max-width: 700px; }
.cmit-title { margin: 0 0 6px; font-size: 20px; color: #27331f; }
.cmit-desc { margin: 0 0 16px; font-size: 13.5px; color: #5b6b56; }
.cmit-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cmit-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.cmit-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.cmit-panel { display: flex; flex-direction: column; gap: 12px; }
.cmit-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.cmit-panel input, .cmit-panel select, .cmit-panel textarea {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; font-family: inherit;
}
.cmit-panel textarea { font-family: ui-monospace, monospace; font-size: 13.5px; resize: vertical; }
.cmit-panel input:focus, .cmit-panel select:focus, .cmit-panel textarea:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.cmit-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cmit-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cmit-check-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cmit-check { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 700; }
.cmit-check input[type="checkbox"] { width: auto; padding: 0; }

/* Repeatable variant rows */
.cmit-variants { display: flex; flex-direction: column; gap: 10px; }
.cmit-variant-card {
  border: 1px solid #d9e0d4; border-radius: 6px; padding: 12px; background: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.cmit-variant-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cmit-variant-head strong { font-size: 13px; color: #27331f; }
.cmit-sub-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cmit-sub-row input { flex: 1 1 140px; min-width: 0; }
.cmit-sub-label { font-size: 12px; font-weight: 700; color: #5b6b56; flex: 0 0 100%; margin-top: 2px; }
.cmit-color-input { flex: 0 0 90px !important; padding: 3px !important; height: 36px; }

.cmit-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;
}
.cmit-btn-remove:hover { border-color: #19616a; color: #19616a; }
.cmit-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;
}
.cmit-btn-add:hover { background: #19616a; color: #fff; }
.cmit-btn-mini {
  padding: 5px 9px; font-size: 12px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #f3f4f8; color: #27331f; cursor: pointer;
}
.cmit-btn-mini:hover { border-color: #19616a; color: #19616a; }

/* JSON / multi-line output, matching the reference tool's command-block style */
.cmit-out { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.cmit-out-block { display: flex; flex-direction: column; gap: 6px; }
.cmit-out-label { font-size: 12px; font-weight: 700; color: #5b6b56; text-transform: uppercase; letter-spacing: .02em; }
.cmit-json {
  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;
}
.cmit-out span.cmit-json-desc { font-size: 12.5px; color: #5b6b56; }

.cmit-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.cmit-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }
.cmit-warn {
  font-size: 12.5px; color: #27331f; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
  padding: 8px 10px; margin: 0 0 4px;
}

/* Reference table (tab 2) */
.cmit-search { margin-bottom: 10px; }
.cmit-table-wrap { border: 1px solid #d9e0d4; border-radius: 6px; overflow: hidden; }
.cmit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmit-table th, .cmit-table td { text-align: left; padding: 9px 11px; border-bottom: 1px solid #d9e0d4; vertical-align: top; }
.cmit-table th { background: #f3f4f8; color: #27331f; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.cmit-table tr:last-child td { border-bottom: none; }
.cmit-table td.cmit-type-cell { font-family: ui-monospace, monospace; font-size: 12.5px; color: #19616a; font-weight: 700; white-space: nowrap; }
.cmit-table td.cmit-desc-cell { color: #27331f; }
.cmit-no-results { padding: 14px; text-align: center; color: #5b6b56; font-size: 13px; }

@media (max-width: 480px) {
  .cmit-row2 { grid-template-columns: 1fr; }
  .cmit-row3 { grid-template-columns: 1fr; }
  .cmit-table { font-size: 12px; }
}
