/* Focused visual system for the omnichannel workspace. */
:root {
  --inbox-blue: #1e40af;
  --inbox-cyan: #0ea5e9;
  --inbox-teal: #14b8a6;
  --inbox-soft: #eff6ff;
  --inbox-border: #dbe5f2;
  --inbox-chat-bg: #f5f8fc;
}

.inbox-page { max-width: 1560px; }
.inbox-page > .page-heading { align-items: center; margin-bottom: 21px; }
.inbox-page > .page-heading h1 { color: #0f172a; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.055em; }
.inbox-page > .page-heading p { max-width: 68ch; margin-top: 9px; color: #52647d; font-size: 14px; line-height: 1.55; }
.inbox-page > .page-heading .eyebrow { color: var(--inbox-blue); font-size: 10px; letter-spacing: .12em; }
.inbox-page > .page-heading .button { min-height: 46px; border-radius: 11px; font-size: 12px; }
.inbox-page .button-primary { background: var(--inbox-blue); }
.inbox-page .button-primary:hover { background: #1d4ed8; }

.inbox-demo-note {
  min-height: 48px;
  gap: 11px;
  margin: 0 0 14px;
  padding: 10px 15px;
  border-color: #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(100deg, #eff6ff, #f0f9ff 70%, #f0fdfa);
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
.inbox-demo-note strong { color: #1e3a8a; font-size: 12px; white-space: nowrap; }
.inbox-demo-note button { color: var(--inbox-blue); font-size: 12px; }
.demo-pulse { flex: 0 0 9px; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.14); }

.inbox-layout {
  height: min(760px, calc(100dvh - 260px));
  min-height: min(570px, calc(100dvh - 225px));
  max-height: none;
  grid-template-columns: minmax(240px,.82fr) minmax(400px,1.55fr) minmax(270px,.86fr);
  border: 1px solid var(--inbox-border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(15, 36, 85, .075);
}
.inbox-list-panel,.inbox-chat-panel,.inbox-detail-panel { min-height: 0; background: var(--surface); }
.inbox-list-panel { border-color: var(--inbox-border); }
.inbox-list-head { padding: 18px 17px 13px; }
.inbox-list-head div { align-items: center; gap: 9px; }
.inbox-list-head strong { color: var(--nexo-text-primary); font-size: 15px; letter-spacing: -.02em; }
.inbox-list-head span { padding: 4px 8px; border-radius: 999px; background: var(--inbox-soft); color: var(--inbox-blue); font-size: 10px; font-weight: 700; }
.inbox-search { height: 43px; margin: 0 13px 12px; padding-inline: 11px; border-color: var(--inbox-border); border-radius: 10px; background: var(--surface); }
.inbox-search:focus-within { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.inbox-search input { font-size: 13px; }
.inbox-filters { gap: 4px; padding: 0 12px 11px; border-color: var(--inbox-border); }
.inbox-filters button { min-height: 36px; padding: 7px 10px; border-radius: 8px; color: var(--nexo-text-secondary); font-size: 11px; white-space: nowrap; }
.inbox-filters button.selected { background: var(--inbox-blue); color: #fff; }
.inbox-filters b { font-size: 10px; }
.conversation-list { scrollbar-color: #cbd5e1 transparent; scrollbar-width: thin; }
.conversation-row {
  min-height: 100px;
  gap: 11px;
  padding: 14px 13px;
  border-color: color-mix(in srgb, var(--inbox-border) 70%, transparent);
  background: var(--surface);
  color: var(--nexo-text-primary);
}
.conversation-row:hover { background: color-mix(in srgb, var(--inbox-soft) 62%, var(--surface)); }
.conversation-row.active { background: color-mix(in srgb, var(--inbox-soft) 82%, var(--surface)); box-shadow: inset 3px 0 var(--inbox-blue); }
.conversation-avatar { width: 41px; height: 41px; background: #dbeafe; color: #1e40af; font-size: 14px; }
.channel-mini { width: 18px; height: 18px; border-color: var(--surface); font-size: 9px; }
.conversation-copy { gap: 5px; }
.conversation-top { gap: 5px; }
.conversation-top strong { color: var(--nexo-text-primary); font-size: 13px; }
.conversation-top time { color: var(--nexo-text-muted); font-size: 10px; }
.conversation-subject { color: var(--nexo-text-secondary); font-size: 12px; font-weight: 650; }
.conversation-last { color: var(--nexo-text-muted); font-size: 11px; line-height: 1.4; }
.channel-chip { width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: 10px; }
.unread-dot { min-width: 20px; height: 20px; display: grid; place-items: center; align-self: center; border-radius: 999px; background: var(--inbox-blue); color: #fff; font-size: 10px; }

.inbox-chat-panel { border-color: var(--inbox-border); }
.chat-contact-head { min-height: 76px; gap: 12px; padding: 13px 17px; border-color: var(--inbox-border); }
.chat-contact-avatar { width: 43px; height: 43px; background: #dbeafe; color: var(--inbox-blue); font-size: 15px; }
.chat-contact-info { gap: 5px; }
.chat-contact-info strong { color: var(--nexo-text-primary); font-size: 15px; }
.chat-contact-info>span { color: var(--nexo-text-muted); font-size: 11px; line-height: 1.4; }
.channel-live-dot { width: 8px; height: 8px; background: #94a3b8; }
.channel-live-dot.whatsapp,.channel-live-dot.tiendanube { background: var(--inbox-teal); }
.chat-order-pill { padding: 7px 10px; border-color: var(--inbox-border); border-radius: 8px; background: var(--inbox-soft); color: #1e3a8a; font-size: 10px; }
.inbox-chat-panel > .icon-button { border: 1px solid var(--inbox-border); }
.chat-history {
  min-height: 0;
  gap: 15px;
  padding: clamp(17px,2.2vw,28px);
  background-color: var(--inbox-chat-bg);
  background-image: radial-gradient(color-mix(in srgb, var(--inbox-blue) 7%, transparent) .6px, transparent .6px);
  background-size: 18px 18px;
}
.message-row { width: 100%; }
.message-bubble { max-width: min(78%,520px); padding: 13px 15px; border-color: var(--inbox-border); border-radius: 15px 15px 15px 5px; background: var(--surface); box-shadow: 0 3px 12px rgba(15,23,42,.045); }
.message-row.outgoing .message-bubble { border-color: #bfdbfe; border-radius: 15px 15px 5px 15px; background: #eaf3ff; }
.message-row.note-row .message-bubble { border-color: #fcd34d; background: #fffbeb; }
.message-bubble small { color: #92400e; font-size: 10px; letter-spacing: .05em; }
.message-bubble p { color: #1e293b; font-size: 14px; line-height: 1.6; }
.message-bubble footer { margin-top: 8px; color: #64748b; font-size: 10px; }
.message-composer { padding: 12px 15px 14px; border-color: var(--inbox-border); background: var(--surface); }
.composer-mode { gap: 7px; margin-bottom: 9px; }
.composer-mode button { min-height: 34px; padding: 7px 11px; border-radius: 8px; color: var(--nexo-text-secondary); font-size: 12px; }
.composer-mode button.active { background: var(--inbox-soft); color: var(--inbox-blue); }
.composer-mode span { color: var(--nexo-text-muted); font-size: 10px; }
.message-composer textarea { min-height: 78px; padding: 12px; border-color: var(--inbox-border); border-radius: 10px; font-size: 13px; line-height: 1.5; }
.message-composer textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(14,165,233,.11); }
.message-composer.note-composer textarea { border-color: #fcd34d; background: #fffbeb; }
.composer-foot { gap: 10px; margin-top: 9px; }
.composer-foot>span { color: var(--nexo-text-muted); font-size: 10px; }
.composer-foot .button { min-height: 43px; border-radius: 10px; font-size: 11px; }

.inbox-detail-panel { border-color: var(--inbox-border); scrollbar-width: thin; }
.detail-profile { padding: 22px 14px 18px; border-color: var(--inbox-border); }
.detail-avatar { width: 58px; height: 58px; background: #dbeafe; color: var(--inbox-blue); font-size: 20px; }
.detail-profile h2 { color: var(--nexo-text-primary); font-size: 15px; }
.detail-profile p { color: var(--nexo-text-muted); font-size: 11px; }
.detail-profile .button { min-height: 39px; border-radius: 9px; font-size: 11px; }
.detail-section { padding: 17px 16px; border-color: var(--inbox-border); }
.detail-section h3 { margin-bottom: 13px; color: var(--inbox-blue); font-size: 10px; letter-spacing: .08em; }
.detail-section dl { grid-template-columns: minmax(74px,.75fr) minmax(0,1fr); gap: 10px 7px; font-size: 11px; }
.detail-section dt { color: var(--nexo-text-muted); }
.detail-section dd { color: var(--nexo-text-secondary); font-size: 11px; line-height: 1.45; }
.detail-contact { color: var(--nexo-text-secondary); font-size: 12px; line-height: 1.7; }
.detail-action { min-height: 41px; border-radius: 9px; font-size: 11px; }
.chat-next-actions { gap: 8px; margin-top: 10px; }
.chat-next-actions .button { min-height: 40px; padding-inline: 8px; font-size: 10px; }
.connector-reminder { background: color-mix(in srgb, var(--inbox-soft) 52%, var(--surface)); }
.connector-reminder p { color: var(--nexo-text-secondary); font-size: 11px; line-height: 1.6; }
.connector-reminder button { margin-top: 11px; color: var(--inbox-blue); font-size: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .inbox-demo-note,.inbox-list-panel,.inbox-chat-panel,.inbox-detail-panel { animation: inbox-enter .42s cubic-bezier(.2,.75,.25,1) both; }
  .inbox-chat-panel { animation-delay: .05s; }
  .inbox-detail-panel { animation-delay: .1s; }
  .conversation-row { transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
  .conversation-row:hover { transform: translateX(2px); }
  .message-row { animation: inbox-message-in .28s cubic-bezier(.2,.75,.25,1) both; }
  .message-row:nth-child(2) { animation-delay: .04s; }
  .message-row:nth-child(3) { animation-delay: .08s; }
  .message-row:nth-child(4) { animation-delay: .12s; }
  .message-row:nth-child(5) { animation-delay: .16s; }
}
@keyframes inbox-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes inbox-message-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

html[data-theme="dark"] .inbox-page > .page-heading h1 { color: #f8fafc; }
html[data-theme="dark"] .inbox-page > .page-heading p { color: #b6c4d7; }
html[data-theme="dark"] .inbox-demo-note { border-color: #334a68; background: linear-gradient(100deg,#142642,#14283a 70%,#12302f); color: #bfcee1; }
html[data-theme="dark"] .inbox-demo-note strong { color: #bfdbfe; }
html[data-theme="dark"] .inbox-demo-note button,html[data-theme="dark"] .connector-reminder button { color: #93c5fd; }
html[data-theme="dark"] .inbox-layout { --inbox-soft: #172d4b; --inbox-border: #2c405b; --inbox-chat-bg: #101b2a; border-color: #2b3d55; background: var(--surface); box-shadow: 0 14px 38px rgba(0,0,0,.22); }
html[data-theme="dark"] .inbox-list-head span { color: #bfdbfe; }
html[data-theme="dark"] .conversation-avatar,html[data-theme="dark"] .chat-contact-avatar,html[data-theme="dark"] .detail-avatar { background: #172d4b; color: #93c5fd; }
html[data-theme="dark"] .conversation-row.active { background: #142642; }
html[data-theme="dark"] .conversation-row:hover { background: #16243a; }
html[data-theme="dark"] .chat-order-pill { color: #bfdbfe; }
html[data-theme="dark"] .message-row.outgoing .message-bubble { border-color: #284c76; background: #172d4b; }
html[data-theme="dark"] .message-row.note-row .message-bubble,html[data-theme="dark"] .message-composer.note-composer textarea { border-color: #705a2d; background: #302918; }
html[data-theme="dark"] .message-bubble p { color: #e2e8f0; }
html[data-theme="dark"] .message-bubble footer { color: #9aabc1; }
html[data-theme="dark"] .composer-mode button.active { color: #bfdbfe; }
html[data-theme="dark"] .connector-reminder { background: #14243a; }
html[data-theme="dark"] .channel-mini { border-color: #182437; }

@media (max-width: 1300px) {
  .inbox-layout { height: auto; min-height: min(700px, calc(100dvh - 270px)); grid-template-columns: minmax(220px,.72fr) minmax(340px,1.28fr); }
  .inbox-detail-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-height: 245px; border-top: 1px solid var(--inbox-border); border-left: 0; overflow-y: auto; }
  .detail-profile { grid-row: span 2; justify-content: center; border-right: 1px solid var(--inbox-border); }
  .detail-section { border-right: 1px solid var(--inbox-border); }
  .connector-reminder { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .inbox-page > .page-heading { gap: 12px; }
  .inbox-demo-note { align-items: flex-start; flex-wrap: wrap; }
  .inbox-demo-note span:last-of-type { flex: 1 1 80%; }
  .inbox-demo-note button { margin-left: 19px; }
  .inbox-layout { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .inbox-list-panel { min-height: 275px; max-height: min(350px, 46dvh); border-right: 0; border-bottom: 1px solid var(--inbox-border); }
  .conversation-list { min-height: 0; overflow-y: auto; }
  .inbox-chat-panel { min-height: 545px; }
  .inbox-detail-panel { display: block; max-height: none; overflow: visible; border-top: 1px solid var(--inbox-border); }
  .detail-profile { border-right: 0; }
  .detail-section { border-right: 0; }
  .connector-reminder { grid-column: auto; }
}
@media (max-width: 480px) {
  .inbox-page > .page-heading > .button { width: 100%; }
  .inbox-demo-note { gap: 8px; padding: 12px; }
  .inbox-demo-note span:last-of-type { flex-basis: calc(100% - 25px); }
  .inbox-demo-note button { margin-left: 17px; }
  .inbox-list-panel { min-height: 260px; max-height: 340px; }
  .inbox-filters { overflow-x: auto; scrollbar-width: none; }
  .inbox-filters button { min-height: 42px; flex: none; }
  .conversation-row { min-height: 92px; padding: 13px 11px; }
  .chat-contact-head { min-height: 72px; gap: 9px; padding: 11px; }
  .chat-contact-avatar { width: 39px; height: 39px; }
  .chat-contact-info strong { font-size: 14px; }
  .chat-contact-info>span { font-size: 10px; }
  .chat-order-pill { display: none; }
  .chat-history { min-height: 235px; padding: 15px 12px; }
  .message-bubble { max-width: 91%; padding: 11px 12px; }
  .message-bubble p { font-size: 13px; }
  .message-composer { padding: 11px; }
  .composer-mode { flex-wrap: wrap; }
  .composer-mode span { flex: 1 1 100%; margin: 1px 0 0; font-size: 10px; }
  .message-composer textarea { min-height: 83px; }
  .composer-foot { align-items: stretch; flex-direction: column; }
  .composer-foot .button { width: 100%; }
  .detail-section dl { grid-template-columns: minmax(75px,.7fr) minmax(0,1.3fr); }
  .chat-next-actions { flex-wrap: wrap; }
  .chat-next-actions .button { min-height: 42px; }
}

/* Channel filters and single-panel navigation for narrow screens. */
.inbox-list-meta { display:block; margin:0 17px 11px; color:var(--nexo-text-muted); font-size:10px; }
.inbox-list-head { flex-wrap:wrap; }
.inbox-list-head > div { width:100%; justify-content:space-between; }
.inbox-list-meta { width:100%; margin:0 0 10px; }
.inbox-filters { flex-wrap:wrap; overflow:visible; scrollbar-width:none; }
.inbox-filters button { flex:none; }
.inbox-filters::-webkit-scrollbar,.inbox-channels::-webkit-scrollbar { display:none; }
.inbox-channels { display:flex; flex-wrap:wrap; gap:6px; padding:0 12px 12px; overflow:visible; border-bottom:1px solid var(--inbox-border); }
.inbox-channels button { display:inline-flex; min-height:34px; flex:none; align-items:center; gap:6px; padding:6px 9px; border:1px solid var(--inbox-border); border-radius:999px; background:var(--surface); color:var(--nexo-text-secondary); font:600 10px/1.2 "DM Sans",sans-serif; white-space:nowrap; cursor:pointer; transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease; }
.inbox-channels button:hover { transform:translateY(-1px); border-color:#93c5fd; }
.inbox-channels button.selected { border-color:var(--inbox-blue); background:var(--inbox-blue); color:#fff; }
.inbox-channels button b { font-size:9px; opacity:.8; }
.inbox-page :is(button,a,input,textarea):focus-visible { outline:3px solid color-mix(in srgb,var(--inbox-cyan) 55%,transparent); outline-offset:2px; }
.inbox-list-empty { display:grid; justify-items:center; gap:8px; padding:28px 20px; text-align:center; }
.inbox-empty-icon { display:grid; width:38px; height:38px; place-items:center; border-radius:12px; background:var(--inbox-soft); color:var(--inbox-blue); font-size:22px; }
.inbox-list-empty p { max-width:28ch; margin:0; }
.inbox-mobile-back,.inbox-mobile-details,.inbox-mobile-detail-head { display:none; }

@media (max-width: 760px) {
  body:has(#pageContent.inbox-page) .top-actions { gap:2px; }
  body:has(#pageContent.inbox-page) .top-actions .contextual-help-trigger { display:none; }
  .inbox-page > .page-heading { align-items:flex-start; }
  .inbox-layout { display:block; height:min(780px,max(420px,calc(100dvh - 280px))); min-height:420px; overflow:hidden; border-radius:14px; }
  .inbox-layout > .inbox-list-panel,.inbox-layout > .inbox-chat-panel,.inbox-layout > .inbox-detail-panel { display:none; width:100%; height:100%; min-height:0; max-height:none; border:0; border-radius:0; }
  .inbox-layout.mobile-view-list > .inbox-list-panel { display:flex; flex-direction:column; }
  .inbox-layout.mobile-view-chat > .inbox-chat-panel { display:flex; flex-direction:column; }
  .inbox-layout.mobile-view-details > .inbox-detail-panel { display:block; overflow-y:auto; }
  .inbox-list-head { padding:15px 15px 8px; }
  .inbox-list-meta { margin-bottom:9px; }
  .inbox-filters { flex-wrap:nowrap; overflow-x:auto; }
  .inbox-channels { flex-wrap:nowrap; padding-bottom:10px; overflow-x:auto; }
  .conversation-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  .conversation-row { min-height:92px; }
  .chat-contact-head { display:grid; grid-template-columns:auto 39px minmax(0,1fr) auto; grid-template-areas:"back avatar info status" "order order order details"; gap:8px; padding:11px; }
  .inbox-mobile-back { grid-area:back; display:inline-flex; min-height:42px; align-items:center; gap:4px; padding:0 4px 0 0; border:0; background:transparent; color:var(--inbox-blue); font:700 11px/1.1 "DM Sans",sans-serif; white-space:nowrap; cursor:pointer; }
  .chat-contact-avatar { grid-area:avatar; width:39px; height:39px; }
  .chat-contact-info { grid-area:info; min-width:0; }
  .chat-contact-info strong,.chat-contact-info>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .chat-contact-info>span { font-size:10px; }
  .chat-contact-head > .icon-button { grid-area:status; width:42px; height:42px; }
  .chat-order-pill { grid-area:order; justify-self:start; }
  .inbox-mobile-details { grid-area:details; display:inline-flex; min-height:42px; align-items:center; justify-self:end; gap:6px; padding:0 10px; border:1px solid var(--inbox-border); border-radius:9px; background:var(--surface); color:var(--nexo-text-secondary); font:650 11px/1 "DM Sans",sans-serif; cursor:pointer; }
  .inbox-mobile-details .ui-icon { width:15px; height:15px; }
  .chat-history { flex:1; min-height:90px; overflow-y:auto; overscroll-behavior:contain; }
  .message-composer { flex:none; }
  .inbox-mobile-detail-head { position:sticky; top:0; z-index:1; display:flex; min-height:58px; align-items:center; justify-content:space-between; gap:12px; padding:9px 13px; border-bottom:1px solid var(--inbox-border); background:var(--surface); }
  .inbox-mobile-detail-head strong { color:var(--nexo-text-primary); font-size:13px; }
  .detail-profile { border-right:0; }
  .detail-section { border-right:0; }
}
@media (max-width: 480px) {
  .inbox-layout { height:min(760px,max(430px,calc(100dvh - 270px))); min-height:430px; }
  .inbox-demo-note { font-size:11px; }
  .chat-contact-head { grid-template-columns:auto 36px minmax(0,1fr) 38px; gap:6px; padding:9px; }
  .chat-contact-avatar { width:36px; height:36px; }
  .inbox-mobile-back { font-size:10px; }
  .chat-contact-head > .icon-button { width:38px; height:38px; }
  .chat-contact-info strong { font-size:13px; }
  .chat-order-pill { display:inline-flex; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .inbox-mobile-details { min-height:40px; }
  .message-composer textarea { min-height:68px; }
  .composer-foot { flex-direction:row; align-items:center; }
  .composer-foot>span { flex:1; line-height:1.4; }
  .composer-foot .button { width:auto; min-height:42px; }
}
html[data-theme="dark"] .inbox-channels button { border-color:var(--inbox-border); background:var(--surface); color:var(--nexo-text-secondary); }
html[data-theme="dark"] .inbox-channels button.selected { border-color:var(--inbox-blue); background:var(--inbox-blue); color:#fff; }
html[data-theme="dark"] .inbox-mobile-details { border-color:var(--inbox-border); background:var(--surface); color:var(--nexo-text-secondary); }

/* Keep the inbox on Nexo's blue/navy dark palette, overriding the legacy green rules in styles.css. */
html[data-theme="dark"] .inbox-layout,
html[data-theme="dark"] .inbox-list-panel,
html[data-theme="dark"] .inbox-chat-panel,
html[data-theme="dark"] .inbox-detail-panel,
html[data-theme="dark"] .conversation-row {
  border-color: var(--inbox-border);
  background-color: var(--surface);
  color: var(--nexo-text-primary);
}
html[data-theme="dark"] .inbox-list-panel,
html[data-theme="dark"] .inbox-chat-panel,
html[data-theme="dark"] .inbox-detail-panel { background-color: #111827; }
html[data-theme="dark"] .inbox-search,
html[data-theme="dark"] .message-composer textarea,
html[data-theme="dark"] .inbox-filters button:not(.selected),
html[data-theme="dark"] .inbox-channels button:not(.selected),
html[data-theme="dark"] .inbox-mobile-details {
  border-color: var(--inbox-border);
  background-color: #0b1220;
  color: #cbd5e1;
}
html[data-theme="dark"] .inbox-search input,
html[data-theme="dark"] .message-composer textarea { color: #e2e8f0; }
html[data-theme="dark"] .inbox-search input {
  border-color: transparent;
  background: transparent;
  color: #e2e8f0;
}
html[data-theme="dark"] .inbox-search input::placeholder,
html[data-theme="dark"] .message-composer textarea::placeholder { color: #94a3b8; }
html[data-theme="dark"] .conversation-row { border-color: #26364a; }
html[data-theme="dark"] .conversation-row.active { background-color: #172b4d; }
html[data-theme="dark"] .conversation-row:hover { background-color: #1e293b; }
html[data-theme="dark"] .inbox-filters button.selected,
html[data-theme="dark"] .inbox-channels button.selected { background: #1e40af; color: #fff; }
html[data-theme="dark"] .conversation-avatar,
html[data-theme="dark"] .chat-contact-avatar,
html[data-theme="dark"] .detail-avatar { background: #172b4d; color: #bfdbfe; }
html[data-theme="dark"] .chat-history {
  background-color: #0b1220;
  background-image: radial-gradient(rgba(96, 165, 250, .16) .6px, transparent .6px);
}
html[data-theme="dark"] .message-bubble {
  border-color: #334155;
  background: #172033;
  color: #e2e8f0;
}
html[data-theme="dark"] .message-row.outgoing .message-bubble {
  border-color: #284c76;
  background: #172d4b;
}
html[data-theme="dark"] .message-row.note-row .message-bubble,
html[data-theme="dark"] .message-composer.note-composer textarea {
  border-color: #705a2d;
  background: #302918;
}
html[data-theme="dark"] .message-bubble p { color: #e2e8f0; }
html[data-theme="dark"] .message-bubble footer,
html[data-theme="dark"] .conversation-last,
html[data-theme="dark"] .conversation-top time { color: #94a3b8; }
html[data-theme="dark"] .detail-section h3,
html[data-theme="dark"] .detail-section dd { color: #bfdbfe; }
html[data-theme="dark"] .inbox-demo-note {
  border-color: #334155;
  background: linear-gradient(100deg, #142642, #14283a 70%, #122b3b);
  color: #cbd5e1;
}
html[data-theme="dark"] .inbox-demo-note strong { color: #bfdbfe; }
html[data-theme="dark"] .connector-reminder { background: #14243a; }
html[data-theme="dark"] .inbox-empty-chat { background: #111827; color: #cbd5e1; }
html[data-theme="dark"] .inbox-layout { --inbox-soft: #172b4d; --inbox-border: #334155; --inbox-chat-bg: #0b1220; }

@media (prefers-reduced-motion: reduce) {
  .inbox-page *, .inbox-page *::before, .inbox-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
