/* Transparent logo, with neutral ink raised for contrast on dark surfaces. */
.incident-title{display:inline;overflow-wrap:anywhere;word-break:normal}
.therefore-color-defs{position:absolute;pointer-events:none}
.therefore-wordmark{display:inline-block;vertical-align:middle;width:112px;height:39px;margin:0 8px 3px 0;background:transparent}
.therefore-wordmark img{display:block;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain;filter:none}
:root[data-theme=dark] .therefore-wordmark img{filter:url(#therefore-light-ink)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .therefore-wordmark img{filter:url(#therefore-light-ink)}}
#message-dialog #message-title .therefore-wordmark img{filter:url(#therefore-light-ink)}
.incident-title-label{vertical-align:middle;overflow-wrap:anywhere}
#message-dialog #message-title:has(.incident-title){display:block;-webkit-line-clamp:unset}
.message-heading>span:has(.incident-title){min-width:0;flex:1}
@media(max-width:600px){.therefore-wordmark{width:96px;height:33px;margin-right:6px}}
@media(forced-colors:active){.therefore-wordmark{forced-color-adjust:none;background:#fff;border-radius:2px}:root .therefore-wordmark img,#message-dialog #message-title .therefore-wordmark img{filter:none!important}}

/* Sender identity: the original mark, with separate original artwork for dark UI. */
.faculty-title-mark{display:inline-block;position:relative;width:24px;height:23px;margin:0 6px 2px 0;vertical-align:middle;flex:0 0 24px;user-select:none}
.faculty-title-mark img{display:block;width:100%;height:100%;max-width:none;object-fit:contain}
.faculty-title-mark .faculty-title-light{display:none}
:root[data-theme=dark] .faculty-title-mark .faculty-title-color{display:none}
:root[data-theme=dark] .faculty-title-mark .faculty-title-light{display:block}
@media(prefers-color-scheme:dark){
 :root:not([data-theme=light]) .faculty-title-mark .faculty-title-color{display:none}
 :root:not([data-theme=light]) .faculty-title-mark .faculty-title-light{display:block}
}
/* The message header is blue in both themes. */
#message-dialog #message-title .faculty-title-mark .faculty-title-color{display:none}
#message-dialog #message-title .faculty-title-mark .faculty-title-light{display:block}
.message-heading>.faculty-title-mark{margin:0;align-self:center}
@media(forced-colors:active){
 .faculty-title-mark{background:#fff;border-radius:2px;forced-color-adjust:none}
 :root .faculty-title-mark .faculty-title-color,#message-dialog #message-title .faculty-title-mark .faculty-title-color{display:block!important}
 :root .faculty-title-mark .faculty-title-light,#message-dialog #message-title .faculty-title-mark .faculty-title-light{display:none!important}
}

/* Direction, full name and its verified small mark stay together. */
.conversation-row .message-heading{display:flex;flex-wrap:nowrap;align-items:flex-start;width:100%;min-width:0}
.conversation-row .message-heading>.message-sender-label{display:block;flex:0 1 auto;min-width:0;overflow-wrap:anywhere;line-height:1.6}
.message-sender-label>.faculty-message-mark{display:inline-flex;vertical-align:middle;position:relative;top:-1px;margin:0 0 0 7px;width:21px;height:20px}
.message-sender-label>.faculty-message-mark img{width:21px;height:20px}
.conversation-row .message-heading>.tracking-marker{margin-left:auto}
.conversation-row .message-open-actions>.attachment-icons{flex:0 1 auto;min-width:44px;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
@container message-row (max-width:340px){.conversation-row .message-open-actions:has(.attachment-icon:nth-child(3)){flex-wrap:wrap}.conversation-row .message-open-actions>.attachment-icons:has(.attachment-icon:nth-child(3)){flex-basis:100%;justify-content:flex-end}}

/* Original mail headers remain secondary and wrap at narrow widths. */
.case-original-subjects{display:block;flex-basis:100%;min-width:0;margin-top:2px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.35;letter-spacing:normal;text-transform:none;white-space:normal;overflow-wrap:anywhere}
.case-original-subject{display:block;text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:2px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
#case-results.compact-case-list .case-original-subjects{display:block;margin-top:2px;font-size:12px}
.compact-row-copy .case-original-subjects{max-width:100%}

/* Preserve a quiet subtitle directly under the generated title, including
   compact rows whose former fixed height could clip original subjects. */
#case-results.compact-case-list .case-row:has(.case-original-subjects){height:auto;min-height:76px;max-height:none}
#case-results.compact-case-list .case-row-wrap:has(.case-original-subjects){height:auto;min-height:77px}
#case-results.compact-case-list .case-row .compact-row-copy{gap:2px}
#case-results.compact-case-list .compact-row-copy .case-original-subjects{margin-top:0}
.case-row h3:has(.case-original-subjects){display:block;overflow:visible;-webkit-line-clamp:unset}
