/* HCE-UI-TWEAKS-START */
:root { --hce-ui-version: "ec7735532c"; }
/* John, 2026-09-20: "HERE AI ASSIST button keep flickering stop it from doing that so my
   attention stays on message, stop its flicker so its like a normal button".
   Two animations were running on it: a 5-second moving gradient on the button itself, and a
   1-second radar ping on the dot in its corner. The button keeps its colour and its hover; it
   simply stops moving. Measured in the live page before and after. */
.cta-btn, .cta-btn-light, .cta-btn-dark { animation: none !important; }
.radar-ping-animation { display: none !important; }

/* John, 2026-09-20: the exact address or number the customer writes from, under their name,
   with the country, and a copy ICON beside each - "icon instead of writing copy". */
/* IT MUST NOT BE CUT OFF ON A NARROW WINDOW. The column it sits in hides its overflow, so a
   part wider than the column simply vanished at the right edge - measured at 840px: the
   address ran to 875 and the column ended at 828. Now every piece may wrap onto its own line
   and the address shortens with an ellipsis rather than disappearing. */
.hce-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1px; line-height: 1.2; max-width: 100%; }
.hce-identity-part { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 0; max-width: 100%; }
.hce-identity-value { font-size: 12px; color: var(--n-slate-11, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hce-identity-extra { font-size: 12px; color: var(--n-slate-10, #94a3b8); }
.hce-identity-dot { font-size: 12px; color: var(--n-slate-8, #cbd5e1); }
.hce-copy { display: inline-flex; align-items: center; justify-content: center; padding: 2px; margin: 0;
  border: 0; background: none; color: var(--n-slate-10, #94a3b8); cursor: pointer; border-radius: 4px; flex: 0 0 auto; }
.hce-copy:hover { color: var(--n-slate-12, #0f172a); background: var(--n-alpha-2, rgba(0,0,0,.05)); }
.hce-copied { color: #15803d; }

/* the Claude Notifications entry, sitting at the top level of the sidebar */
.hce-notif-dot { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto;
  background: linear-gradient(135deg, #a78bfa, #6366f1); display: inline-block; }
.hce-reports-dot { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.hce-cust-dot { background: linear-gradient(135deg, #fbbf24, #f97316); }
.hce-internal-dot { background: linear-gradient(135deg, #94a3b8, #475569); }
.hce-folder-dot { background: linear-gradient(135deg, #f472b6, #a855f7); }
.hce-impressions-dot { background: linear-gradient(135deg, #fda4af, #e11d48); }
.hce-gone { display: none !important; }   /* CRM 44 (11/03): Chatwoot's own Campaigns item leaves the sidebar */
/* MORE (John 11/15): seven menus sit under one closed group above Settings - drawn there by flex order, never moved */
.hce-more-item { order: 90; margin-left: 10px; }
aside ul:not(.hce-more-open) > .hce-more-item { display: none !important; }
#hce-more-link { order: 89; }
.hce-more-after { order: 95; }
.hce-more-chev { flex: 0 0 auto; opacity: .7; transition: transform .15s; }
#hce-more-link [aria-expanded="true"] .hce-more-chev { transform: rotate(180deg); }

/* John, 2026-09-22 (Hub (7).pdf): "I need check boxes next to all messages in all conversations,
   Also a master check box to select all messages with single check mark". */
.hce-pick { width: 15px; height: 15px; margin: 0 4px 0 0; accent-color: #6366f1; cursor: pointer;
  flex: 0 0 auto; vertical-align: middle; }
#hce-pickbar { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 12px;
  padding: 6px 14px; background: var(--n-solid-1, #fff); border-bottom: 1px solid var(--n-weak, #e5e7eb);
  font-size: 13px; color: var(--n-slate-11, #475569); flex-wrap: wrap; }
#hce-pickbar .hce-allwrap { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
#hce-pickbar .hce-all { width: 16px; height: 16px; }
#hce-pickbar .hce-pick-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; opacity: 0;
  pointer-events: none; transition: opacity .12s; }
#hce-pickbar.hce-on .hce-pick-acts { opacity: 1; pointer-events: auto; }
#hce-pickbar.hce-on { background: var(--n-alpha-1, #f8fafc); }
.hce-pick-act { font: inherit; font-size: 12.5px; line-height: 1; border: 1px solid var(--n-weak, #e5e7eb);
  background: var(--n-solid-1, #fff); color: var(--n-slate-12, #0f172a); border-radius: 7px;
  padding: 6px 10px; cursor: pointer; flex: 0 0 auto; }
.hce-pick-act:hover { background: var(--n-alpha-2, rgba(0,0,0,.05)); }
.hce-pick-act.hce-done { border-color: #15803d; color: #15803d; }
.hce-pick-act.hce-warn { border-color: #b45309; color: #b45309; }
.hce-pick-act.hce-busy { opacity: .55; pointer-events: none; }
.hce-notif-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hce-side.hce-on > a { background: var(--n-alpha-2, rgba(0,0,0,.06)); font-weight: 600; }
.hce-side-n { margin-left: auto; font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; padding-left: 6px; }
.hce-side-n:empty { display: none; }

/* John, 2026-09-21: "When we hover on an icon it takes very long to show the text what that
   icon does fix it to show immediately so we know what icon click would do".
   The browser draws a `title` about a second after the pointer stops and no page can hurry it,
   so the title is moved out of the way and this is drawn instead, 60ms after the pointer lands. */
.hce-tip { position: fixed; z-index: 2147483000; pointer-events: none; max-width: 320px;
  background: #0f172a; color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px;
  border-radius: 7px; box-shadow: 0 6px 20px rgba(15,23,42,.28); }
.hce-tip[hidden] { display: none; }

/* John, 2026-09-21: "Give icons for forward backward arrows on top to check emails quickly by
   clicking on those easily" and "give phone icon also for messages both voice or textmagic".
   They sit in the conversation header, to the left of Resolve, where his eye already is. */
.hce-convnav { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; flex: 0 0 auto; }
.hce-nav { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--n-slate-11, #64748b); cursor: pointer; }
.hce-nav:hover { background: var(--n-alpha-2, rgba(15,23,42,.08)); color: var(--n-slate-12, #0f172a); }
.hce-nav[disabled] { opacity: .3; cursor: default; }
.hce-nav.hce-warn { color: #b45309; }
.hce-nav.hce-done { color: #15803d; }
.hce-nav.hce-busy { opacity: .45; pointer-events: none; }

/* John, 2026-09-21 (HUb 6.pdf): "it should show 2 in big in middle column on its message so we
   know it grouped 2 messages or 10 messages etc." */
.hce-count { position: absolute; right: 12px; bottom: 9px; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: var(--n-slate-12, #0f172a); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  font-variant-numeric: tabular-nums; pointer-events: auto; }

/* John, 2026-09-21 (HUb 6.pdf): "reduce space between lines only for claude generated emails ...
   right now has too much wasted space in between lines".
   The renewal mailer writes a table with cellpadding="6" - six pixels above and below every one
   of eighteen rows, which is most of the scrolling. The section headings (the only cells that
   span both columns) keep their air, so the groups still read as groups. */
.hce-tight .letter-render { line-height: 1.3 !important; }
.hce-tight .letter-render p { margin: 4px 0 !important; }
.hce-tight .letter-render td { padding-top: 1px !important; padding-bottom: 1px !important; }
.hce-tight .letter-render td[colspan] { padding-top: 9px !important; }
.hce-tight [data-bubble-name="email"] section { padding-top: 7px !important; padding-bottom: 7px !important; }
.hce-tight [data-message-id].message-bubble-container { margin-bottom: 2px; }

/* John, 2026-09-21: "How to reply to these?" - the banner now says what is true and carries the
   button that answers the thread where it really lives. */
.hce-readonly { font: inherit; font-size: 11px; font-weight: 600; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff; padding: 3px 11px; cursor: pointer; flex: 0 0 auto; }
.hce-readonly:hover { background: rgba(255,255,255,.34); }

/* John, 2026-09-21: "Give full view already instead of we have to make an extra click to Expand
   Email until its a really long email". Once Chatwoot's own Expand is pressed the body is put
   in an always-scrolling box; it is exactly as tall as the letter, so there is nothing to
   scroll and the bar is only in the way. */
[data-bubble-name="email"] .overflow-y-scroll { overflow: visible !important; }

/* John, 2026-09-20: "Claude Notifications opens another tab make it appear in chatwoot only
   why we have to jump like monkeys again". It covers the conversation area of THIS window. */
#hce-notif-pane { position: fixed; z-index: 40; background: #fff; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08); }
#hce-notif-pane[hidden] { display: none; }
.hce-notif-bar { display: flex; justify-content: flex-end; padding: 6px 10px 0; }
.hce-notif-close { font: inherit; font-size: 12px; border: 1px solid #e2e8f0; background: #f8fafc;
  color: #475569; padding: 3px 10px; border-radius: 7px; cursor: pointer; }
.hce-notif-close:hover { background: #eef2f7; color: #0f172a; }
.hce-notif-frame { flex: 1; width: 100%; border: 0; }

/* John, 2026-09-20: "On top give links to see only Google Voice Messages, Or Textmagic or
   Gmails so I can click and sort easily. You can create a new row below" */
.hce-chan-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
  padding: 6px 12px; border-bottom: 1px solid var(--n-weak, #e2e8f0); }
.hce-chan { font-size: 12px; line-height: 1.6; color: var(--n-slate-11, #64748b); text-decoration: none;
  padding: 2px 9px; border-radius: 999px; background: var(--n-alpha-1, rgba(15,23,42,.04)); white-space: nowrap; }
.hce-chan:hover { background: var(--n-alpha-2, rgba(15,23,42,.08)); color: var(--n-slate-12, #0f172a); }
.hce-chan[aria-current="true"] { background: var(--n-slate-12, #0f172a); color: #fff; font-weight: 600; }
.hce-chan-n { margin-left: 5px; opacity: .75; font-variant-numeric: tabular-nums; }
.hce-chan-n:empty { display: none; }

/* John, 2026-09-20: "give check marks to bulk archive these messages" */
.hce-arch-btn { font: inherit; font-size: 12px; margin-left: auto; border: 1px solid var(--n-weak, #e2e8f0);
  background: var(--n-solid-1, #fff); color: var(--n-slate-12, #0f172a); padding: 2px 10px; border-radius: 999px; cursor: pointer; }
.hce-arch-btn:hover { background: var(--n-alpha-2, rgba(15,23,42,.06)); }
.hce-arch { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.35); display: flex;
  align-items: center; justify-content: center; padding: 24px; }
.hce-arch[hidden] { display: none; }
.hce-arch-box { background: #fff; color: #0f172a; width: min(680px, 100%); max-height: 84vh; display: flex;
  flex-direction: column; border-radius: 14px; box-shadow: 0 20px 60px rgba(15,23,42,.3); overflow: hidden; }
.hce-arch-head { padding: 16px 18px 10px; border-bottom: 1px solid #e2e8f0; position: relative; }
.hce-arch-head strong { font-size: 15px; display: block; }
.hce-arch-sub { display: block; font-size: 12px; color: #64748b; margin-top: 3px; padding-right: 26px; }
.hce-arch-x { position: absolute; top: 12px; right: 12px; border: 0; background: none; font-size: 20px;
  line-height: 1; color: #94a3b8; cursor: pointer; }
.hce-arch-tools { display: flex; align-items: center; gap: 12px; padding: 9px 18px; border-bottom: 1px solid #e2e8f0;
  font-size: 13px; color: #475569; }
.hce-arch-n { margin-left: auto; color: #64748b; font-size: 12px; }
.hce-arch-list { overflow-y: auto; flex: 1; }
.hce-arch-row { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid #f1f5f9;
  cursor: pointer; font-size: 13px; }
.hce-arch-row:hover { background: #f8fafc; }
.hce-arch-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hce-arch-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.hce-arch-sub2 { font-size: 11px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hce-arch-when { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.hce-arch-empty { padding: 34px 0; text-align: center; color: #64748b; font-size: 13px; }
.hce-arch-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }
.hce-arch-say { font-size: 12px; color: #475569; margin-right: auto; }
.hce-arch-go { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 9px;
  background: #0f172a; color: #fff; padding: 7px 16px; cursor: pointer; }
.hce-arch-go[disabled] { opacity: .45; cursor: default; }
.hce-arch-go[hidden] { display: none; }
/* John, 2026-09-21: "How to Archive or Resolve in bulk ?" - so Resolve stands beside Archive */
.hce-arch-second { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid #cbd5e1;
  border-radius: 9px; background: #fff; color: #0f172a; padding: 6px 15px; cursor: pointer; }
.hce-arch-second[disabled] { opacity: .45; cursor: default; }

/* John, 2026-09-20: small buttons under every message - copy, highlight the whole thing,
   highlight what is selected, clear this message's highlights, add an internal note.
   "Highlight should be in fluorescent yellow like 3m highlight pen does it."
   Hub (4).pdf, same day: "These buttons should sit right below each message not on side and
   should be visible always. Also make these buttons slightly bigger by around 1.5 times bigger
   than now so its easy for me to see as my eye sight is not that great".
   THEY SAT ON THE SIDE because Chatwoot's message row is a flex line and our bar became the
   next item ON that line. Letting the row wrap, and giving the bar the whole width, puts it
   underneath - on the same side as the bubble, because it copies the row's own alignment. */
[data-message-id].message-bubble-container { flex-wrap: wrap; }
.hce-tools { display: flex; gap: 4px; flex: 0 0 100%; width: 100%; margin-top: 5px;
  padding: 0 40px; justify-content: inherit; opacity: 1; }
/* flex: 0 0 auto - a flex item SHRINKS by default, and on a narrow window these quietly went
   from 33px to 31px, which is the opposite of what "1.5 times bigger so it is easy for me to
   see" asked for. Measured at 840px wide. */
.hce-tool { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px;
  flex: 0 0 auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8a94a6; cursor: pointer; }
.hce-tool:hover { background: rgba(15, 23, 42, .09); color: #0f172a; }
.hce-tool.hce-done { color: #15803d; }
.hce-tool.hce-warn { color: #b45309; }
.hce-tool.hce-busy { opacity: .5; pointer-events: none; }
/* 3M fluorescent yellow */
mark.hce-mark { background: #fdff32; color: inherit; padding: 0 1px; border-radius: 2px; }
[data-message-id].hce-hl-whole > :not(.hce-tools) { background: #fdff32 !important; border-radius: 6px; }
[data-message-id].hce-hl-whole { border-radius: 6px; }

/* John, 2026-09-20: "Do you see the Messages and Resolve overlapping when we resize the window".
   Chatwoot gives that header a FIXED height (h-24 xl:h-12). Our identity line under the name
   makes the left side taller than that, so it spilled over the tab strip below it. Only the
   header we actually added a line to is freed to be as tall as it needs.
   `height: auto` ALONE DOES NOTHING HERE: the header is a flex item with flex-1, so its height
   comes from flex-basis 0, not from the height property. Measured at 1047px wide, which is the
   width John actually works at: without this, Resolve sat at 116-148 and the tab strip at
   97-130 - straight through each other. With it: header 0-157, Resolve inside it, tabs at 158. */
.hce-head-open { flex: 0 0 auto !important; height: auto !important; min-height: 3rem; }
/* HCE-UI-TWEAKS-END */
