/* Email evidence lives in the Messages tab; the map summary stays compact. */
.hp-almaro-card .hp-deal-tabs { overflow-x:auto; }
.hp-almaro-card .hp-deal-tabs [role="tab"] { flex:1 0 auto; }
.hp-mail-conversation { color:#26364b; padding:4px 0 12px; }
.hp-mail-heading h3 { margin:0 0 5px; font-size:18px; color:#152d50; }
.hp-mail-heading p,.hp-mail-guidance { margin:6px 0 12px; font-size:12px; line-height:1.5; }
.hp-mail-sync { display:flex; flex-wrap:wrap; align-items:center; gap:7px 10px; margin:12px 0; padding:10px; border:1px solid #dce5f0; border-radius:8px; background:#f6f9fd; font-size:11px; line-height:1.5; }
.hp-mail-sync > span:first-child { flex:1 1 180px; }
.hp-mail-sync [data-mail-feedback] { flex-basis:100%; }
.hp-mail-sync [data-mail-feedback]:empty { display:none; }
.hp-mail-sync .hp-button { min-height:34px; border-radius:6px; padding:5px 10px; background:white; color:#175eb1; }
.hp-mail-message { margin:10px 0; border:1px solid #dce5f0; border-radius:8px; background:white; overflow:hidden; }
.hp-mail-message summary { cursor:pointer; display:grid; grid-template-columns:auto 1fr; gap:5px 10px; padding:12px; color:#203a5a; font-size:12px; }
.hp-mail-message summary > span { color:#175eb1; font-size:10px; font-weight:700; text-transform:uppercase; }
.hp-mail-message summary strong { overflow-wrap:anywhere; }
.hp-mail-message summary time { grid-column:2; color:#607086; font-size:10px; }
.hp-mail-message dl { margin:0 12px 12px; font-size:11px; }
.hp-mail-message dl > div { display:flex; gap:8px; margin:4px 0; }
.hp-mail-message dt { flex:0 0 32px; color:#65748a; }
.hp-mail-message dd { margin:0; overflow-wrap:anywhere; }
.hp-mail-body { padding:12px; border-top:1px solid #edf1f6; white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.65 system-ui,sans-serif; color:#25354b; }
.hp-mail-message > .hp-muted { margin:10px 12px; }
.hp-mail-conversation .hp-outreach-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; }
.hp-mail-conversation .hp-outreach-controls .hp-muted { font-size:11px; }
.hp-mail-message summary:focus-visible,.hp-mail-sync button:focus-visible { outline:2px solid #1769cb; outline-offset:2px; }
@media (max-width:768px) { .hp-mail-sync .hp-button { min-height:44px; } }

.hp-mail-heading h3 { font-family:Inter,system-ui,sans-serif; font-weight:600; line-height:1.35; padding:0; border:0; letter-spacing:normal; }

/* Read, decide, reply: one quiet sequence above the source conversation. */
.hp-mail-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 16px; }
.hp-mail-heading h3 { margin:0; font-size:17px; }
.hp-mail-heading p { margin:0; white-space:nowrap; color:#708098; font-size:10px; }
.hp-reply-guide { display:grid; gap:16px; }
.hp-reply-brief h4,.hp-mail-history-label { margin:0 0 8px; padding:0; border:0; font:600 11px/1.4 "IBM Plex Sans",system-ui,sans-serif; color:#66788e; }
.hp-reply-brief ul { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.hp-reply-brief li { position:relative; padding-left:14px; font:400 13px/1.55 "IBM Plex Sans",system-ui,sans-serif; color:#273e58; }
.hp-reply-brief li::before { content:""; position:absolute; left:0; top:.63em; width:4px; height:4px; border-radius:50%; background:#4170b4; }
.hp-reply-next { padding:14px; border:1px solid #dbe7f7; border-radius:6px; background:#f5f8ff; }
.hp-reply-kicker { color:#547098; font-size:10px; font-weight:500; }
.hp-reply-next h4 { margin:4px 0 6px; border:0; padding:0; color:#213f6b; font:600 15px/1.35 "IBM Plex Sans",system-ui,sans-serif; }
.hp-reply-next>p { margin:0; color:#546c8a; font-size:12px; line-height:1.55; }
.hp-reply-draft { margin-top:12px; }
.hp-reply-draft>summary { display:flex; align-items:center; justify-content:space-between; gap:20px; width:fit-content; min-height:36px; box-sizing:border-box; padding:8px 12px; border:1px solid #2455a6; border-radius:5px; background:#2455a6; color:white; cursor:pointer; list-style:none; font:500 12px/1.4 "IBM Plex Sans",system-ui,sans-serif; }
.hp-reply-draft>summary::-webkit-details-marker { display:none; }
.hp-reply-draft>summary:hover { background:#1c4589; }
.hp-reply-draft[open]>summary { color:#335784; border-color:transparent; background:transparent; padding:0; }
.hp-reply-draft[open]>summary span { transform:rotate(90deg); }
.hp-reply-editor { margin-top:6px; }
.hp-reply-editor label { display:block; color:#59708e; font-size:11px; }
.hp-reply-editor label>textarea { display:block; width:100%; min-height:228px; resize:vertical; box-sizing:border-box; margin-top:6px; padding:12px; border:1px solid #d4dfed; border-radius:5px; background:#fff; color:#253c58; font:400 13px/1.6 "IBM Plex Sans",system-ui,sans-serif; }
.hp-reply-draft-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:10px; }
.hp-reply-local-note { color:#6e8098; font-size:10px; }
.hp-reply-feedback:empty { display:none; }
.hp-reply-feedback { margin:8px 0 0; color:#42638d; font-size:11px; }
.hp-mail-history-label { margin:18px 0 8px; }
.hp-mail-message { margin:0 0 6px; border-radius:5px; }
.hp-mail-message summary { padding:10px; font-size:11px; }
.hp-mail-message summary>span { font-size:9px; }
.hp-mail-message summary time { font-size:9px; }
.hp-mail-original { border-top:1px solid #edf1f6; }
.hp-mail-original>summary { display:block; color:#6a7a91; font-size:10px; }
.hp-mail-sync { padding:8px 0 0; margin:14px 0 0; border:0; border-top:1px solid #edf1f6; border-radius:0; background:none; color:#748197; font-size:10px; gap:6px; }
.hp-mail-sync .hp-button { padding:2px 4px; border:0; min-height:30px; font-size:10px; background:transparent; }
.hp-mail-conversation .hp-outreach-controls { margin-top:10px; }
.hp-mail-conversation .hp-outreach-controls .hp-button { padding:4px 0; min-height:32px; border:0; background:transparent; color:#315f9c; font-size:11px; }
.hp-reply-guide :is(summary,textarea,button):focus-visible { outline:2px solid #2455a6; outline-offset:2px; }
body.is-almaro-collection .hp-deal-card[data-deal-section="conversation"] .hp-deal-footer-actions [data-mail-primary],
body.is-almaro-collection .hp-deal-card[data-deal-section="conversation"] [data-mail-state] { display:none; }
body.is-almaro-collection .hp-deal-card[data-deal-section="conversation"] .hp-card-foot { padding-top:5px; padding-bottom:5px; }
@media(max-width:480px) {
  .hp-mail-heading { display:block; margin-bottom:12px; }
  .hp-mail-heading p { margin-top:4px; }
  .hp-reply-next { padding:12px; }
  .hp-reply-draft>summary { min-height:40px; }
  .hp-reply-editor label>textarea { font-size:16px; min-height:260px; }
}

.hp-reply-languages { display:flex; gap:3px; flex-wrap:wrap; width:fit-content; margin:0 0 10px; padding:3px; border:1px solid #dce5f0; border-radius:5px; background:#eef3fa; }
.hp-reply-languages button { min-height:32px; padding:5px 12px; border:0; border-radius:3px; background:transparent; color:#56708f; font:500 12px/1.4 "IBM Plex Sans",system-ui,sans-serif; cursor:pointer; }
.hp-reply-languages button[aria-pressed="true"] { background:#fff; color:#2455a6; box-shadow:0 1px 3px #193c6414; }
.hp-reply-languages button:disabled { cursor:default; opacity:.65; }
.hp-reply-languages button[hidden] { display:none; }

.hp-reply-conflict { margin-top:10px; padding:10px; border:1px solid #c9d9ee; border-radius:5px; background:white; color:#36577e; font-size:12px; }
.hp-reply-conflict[hidden] { display:none; }
.hp-reply-conflict pre { max-height:220px; overflow:auto; white-space:pre-wrap; font:inherit; }
.hp-reply-conflict button { margin:8px 6px 0 0; }
