.toolpilot-grid { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; table-layout: auto; overflow-wrap: normal; }
.toolpilot-grid th { background: #ecebea; color: #363432; border-bottom: 2px solid #a99162; white-space: nowrap; }
.toolpilot-grid td { border-bottom: 1px solid #dedbd6; vertical-align: middle; }
.toolpilot-grid tbody tr { cursor: default; }
.toolpilot-grid tbody tr:hover { background: #f4f0e9; }
.toolpilot-grid tbody tr.grid-selected { background: #eee4d2; box-shadow: inset 4px 0 #a6202b; }
.toolpilot-grid tbody tr:focus-visible { outline: 2px solid #a6202b; outline-offset: -2px; }
.grid-actions { padding: .65rem 0; min-height: 3rem; flex-wrap: wrap; }
.grid-actions > span { color: #625d56; font-size: .9rem; margin-right: auto; }
.grid-context { position: fixed; z-index: 10000; padding: .5rem; display: grid; gap: .25rem; min-width: 12rem; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; background: #fff; border: 1px solid #b5a17c; border-radius: 7px; box-shadow: 0 8px 30px #0003; }
.grid-context button { text-align: left; margin: 0; }
.grid-action-column { display: none; }
@media print { .grid-actions, .grid-context { display: none; } }

.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow: auto; }
