/* License: MIT (see ../license.txt); alternatively GPL v3.0. (c) 2026 ISSP Software und Service GmbH */
.hm-editor{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);height:clamp(560px,calc(100vh - 190px),820px);min-height:0;gap:9px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden}.hm-head,.hm-mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.hm-head h2,.hm-head p{margin:0}.hm-head p{margin-top:4px;color:var(--muted)}.hm-mode-row{min-height:38px}.hm-mode-row [role=status]{color:var(--muted);font-size:12px}.hm-workspace{display:grid;grid-template-columns:1fr 1fr;min-height:0;border:1px solid var(--line);border-radius:9px;overflow:hidden}.hm-write{display:grid;min-width:0;min-height:0;border-right:1px solid var(--line)}.hm-rich,.hm-write textarea{grid-area:1/1;min-width:0;min-height:0;margin:0;padding:18px;overflow:auto;border:0;outline:0;resize:none;background:var(--input-bg,#fff);color:var(--ink);font:15px/1.55 system-ui}.hm-write textarea{background:#172033;color:#e3eafa;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.hm-rich:empty:before{content:attr(data-placeholder);color:var(--muted)}.hm-preview{width:100%;height:100%;min-height:0;border:0;background:#fff}.hm-workspace[data-mode=write]{grid-template-columns:1fr}.hm-workspace[data-mode=write] .hm-preview{display:none}.hm-workspace[data-mode=preview]{grid-template-columns:1fr}.hm-workspace[data-mode=preview] .hm-write{display:none}.hm-editor .cl-toolbar{overflow-x:auto;flex-wrap:nowrap}@media(max-width:760px){.hm-editor{height:calc(100vh - 145px);padding:9px}.hm-head{align-items:flex-start;flex-direction:column}.hm-head p{display:none}.hm-workspace{grid-template-columns:1fr}.hm-workspace[data-mode=split] .hm-preview{display:none}}
.hm-mode-row [role=status].bad{color:#b42318}.hm-rich img{display:block;max-width:100%;height:auto;margin:10px 0}.hm-dialog{width:min(680px,calc(100vw - 28px));border:1px solid var(--line);border-radius:12px;padding:0;background:var(--surface,#fff);color:var(--ink);box-shadow:0 20px 70px #0005}.hm-dialog::backdrop{background:#17203399}.hm-dialog form{display:grid;gap:14px;padding:18px}.hm-dialog header,.hm-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.hm-dialog h3{margin:0}.hm-dialog header button{border:0;background:transparent;font-size:24px}.hm-dialog label{display:grid;gap:6px;font-weight:600}.hm-dialog label:has(input[type=checkbox]){display:flex;align-items:center}.hm-dialog input[type=text],.hm-dialog textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;padding:9px;background:var(--input-bg,#fff);color:var(--ink);font:13px/1.5 ui-monospace,Consolas,monospace}.hm-dialog footer{justify-content:flex-end}.hm-hint{margin:0;color:var(--muted);font-size:12px}
