.contribution-debug-modal { width: min(96rem, calc(100vw - 1rem)); max-height: calc(100dvh - 1rem); padding: 1rem; border: 1px solid #ccdce3; border-radius: .6rem; color: var(--app-text, #153647); overflow: auto; }
.contribution-debug-modal::backdrop { background: rgb(15 40 55 / 40%); }
.contribution-debug-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.contribution-debug-json { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 28rem; overflow: auto; }
.expression-debug-value { background: #e5f4ee; color: #174b36; border: 1px solid #b7daca; border-radius: .3rem; padding: .2rem .45rem; font-size: .85rem; max-width: 100%; overflow-wrap: anywhere; }
.expression-debug-value.is-error { background: #fff0f0; color: #982525; border-color: #e0a8a8; }
.expression-debug-value.is-skipped, .expression-debug-value.is-unrecorded, .expression-debug-value.is-independent { background: #f2f4f5; color: #596b76; border-color: #ced8dc; }
.expression-debug-popover { position: fixed; inset: auto; margin: 0; width: min(42rem, calc(100vw - 1rem)); max-height: calc(100dvh - 1rem); padding: 1rem; border: 1px solid #b6ceda; border-radius: .5rem; color: var(--app-text, #153647); overflow: auto; }
.expression-debug-popover::backdrop { background: transparent; }
[data-formula-debug] .expression-status-row > .text-secondary, [data-contribution-debug] .expression-status-row > .text-secondary { display: none; }
@media (pointer: coarse) { .expression-debug-value { min-height: 44px; } }
.expression-debug-table-trigger { border: 1px solid #8baebb; border-radius: .3rem; color: #176079; background: #f2f8fb; padding: .2rem .45rem; line-height: 1.25; }
.expression-debug-table-popover { width: min(80rem, calc(100vw - 1rem)); }
.expression-debug-table-scroll { max-height: min(60dvh, 35rem); }
.expression-debug-table th, .expression-debug-table td { white-space: nowrap; }
.expression-debug-table thead { position: sticky; top: 0; z-index: 1; }
.expression-debug-table .expression-debug-selected-row { --bs-table-bg: #e4f3e9; --bs-table-color: #163e28; font-weight: 600; }
.expression-debug-table .expression-debug-projection { border-bottom: 3px solid #147a9b; }
@media (pointer: coarse) { .expression-debug-table-trigger { min-height: 44px; min-width: 44px; } }
.expression-debug-table .expression-debug-projection { white-space: normal; }
@media (max-width: 575px) { .expression-debug-table th[scope="row"] .badge { display: block; margin-left: 0 !important; margin-top: .2rem; } }
