/* Model 1: neutral list controls, bold tabs, bounded row scrolling.
   Model 2: coloured editing header + local actions + aligned fields.
   Model 3: coloured record header + existing consultation actions. */
@media screen{
 html body .ui-template-root{min-width:0;box-sizing:border-box}
 html body #content>.ui-template-root{width:100%;max-width:none}
 html body .ui-template-root>.ui-model-head,html body .ui-template-root>form>.ui-model-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;min-width:0}
 html body .ui-model-head :is(h2,h3){margin:0;font-weight:700}
 html body .ui-model-head>.actions,html body .ui-model-head>.dialog-head-actions,html body .ui-model-head>.ui-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}
 html body .ui-redundant-title,html body .ui-redundant-hero{display:none!important}
 html body [data-ui-form-model="2"] :is(.settings-actions,.network-form-actions,.monitor-rule-actions,.automation-actions,.software-form-actions,.software-deployment-actions,.software-dialog-actions,.ui-model-actions),html body .ui-model-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;grid-column:1/-1;box-sizing:border-box}
 html body form>.ui-model-actions{margin-top:16px;width:100%}
 html body .panel>.ui-model-actions{padding:12px 20px;border-bottom:1px solid var(--line);background:var(--pale)}
 html body [data-ui-form-model="2"] :is(.form-grid,.settings-fields,.company-fields,.monitor-group-fields){align-items:start;gap:16px}
 html body [data-ui-form-model="2"] :is(.form-grid,.settings-fields,.company-fields,.monitor-group-fields)>label{display:grid;align-content:start;gap:8px;min-width:0}
 html body [data-ui-form-model="2"] :is(.form-grid,.settings-fields,.company-fields,.monitor-group-fields)>label:is(.check-inline,.company-print-option){display:flex;align-items:center}
 html body [data-ui-form-model="2"] :is(.form-grid,.settings-fields,.company-fields,.monitor-group-fields)>label>input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),html body [data-ui-form-model="2"] :is(.form-grid,.settings-fields,.company-fields,.monitor-group-fields)>label>select,html body [data-ui-form-model="2"] :is(.form-grid,.settings-fields,.company-fields,.monitor-group-fields)>label>textarea{width:100%;box-sizing:border-box;min-height:42px;border:1px solid var(--line);border-radius:8px;padding:9px 11px;background:var(--surface,#fff);color:var(--ink)}
 @media(max-width:700px){html body .ui-template-root>.ui-model-head,html body .ui-template-root>form>.ui-model-head{flex-wrap:wrap;padding:12px}.ui-model-head h2{white-space:normal}}
}

@media screen{
 .network-check-panel>.network-check-heading{padding:10px 16px!important}
 .network-check-editor{margin:0 0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff)}
 .network-check-editor>summary{padding:10px 14px;font-weight:700;cursor:pointer;color:var(--ink);background:var(--pale);border-radius:8px}
 .network-check-editor[open]>summary{border-bottom:1px solid var(--line)}
 .network-check-editor>#networkCheckForm{padding:12px;margin:0;gap:12px}
 .network-check-editor .network-form-actions{margin:0;gap:8px}
 .network-check-editor .network-form-actions .btn{min-height:38px;height:38px}
 .network-check-panel.network-list-expanded .network-check-editor{display:none}
 @media(min-width:1200px){.network-check-editor>.network-check-form{grid-template-columns:repeat(4,minmax(0,1fr))}}
}

/* Keep header surface and ink as one contract, even when legacy styles compete. */
@media screen{
 .ui-template-root{--ui-model-head-bg:var(--pale);--ui-model-head-ink:var(--ink);--ui-model-head-muted:var(--muted)}
 .ui-template-root:is([data-ui-model="2"],[data-ui-model="3"]){--ui-model-head-bg:linear-gradient(110deg,var(--navy),var(--teal));--ui-model-head-ink:#fff;--ui-model-head-muted:#d5e8ed}
 html[data-appearance-headers="true"] .ui-template-root:is([data-ui-model="2"],[data-ui-model="3"]){--ui-model-head-bg:linear-gradient(90deg,#081726d6,#081726ad),var(--ribbon-background,var(--auth-background,none))}
 .ui-model-head:has(.ui-redundant-title){--ui-model-head-bg:var(--pale);--ui-model-head-ink:var(--ink);--ui-model-head-muted:var(--muted)}
 html body #content .ui-template-root>.ui-model-head,html body #content .ui-template-root>form>.ui-model-head,html body dialog.ui-template-root>.ui-model-head,html body dialog.ui-template-root>form>.ui-model-head{background:var(--ui-model-head-bg)!important;color:var(--ui-model-head-ink)!important}
 html body #content .ui-template-root>.ui-model-head :is(h1,h2,h3,small),html body #content .ui-template-root>form>.ui-model-head :is(h1,h2,h3,small),html body dialog.ui-template-root>.ui-model-head :is(h1,h2,h3,small),html body dialog.ui-template-root>form>.ui-model-head :is(h1,h2,h3,small){color:var(--ui-model-head-ink)!important}
 html body #content .ui-template-root>.ui-model-head p,html body #content .ui-template-root>form>.ui-model-head p,html body dialog.ui-template-root>.ui-model-head p,html body dialog.ui-template-root>form>.ui-model-head p{color:var(--ui-model-head-muted)!important}
}

/* Shared field sizing: semantic names/types, never the current value or language. */
html body :is(#content,dialog) :is(input,select)[data-ui-field-size]{width:100%;min-width:0;max-width:42ch;justify-self:start}
html body :is(#content,dialog) :is(input,select)[data-ui-field-size="short"]{max-width:26ch}
html body :is(#content,dialog) input[data-ui-field-size="file"]{max-width:52ch}
html body :is(#content,dialog) [data-ui-field-size="long"]:is(input,textarea){max-width:100%;width:100%}
html body :is(#content,dialog) .ui-compact-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px 16px;align-items:start}
html body :is(#content,dialog) .ui-compact-fields>.form-field{min-width:0;grid-column:auto;display:flex;flex-direction:column;gap:4px}
html body :is(#content,dialog) .ui-compact-fields>:is(h3,h4,.ui-model-actions,.field-help),html body :is(#content,dialog) .ui-compact-fields>.form-field[data-ui-field-size="long"]{grid-column:1/-1}
@media(max-width:640px){html body :is(#content,dialog) .ui-compact-fields{grid-template-columns:1fr}html body :is(#content,dialog) :is(input,select)[data-ui-field-size]{max-width:100%}}

/* Cards share the available width; long notes stay inside their card. */
html body :is(#content,dialog) .ui-compact-sections{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start}
html body :is(#content,dialog) .ui-compact-sections>:is(.aw-card,.settings-section){min-width:0;margin:0!important;grid-column:auto!important}
html body :is(#content,dialog) .ui-compact-sections>:not(.aw-card):not(.settings-section),html body :is(#content,dialog) .ui-compact-sections>.ui-section-wide{grid-column:1/-1!important}
html body :is(#content,dialog) .ui-compact-sections .aw-facts{grid-template-columns:minmax(110px,30%) minmax(0,1fr)!important;gap:10px 14px!important}
html body :is(#content,dialog) .ui-compact-sections textarea{width:100%;max-width:100%;min-height:110px;resize:vertical}
html body :is(#content,dialog) .ui-compact-sections .rich-notes-editor{min-width:0;overflow-wrap:anywhere}
@media(max-width:1100px){html body :is(#content,dialog) .ui-compact-sections{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:640px){html body :is(#content,dialog) .ui-compact-sections .aw-facts{grid-template-columns:minmax(0,1fr)!important}}

html body #settingsForm .ui-settings-intro{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1fr);gap:20px;align-items:start}
html body #settingsForm .ui-settings-intro>.settings-section{border:0;padding:0}
html body #settingsForm .logo-editor{margin:0;align-items:start;gap:14px}
html body #settingsForm .logo-preview{width:130px;height:90px;min-height:0}
html body #settingsForm .settings-section{padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}
html body #settingsForm .settings-fields.ui-compact-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;gap:12px 16px}
html body #settingsForm .form-field>label{min-height:2.5em;display:flex;align-items:end;margin:0}
html body #settingsForm :is(input,select)[data-ui-field-size]{height:40px;align-self:start}
html body #settingsForm input[type=color]{width:85px;height:38px}
html body #settingsForm textarea{min-height:76px;height:80px;resize:vertical}
html body #settingsForm .field-help{line-height:1.4;margin-top:4px}
@media(max-width:900px){html body #settingsForm .ui-settings-intro{grid-template-columns:1fr}}
html body #content #settingsForm textarea,html body dialog #settingsForm textarea{min-height:76px!important;height:80px}
/* Single-line controls cannot inherit the height of a grid row or help text. */
html:root body #content #settingsForm input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),
html:root body #content #settingsForm select{
box-sizing:border-box!important;height:36px!important;min-height:36px!important;max-height:36px!important;flex:0 0 auto!important;align-self:start!important;aspect-ratio:auto!important;padding:6px 10px!important;line-height:normal!important;
}

html body .ui-hover-help{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html body .ui-field-tooltip{position:fixed;z-index:2147483000;max-width:min(420px,calc(100vw - 20px));max-height:40vh;overflow:auto;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#172033);box-shadow:0 5px 20px #0003;font:13px/1.45 inherit;white-space:pre-line;pointer-events:none}
html body .ui-field-tooltip[hidden]{display:none!important}
html body .form-field:has(.ui-hover-help){row-gap:6px}
@media print{html body .ui-field-tooltip{display:none!important}}

html body #recordForm:is([data-record-kind="requests"],[data-record-kind="contracts"]) #formFields{display:block!important;overflow:auto;max-height:none}
html body :is(#recordDialog,#detailDialog) .request-compact-view:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;align-items:start}
html body :is(#recordDialog,#detailDialog) .request-compact-view[hidden]{display:none!important}
html body :is(#recordDialog,#detailDialog) .request-compact-card{min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface,#fff)}
html body :is(#recordDialog,#detailDialog) .request-compact-card>.record-tab-panel{display:block!important;border:0;padding:0;margin:0 0 14px}
html body :is(#recordDialog,#detailDialog) .request-compact-card h3{margin:0 0 12px;font-size:16px;color:var(--ink)}
html body :is(#recordDialog,#detailDialog) .request-compact-card .record-panel-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:0!important;max-height:none!important;overflow:visible!important}
html body :is(#recordDialog,#detailDialog) .request-compact-card .form-field{min-width:0;align-self:start}
html body :is(#recordDialog,#detailDialog) .request-compact-card .form-field.wide{grid-column:1/-1}
html body #recordForm[data-record-kind="requests"] input:not([type=hidden]):not([type=checkbox]):not([type=radio]),html body #recordForm[data-record-kind="requests"] select{height:36px!important;min-height:36px!important;max-height:36px!important;flex:none!important;aspect-ratio:auto!important;box-sizing:border-box!important}
html body :is(#recordDialog,#detailDialog) .request-compact-card textarea{height:100px;min-height:90px!important;max-width:100%;resize:vertical}
html body :is(#recordDialog,#detailDialog) .request-compact-card .sla-now{width:auto!important;justify-self:start}
@media(max-width:1050px){html body :is(#recordDialog,#detailDialog) .request-compact-view:not([hidden]){grid-template-columns:1fr}}
@media(max-width:600px){html body :is(#recordDialog,#detailDialog) .request-compact-card .record-panel-grid{grid-template-columns:1fr!important}}

/* Uniform single-line controls across pages and integrated forms. */
html:root body :is(#content,dialog,.page-workspace-host) :is(input:not([type]),input[type=text],input[type=email],input[type=password],input[type=tel],input[type=url],input[type=number],input[type=date],input[type=time],input[type=datetime-local],input[type=month],input[type=week],select):not(:where(table *,[data-ui-model="custom"] *, .aw-terminal-line *, .server-auth *, .auth-scene *)){
box-sizing:border-box!important;height:36px!important;min-height:36px!important;max-height:36px!important;flex:0 0 auto!important;align-self:start!important;aspect-ratio:auto!important;padding:6px 10px!important;line-height:normal!important;
}
html body #messageForm>.ui-model-actions{display:flex;justify-content:flex-end;width:100%}

html body #content .dashboard-hero{flex-wrap:wrap;gap:16px}html body #content .dashboard-hero>div{flex:1 1 350px;min-width:0}html body #content .dashboard-scope{flex:0 1 360px;width:min(360px,100%);min-width:0}html body #content .dashboard-scope #clientPicker{flex:1 1 0;width:0!important;min-width:0!important;max-width:100%!important}html body .mobile-header .btn,html body .sidebar .sidebar-logout{white-space:nowrap}

html body :is(#detailDialog,#recordDialog) .request-compact-card .record-panel-grid{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
html body #detailDialog .request-thread-card{margin:0 16px 18px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff)}
html body #detailDialog .request-thread-card>h3{margin:0 0 14px;font-size:16px}
html body #requestThread{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
html body #requestThread .thread-list{min-width:0;max-height:420px;overflow:auto}
html body #requestThread #messageForm{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:none;margin:0;min-width:0}
html body #requestThread #messageForm>.ui-model-actions{display:flex;justify-content:flex-end!important;grid-column:1/-1}
html body #requestThread #messageForm textarea{width:100%;min-height:110px;max-width:100%}
@media(max-width:900px){html body #requestThread{grid-template-columns:1fr}}

html body #formFields[hidden],html body .request-thread-card[hidden]{display:none!important}
.grievance-notifications{position:fixed;right:18px;top:110px;z-index:21000;display:grid;gap:10px;width:min(370px,calc(100vw - 30px));max-height:70vh;overflow:auto}.grievance-notification{padding:15px;border:1px solid var(--line);border-left:5px solid var(--blue);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#172033);box-shadow:0 5px 22px #0003}.grievance-notification p{margin:8px 0;overflow-wrap:anywhere}.grievance-notification>div{display:flex;justify-content:space-between;gap:8px}.grievance-notification .icon-btn{min-width:40px}
/* Business form keeps its tab bar visible and scrolls its fields internally. */
html body #detailDialog #recordForm.business-pilot-form{display:flex!important;flex-direction:column!important;max-height:calc(100dvh - 260px)!important;min-height:0!important;overflow:hidden!important}
html body #detailDialog #recordForm.business-pilot-form #recordTabs{flex:0 0 auto;margin:0!important}
html body #detailDialog #recordForm.business-pilot-form #formFields:not([hidden]){flex:1 1 auto!important;min-height:0!important;max-height:calc(100dvh - 325px)!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable}
html body #recordForm .request-compact-card .form-field:has(>[data-sla-clock])>[data-sla-clock],html body #recordForm .request-compact-card .form-field:has(>[data-sla-clock])>.sla-now{width:min(100%,260px)!important;max-width:none!important;height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important;justify-self:start!important;align-self:start!important}
@media(max-width:760px){html body #detailDialog #recordForm.business-pilot-form{max-height:calc(100dvh - 200px)!important}html body #detailDialog #recordForm.business-pilot-form #formFields:not([hidden]){max-height:calc(100dvh - 260px)!important}}
html body #detailDialog.client-pilot-detail>.detail-actions>#detailRefresh{margin-left:auto!important;margin-right:0!important;order:980!important;flex:0 0 auto}
html body #detailDialog.client-pilot-detail>.detail-actions.dialog-command-frame>.detail-more{margin-left:0!important}

html body #content .monitor-toolbar-actions{display:flex!important;justify-content:flex-end!important;align-items:center;gap:8px;flex-wrap:wrap}
html body #content .monitor-toolbar-actions .availability-toolbar{display:contents!important}
html body #content .monitor-toolbar-actions .av-cloud{margin-left:auto}
html body #content .monitoring-page-panel .cw-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
html body #content .monitoring-page-panel .cw-toolbar>label{display:grid!important;grid-template-columns:1fr!important;gap:6px;flex:1 1 260px;min-width:0;max-width:520px}
html body #content .monitoring-page-panel .cw-toolbar select{width:100%!important;max-width:100%!important;min-width:0!important}
html body #content .monitor-chart-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:16px;margin:16px 0;max-width:950px}
html body #content .monitor-chart-controls>label{display:grid;grid-template-columns:1fr;gap:6px;min-width:0}
html body #content .monitor-chart-controls select{width:100%!important;max-width:100%!important;min-width:0!important}
html body #content #monitorCurves{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px;align-items:start}
html body #content #monitorCurves>.performance-chart{grid-column:auto!important;width:100%!important;max-width:none!important;min-width:0}
html body #content #monitorCurves>.performance-line-chart.aw-chart{grid-column:auto!important}
html body #content #monitorCurves>.performance-line-chart>svg{height:220px!important;max-height:220px;object-fit:contain}
html body #content #monitorCurves>.cpu-gauge-card,html body #content #monitorCurves>.memory-gauge-card{height:250px;min-height:0}
html body #content #monitorCurves .single-gauge-chart{height:180px;min-height:180px}
html body #content #monitorCurves>p{grid-column:1/-1}
@media(max-width:900px){html body #content #monitorCurves,html body #content .monitor-chart-controls{grid-template-columns:1fr!important}}
html body #content .dashboard-hero>.dashboard-scope{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center;gap:12px;flex:0 1 420px;width:min(420px,100%);min-width:0}
html body #content .dashboard-hero .dashboard-scope #clientPicker{width:100%!important;min-width:0!important;max-width:100%!important;flex:none}
@media(max-width:600px){html body #content .dashboard-hero>.dashboard-scope{grid-template-columns:1fr!important;gap:6px}}

html body #content .monitoring-page-panel>.monitor-top-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 12px;background:transparent;border:0;flex-wrap:wrap}html body #content .monitoring-page-panel>.monitor-top-actions .availability-toolbar{display:contents!important}html body #content .monitoring-page-panel>.panel-body{padding-top:6px}
/* Selectors align with the left chart column; gauge captions stay inside. */
html body #content .monitor-chart-controls{width:calc((100% - 16px)/2);max-width:none;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px}
html body #content #monitorCurves>:is(.cpu-gauge-card,.memory-gauge-card){display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;height:280px!important;min-height:0;padding:16px!important;overflow:hidden;gap:8px}
html body #content #monitorCurves>:is(.cpu-gauge-card,.memory-gauge-card)>h4{margin:0}
html body #content #monitorCurves>:is(.cpu-gauge-card,.memory-gauge-card)>.single-gauge-chart{height:190px!important;min-height:0!important}
html body #content #monitorCurves>:is(.cpu-gauge-card,.memory-gauge-card)>p{position:static!important;margin:0!important;padding:0!important;font-size:12px;line-height:1.4;align-self:end}
@media(max-width:900px){html body #content .monitor-chart-controls{width:100%;grid-template-columns:minmax(0,3fr) minmax(0,2fr)!important}}
@media(max-width:560px){html body #content .monitor-chart-controls{grid-template-columns:1fr!important}}

/* Pagination controls are compact navigation, not form data fields. */
html:root body :is(#content,dialog) :is(.entity-pagination,.pagination,.automation-pagination,.au-paging,.np-pagination,.cvse-paging,.ion-pagination,.ufi-pagination) select,
html:root body select:is(.pagination-size,.automation-page-size){width:84px!important;min-width:84px!important;max-width:84px!important;flex:0 0 84px!important;height:40px!important;min-height:40px!important;max-height:40px!important;justify-self:auto;padding:6px 9px!important}
html:root body :is(#content,dialog) :is(.entity-pagination,.pagination,.automation-pagination,.au-paging,.np-pagination,.cvse-paging,.ion-pagination,.ufi-pagination)>label{display:inline-flex!important;grid-template-columns:none!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap;margin:0}
html:root body #content .ab-tools{flex-wrap:wrap!important;gap:8px!important}
html:root body #content .ab-tools>label{display:inline-flex!important;grid-template-columns:none!important;align-items:center;gap:8px;flex:0 1 auto;width:auto;min-width:0;white-space:nowrap}
html:root body #content .ab-tools>label>select{width:170px!important;min-width:0!important;max-width:100%!important;flex:0 1 170px}
html:root body #content .ab-tools>label>#savedView{width:210px!important;flex-basis:210px}
@media(max-width:600px){html:root body #content .ab-tools>label{width:100%!important;justify-content:space-between}html:root body #content .ab-tools>label>select{width:min(210px,65vw)!important;flex:0 1 210px}}

/* Conversation composer: fields first, send action below visibility. */
html body #requestThread #messageForm{align-self:start;padding:0!important}
html body #requestThread #messageForm>label:first-child{margin-top:0}
html body #requestThread #messageForm>.ui-model-actions{order:100!important;margin:0!important;padding:0!important;justify-content:flex-end!important}

/* Align the textarea itself with the first conversation card. */
@media(min-width:901px){
 html body #requestThread:has(#messageForm){padding-top:26px}
 html body #requestThread #messageForm>label:first-child{position:relative;display:block!important;margin:0!important;padding:0!important}
 html body #requestThread #messageForm>label:first-child>span{position:absolute;bottom:100%;left:0;margin-bottom:6px;line-height:20px}
 html body #requestThread #messageForm>label:first-child>textarea{display:block;margin:0!important}
}

/* Documents reuse the integrated form for both reading and editing. */
html body #recordForm[data-record-kind=documents] .request-compact-card{min-width:0}
html body #recordForm[data-record-kind=documents] .document-current-file{display:block;overflow-wrap:anywhere;color:var(--muted);margin-bottom:4px}
html body #detailDialog.client-pilot-detail #detailDocumentEdit{width:auto!important;max-width:none!important;min-width:0!important;white-space:normal!important}
html body #recordForm[data-record-kind=documents] #recordTabs{display:none!important}

html body #recordForm[data-record-kind=documents] #formFields[inert] input[type=file]{display:none!important}

/* Client navigation keeps all permitted sections discoverable, without staff groups. */
.client-nav-heading{display:block;padding:12px 16px 6px;color:inherit;opacity:.8;font-size:.8rem;letter-spacing:.03em}
.client-nav .nav-submenu{margin-left:0;border-left:0;padding-left:0}

/* Decorative form ribbons are replaced by neutral titles and their own action row. */
@media screen{
 html body #content .ui-neutral-head,html body .page-workspace-host .ui-neutral-head,html body dialog .ui-neutral-head{background:transparent!important;background-image:none!important;color:var(--ink,#19354e)!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:10px 14px!important}
 html body #content .ui-neutral-head :is(h1,h2,h3,small),html body .page-workspace-host .ui-neutral-head :is(h1,h2,h3,small),html body dialog .ui-neutral-head :is(h1,h2,h3,small){color:var(--ink,#19354e)!important}
 html body #content .ui-neutral-head p,html body .page-workspace-host .ui-neutral-head p,html body dialog .ui-neutral-head p{color:var(--muted,#617586)!important}
 html body .ui-neutral-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:8px 14px;background:var(--surface,#fff);border-bottom:1px solid var(--line,#d9e4e9)}
 html body .ui-neutral-actions:empty{display:none}
}

/* Ticket exchanges share the business viewport, without a second reserved row. */
@media screen{
 html body #detailDialog #recordForm.business-pilot-form[data-record-kind="requests"] #formFields[hidden],
 html body #detailDialog .request-thread-card[hidden]{display:none!important}
 html body #detailDialog #businessPilotHost.request-exchanges-active{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:0!important;min-height:0!important;max-height:100%!important;overflow:auto!important;overscroll-behavior:contain}
 html body #detailDialog #businessPilotHost.request-exchanges-active>#recordForm.business-pilot-form{flex:0 0 auto!important;height:auto!important;max-height:none!important;min-height:0!important}
 html body #detailDialog #businessPilotHost.request-exchanges-active>.request-thread-card:not([hidden]){display:block!important;flex:0 0 auto!important;min-width:0!important;margin:12px 0 0!important;max-width:100%!important;box-sizing:border-box!important}
 html body #detailDialog #businessPilotHost.request-exchanges-active #requestThread{min-height:0}
 html body #detailDialog #businessPilotHost.request-exchanges-active #requestThread textarea{max-height:min(300px,35dvh);resize:vertical}
}
