.omnex-ui-block {
  border: 1px solid var(--ui-border, #30384e);
  border-radius: 14px;
  margin: 14px 0;
  padding: 16px;
  background: var(--ui-panel, #141a29);
  min-width: 0;
  overflow: hidden;
  color: var(--ui-ink, #e7eafa);
}
.omnex-ui-block h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  line-height: 1.5;
}
.omnex-ui-content {
  min-width: 0;
}
.omnex-ui-content > svg {
  display: block;
  width: 100%;
  max-height: 460px;
  color: inherit;
}
.omnex-ui-table {
  overflow: auto;
  max-height: 420px;
  overscroll-behavior: contain;
}
.omnex-ui-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.omnex-ui-table th,
.omnex-ui-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--ui-border, #30384e);
  text-align: start;
  white-space: pre-wrap;
  min-width: 85px;
}
.omnex-ui-table th {
  position: sticky;
  top: 0;
  background: var(--ui-panel, #141a29);
  z-index: 1;
}
.omnex-ui-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.omnex-ui-actions button,
.omnex-ui-status button {
  font: inherit;
  color: inherit;
  border: 1px solid var(--ui-border, #30384e);
  background: transparent;
  border-radius: 8px;
  padding: 7px 12px;
  min-height: 40px;
  cursor: pointer;
}
.omnex-ui-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}
.omnex-ui-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.omnex-ui-inputs label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.9rem;
}
.omnex-ui-inputs input,
.omnex-ui-inputs select {
  min-height: 44px;
  font: inherit;
  color: inherit;
  background: var(--ui-field, #0b1020);
  border: 1px solid var(--ui-border, #30384e);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.omnex-ui-inputs input[type="range"] {
  padding: 0;
  accent-color: #488bff;
}
.omnex-ui-outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.omnex-ui-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #488bff12;
  padding: 12px;
  border-radius: 10px;
}
.omnex-ui-result output {
  font-size: 1.2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.omnex-ui-result[data-error] {
  color: #e48282;
}
.omnex-ui-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  min-height: 44px;
}
.omnex-ui-check input {
  width: 20px;
  height: 20px;
  accent-color: #488bff;
}
.omnex-ui-block progress {
  width: 100%;
  height: 12px;
  accent-color: #488bff;
}
.omnex-ui-note,
.omnex-ui-content small,
.omnex-ui-status {
  font-size: 0.82rem;
  color: var(--ui-muted, #9aa6bf);
  line-height: 1.6;
}
.omnex-ui-status:empty {
  display: none;
}
.omnex-ui-content details {
  margin-top: 12px;
}
.omnex-ui-content summary,
.omnex-ui-invalid summary {
  cursor: pointer;
  min-height: 36px;
}
.omnex-ui-code,
.omnex-ui-content pre {
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.omnex-ui-timeline {
  padding-inline-start: 24px;
}
.omnex-ui-timeline li {
  padding: 4px 0 12px 12px;
  border-inline-start: 2px solid #488bff;
}
.omnex-ui-timeline time {
  display: block;
  font-size: 0.8rem;
  color: var(--ui-muted);
}
.omnex-ui-timeline strong {
  display: block;
}
.omnex-ui-invalid {
  margin: 10px 0;
  overflow-wrap: anywhere;
  color: var(--ui-muted);
}
:root[data-theme="light"] .omnex-ui-block,
body.light .omnex-ui-block {
  --ui-node-fill: #eaf0ff;
}
@media (max-width: 600px) {
  .omnex-ui-block {
    padding: 12px;
    border-radius: 10px;
  }
  .omnex-ui-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .omnex-ui-block button {
    min-height: 44px;
  }
  .omnex-ui-actions {
    gap: 6px;
  }
  .omnex-ui-table th,
  .omnex-ui-table td {
    padding: 8px;
  }
  .omnex-ui-content > svg {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .omnex-ui-block * {
    animation: none !important;
    transition: none !important;
  }
}
@media(min-width:1100px){.md:has(>.omnex-ui-block){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.md>.omnex-ui-block{margin:0}.md>.omnex-ui-prose,.md>.omnex-ui-status,.md>.omnex-ui-note,.md>.omnex-ui-invalid,.md>.omnex-ui-block:has(.omnex-ui-inputs),.md>.omnex-ui-block:has(.omnex-ui-check){grid-column:1/-1}}
.omnex-ui-slide{aspect-ratio:16/9;min-height:170px;overflow:auto;border:1px solid var(--ui-border,#343e55);border-radius:10px;padding:18px;margin:10px 0;background:linear-gradient(135deg,#488bff0d,transparent)}.omnex-ui-slide h4{font-size:1.25rem;margin:10px 0}.omnex-ui-artifact-preview{max-height:420px;overflow:auto}.omnex-ui-artifact-preview>svg{max-width:100%;height:auto;display:block}
.omnex-ui-web-preview:empty{display:none}.omnex-ui-web-preview iframe{display:block;width:100%;height:360px;border:1px solid var(--ui-border,#35405c);border-radius:10px;background:white;margin-top:8px}.omnex-ui-web-preview>button{min-height:44px;font:inherit;color:inherit;background:transparent;border:1px solid var(--ui-border,#35405c);border-radius:8px;padding:8px 12px}.omnex-ui-preview-console:empty{display:none}.omnex-ui-preview-console{max-height:140px;overflow:auto;font:12px/1.6 monospace}

/* Native response components own explicit theme tokens; legacy editor tokens differ. */
.omnex-ui-block{--ui-ink:#e7eafa;--ui-muted:#9aa6bf;--ui-panel:#141a29;--ui-field:#0b1020;--ui-border:#30384e}
body.light .omnex-ui-block{--ui-ink:#172033;--ui-muted:#53657f;--ui-panel:#fff;--ui-field:#f5f7fc;--ui-border:#d5ddec;--ui-node-fill:#eaf0ff}
.omnex-ui-block .omnex-ui-inputs label,.omnex-ui-block .omnex-ui-result span,.omnex-ui-block .omnex-ui-result output,.omnex-ui-block .omnex-ui-table th,.omnex-ui-block .omnex-ui-table td,.omnex-ui-block .omnex-ui-actions button,.omnex-ui-block .omnex-ui-check{color:var(--ui-ink)}
.omnex-ui-block .omnex-ui-inputs input,.omnex-ui-block .omnex-ui-inputs select{color:var(--ui-ink);background:var(--ui-field)}
