/* LUPA ZAP: scoped to the Minas Forte conversation workspace. */
html[data-lupa-desk="true"] #app .conversations-list-wrap {
  border-right: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-background, #fff);
}
html[data-lupa-desk="true"] #app .conversations-list-wrap > div:first-child { height: 64px; padding: 12px 16px; }
html[data-lupa-desk="true"] #app .conversations-list-wrap h1 { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
html[data-lupa-desk="true"] #app .conversations-list-wrap > div:first-child button { width: 29px; height: 29px; border-radius: 9px; }
html[data-lupa-desk="true"] #app .lupa-desk-search { padding: 0 12px 12px; }
html[data-lupa-desk="true"] #app .lupa-desk-search button {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border: 1px solid #dce4ed; border-radius: 10px; background: #f6f8fb;
  color: #526174; text-align: left; font-size: 13px; cursor: pointer;
}
html[data-lupa-desk="true"] #app .lupa-desk-search button:hover { border-color: #2781f6; color: #155fcc; }
html[data-lupa-desk="true"] #app .conversations-list-wrap > div:has(> ul) { height: 46px; margin-top: 0; padding: 0 12px; }
html[data-lupa-desk="true"] #app .conversations-list-wrap > div > ul > li { margin-inline: 6px; }
html[data-lupa-desk="true"] #app .conversations-list-wrap > div > ul > li > a { font-size: 13px; gap: 2px; padding-block: 12px; }
html[data-lupa-desk="true"] #app .conversation { padding: 0 12px; min-height: 92px; border-left: 3px solid transparent; }
html[data-lupa-desk="true"] #app .conversation.active { border-left-color: #2781f6; background: #eef5ff; }
html[data-lupa-desk="true"] #app .conversation[data-lupa-unread="true"]:not(.active) { background: #f6faff; }
html[data-lupa-desk="true"] #app .conversation > div:first-child { align-self: center; }
html[data-lupa-desk="true"] #app .conversation > div:first-child > span { margin-top: 0; }
html[data-lupa-desk="true"] #app .conversation .border-line { padding-block: 13px; }
html[data-lupa-desk="true"] #app .conversation--user { font-size: 15px; line-height: 22px; padding-top: 2px; padding-right: 45px; text-transform: none; }
html[data-lupa-desk="true"] #app .conversation[data-lupa-unread="true"] .conversation--user { font-weight: 700; }
html[data-lupa-desk="true"] #app .conversation .border-line > .overflow-hidden { font-size: 13px; line-height: 21px; height: 21px; color: #526174; }
html[data-lupa-desk="true"] #app .conversation .border-line > div:first-child [title] { font-size: 10px; opacity: .8; }
html[data-lupa-desk="true"] #app .conversation .border-line > .absolute { right: 12px; top: 15px; gap: 6px; }
html[data-lupa-desk="true"] #app .conversation .bg-n-teal-9 { background: #1479ed; min-width: 20px; height: 20px; font-size: 11px; }
html[data-lupa-desk="true"] #app .conversation-details-wrap { background: #f7f9fc; container-type: inline-size; }
html[data-lupa-desk="true"] #app .conversation-details-wrap > div:first-child { min-height: 64px; background: #fff; padding-inline: 18px; }
html[data-lupa-desk="true"] #app [data-lupa-contact-trigger] { font-size: 16px; font-weight: 650; }
html[data-lupa-desk="true"] #app .message-bubble-container { margin-bottom: 12px; }
html[data-lupa-desk="true"] #app .message-bubble-container [data-bubble-name="text"] { font-size: 14px; line-height: 1.5; }
/* Direction comes from message_type, never from the wording of the message. */
html[data-lupa-desk="true"] #app .message-bubble-container { display: flex; width: 100%; box-sizing: border-box; }
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="incoming"] { justify-content: flex-start !important; }
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="outgoing"],
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="private"] { justify-content: flex-end !important; }
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="activity"] { justify-content: center !important; }
html[data-lupa-desk="true"] #app .message-bubble-container > .gap-x-2 { max-width: min(80%, 580px); min-width: 0; }
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="incoming"] [data-bubble-name] {
  background: #fff; color: #17212b; border: 1px solid #e2e8ed; border-radius: 12px 12px 12px 3px;
}
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="outgoing"] [data-bubble-name] {
  background: #dcf8c6; color: #173b27; border: 1px solid #c7e8b2; border-radius: 12px 12px 3px 12px;
}
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="private"] [data-bubble-name] { background: #fff4cc; color: #624a00; border: 1px dashed #dab94c; }
html[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-message-status="failed"] [data-bubble-name] { background: #fff0f1; border-color: #efb2bb; color: #92283a; }
html[data-lupa-desk="true"] #app .lupa-message-origin { font: 600 11px/1.35 "Segoe UI",sans-serif; margin-bottom: 6px; opacity: .78; }
html[data-lupa-desk="true"] #app .conversation-details-wrap .lupa-message-origin + .lupa-unavailable-reply { margin-top: 0; }
html[data-lupa-desk="true"] #app .lupa-desk-owner { padding: 8px 10px; border: 1px solid #dce4ed; border-radius: 9px; color: #334155; background: #fff; font-size: 12px; white-space: nowrap; cursor: pointer; }
html[data-lupa-desk="true"] #app .lupa-desk-owner:hover { color: #155fcc; border-color: #2781f6; }
html[data-lupa-desk="true"] #app .lupa-desk-claim { background: #edf5ff; border-color: #bad6fc; color: #155fcc; font-weight: 600; }
html[data-lupa-desk="true"] #app [data-lupa-complete="true"] { background: #eaf7ef; color: #187143; font-weight: 600; }
html[data-lupa-desk="true"] #app .lupa-desk-back { display: none; }
html[data-lupa-desk="true"] #app .actions--container button:first-child { min-height: 36px; }
html[data-lupa-desk="true"] body > a[aria-label="Desenvolvido por LUPA"] { left: 108px !important; bottom: 57px !important; opacity: .65; transform: translateX(-50%) scale(.85) !important; }
@media (min-width: 1100px) {
  html[data-lupa-desk="true"] #app aside { width: 212px !important; min-width: 212px; max-width: 212px; }
  html[data-lupa-desk="true"] #app aside > .cursor-col-resize { display: none; }
  html[data-lupa-desk="true"] #app .conversations-list-wrap:not(.basis-full) { width: 360px; }
}
@media (min-width: 1600px) {
  html[data-lupa-desk="true"] #app .conversations-list-wrap:not(.basis-full) { width: 390px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  html[data-lupa-desk="true"] #app aside { width: 180px !important; min-width: 180px; max-width: 180px; }
  html[data-lupa-desk="true"] #app .conversations-list-wrap:not(.basis-full) { width: 300px; }
  html[data-lupa-desk="true"] #app .header-actions-wrap { gap: 5px; }
  html[data-lupa-desk="true"] #app .lupa-desk-owner { font-size: 11px; padding: 6px; }
}
@media (max-width: 767px) {
  html[data-lupa-desk="true"] #app .conversations-list-wrap:not(.hidden) { width: 100%; }
  html[data-lupa-desk="true"] #app .conversations-list-wrap:has(+ .conversation-details-wrap .message-bubble-container) { display: none; }
  html[data-lupa-desk="true"] #app .conversation-details-wrap:not(:has(.message-bubble-container)) { display: none; }
  html[data-lupa-desk="true"] #app .conversation-details-wrap > div:first-child { min-height: 90px; }
  html[data-lupa-desk="true"] #app .lupa-desk-back { display: inline-flex; padding: 6px; color: #155fcc; font-size: 12px; }
  html[data-lupa-desk="true"] #app .message-bubble-container > .gap-x-2 { max-width: 92%; }
  html[data-lupa-desk="true"] body > a[aria-label="Desenvolvido por LUPA"] { display: none !important; }
}
@container (max-width: 580px) {
  html[data-lupa-desk="true"] #app .conversation-details-wrap > div:first-child { flex-direction: column; align-items: stretch; height: auto; padding-block: 10px; gap: 8px; }
  html[data-lupa-desk="true"] #app .header-actions-wrap { flex-wrap: wrap; width: 100%; justify-content: flex-start; }
}
html.dark[data-lupa-desk="true"] #app .conversations-list-wrap,
html.dark[data-lupa-desk="true"] #app .conversation-details-wrap > div:first-child { background: #151d2a; border-color: #29374a; }
html.dark[data-lupa-desk="true"] #app .conversation-details-wrap { background: #101722; }
html.dark[data-lupa-desk="true"] #app .conversation.active { background: #193252; }
html.dark[data-lupa-desk="true"] #app .conversation[data-lupa-unread="true"]:not(.active) { background: #172537; }
html.dark[data-lupa-desk="true"] #app .conversation .border-line > .overflow-hidden { color: #b0bdd0; }
html.dark[data-lupa-desk="true"] #app .lupa-desk-search button,
html.dark[data-lupa-desk="true"] #app .lupa-desk-owner { background: #1c293b; border-color: #34465e; color: #c2d1e6; }
html.dark[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="incoming"] [data-bubble-name] { background: #243242; border-color: #354557; color: #edf3f9; }
html.dark[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="outgoing"] [data-bubble-name] { background: #174c3c; border-color: #23634e; color: #e7fff1; }
html.dark[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-direction="private"] [data-bubble-name] { background: #4c401b; border-color: #8a7433; color: #fff2bf; }
html.dark[data-lupa-desk="true"] #app .message-bubble-container[data-lupa-message-status="failed"] [data-bubble-name] { background: #522b35; border-color: #874151; color: #ffe2e6; }
