wyvern-cli 0.2.1

What You View, Engine Renders Natively — HTTP dialog CLI
Documentation
/* Question cards — single/multi select + preview slots (sprint c.13). */

:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --fg: #1a1a1a;
  --muted: #555;
  --accent: #2680eb;
  --border: #d0d0d0;
  --card-bg: #fff;
  --preview-bg: #f0f3f7;
  --preview-border: #d0d7e2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}

body {
  display: flex;
  flex-direction: column;
}

.dialog {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
  background: var(--bg);
}

.chrome {
  flex-shrink: 0;
  padding: 12px 16px 0;
}

h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.3;
}

.cards {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

.card-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-prompt {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  word-wrap: break-word;
}

.option-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}

.option-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

.option-text {
  min-width: 0;
  flex: 1;
}

.option-label {
  font-weight: 500;
  font-size: 13px;
}

.option-description {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.option-row.has-preview {
  flex-wrap: wrap;
}

.option-preview {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 100%;
  margin-left: 22px;
  padding: 6px 8px;
  background: var(--preview-bg);
  border: 1px solid var(--preview-border);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.35;
  overflow: auto;
  max-height: 120px;
}

.option-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.option-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.option-preview p {
  margin: 0 0 0.4em;
}

.option-preview p:last-child {
  margin-bottom: 0;
}

.option-preview table {
  border-collapse: collapse;
  width: 100%;
}

.option-preview th,
.option-preview td {
  border: 1px solid #c5cdd8;
  padding: 2px 4px;
}

.validation-hint {
  margin: 0;
  padding: 0 16px 8px;
  font-size: 12px;
  color: #a33;
  flex-shrink: 0;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 12px 12px;
  flex-shrink: 0;
}

button {
  appearance: none;
  min-width: 72px;
  border: 1px solid #b0b0b0;
  background: #fff;
  color: var(--fg);
  border-radius: 4px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  border-color: #1a6fd0;
  color: #fff;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

.error {
  color: #b91c1c;
  padding: 1rem;
}

html.wyvern-embedded .dialog.dialog--panel {
  height: auto !important;
  min-height: auto !important;
}

html.wyvern-embedded .dialog.dialog--panel .cards {
  overflow: visible;
  flex: none;
}