#table-insert-picker.table-menu-floating {
    position: fixed; inset: auto; display: flex; flex-direction: column;
    max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px);
    padding: 0; overflow: visible; border-radius: 10px; font-size: 12px;
    line-height: 1.5; transform: none;
}
#table-insert-picker.hidden { display: none; }
#table-menu-heading { display:flex; align-items:center; gap:6px; padding:10px; flex:none; border-bottom:1px solid #cbd5e1; cursor:move; }
#table-menu-heading #btn-jena-table { flex:1; min-width:0; margin:0; font-size:12px; }
.table-menu-fallback-title { flex:1; font-weight:700; }
#table-menu-heading:has(#btn-jena-table:not(.hidden)) .table-menu-fallback-title { display:none; }
#table-menu-heading > button { border:1px solid #94a3b8; border-radius:6px; padding:6px 9px; background:transparent; font-size:12px; font-weight:600; }
#table-menu-heading #table-menu-dock-btn { color:#0e7490; border-color:#0891b2; white-space:nowrap; }
#table-menu-body { padding:12px; overflow:auto; min-height:0; flex:1 1 auto; }
#table-menu-body :is(button,input,summary,h3,label,#table-insert-size-label,#table-caption-preview,span,div) { font-size:12px; }
#table-menu-body button { min-height:34px; border-radius:6px; }
#table-menu-body input:not([type=checkbox]) { min-height:34px; }
#table-menu-body :is(#table-merge-delimiter,#table-row-merge-delimiter) { min-height:34px; width:80px; }
#table-menu-body p { font-size:11px; line-height:1.5; }
#table-menu-body #table-insert-grid button { min-height:0; border-radius:0; }
#table-caption-panel > .flex:last-child { flex-wrap:wrap; align-items:center; gap:8px; }
.table-caption-close-label { display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
#table-caption-panel > .flex:last-child > button:first-child { margin-right:auto; }
.table-caption-close-label input { width:15px; height:15px; accent-color:#4f46e5; }
.table-caption-close-label.is-disabled { opacity:.45; cursor:default; }
.dark #table-menu-heading { border-color:#334155; }
.dark #table-menu-heading #table-menu-dock-btn { color:#67e8f9; }
#table-menu-dock { position:relative; order:4; flex:none; min-width:0; min-height:0; display:flex; background:#fff; border-left:1px solid #94a3b8; }
.dark #table-menu-dock { background:#0f172a; }
#table-insert-picker.table-menu-docked { position:static; width:100%!important; height:100%!important; max-width:none; max-height:none; border:0; border-radius:0; box-shadow:none; z-index:auto!important; }
#table-menu-dock #table-menu-heading { cursor:default; }
.table-menu-dock-splitter { position:absolute; left:-4px; top:0; bottom:0; width:8px; z-index:2; cursor:col-resize; touch-action:none; }
.table-menu-dock-splitter:hover,.table-menu-dock-splitter:focus-visible { background:#22d3ee; }
.table-menu-resizing { user-select:none; }
.table-menu-resize { position:absolute; touch-action:none; }
.table-menu-resize-n,.table-menu-resize-s { left:8px; right:8px; height:6px; cursor:ns-resize; }
.table-menu-resize-n { top:-3px; }.table-menu-resize-s { bottom:-3px; }
.table-menu-resize-e,.table-menu-resize-w { top:8px; bottom:8px; width:6px; cursor:ew-resize; }
.table-menu-resize-e { right:-3px; }.table-menu-resize-w { left:-3px; }
.table-menu-resize-ne,.table-menu-resize-nw,.table-menu-resize-se,.table-menu-resize-sw { width:12px; height:12px; }
.table-menu-resize-ne { right:-3px; top:-3px; cursor:nesw-resize; }.table-menu-resize-nw { left:-3px; top:-3px; cursor:nwse-resize; }
.table-menu-resize-se { right:-3px; bottom:-3px; cursor:nwse-resize; border-right:3px solid #94a3b8; border-bottom:3px solid #94a3b8; border-radius:0 0 5px; }
.table-menu-resize-sw { left:-3px; bottom:-3px; cursor:nesw-resize; }
.table-menu-docked .table-menu-resize { display:none; }
@media(max-width:760px) {
    #main-workspace:has(#table-menu-dock) { --table-menu-mobile-bottom:calc(var(--mobile-ui-dock-height,0px) + var(--mobile-ui-zoom-reserved-height,0px) + var(--mobile-ui-safe-bottom,0px)); }
    #main-workspace:has(#table-menu-dock) > .order-2 { margin-bottom:calc(min(45dvh,360px) + var(--table-menu-mobile-bottom)); }
    #table-menu-dock { position:absolute; left:0; right:0; bottom:var(--table-menu-mobile-bottom); width:100%!important; height:min(45dvh,360px); z-index:25; border-top:1px solid #94a3b8; }
    .table-menu-dock-splitter { display:none; }
    #table-menu-body button,#table-menu-heading > button,#table-menu-body input:not([type=checkbox]) { min-height:44px; }
    #table-menu-body #table-insert-grid button { min-height:0; }
}
@media print { #table-menu-dock,#table-insert-picker { display:none!important; } }

.table-caption-alignment { display:inline-flex; gap:2px; align-items:center; }
#table-menu-body .table-caption-alignment button { width:28px; padding:4px; border:1px solid #94a3b8; background:transparent; color:inherit; font-weight:600; }
#table-menu-body .table-caption-alignment button[aria-pressed=true] { background:#4f46e5; border-color:#4f46e5; color:white; }

#table-menu-body .table-tool-section-toggle { display:flex; align-items:center; justify-content:center; gap:4px; text-align:center; width:100%; min-height:34px; padding:6px 8px; border:1px solid #cbd5e1; border-radius:6px; font-size:12px; font-weight:600; line-height:1.5; cursor:pointer; list-style:none; background:transparent; }
#table-menu-body summary.table-tool-section-toggle { margin-bottom:0; }
#table-menu-body summary.table-tool-section-toggle::-webkit-details-marker { display:none; }
#table-edit-section[open] > .table-tool-section-toggle { margin-bottom:10px; }
#table-menu-body .table-tool-section-toggle:hover { background:#f1f5f9; }
.dark #table-menu-body .table-tool-section-toggle { border-color:#475569; }
.dark #table-menu-body .table-tool-section-toggle:hover { background:#1e293b; }
@media(max-width:760px) { #table-menu-body .table-tool-section-toggle { min-height:44px; } }
