/* Whisper — Schema catalog review (v13-catalog.js). RESTRAINT.md: neutral surfaces, one accent, 1px borders,
   4px grid, 400/500/600, W.statusBadge for status. Mirrors v12-terms.css. */

.ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.ct-bar select, .ct-bar .ct-q { height: 32px; }
.ct-src { max-width: 260px; }
.ct-find { position: relative; display: inline-flex; align-items: center; }
.ct-find > svg { position: absolute; left: 9px; color: var(--text-3); pointer-events: none; }
.ct-q { width: 200px; padding: 0 10px 0 28px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font-size: var(--fs-13); }
.ct-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ct-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 12px; font-size: var(--fs-13); color: var(--text-2); }
.ct-use { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--text); }
.ct-bulk { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl, 6px); background: var(--surface); }
.ct-bulk[hidden] { display: none; }
.ct-bulk-n { font-size: var(--fs-13); font-weight: var(--fw-med); margin-right: 4px; }
.ct-load, .ct-empty { padding: 16px 0; font-size: var(--fs-13); color: var(--text-3); }
.ct-empty { padding: 32px 16px; text-align: center; }

.ct-tbl { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl, 6px); background: var(--surface); }
.ct-thead { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ct-tog { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--text); font: inherit; font-weight: var(--fw-med); cursor: pointer; }
.ct-tog:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.ct-thead .btn { margin-left: auto; }
.ct-table { width: 100%; margin: 0; }
.ct-table td { vertical-align: top; }
.ct-row:focus { outline: none; box-shadow: var(--ring-inset); }
.ct-row:hover td { background: var(--row-hover, var(--wash-1)); }
.ct-cb { width: 1%; }
.ct-name { width: 28%; }
.ct-name code { font-family: var(--mono); font-size: var(--fs-13); color: var(--text); }
.ct-ev { display: block; margin-top: 2px; font-size: var(--fs-12); color: var(--text-3); line-height: 18px; word-break: break-word; }
.ct-ev code { font-family: var(--mono); color: var(--text-2); }
.ct-n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ct-def { font-size: var(--fs-13); color: var(--text); }
.ct-def-t { display: block; }
.ct-vals { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.ct-val { font-size: var(--fs-12); color: var(--text-2); }
.ct-val code { font-family: var(--mono); color: var(--text); }
.ct-sub { display: inline-block; font-size: var(--fs-12); color: var(--text-3); }
.ct-st, .ct-rowacts { width: 1%; white-space: nowrap; }
.ct-ta { width: 100%; min-height: 40px; resize: vertical; font-size: var(--fs-13); }
.ct-lbl { display: block; margin: 8px 0 4px; font-size: var(--fs-12); color: var(--text-3); }
.ct-edacts { display: flex; gap: 8px; margin-top: 8px; }

.ct-try { margin: 16px 0 0; }
.ct-try summary { cursor: pointer; font-size: var(--fs-13); color: var(--text-2); }
.ct-try-in { display: flex; gap: 8px; margin: 8px 0; }
.ct-try-in .text-input { flex: 1 1 auto; }
.ct-try-l { margin: 4px 0 0; padding-left: 16px; font-size: var(--fs-13); }
.ct-try-l code { font-family: var(--mono); }

@media (max-width: 720px) {
  .ct-name { width: auto; }
  .ct-use { margin-left: 0; }
  .ct-q { width: 100%; }
}
.ct-tog[aria-expanded="false"] svg { transform: rotate(-90deg); }
