/* Search-only enhancement. The existing public header and admin layout are untouched. */
body.mx-screen .mx-search-area{position:relative;}
body.mx-screen .mx-search-area .mx-smart-live{
  position:absolute;z-index:1000;left:50%;right:auto;top:calc(100% - 7px);
  width:min(94vw,450px);transform:translateX(-50%);box-sizing:border-box;
  background:#fff;border:1px solid var(--mx-water-color,#3616c7);
  border-radius:6px;box-shadow:0 8px 22px rgba(0,0,0,.14);text-align:left;
  max-height:min(450px,75vh);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
}
body.mx-screen .mx-search-area .mx-smart-live[hidden]{display:none!important}
body.mx-screen .mx-search-area .mx-smart-live-tabs{display:flex;gap:3px;flex-wrap:nowrap;padding:7px;background:#f6f6fc;position:sticky;top:0;z-index:1;border-bottom:1px solid #eee}
body.mx-screen .mx-search-area .mx-smart-live-tab{
  flex:1 1 0;min-width:0;width:auto!important;height:28px!important;padding:0 3px!important;
  border:1px solid rgba(var(--mx-water-rgb,54,22,199),.23)!important;border-radius:3px!important;
  color:var(--mx-water-color,#3616c7)!important;background:#fff!important;font:600 11px/1.2 Arial,Helvetica,sans-serif!important;
}
body.mx-screen .mx-search-area .mx-smart-live-tab[aria-pressed="true"]{color:#fff!important;background:var(--mx-water-color,#3616c7)!important}
body.mx-screen .mx-search-area .mx-live-item{display:flex;align-items:center;gap:9px;min-height:59px;padding:6px 8px;border-bottom:1px solid #eee;color:#222!important;text-decoration:none!important}
body.mx-screen .mx-search-area .mx-live-item:is(:hover,.mx-active,:focus-visible){background:rgba(var(--mx-water-rgb,54,22,199),.07)}
body.mx-screen .mx-search-area .mx-smart-live-art{display:inline-flex;width:45px;height:45px;min-width:45px;align-items:center;justify-content:center;border-radius:4px;overflow:hidden;background:#ece9fc;color:var(--mx-water-color,#3616c7);font-size:19px}
body.mx-screen .mx-search-area .mx-smart-live-art img{display:block;width:45px;height:45px;max-width:none;object-fit:cover}
body.mx-screen .mx-search-area .mx-live-info{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0;overflow:hidden}
body.mx-screen .mx-search-area .mx-live-info strong{font:600 12px/1.35 Arial,Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mx-screen .mx-search-area .mx-live-info small{font:400 10px/1.35 Arial,Helvetica,sans-serif;color:#606474;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.mx-screen .mx-search-area .mx-live-kind{flex:0 0 auto;max-width:68px;padding:4px 5px;border-radius:3px;background:rgba(var(--mx-water-rgb,54,22,199),.1);color:var(--mx-water-color,#3616c7);font:700 10px Arial,Helvetica,sans-serif;text-align:center}
body.mx-screen .mx-search-area .mx-smart-live-more{display:block;padding:10px;text-align:center;background:#f8f7ff;color:var(--mx-water-color,#3616c7)!important;font:700 12px/18px Arial,Helvetica,sans-serif;border-top:1px solid #ece9f4}
body.mx-screen .mx-search-area .mx-smart-live-empty{margin:0;padding:16px 12px;font:400 12px/1.5 Arial,Helvetica,sans-serif;color:#596070;text-align:center}
body.mx-screen .mx-advanced-search{padding:8px;background:#fff;border-bottom:1px solid #e8e8ee}
body.mx-screen .mx-smart-filters,body.mx-screen .mx-smart-sorting{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px;margin:0;min-height:31px}
body.mx-screen .mx-smart-sorting{margin-top:7px}
body.mx-screen .mx-smart-filters a,body.mx-screen .mx-smart-sorting a{
 display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border:1px solid rgba(var(--mx-water-rgb,54,22,199),.22);border-radius:4px;background:#fff;
 color:var(--mx-water-color,#3616c7)!important;font:600 11px/16px Arial,Helvetica,sans-serif;
}
body.mx-screen .mx-smart-filters a.mx-filter-active,body.mx-screen .mx-smart-sorting a.mx-filter-active{background:var(--mx-water-color,#3616c7);color:#fff!important}
body.mx-screen .mx-smart-sorting span{font:600 11px/16px Arial,Helvetica,sans-serif;color:#4c5260}
body.mx-screen .mx-smart-summary{padding:9px;border-bottom:1px solid #ececf0;background:#fbfbfe;text-align:center;font:400 12px/1.4 Arial,Helvetica,sans-serif;color:#444}
body.mx-screen .mx-smart-summary i{margin-right:4px;color:var(--mx-water-color,#3616c7)}
body.mx-screen :is(h1,h2,h3)>i.fa:first-child{display:inline-block;margin-right:5px;vertical-align:baseline}
@media(max-width:420px){
  body.mx-screen .mx-smart-filters a,body.mx-screen .mx-smart-sorting a{padding:5px 6px;font-size:10px}
  body.mx-screen .mx-search-area .mx-smart-live{width:min(96vw,420px)}
  body.mx-screen .mx-search-area .mx-live-kind{font-size:9px;max-width:59px}
}
