/* Keep keyboard and visual order aligned: editing actions, then content tabs. */
.editor-nav,.dock-right .editor-nav,.dock-right.maximized .editor-nav{display:flex;flex-direction:column;align-items:stretch}
.editor-nav .editor-nav-actions,.dock-right .editor-nav .editor-nav-actions,.dock-right.maximized .editor-nav .editor-nav-actions{height:30px;min-height:30px;border:0;justify-content:flex-end;padding:0 14px;gap:6px}
.editor-nav .tabs{flex:none;width:100%;border-top:1px solid var(--line)}
/* Compact auxiliary actions retain full-width text and a visible keyboard focus. */
.editor-nav-actions .tool-btn,.layout-add-field .tool-btn,.template-row>.tool-btn,.settings-tree-actions .tool-btn{height:26px;min-height:26px;padding:0 6px;font-size:12px;color:var(--muted);background:transparent}
/* Hover colors come from the current theme, including dark themes. */
.tool-btn:hover,.icon-btn:hover,.text-btn:hover{background:var(--raised)}
.tool-btn.primary:hover{background:color-mix(in srgb,var(--accent) 90%,#000);color:var(--accent-ink)}
.editor-nav-actions .tool-btn:hover,.layout-add-field .tool-btn:hover,.template-row>.tool-btn:hover,.settings-tree-actions .tool-btn:hover{background:var(--raised);color:var(--ink)}
.editor-nav-actions .tool-btn:focus-visible{outline:2px solid var(--muted);outline-offset:1px}
.initial-language{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#253044)}.initial-language::backdrop{background:#0005}.initial-language h2{font-size:20px;line-height:1.4;margin:0 0 18px}.initial-language p{font-size:13px;color:var(--muted);line-height:1.7}.initial-language label{display:block;font-size:12px;margin:22px 0 8px}.initial-language select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff)}.initial-language button{display:block;margin:24px 0 0 auto;min-height:38px}.initial-language :focus-visible{outline:2px solid var(--muted);outline-offset:2px}
