/* Chat only: one compact workspace, native commands and existing gallery viewer. */
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"]{width:100%!important;max-width:1000px!important;box-sizing:border-box!important;padding:14px!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(12,38,59,.48),rgba(29,20,51,.32))!important;border:1px solid rgba(87,221,255,.25);overflow:hidden!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-hub-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 12px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-hub-header>div{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartHubTitle{margin:0;font-size:clamp(15px,2vw,20px);line-height:1.2;color:#e9faff}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-status{display:flex!important;align-items:center;gap:5px;margin:0!important;font-size:10px;min-width:0}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartSessionText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartSessionDot{flex-shrink:0}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartHubRefresh{display:grid;place-items:center;flex:0 0 36px;min-height:36px!important;width:36px;padding:5px!important;border-radius:12px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important;overflow:visible!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;grid-column:auto!important;min-width:0!important;max-width:100%!important;width:100%!important;min-height:98px!important;height:auto!important;margin:0!important;padding:10px 4px!important;box-sizing:border-box!important;border:1px solid rgba(97,203,255,.24)!important;border-radius:15px!important;color:#edfcff;background:rgba(20,42,66,.3)!important;clip-path:none!important;animation:none!important;font-family:inherit;overflow:hidden}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] button.smart-card,html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card-hit{cursor:pointer}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card-hit{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:absolute;inset:0;min-width:0;width:100%;padding:10px 3px;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card:focus-visible,html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card-hit:focus-visible{outline:2px solid #91eaff!important;outline-offset:-3px}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card-title{display:block;max-width:100%;margin:0!important;padding:0!important;border:0!important;font-size:12px!important;font-weight:650;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;overflow-wrap:normal;hyphens:auto;text-align:center}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card-title::after{display:none!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-context-icon{display:block;width:42px;height:42px;flex:0 0 auto;animation:smart-context-glow 5s ease-in-out infinite}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card:nth-child(3) .smart-context-icon{animation-delay:-1.4s}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card:nth-child(4) .smart-context-icon{animation-delay:-2.8s}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-metric{position:absolute;top:5px;right:5px;display:grid;place-items:center;min-width:16px;max-width:calc(100% - 8px);height:18px;padding:0 3px;box-sizing:border-box;border-radius:7px;background:rgba(4,12,29,.8);color:#9dffff;font-size:10px!important;line-height:1!important;overflow:hidden;text-overflow:ellipsis}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-profile-line{display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;margin:0!important;min-width:0!important;width:100%!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartProfileAvatar{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;object-fit:cover;border-radius:50%!important;border:1px solid rgba(130,233,255,.5)}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-profile-line>div{min-width:0;max-width:100%}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartProfileName{display:block;margin:0!important;font-size:10px!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-visually-hidden{position:absolute!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important;border:0!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #mainMessagingSection{margin:12px 0 0!important;padding:0!important;width:100%!important;min-height:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #mainMessagingOverview{padding:10px 0 0!important;border:0!important;border-top:1px solid rgba(135,216,255,.16)!important;border-radius:0!important;background:none!important;box-shadow:none!important;gap:9px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-overview-head{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartRecentTitle{margin:0;font-size:13px;font-weight:650;line-height:1.2;color:#e3faff}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #mainMessagingOpen{width:auto!important;margin-left:auto;flex:0 0 auto;padding:6px 9px;min-height:32px;font-size:11px;background:rgba(80,222,255,.08)}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #mainMessagingRecent{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;min-height:0!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-recent-item{display:flex!important;position:relative;flex-direction:column;align-items:center;gap:5px;padding:9px 5px;min-width:0;text-align:center;background:rgba(55,91,119,.16);border-radius:13px;font-family:inherit}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-recent-avatar{display:block;position:relative;flex:0 0 34px;width:34px;height:34px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#176e89,#6848a6);color:#fff;font-size:12px;font-weight:700;line-height:34px;text-align:center}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-recent-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-recent-copy{display:grid;gap:2px;width:100%;min-width:0}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-recent-copy strong{font-size:11px;font-weight:650;line-height:1.2}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-recent-copy small{font-size:10px;line-height:1.2}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-recent-unread{position:absolute;top:5px;right:5px;min-width:14px;border-radius:8px;padding:2px 3px;font-size:9px;line-height:1;background:#7aefff;color:#062e41}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .main-messaging-empty{grid-column:1/-1;padding:9px;font-size:12px;line-height:1.3}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-search-disclosure{margin-top:10px;border-top:1px solid rgba(135,216,255,.14);padding-top:8px}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] summary{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.3;min-height:32px;cursor:pointer;color:#bcefff;list-style:none}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] summary::-webkit-details-marker{display:none}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-search-panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;margin:5px 0!important;min-width:0}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-search-panel input{min-width:0!important;width:100%!important;font-size:12px!important;padding:8px!important;box-sizing:border-box}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartSearchBtn{font-size:11px;padding:7px 9px}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-results:empty{display:none}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery{box-sizing:border-box;max-width:100%!important;width:100%!important}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery #miniGalleryPreview{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .mini-gallery-card{width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:1/1.08;max-height:240px;padding:0!important;border-radius:15px;animation:none!important}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .card-meta-hud{left:5px;right:5px;bottom:5px;padding:4px 5px;justify-content:center;border-radius:8px}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .card-meta-hud span{font-size:10px}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .card-index-tag{display:none}
@keyframes smart-context-glow{0%,100%{filter:drop-shadow(0 0 2px rgba(81,218,255,.15))}50%{filter:drop-shadow(0 0 7px rgba(161,111,255,.65))}}
@media(max-width:700px){
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"]{padding:9px!important;border-radius:16px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-grid{gap:4px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card{min-height:90px!important;padding:8px 2px!important;border-radius:12px!important;gap:5px}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card-hit{gap:5px;padding:8px 2px}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card-title{font-size:clamp(9px,2.45vw,11px)!important;line-height:1.15!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-context-icon{width:32px;height:32px}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartProfileAvatar{width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;flex-basis:30px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #smartProfileName{font-size:9px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] #mainMessagingRecent{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-hub-header>div{gap:6px!important;flex-wrap:wrap}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-status{font-size:9px}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery{margin:16px 0!important;padding:10px!important;border-radius:16px}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .unipay-mini-gallery-header{flex-direction:row!important;align-items:center!important;gap:8px}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .header-core-meta{min-width:0}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .gallery-kicker{display:none}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery h3{font-size:14px;margin:0 0 4px}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery #miniGalleryStatus{font-size:10px;line-height:1.25}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery #openFullGalleryBtn{flex:0 0 auto;width:auto!important;padding:8px!important;font-size:10px}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .mini-gallery-section-title{font-size:10px;margin:8px 0}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .mini-gallery-card{aspect-ratio:1/1.1}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .card-meta-hud span{font-size:9px}
}
@media(prefers-reduced-motion:reduce){html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-context-icon,html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-card::after{animation:none!important}}

/* Header geometry */
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-hub-header{flex-wrap:nowrap!important}
html.unipay-page-chat body.unipay-page-chat #unipaySmartHub.unipay-smart-hub[data-layout="compact"] .smart-hub-header>div{width:auto!important;flex:1 1 auto!important}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery #openFullGalleryBtn{min-width:0!important;min-height:36px;letter-spacing:0!important;font-family:inherit!important;white-space:nowrap}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .status-container{min-width:0}
html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery #miniGalleryStatus{font-family:inherit!important;letter-spacing:0!important}
@media(max-width:700px){html.unipay-page-chat body.unipay-page-chat #unipayMiniGallery .unipay-mini-gallery-header{padding-bottom:9px!important;margin-bottom:9px!important}}
