/* Shared page spacing. Embedded traceability dialogs retain their own layout. */
html:not(.trace-embedded){--page-panel-gap:18px;--page-panel-padding:18px}
html:not(.trace-embedded) .workspace>main:is(.workspace-main,.builder-main){box-sizing:border-box;width:100%;max-width:1880px;margin-inline:auto;padding:26px 30px;display:flex;flex-direction:column;gap:var(--page-panel-gap);min-width:0}
html:not(.trace-embedded) .workspace>main:is(.workspace-main,.builder-main)>*{margin:0!important;min-width:0;flex-shrink:0}
html:not(.trace-embedded) .workspace>main>.panel:not(#batch-analysis),html:not(.trace-embedded) .trace-controls{padding:var(--page-panel-padding)}
html:not(.trace-embedded) #analytics-snapshot{display:flex;flex-direction:column;gap:var(--page-panel-gap);margin:0!important;padding:0;min-width:0;width:100%}
html:not(.trace-embedded) #analytics-snapshot>*{margin-block:0!important;min-width:0}
html:not(.trace-embedded) :is(.snapshot-summary-grid,.snapshot-secondary-metrics,.monitor-tiles,.case-summary,.case-columns){gap:var(--page-panel-gap)}
html:not(.trace-embedded) :is(.snapshot-secondary-metrics,.snapshot-summary-panel,.policy-outcomes,.snapshot-toolbar,.monitor-tile,.case-count,.case-columns>.panel){padding:var(--page-panel-padding)}
html:not(.trace-embedded) :is(#batch-analysis,#batch-content,#case-workspace:not([hidden])){display:flex;flex-direction:column;gap:var(--page-panel-gap);min-width:0}
html:not(.trace-embedded) :is(#batch-content,#case-workspace)>*{margin-block:0!important;min-width:0}
html:not(.trace-embedded) :is(#case-notice:empty,#batch-notice:empty,#trace-status:empty,.monitor-tiles:empty,.case-summary:empty){display:none}
html:not(.trace-embedded) .case-picker-grid{gap:var(--page-panel-gap)}
html:not(.trace-embedded) .trace-controls{gap:var(--page-panel-gap)}
@media(max-width:800px){html:not(.trace-embedded) .workspace>main:is(.workspace-main,.builder-main){padding:18px}}
@media(max-width:500px){html:not(.trace-embedded){--page-panel-padding:14px}html:not(.trace-embedded) .workspace>main:is(.workspace-main,.builder-main){padding:12px}}

html:not(.trace-embedded) #analytics-snapshot>.run-progress{padding:var(--page-panel-padding)}
html:not(.trace-embedded) :is(.monitor-filters,.monitor-metadata,.case-context){gap:var(--page-panel-gap)}
