/*
 * The /widgets/ page: the code builder and a live preview of the widget.
 * Shared controls are in /css/tool-ui.css.
 */

.widgets-builder {
  margin-top: 0;
}

.widgets-code {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.widgets-preview {
  width: min(320px, 100%);
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f5f7fa;
}

/* The language list names each language in its own script. Like the homepage footer list,
   it uses the platform's UI font: in Inter, "Tiếng Việt" alone made this page download the
   Vietnamese subset. (Beats `.tool-page select { font-family: inherit }`.) */
.tool-page select.widgets-lang {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
