/* Shared application page header. Workflow prompts keep their own tap-heading styles. */
:root{--page-title-size:36px;--page-top-space:32px;--page-content-gap:24px;--page-gutter:24px}
body:not(.track-expanded) #workspace:has(.page-heading){max-width:1180px;margin:0 auto;padding:var(--page-top-space) var(--page-gutter) calc(110px + env(safe-area-inset-bottom,0px))}
/* Page wrappers contribute no second top inset or flex gap around the shared header. */
#workspace>:not(.card):has(.page-heading){width:100%;max-width:none;margin-top:0;padding-top:0;padding-left:0;padding-right:0;gap:0}
#workspace .page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(48px,auto);align-items:center;gap:12px 24px;min-height:48px;margin:0 0 var(--page-content-gap);padding:0;text-align:left}
#workspace .page-heading>h1{grid-column:1;margin:0;padding:0;min-width:0;font-family:Gellix,system-ui,sans-serif;font-size:var(--page-title-size);font-weight:700;line-height:1.2;letter-spacing:-.6px;text-align:left;overflow-wrap:anywhere}
#workspace .page-heading-actions{grid-column:2;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px;min-width:0}
#workspace .page-heading-actions>.toolbar{margin:0}
#workspace .page-heading-description{grid-column:1/-1;margin:0;font-size:15px;line-height:1.5;color:#626262}
#workspace .page-heading+*,#workspace .page-heading+.tap-content>:first-child{margin-top:0}
#workspace .perf-header:has(>.page-heading){gap:0;margin-top:0}
#workspace .perf-header>.page-heading{width:100%}
/* Tools expands across the header, without a toolbar margin changing the title position. */
#workspace .page-heading-actions:has(>.ops-board-tools){display:contents}
#workspace .page-heading .ops-board-tools{display:contents}
#workspace .page-heading .ops-board-tools>summary{grid-column:2;grid-row:1;justify-self:end;min-height:48px;padding:12px;font-size:14px;white-space:nowrap}
#workspace .page-heading .ops-tools-panel{grid-column:1/-1;width:100%;box-sizing:border-box}
#workspace .page-heading .parts-performance-tools{margin:0}
#workspace .page-heading .parts-performance-tools>details{position:relative}
/* Tabs below the title share the same first-content spacing as filter cards and tiles. */
#workspace .page-heading+.tap-content{justify-content:flex-start}
@media(max-width:700px){
 :root{--page-title-size:28px;--page-top-space:24px;--page-gutter:16px}
 #workspace .page-heading{column-gap:12px}
 #workspace .page-heading-actions{grid-column:1/-1;justify-content:flex-start}
 #workspace .page-heading .ops-board-tools>summary{grid-column:1;grid-row:2;justify-self:start}
}
@media(max-width:400px){
 #workspace .page-heading~.report-switch{max-width:100%;overflow-x:auto;scrollbar-width:thin}
}

/* Shared, understated attribution and accessible inline explanation. */
.insights-credit{display:block;margin:12px 0;color:#595e57;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:normal;overflow-wrap:anywhere}
.insights-credit strong{font-weight:600}.page-heading-description>.insights-credit{margin:0}
#workspace .insights-disclosure>summary{display:flex;align-items:center;flex-wrap:wrap;gap:0 4px;width:fit-content;max-width:100%;min-height:44px;padding:0;cursor:pointer;list-style:none;font:inherit;color:inherit}
.insights-disclosure>summary::-webkit-details-marker{display:none}
.insights-disclosure>summary strong{text-decoration:underline;text-decoration-color:#999e95;text-underline-offset:3px}
.insights-disclosure>summary:focus-visible{outline:2px solid #766900;outline-offset:3px;border-radius:4px}
.insights-chevron{display:inline-block;font-size:18px;line-height:1;margin-left:2px;transition:transform .15s}
.insights-disclosure[open] .insights-chevron{transform:rotate(180deg)}
#workspace .insights-credit-detail{margin:4px 0 0;padding:12px 16px;max-width:680px;background:#eceee7;border-radius:10px;color:#454a40;font-size:14px;line-height:1.5}
/* Performance keeps its single icon action beside the title, including phones. */
#workspace .page-heading-actions:has(>.gp-refresh-icon){grid-column:2;grid-row:1;align-self:start;justify-content:flex-end;flex-wrap:nowrap}
@media print{#workspace .insights-disclosure>summary{min-height:0}.insights-chevron{display:none}#workspace .insights-credit-detail{display:none}body.printing-opportunity .insights-credit{font-size:7pt;line-height:1.1;margin:0}body.printing-opportunity #workspace .page-heading{row-gap:1mm}}
