.table-field{min-width:0}.table-toolbar{display:flex;justify-content:flex-end;gap:6px;margin-bottom:6px}.table-toolbar button{font-size:12px}.table-field .table-scroll{max-height:440px;overflow:auto;overscroll-behavior:contain}.table-field table{table-layout:fixed;border-collapse:collapse}.table-field th,.table-field td{position:relative;padding:0;box-sizing:border-box}.table-field .table-corner{padding:8px;font-size:11px;color:var(--muted);text-align:center}.table-field .table-column,.table-field .table-row-title{display:flex;align-items:center;min-width:0;width:100%;height:100%;gap:0}.table-field .table-column input{min-width:0;width:0;flex:1}.table-field .table-row-title input{min-width:0;width:0;flex:1;font-size:12px;text-align:center;padding:6px 2px}.table-field th[scope=row]{min-width:0;padding:0}.table-field input{height:38px;min-height:38px;box-sizing:border-box}.table-field textarea{display:block;resize:none!important;min-height:40px;max-height:none;width:100%;min-width:0;box-sizing:border-box;overflow:auto;margin:0;line-height:20px;vertical-align:top}.table-field .table-column button,.table-field .table-row-title button{flex:0 0 22px;padding:6px 3px;min-width:0;border:0;font-size:14px}.table-field .table-drag{cursor:grab;touch-action:none;display:flex;align-items:center;justify-content:center;opacity:.6}.table-field .table-drag:hover{opacity:1}.table-field .table-drag:active{cursor:grabbing}.table-border{position:absolute;display:block;touch-action:none;z-index:2}.table-border-column{right:-3px;top:0;bottom:0;width:7px;cursor:col-resize}.table-border-row{bottom:-3px;left:0;right:0;height:7px;cursor:row-resize}.table-border:focus-visible{outline:1px solid var(--muted);outline-offset:-2px;background:var(--raised)}.table-moving{z-index:4!important;position:relative;opacity:.75;background:var(--raised)!important;pointer-events:none;will-change:transform}.table-expanded-dialog{width:calc(100vw - 40px);height:calc(100dvh - 40px);max-width:none;max-height:none;padding:20px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px}.table-expanded-dialog::backdrop{background:#0005;backdrop-filter:blur(2px)}.table-expanded-dialog[open]{display:flex}.table-expanded-dialog>.table-field{display:flex;flex-direction:column;min-width:0;width:100%;min-height:0}.table-expanded-dialog .table-scroll{flex:1;min-height:0;max-height:none}.table-expanded-dialog .table-toolbar{flex:none}.table-field button:focus-visible{outline:1px solid var(--muted);outline-offset:1px}.dual-layout-button[hidden],#openOtherEditor[hidden]{display:none!important}@media(max-width:600px){.table-expanded-dialog{inset:8px;margin:0;width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:12px}}

.table-field .table-scroll{border:0;border-radius:0}.table-field table{border:1px solid var(--line)}
/* Field-header controls follow the same compact/expanded states as text fields. */
.table-field-actions .table-expand-toggle,.table-field-actions .table-wide-toggle{display:none}.text-layout-expanded .table-field-actions .table-compact-toggle{display:none}.text-layout-expanded .table-field-actions .table-expand-toggle,.text-layout-expanded .table-field-actions .table-wide-toggle{display:inline-flex}.table-field-actions button{align-items:center;justify-content:center;padding:3px;background:transparent;color:var(--muted);border:0}.page-field.table-wide{grid-column:1/-1!important}.table-field.table-compact .table-scroll{max-height:112px}.table-expanded-dialog>.page-field{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;margin:0}.table-expanded-dialog>.page-field>.table-field{display:flex;flex-direction:column;min-height:0;flex:1}.table-expanded-dialog .table-compact-toggle,.table-expanded-dialog .table-wide-toggle{display:none!important}.table-expanded-dialog .table-expand-toggle{display:inline-flex}.table-expanded-dialog .field-label{margin-bottom:8px}.table-field textarea{min-height:28px;padding:4px 6px}.table-field table th{background:var(--raised);color:var(--ink)}.table-field th .table-column,.table-field th .table-row-title{background:transparent}.table-field table th input,.table-field table th button,:root[data-color-scheme] .table-field table th input,:root[data-color-scheme] .table-field table th button{background:transparent!important;color:inherit}.table-field th input:focus-visible{outline:1px solid var(--muted);outline-offset:-2px}.table-field .table-corner{padding:0}.table-corner>button{width:100%;height:38px;font:inherit;cursor:pointer}.table-cell-selected{background:color-mix(in srgb,var(--ink) 12%,var(--surface))!important}.table-cell-selected textarea{background:transparent!important}.table-drag[aria-pressed=true],.table-corner>button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--muted);opacity:1}.table-field:focus-visible{outline:1px solid var(--muted);outline-offset:2px}.table-field-actions button:focus-visible{outline:1px solid var(--muted);outline-offset:2px}
.rich-text>[data-md-kind=paragraph]{padding-left:var(--list-indent,0px)}.rich-image [data-rich-indent]{position:absolute;top:6px;width:26px;height:26px;padding:4px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);opacity:.6}.rich-image [data-rich-indent=in]{right:38px}.rich-image [data-rich-indent=out]{right:70px}.rich-image:hover [data-rich-indent],.rich-image:focus-within [data-rich-indent]{opacity:1}.rich-image [data-rich-indent]:focus-visible{outline:1px solid var(--muted);outline-offset:2px}
/* Override the docked text editor's larger textarea minimum for table cells. */
.page-field.type-table .table-field textarea{min-height:28px}.table-field .table-row-title input{height:28px;min-height:28px}.table-field .table-row-title button{height:28px;padding:3px;line-height:20px}
/* Header whitespace is the selection/drag surface; the title remains an editor. */
.table-field .table-scroll,.table-field textarea{overscroll-behavior:auto}.table-field th[data-table-drag]{cursor:grab;touch-action:none;user-select:none}.table-field th[data-table-drag]:active{cursor:grabbing}.table-field th[data-table-drag]:focus-visible{outline:1px solid var(--muted);outline-offset:-2px}.table-field .table-column,.table-field .table-row-title{padding:0 28px 0 12px;box-sizing:border-box;position:relative;justify-content:center}.table-field .table-column input,.table-field .table-row-title input{flex:0 1 auto;width:var(--title-ch,4ch);max-width:100%;min-width:0;cursor:text;user-select:text;padding:4px 2px}.table-field th [data-table-remove-column],.table-field th [data-table-remove-row]{position:absolute;right:3px;top:50%;transform:translateY(-50%);opacity:0;pointer-events:none}.table-field th:hover [data-table-remove-column],.table-field th:hover [data-table-remove-row],.table-field th:focus-visible [data-table-remove-column],.table-field th:focus-visible [data-table-remove-row],.table-field [data-table-remove-column]:focus-visible,.table-field [data-table-remove-row]:focus-visible{opacity:1;pointer-events:auto}.table-header-selected{box-shadow:inset 0 0 0 1px var(--muted)}@media(hover:none){.table-field th [data-table-remove-column],.table-field th [data-table-remove-row]{opacity:1;pointer-events:auto}}
