/*
 * Loaded last for the scoring surfaces.
 * This file intentionally resolves the remaining mail cascade conflicts.
 */

html body.mail-body .hvx820-read-state.is-unread,
html body.mail-body .hvx820-read-state.is-read {
  display: none !important;
}

html body.mail-body .hvx100-conversation-row.is-unread .hvx100-conversation-open strong::after {
  content: "New" !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 14px !important;
  margin-left: 7px !important;
  padding: 0 4px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 3px !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: .48rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

html body.mail-body .hvx100-conversation-table th {
  background: #f8fafc !important;
  color: #334155 !important;
}

html body.mail-body .hvx100-conversation-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

html body.mail-body .hvx100-conversation-table col.hvx309-conversation-col-sla {
  width: 84px !important;
}

html body.mail-body .hvx100-conversation-table col.hvx309-conversation-col-subject {
  width: auto !important;
}

html body.mail-body .hvx100-conversation-table col.hvx309-conversation-col-workflow {
  width: 186px !important;
}

html body.mail-body .hvx100-conversation-table col.hvx309-conversation-col-touch {
  width: 136px !important;
}

html body.mail-body .hvx100-conversation-table th,
html body.mail-body .hvx100-conversation-table td {
  box-sizing: border-box !important;
}

html body.mail-body .hvx100-conversation-table th {
  overflow: visible !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
}

html body.mail-body .hvx100-conversation-table th:last-child,
html body.mail-body .hvx100-conversation-table td.hvx100-conversation-touch {
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

html body.mail-body .hvx100-conversation-touch strong,
html body.mail-body .hvx100-conversation-touch small {
  overflow: hidden !important;
  max-width: 100% !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.mail-body .hvx100-conversation-row td {
  border-right-color: #e2e8f0 !important;
  border-bottom-color: #d8e0ea !important;
}

html body.mail-body .hvx100-conversation-risk .mail-conversation-triage.hvx18-sla-badge,
html body.mail-body .hvx100-conversation-workflow .hvx100-conversation-next-state {
  border-left-width: 2px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.mail-body .hvx100-conversation-row.is-owner-required .mail-conversation-triage.hvx18-sla-badge strong,
html body.mail-body .hvx100-conversation-row.is-owner-required .hvx100-conversation-workflow .hvx100-conversation-next-state b {
  color: #9a3412 !important;
}

html body.mail-body #mail-compose-modal #compose-send-blocker-banner,
html body.mail-body #mail-compose-modal #compose-send-blocker-banner.is-blocked,
html body.mail-body #mail-compose-modal #compose-send-blocker-banner.is-quiet,
html body.mail-body #mail-compose-modal #compose-send-blocker-banner.is-ready,
html body.mail-body #mail-compose-modal #compose-send-blocker-banner #compose-top-action-rail.mail-compose-top-action-rail {
  display: none !important;
}

html body.mail-body #mail-compose-modal .mail-compose-actions.mail-modal-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 6 !important;
  margin: 0 -18px !important;
  padding: 10px 18px !important;
  border-top: 1px solid #d8e0ea !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 -1px 2px rgba(15, 23, 42, .04) !important;
}

html body.mail-body #mail-compose-modal .mail-compose-actions.mail-modal-actions #compose-send-btn,
html body.mail-body #mail-compose-modal .mail-compose-actions.mail-modal-actions #compose-send-btn:disabled {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 104px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 4px !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}

html body.mail-body #mail-compose-modal .mail-compose-actions.mail-modal-actions #compose-send-btn:disabled {
  border: 1px solid #cbd5e1 !important;
  background: #eef2f7 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
}

html body.mail-body #mail-compose-modal .mail-compose-actions.mail-modal-actions #compose-send-btn:disabled::after,
html body.mail-body #mail-compose-modal .mail-compose-actions.mail-modal-actions #compose-send-btn:disabled::before {
  content: none !important;
  display: none !important;
}

html body.mail-body #mail-compose-modal #compose-send-state-panel.hvx100-compose-send-state {
  margin: 12px 0 0 !important;
  border-left-color: #b45309 !important;
}

html body.mail-body #mail-compose-modal #compose-send-state-title {
  color: #0f172a !important;
}

html body.mail-body #mail-compose-modal #compose-send-state-copy {
  color: #475569 !important;
}

/*
 * Conversation queue readability hardening.
 * Make the list the dominant operator surface and let the inspector support it.
 */
html body.mail-body .hvx100-conversation-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(258px, 292px) !important;
  gap: 12px !important;
}

html body.mail-body .hvx100-conversation-table-shell {
  border-color: #94a3b8 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04) !important;
}

html body.mail-body .hvx100-conversation-table th {
  height: 36px !important;
  padding: 0 12px !important;
  border-bottom: 1px solid #94a3b8 !important;
  border-right: 1px solid #cbd5e1 !important;
  background: #e8eef6 !important;
  color: #0f172a !important;
  font-size: .64rem !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
}

html body.mail-body .hvx100-conversation-table th:last-child {
  border-right: 0 !important;
}

html body.mail-body .hvx100-conversation-row td {
  height: 64px !important;
  padding: 9px 12px !important;
  border-right-color: #cbd5e1 !important;
  border-bottom-color: #cbd5e1 !important;
}

html body.mail-body .hvx100-conversation-row td:last-child {
  border-right: 0 !important;
}

html body.mail-body .hvx100-conversation-row.active td {
  background: #e6f0ff !important;
  border-bottom-color: #93c5fd !important;
}

html body.mail-body .hvx100-conversation-row.active td:first-child {
  box-shadow: inset 5px 0 0 #1d4ed8 !important;
}

html body.mail-body .hvx100-conversation-open strong {
  color: #020617 !important;
  font-size: .95rem !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
}

html body.mail-body .hvx100-conversation-open small,
html body.mail-body .hvx155-conversation-preview,
html body.mail-body .hvx100-conversation-touch small {
  color: #475569 !important;
  font-size: .62rem !important;
  font-weight: 760 !important;
  line-height: 1.12 !important;
}

html body.mail-body .hvx100-conversation-touch strong {
  color: #0f172a !important;
  font-size: .72rem !important;
  font-weight: 930 !important;
}

html body.mail-body .mail-conversation-triage.hvx18-sla-badge strong,
html body.mail-body .hvx100-conversation-next-state b {
  font-size: .74rem !important;
  font-weight: 940 !important;
}

html body.mail-body .mail-conversation-triage.hvx18-sla-badge small,
html body.mail-body .hvx100-conversation-next-state small {
  color: #475569 !important;
  font-size: .54rem !important;
  font-weight: 820 !important;
}

html body.mail-body .hvx100-conversation-risk .mail-conversation-triage.hvx18-sla-badge,
html body.mail-body .hvx100-conversation-workflow .hvx100-conversation-next-state {
  border-color: #cbd5e1 !important;
  border-left-color: #94a3b8 !important;
  background: #fff !important;
}

html body.mail-body .hvx100-conversation-row.is-owner-required .mail-conversation-triage.hvx18-sla-badge,
html body.mail-body .hvx100-conversation-row.is-owner-required .hvx100-conversation-next-state {
  border-left-color: #b45309 !important;
}

html body.mail-body .hvx100-conversation-inspector {
  border-color: #b6c2d2 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

html body.mail-body .hvx100-conversation-inspector-copy {
  border-bottom-color: #cbd5e1 !important;
}

html body.mail-body .hvx100-conversation-inspector-copy strong {
  color: #020617 !important;
  font-size: .9rem !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

html body.mail-body .hvx410-conversation-inspector-list span {
  border-color: #d8e0ea !important;
  background: #fff !important;
}

html body.mail-body .hvx100-conversation-inspector button {
  min-height: 36px !important;
  border-color: #94a3b8 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  font-weight: 900 !important;
}

/*
 * Conversations calm-table correction.
 * Preserve readability gains while removing the heavy spreadsheet feel.
 */
html body.mail-body .mail-triage-strip.hvx100-conversation-toolbar {
  align-items: center !important;
  min-height: 78px !important;
  padding: 14px 14px !important;
  border-color: #d8e0ea !important;
  background: #fff !important;
}

html body.mail-body .mail-triage-strip-title strong {
  color: #0f172a !important;
  font-size: .98rem !important;
  font-weight: 950 !important;
}

html body.mail-body .mail-triage-strip-title small {
  color: #64748b !important;
  font-size: .64rem !important;
  font-weight: 780 !important;
}

html body.mail-body .mail-triage-filter-actions.hvx500-applied-filter-bar {
  display: flex !important;
  align-items: stretch !important;
  min-height: 42px !important;
  overflow: hidden !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 4px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

html body.mail-body .mail-triage-filter-actions .hvx500-applied-filter-summary,
html body.mail-body .mail-triage-filter-actions .hvx500-filter-chip {
  min-height: 40px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.mail-body .mail-triage-filter-actions .hvx500-applied-filter-summary {
  border-left: 0 !important;
}

html body.mail-body .mail-triage-filter-actions .hvx500-filter-chip.is-active {
  background: #fff !important;
  box-shadow: inset 0 -2px 0 #1d4ed8 !important;
}

html body.mail-body .mail-triage-filter-actions .hvx500-filter-chip span,
html body.mail-body .mail-triage-filter-actions .hvx500-applied-filter-summary b {
  color: #475569 !important;
  font-size: .52rem !important;
  font-weight: 900 !important;
}

html body.mail-body .mail-triage-filter-actions .hvx500-filter-chip b {
  color: #0f172a !important;
  font-size: .64rem !important;
  font-weight: 920 !important;
}

html body.mail-body .mail-triage-filter-actions .hvx500-filter-chip small {
  color: #475569 !important;
  font-size: .58rem !important;
  font-weight: 820 !important;
}

html body.mail-body .hvx100-conversation-table-shell {
  border-color: #d8e0ea !important;
  box-shadow: none !important;
}

html body.mail-body .hvx100-conversation-table th {
  height: 34px !important;
  border-right: 0 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: .62rem !important;
}

html body.mail-body .hvx100-conversation-row td {
  height: 62px !important;
  border-right: 0 !important;
  border-bottom: 1px solid #d8e0ea !important;
  background: #fff !important;
}

html body.mail-body .hvx100-conversation-row.active td {
  background: #f8fbff !important;
  border-bottom-color: #bfdbfe !important;
}

html body.mail-body .hvx100-conversation-row.active td:first-child {
  box-shadow: inset 4px 0 0 #2563eb !important;
}

html body.mail-body .hvx100-conversation-risk .mail-conversation-triage.hvx18-sla-badge,
html body.mail-body .hvx100-conversation-workflow .hvx100-conversation-next-state {
  border: 0 !important;
  border-left: 2px solid #cbd5e1 !important;
  background: transparent !important;
}

html body.mail-body .hvx100-conversation-row.is-owner-required .mail-conversation-triage.hvx18-sla-badge,
html body.mail-body .hvx100-conversation-row.is-owner-required .hvx100-conversation-next-state {
  border-left-color: #b45309 !important;
}

html body.mail-body .hvx100-conversation-inspector {
  border-color: #d8e0ea !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.mail-body .hvx410-conversation-inspector-list span {
  border: 0 !important;
  border-top: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body.mail-body .hvx410-conversation-inspector-list span:first-child {
  border-top: 0 !important;
}

html body.mail-body .hvx100-conversation-inspector button {
  border-color: #cbd5e1 !important;
  background: #fff !important;
}
