/* Softrouter — embeddable quote demo */
.embed-root {
  font-family: var(--bw-font-sans);
  background: var(--bw-bg);
  color: var(--bw-text);
  min-height: 100vh;
  margin: 0;
  padding: var(--bw-space-4);
}

.embed-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bw-bg-surface);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-lg);
  padding: var(--bw-space-6);
  box-shadow: var(--bw-shadow-sm);
}

.embed-brand {
  display: flex;
  align-items: center;
  gap: var(--bw-space-2);
  margin-bottom: var(--bw-space-4);
}

.embed-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--bw-gradient);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
}

.embed-brand h1 {
  font-size: var(--bw-text-lg);
  font-weight: 800;
}

.embed-brand p {
  font-size: var(--bw-text-xs);
  color: var(--bw-text-muted);
}

.embed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bw-space-3);
  margin-bottom: var(--bw-space-4);
}

.embed-field label {
  display: block;
  font-size: var(--bw-text-xs);
  font-weight: 600;
  color: var(--bw-text-muted);
  margin-bottom: 0.25rem;
}

.embed-field input,
.embed-field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: var(--bw-radius-sm);
  border: 1px solid var(--bw-border);
  background: var(--bw-bg-muted);
  color: var(--bw-text);
  font-size: var(--bw-text-sm);
}

.embed-result {
  margin-top: var(--bw-space-4);
  padding: var(--bw-space-3);
  border-radius: var(--bw-radius-sm);
  background: var(--bw-bg-muted);
  border: 1px solid var(--bw-border);
  font-size: var(--bw-text-xs);
  font-family: var(--bw-font-mono);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
  display: none;
}

.embed-result.is-visible {
  display: block;
}

.embed-result.is-error {
  border-color: var(--bw-danger);
  color: #fca5a5;
}

.embed-footer {
  margin-top: var(--bw-space-4);
  text-align: center;
  font-size: var(--bw-text-xs);
  color: var(--bw-text-dim);
}

.embed-footer a {
  color: var(--bw-primary);
}

@media (max-width: 480px) {
  .embed-grid {
    grid-template-columns: 1fr;
  }
}
