/* widgets.css - /widgets/ gallery (plan T17). The widgets themselves carry their own inline CSS. */
.cxw-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.cxw-preview { overflow-x: auto; max-width: 100%; }
.cxw-preview iframe { border: 0; max-width: 100%; display: block; background: transparent; }
.cxw-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin-bottom: 8px; }
.cxw-form label { margin: 6px 0 3px; font-size: .85rem; }
.cxw-form select, .cxw-form input[type=number] { max-width: 100%; }
.cxw-side > label { display: block; font-weight: 500; margin: 8px 0 4px; }
.cxw-code { width: 100%; font: .82rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px solid var(--cx-line); border-radius: 8px; background: var(--cx-soft); color: var(--cx-ink); resize: vertical; }
.cxw-how li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .cxw-grid { grid-template-columns: 1fr; }
}
