/* Pop-up headers: one look everywhere (2026-10-18, Mark: "the popup windows
   should all have this lighter coral header -- please audit and make all
   consistent"). Reference is the Transactions pop-up (.tc-modal-head):
   coral-200 band, coral-300 rule, black title and subtitle, close button in
   translucent white with a faint coral border. Loaded last so it wins over
   each family's own header rule; Mail's runtime-injected styles are
   matched with an extra class for specificity. */

/* 1. The band */
.lw-modal .lw-modal-head,
.crm-modal-head,
.jd-modal .jd-modal-head,
.bc-modal-head,
.quinn-week-dialog-head,
.quinn-buffer-dialog-head,
#quinn-post-modal .qpm-header,
#nl-preview-modal .nl-preview-head,
.quinn-composer .quinn-gen-head,
.crm-detail .crm-detail-head {
  background: var(--coral-200);
  border-bottom: 1px solid var(--coral-300);
  color: var(--ink);
}

/* 2. Title and subtitle text: always black on the coral band */
.lw-modal .lw-modal-head h3, .lw-modal .lw-modal-head p,
.crm-modal-title, .crm-modal-sub,
.jd-modal .jd-modal-title, .jd-modal .jd-modal-sub,
.bc-modal-head strong, .bc-modal-head span,
.quinn-week-dialog-title, .quinn-week-dialog-sub,
.quinn-buffer-dialog-title, .quinn-buffer-dialog-sub,
#nl-preview-modal .nl-preview-title, #nl-preview-modal .nl-preview-subtitle,
.quinn-composer .quinn-gen-title, .quinn-composer .quinn-gen-sub,
.crm-detail .crm-detail-name, .crm-detail .crm-detail-meta {
  color: var(--ink);
}
#nl-preview-modal .nl-preview-kicker { color: var(--coral-500); }

/* 3. Close buttons and small header chips: same as .tc-modal-close */
.jd-modal .jd-modal-close,
.bc-modal-head button,
.quinn-week-dialog-close,
.quinn-buffer-close,
#quinn-post-modal .qpm-close-btn,
#nl-preview-modal .nl-preview-x,
.quinn-composer .quinn-gen-head .quinn-overlay-close,
.crm-detail .crm-detail-close,
.crm-detail .crm-detail-head .crm-detail-action:not(.crm-detail-primary-action) {
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(216,90,48,.3);
  color: var(--ink);
}
.jd-modal .jd-modal-close:hover,
.bc-modal-head button:hover,
.quinn-week-dialog-close:hover,
.quinn-buffer-close:hover,
#quinn-post-modal .qpm-close-btn:hover,
#nl-preview-modal .nl-preview-x:hover,
.quinn-composer .quinn-gen-head .quinn-overlay-close:hover,
.crm-detail .crm-detail-close:hover,
.crm-detail .crm-detail-head .crm-detail-action:not(.crm-detail-primary-action):hover {
  background: #fff;
  border-color: var(--coral-300);
  color: var(--coral-500);
}
.crm-detail .crm-detail-head .crm-detail-action-divider { background: rgba(17,17,20,.14); }
.crm-detail .crm-detail-head .crm-avatar { background: #fff; color: var(--coral-500); }
.quinn-composer .quinn-gen-icon { background: rgba(255,255,255,.65); border-color: rgba(216,90,48,.3); color: var(--coral-500); }
.quinn-composer .quinn-gen-status { background: rgba(255,255,255,.65); color: var(--ink); }

/* 4. Window close (×) buttons: one shape everywhere (2026-10-23, Mark: "All
   'x' window Close buttons should use rounded corners like this ... make
   everything consistent"). Reference is the post composer's ×: 32px square,
   9px corners, centered glyph, translucent white with a faint coral border.
   Covers every window-close family by name, plus any icon-only ti-x button
   that is labelled "Close…" or calls a Close function, so new windows pick
   it up automatically. Remove/Dismiss/Clear chips are deliberately not
   included. New close buttons can just use class="ascent-x".
   Shape properties use !important because several families set size and
   corners with id-level or inline rules. */
.ascent-x,
.tc-modal-close, .jd-modal-close, .jd-profile-close,
.quinn-overlay-close, .quinn-buffer-close, .quinn-week-dialog-close, .qpm-close-btn,
.nl-preview-x, .crm-detail-close, .crm-post-save-close, .canva-picker-close,
.s-tone-preview-close, .ascent-leave-x, .cd-x, .qm-x, .lb-x, .taylor-close,
button[aria-label^="Close" i]:has(> i.ti-x:only-child),
button[onclick*="Close"]:has(> i.ti-x:only-child) {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 400;
  cursor: pointer;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(216,90,48,.3);
  color: var(--ink, #111114);
  box-shadow: none;
}
:is(.ascent-x, .tc-modal-close, .jd-modal-close, .jd-profile-close,
  .quinn-overlay-close, .quinn-buffer-close, .quinn-week-dialog-close, .qpm-close-btn,
  .nl-preview-x, .crm-detail-close, .crm-post-save-close, .canva-picker-close,
  .s-tone-preview-close, .ascent-leave-x, .cd-x, .qm-x, .lb-x, .taylor-close,
  button[aria-label^="Close" i]:has(> i.ti-x:only-child),
  button[onclick*="Close"]:has(> i.ti-x:only-child)) i.ti-x { font-size: 16px; line-height: 1; }
:is(.ascent-x, .tc-modal-close, .jd-modal-close, .jd-profile-close,
  .quinn-overlay-close, .quinn-buffer-close, .quinn-week-dialog-close, .qpm-close-btn,
  .nl-preview-x, .crm-detail-close, .crm-post-save-close, .canva-picker-close,
  .s-tone-preview-close, .ascent-leave-x, .cd-x, .qm-x, .lb-x, .taylor-close,
  button[aria-label^="Close" i]:has(> i.ti-x:only-child),
  button[onclick*="Close"]:has(> i.ti-x:only-child)):hover {
  background: #fff;
  border-color: var(--coral-300, #F38A6E);
  color: var(--coral-500, #D85A30);
}
:is(.ascent-x, .tc-modal-close, .jd-modal-close, .jd-profile-close,
  .quinn-overlay-close, .quinn-buffer-close, .quinn-week-dialog-close, .qpm-close-btn,
  .nl-preview-x, .crm-detail-close, .crm-post-save-close, .canva-picker-close,
  .s-tone-preview-close, .ascent-leave-x, .cd-x, .qm-x, .lb-x, .taylor-close):focus-visible {
  outline: 3px solid var(--coral-200, #F9B8A6); outline-offset: 2px;
}
