/* Cell editing keeps the selected row visible and uses the native dialog focus contract. */
.hc-live-editor .record-grid td.hc-cell-editable{cursor:text}.hc-live-editor .record-grid td.hc-cell-readonly{cursor:default}
.hc-live-editor .record-grid td[tabindex]:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;background:var(--soft)}
.hi-console dialog.hc-cell-editor{inset:auto;left:var(--cell-left,16px);top:var(--cell-top,16px);margin:0;width:min(520px,calc(100vw - 32px));height:auto;max-width:none;max-height:calc(100dvh - 32px);border:1px solid var(--border);border-radius:9px;box-shadow:0 14px 50px #0003;animation:none;transform:none}
.hi-console dialog.hc-cell-editor::backdrop{background:#0002;backdrop-filter:none}
.hi-console .hc-cell-editor>[data-table-editor-target=dialogBody]{height:auto;max-height:calc(100dvh - 34px)}
.hi-console .hc-cell-editor .create-table-header{padding:14px 18px;gap:12px;min-height:58px}.hc-cell-editor .create-table-header h2{font:600 14px ui-monospace,monospace;overflow-wrap:anywhere}
.hi-console .hc-cell-editor .create-table-body{padding:16px 18px;gap:12px;overflow:auto}.hc-cell-context{font-size:11px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.hc-cell-options{display:flex;gap:8px;border:0;padding:0;margin:0}.hc-cell-options .hc-cell-option,.hc-cell-boolean label{display:flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:11px}.hc-cell-option:has(input:checked),.hc-cell-boolean label:has(input:checked){border-color:var(--primary);background:var(--soft)}.hc-cell-options input,.hc-cell-boolean input{accent-color:var(--primary)}
.hc-cell-boolean{display:flex;gap:10px}.hi-console .hc-cell-editor .hc-cell-input{width:100%;min-height:70px;max-height:40dvh;resize:vertical;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);padding:12px;font:13px/1.7 ui-monospace,Consolas,monospace;box-sizing:border-box}.hc-cell-input:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.hc-cell-input:disabled{opacity:.55}
.hc-cell-help,.hc-cell-readonly-note{margin:0;color:var(--muted);font-size:11px;line-height:1.7}.hi-console .hc-cell-editor .hc-feedback{padding:0 18px;font-size:12px;margin:0;max-height:120px;overflow:auto}.hi-console .hc-cell-editor .hc-cell-footer{padding:12px 18px;gap:8px;display:flex;align-items:center;flex-wrap:wrap}.hc-cell-footer small{margin-right:auto;font-size:10px;color:var(--muted)}
.hi-console dialog.hc-cell-editor.is-expanded{top:16px;left:50%;transform:translateX(-50%);width:min(900px,calc(100vw - 32px))}.hi-console .hc-cell-editor.is-expanded .hc-cell-input{height:50dvh;max-height:60dvh}
@media(max-width:600px){.hi-console dialog.hc-cell-editor{left:12px;top:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.hi-console .hc-cell-editor .hc-cell-input{font-size:16px}.hc-cell-footer small{flex-basis:100%;margin-bottom:6px}.hi-console dialog.hc-cell-editor.is-expanded{width:calc(100vw - 24px);top:12px}}
