/* DjimlyStore Messenger V2 — clean, compact Alibaba-inspired navigation.
   Scoped to the customer Message Center; no change to the existing chat data API.
*/
html body #djs-portal #djs-screen-chat.djs-message-center{
  --mc-blue:#1269df;--mc-blue-dark:#084eb5;--mc-ink:#11213d;--mc-muted:#68788e;
  --mc-line:#eaf0f7;--mc-soft:#f3f7fc;--mc-red:#1269df;--mc-yellow:#1269df;
  background:#fff!important;color:var(--mc-ink)!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
}
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-header{display:none!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-body{
  background:#fff!important;padding:0 15px calc(115px + env(safe-area-inset-bottom) + var(--djs-browser-toolbar,0px))!important;
  overflow-x:hidden!important;overflow-y:auto!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-home-shell{
  width:min(680px,100%)!important;max-width:100%!important;margin:0 auto!important;
  padding:23px 0 24px!important;box-sizing:border-box!important;
}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home{position:relative;width:100%;max-width:100%;font-family:inherit!important;box-sizing:border-box;color:#13243f}
html body #djs-portal #djs-screen-chat .djs-mc-v2-titlebar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px}
html body #djs-portal #djs-screen-chat .djs-mc-v2-titlebar>div:first-child{min-width:0}
html body #djs-portal #djs-screen-chat .djs-mc-v2-eyebrow{display:block;color:#4583d5;font-weight:850;font-size:9px;letter-spacing:.13em;margin-bottom:5px}
html body #djs-portal #djs-screen-chat .djs-mc-v2-titlebar h1{font-size:clamp(26px,6.4vw,34px)!important;letter-spacing:-.045em!important;line-height:1.1!important;color:#102449!important;margin:0!important;font-weight:850!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-titlebar p{font-size:13px!important;color:#7b889c!important;margin:5px 0 0!important;font-weight:500!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-controls{display:flex;gap:8px;flex-shrink:0}
html body #djs-portal #djs-screen-chat .djs-mc-v2-controls button{width:42px!important;height:42px!important;min-width:42px!important;appearance:none!important;background:#f3f7fc!important;border:1px solid #e5eef8!important;border-radius:14px!important;color:#184b8c!important;padding:0!important;box-shadow:none!important;display:grid!important;place-items:center!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-controls .ms{font-size:22px!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-controls button:focus-visible,html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts button:focus-visible,html body #djs-portal #djs-screen-chat .djs-mc-v2-filters button:focus-visible{outline:3px solid #9fc8ff!important;outline-offset:2px}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-home-menu{z-index:18!important;top:57px!important;right:0!important;left:auto!important;background:#fff!important;box-shadow:0 15px 35px rgba(17,45,88,.13)!important;border:1px solid #e4ecf7!important;border-radius:16px!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-home-menu[hidden]{display:none!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 20px;}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts button{appearance:none!important;border:1px solid #e5ecf6!important;border-radius:16px!important;min-width:0!important;background:#f8faff!important;box-shadow:none!important;padding:15px 5px 13px!important;display:flex!important;flex-direction:column!important;gap:9px!important;align-items:center!important;justify-content:center!important;color:#1a3559!important;min-height:107px!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts button:active{background:#ecf5ff!important;transform:scale(.99)}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcut-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#e5f0ff;color:#116add}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcut-icon .ms{font-size:25px!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts b{font-size:12px!important;font-weight:750!important;line-height:1.2!important;text-align:center!important;color:#243b59!important;white-space:normal!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-home-search-wrap{position:relative!important;z-index:1!important;display:flex!important;align-items:center!important;width:100%!important;max-width:none!important;margin:0 0 15px!important;background:#f1f5fa!important;border:1px solid #e8edf5!important;border-radius:14px!important;box-shadow:none!important;min-height:48px!important;padding:0!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-v2-searchicon{font-size:20px;color:#7186a0;margin-left:14px;flex-shrink:0}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-home-filter{font-family:inherit!important;flex:1!important;min-width:0!important;width:100%!important;height:48px!important;min-height:48px!important;padding:0 8px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#19304f!important;font-weight:550!important;font-size:13px!important;outline:none!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-home-filter::placeholder{color:#8293a8!important;opacity:1}
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-search-submit-v24002{position:static!important;transform:none!important;min-width:42px!important;width:42px!important;height:44px!important;border:0!important;border-radius:12px!important;box-shadow:none!important;background:transparent!important;color:#1967c9!important;display:grid!important;place-items:center!important;padding:0!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;max-width:100%;padding:1px 0 6px;margin-bottom:15px}
html body #djs-portal #djs-screen-chat .djs-mc-v2-filters::-webkit-scrollbar{display:none}
html body #djs-portal #djs-screen-chat .djs-mc-v2-filters button{flex:0 0 auto;appearance:none!important;background:#fff!important;border:1px solid #e6edf7!important;color:#58708e!important;border-radius:999px!important;padding:8px 13px!important;font-weight:750!important;font-size:12px!important;box-shadow:none!important;line-height:1.15!important;min-height:34px!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-filters button.is-active{background:#146ee9!important;border-color:#146ee9!important;color:#fff!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-listheading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 6px}
html body #djs-portal #djs-screen-chat .djs-mc-v2-listheading h2{font-size:16px!important;color:#193252!important;margin:0!important;font-weight:850!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-listcount{font-size:11px;font-weight:650;color:#8595a9;white-space:nowrap}
html body #djs-portal #djs-screen-chat .djs-mc-v2-orders-help{margin:8px 0}
html body #djs-portal #djs-screen-chat .djs-mc-v2-orders-help[hidden]{display:none!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-orders-help button{display:flex;gap:5px;align-items:center;justify-content:center;background:#eaf3ff!important;color:#135ebd!important;border:0!important;border-radius:12px!important;padding:10px!important;width:100%!important;font-weight:750!important;font-size:12px!important;box-shadow:none!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-orders-help .ms{font-size:16px}
html body #djs-portal #djs-screen-chat .djs-mc-v2-empty{background:#f7faff;border:1px dashed #dce9f9;border-radius:13px;padding:26px 14px;text-align:center;color:#697c95;font-size:13px;margin-top:10px}
html body #djs-portal #djs-screen-chat .djs-mc-v2-empty[hidden]{display:none!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-list{width:100%!important;max-width:100%!important;background:#fff!important;margin:0 auto!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row{
  grid-template-columns:50px minmax(0,1fr) 48px!important;gap:11px!important;
  min-height:75px!important;padding:10px 0!important;border-bottom:1px solid #edf1f7!important;
  display:grid!important;text-align:left!important;border-radius:0!important;box-shadow:none!important;
  background:#fff!important;max-width:100%!important;overflow:hidden!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar{width:48px!important;height:48px!important;background:#edf5ff!important;border:1px solid #e2edfc!important;box-shadow:none!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar>.ms{font-size:24px!important;color:#1269df!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy{min-width:0!important;overflow:hidden!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy b{font-size:14px!important;font-weight:790!important;color:#172946!important;max-width:100%!important;text-overflow:ellipsis!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy small{font-size:12px!important;color:#7c899e!important;margin-top:5px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy em{font-size:10px!important;color:#2268b3!important;font-style:normal!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-meta{width:48px!important;min-width:0!important;text-align:right!important;overflow:hidden!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-time{font-size:10px!important;font-weight:600!important;color:#96a2b1!important}
html body #djs-portal #djs-screen-chat .djs-mc-v2-unread{margin-top:7px;display:inline-flex;justify-content:center;align-items:center;min-width:19px;height:19px;padding:1px 5px;border-radius:999px;background:#146de1;color:#fff;font-size:10px;font-weight:850}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row-chevron{display:none!important}
/* Conversation — visually consistent with the inbox, existing backend/read receipts stay intact */
html body #djs-portal #djs-screen-chat.is-thread{background:#f5f8fd!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-mc-header{background:#fff!important;border-bottom:1px solid #e5edf7!important;box-shadow:none!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-mc-title-button{color:#172946!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-chat-title{color:#172946!important;font-size:16px!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-mc-body{background:#f5f8fd!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-chat-line.mine .djs-chat-bubble{background:#126ee7!important;color:#fff!important;border-radius:17px 17px 5px 17px!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-chat-line.theirs .djs-chat-bubble{background:#fff!important;color:#1d2d46!important;border:1px solid #e7edf5!important;border-radius:17px 17px 17px 5px!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-mc-composer{background:#fff!important;border-top:1px solid #e8eef7!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-chat-send{background:#126ee7!important;border-color:#126ee7!important;color:#fff!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-mc-input-shell{background:#f1f5fa!important;border-radius:18px!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-mc-plus{border-color:#e7eef8!important;background:#f4f8fd!important;color:#1768c6!important}
html body #djs-portal #djs-screen-chat.is-thread .djs-mc-tool-icon{background:#edf4ff!important;color:#1269df!important}
@media (max-width:390px){
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-body{padding-left:13px!important;padding-right:13px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts{gap:6px}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts button{padding:13px 3px 10px!important;min-height:98px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcut-icon{width:41px;height:41px;border-radius:13px}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts b{font-size:11px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-titlebar h1{font-size:27px!important}
}
@media(min-width:950px){
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-home-shell{padding-top:38px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-titlebar{margin-bottom:28px}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts{gap:12px}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts button{min-height:115px!important}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row{min-height:79px!important}
}
@media(prefers-reduced-motion:reduce){
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts button{transition:none!important}
}

html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row[hidden]{display:none!important}
