/* Tokens inherited from ORCA html[data-theme]; no fixed light/dark background. */
.orca-editor { color: var(--ink); background: var(--surface); max-width: 100%; }
.orca-editor p, .orca-editor li { overflow-wrap: anywhere; }
.orca-editor [role="alert"] { border-left: 3px solid var(--danger, #b34242); padding: .7rem; }
.orca-editor-chooser { display: grid; gap: .6rem; }
.orca-editor-chooser ul { max-height: 17rem; overflow: auto; padding: .3rem; list-style: none; }
.orca-editor-chooser button { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.orca-editor-form, .orca-editor section form { display: grid; gap: .8rem; }
.orca-editor label { display: grid; gap: .35rem; min-width: 0; }
.orca-editor input, .orca-editor textarea, .orca-editor select { box-sizing: border-box; width: 100%; max-width: 100%; color: var(--ink); background: var(--surface-2, var(--surface)); border: 1px solid var(--line, var(--border)); border-radius: .4rem; padding: .6rem; font: inherit; }
.orca-editor textarea { min-height: 16rem; resize: vertical; font-family: ui-monospace, monospace; }
.orca-editor-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.orca-editor button, .orca-editor a { max-width: 100%; overflow-wrap: anywhere; }
.orca-editor button:disabled { opacity: .55; cursor: not-allowed; }
.orca-editor :focus-visible { outline: 3px solid var(--accent, #007f88); outline-offset: 3px; }
.orca-editor-suggestions { display: grid; gap: .3rem; max-height: 14rem; overflow: auto; }
.orca-editor-suggestions [aria-selected="true"] { outline: 2px solid var(--accent, #007f88); }
.orca-editor section { margin-block: 1rem; }
.orca-editor section li { margin-block: .5rem; }
@media (max-width: 600px) { .orca-editor-actions { align-items: stretch; flex-direction: column; } .orca-editor button { min-height: 2.75rem; } }
