/* Give the title an actual flex track; never subtract action space inside another percentage width. */
.content:has(#detail-section:not([hidden])) .page-heading.record-heading{width:auto;min-width:0;max-width:100%;overflow:visible;gap:16px;align-items:flex-start;flex-wrap:wrap}
.content:has(#detail-section:not([hidden])) .page-heading.record-heading>div:first-child{flex:1 1 300px;min-width:0;width:auto;max-width:100%;overflow:visible}
.content:has(#detail-section:not([hidden])) .page-heading.record-heading #page-title{display:flex;align-items:center;gap:10px;width:auto;min-width:0;max-width:100%;max-height:none;font-family:Montserrat,sans-serif;font-size:clamp(22px,1.8vw,28px);line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.page-heading.record-heading #page-title:has([data-record-title]){display:flex;align-items:center;gap:10px}
.page-heading.record-heading [data-record-title]{flex:1 1 auto;min-width:0;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.2;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.page-heading.record-heading .contact-note-star{flex:none;align-self:flex-start;min-width:44px;min-height:44px}
.page-heading.record-heading .page-actions{flex:0 1 auto;min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start}
.page-heading.record-heading .page-actions>button:not([hidden]){min-height:44px;max-width:100%;white-space:normal}
.page-heading.record-heading #page-record-name{max-width:100%;color:var(--appearance-muted,var(--muted));font-size:12px}
.page-heading.record-heading #page-record-name summary{min-height:44px;align-content:center;cursor:pointer}
.page-heading.record-heading #page-record-name p{color:inherit;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;margin:4px 0 8px}
@media(max-width:680px){.content:has(#detail-section:not([hidden])) .page-heading.record-heading{gap:12px}.content:has(#detail-section:not([hidden])) .page-heading.record-heading>div:first-child{flex-basis:100%}.page-heading.record-heading .page-actions{width:100%}.page-heading.record-heading .page-actions>button:not([hidden]){display:inline-flex;align-items:center;justify-content:center}}
@media(prefers-reduced-motion:reduce){.page-heading.record-heading,.page-heading.record-heading *{animation:none!important;transition:none!important}}
