/* 도구 줄 꾸미기(2026-11-09 · static/toolbar_layout.js) — [⚙ 배치] 를 누르면 묶음을 끌어 아무 줄에나 놓는다 · 이 PC 에 기억
   끌 때 따라오는 이름표·놓을 자리 막대 = z-index 9620·9610 — 사이트에서 비어 있는 값(9500 위 · 9998 아래 · topbar.css 장부의 사용 중 값과 겹치지 않게 —
   같은 값이면 화면 순서가 승부를 갈라 불안정) · 편집기 위 칸들보다 위 · 확인 창·알림보다 아래 */
.tb-layout { display: inline-flex; align-items: center; gap: 6px; }
#toolbar .tb-layout-ctl { display: inline-flex; align-items: center; gap: 6px; }
#toolbar .tb-layout-ctl[hidden] { display: none; }
.tb-layout-hint { font-size: 11px; color: var(--ink-2); white-space: nowrap; }
/* 1줄은 늘 보인다(오른쪽 끝 도구 자리) — 묶음이 다 빠져도(빈 줄 숨김 규칙 mml_editor.css .tb-row:not(:has(...)) 보다 우선) */
#toolbar .tb-row[data-row="1"] { display: flex; }

/* 꾸미기 중 — 줄은 다 보이고(빈 줄·숨은 묶음 줄도) 놓을 자리 테두리 · 묶음은 통째로 잡힌다(안 단추·칸은 눌리지 않음) */
#toolbar.tb-editing .tb-row { display: flex !important; min-height: 40px; outline: 1px dashed var(--line-strong); outline-offset: 2px; border-radius: 6px; }
#toolbar.tb-editing .tb-group { cursor: grab; outline: 1px dashed var(--accent-dim, var(--accent)); outline-offset: 1px; }
#toolbar.tb-editing .tb-group * { pointer-events: none; }
#toolbar.tb-editing .tb-group > .tb-cap::before { content: "⠿ "; color: var(--ink-2); }
#toolbar.tb-editing .tb-group[hidden] { display: inline-flex !important; opacity: .55; }
#toolbar.tb-editing .tb-group[hidden][data-tbl-note]::after { content: attr(data-tbl-note); font-size: 11px; color: var(--ink-2); margin-left: 4px; white-space: nowrap; }
#toolbar .tb-group.tb-dragging { opacity: .3; }
.tb-empty { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 11.5px; color: var(--ink-2); }
.tb-ghost { position: fixed; z-index: 9620; pointer-events: none; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--bg-2); color: var(--ink-0); font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.tb-drop-mark { position: fixed; z-index: 9610; width: 3px; border-radius: 2px; background: var(--accent); pointer-events: none; }
