/* The embeddable widget (/embed). Self-contained: no app.css, no fonts to fetch, works framed on any
   site. Light, dark and auto follow data-theme on <html> and the viewer's system setting. */
:root {
  --oe-bg: #ffffff;
  --oe-ink: #0e1611;
  --oe-muted: #5b6b61;
  --oe-line: #d9e6dd;
  --oe-accent: #0da047;
  --oe-on-accent: #ffffff;
}
:root[data-theme='dark'] {
  --oe-bg: #0e1611;
  --oe-ink: #e8f0ea;
  --oe-muted: #93a79a;
  --oe-line: #28352c;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    --oe-bg: #0e1611;
    --oe-ink: #e8f0ea;
    --oe-muted: #93a79a;
    --oe-line: #28352c;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--oe-ink);
  background: var(--oe-bg);
}
.oqrely-embed {
  display: grid;
  gap: 12px;
  padding: 16px;
  max-width: 420px;
  margin: 0 auto;
}
.oe-input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--oe-ink);
  background: var(--oe-bg);
  border: 1px solid var(--oe-line);
  border-radius: 10px;
}
.oe-input:focus {
  outline: 2px solid var(--oe-accent);
  outline-offset: 1px;
}
.oe-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--oe-line);
  border-radius: 12px;
}
.oe-preview svg {
  width: 190px;
  height: 190px;
  display: block;
}
.oe-empty {
  color: var(--oe-muted);
  text-align: center;
}
.oe-actions {
  display: flex;
  gap: 8px;
}
.oe-actions button {
  flex: 1 1 0;
  padding: 9px 10px;
  font: inherit;
  color: var(--oe-ink);
  background: var(--oe-bg);
  border: 1px solid var(--oe-line);
  border-radius: 10px;
  cursor: pointer;
}
.oe-actions button:hover {
  border-color: var(--oe-accent);
}
.oe-credit {
  justify-self: center;
  font-size: 13px;
  color: var(--oe-accent);
  text-decoration: none;
  font-weight: 600;
}
.oe-credit:hover {
  text-decoration: underline;
}
.oe-noscript {
  color: var(--oe-muted);
  text-align: center;
}
.oe-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
