#adjustKeyboardBtn { width: 100%; padding: 8px; margin-bottom: 8px; background: var(--input-bg); color: var(--text); border: 1px solid rgba(128,128,128,0.35); border-radius: 5px; cursor: pointer; font: inherit; }
#kbAdjustOverlay { position: fixed; z-index: 2147482000; pointer-events: auto; background: rgba(0,0,0,0.001); touch-action: none; }
#kbAdjustOverlay .kb-line { position: absolute; touch-action: none; }
#kbAdjustOverlay .kb-line::after { content: ""; position: absolute; background: #f0524f; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.35); }
#kbAdjustOverlay .kb-line-v { top: -8px; bottom: 0; width: 28px; margin-left: -14px; cursor: ew-resize; }
#kbAdjustOverlay .kb-line-v::after { left: 12px; width: 4px; top: 0; bottom: 0; }
#kbAdjustOverlay .kb-line-h { left: -8px; right: -8px; height: 28px; margin-top: -14px; cursor: ns-resize; }
#kbAdjustOverlay .kb-line-h::after { top: 12px; height: 4px; left: 0; right: 0; }
#kbAdjustOverlay .kb-line-h:not(.active) { transition: top .15s ease-out; }
#kbAdjustOverlay .kb-line.active::after { background: #ffde63; }
#kbAdjustOverlay .kb-line-v.active::after { left: 11px; width: 6px; }
#kbAdjustOverlay .kb-line-h.active::after { top: 11px; height: 6px; }
#kbAdjustToolbar { position: fixed; left: 12px; top: 12px; z-index: 2147482001; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card-bg); border: 1px solid rgba(128,128,128,0.35); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.45); color: var(--text); font-size: 14px; box-sizing: border-box; flex-wrap: wrap; justify-content: center; }
#kbAdjustToolbar span { opacity: 0.85; flex: 1 1 auto; min-width: 0; text-align: center; }
#kbAdjustToolbar button { flex: none; }
#kbAdjustToolbar button { padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(128,128,128,0.4); background: var(--input-bg); color: var(--text); font: inherit; cursor: pointer; }
#kbAdjustToolbar button.primary { background: var(--primary); color: var(--primary-contrast); border-color: transparent; }
#kbAdjustToolbar .kb-actions { display: flex; gap: 8px; flex: none; }
#kbAdjustToolbar.stacked span { flex: 0 0 100%; }
