/* Mobile-first refinements for the public search page only. */
body.search-screen .container.search-page{width:min(100%,980px)!important;max-width:980px!important;margin-inline:auto!important;padding:18px 18px 52px!important}
body.search-screen .search-form{display:grid!important;gap:13px!important}
body.search-screen .search-entry{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:8px 10px 8px 14px!important;border:1px solid #dbe9e0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px rgba(16,58,40,.07)!important}
body.search-screen .search-entry-icon{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;border-radius:13px!important;background:#edf7f0!important;color:#087654!important}
body.search-screen .search-entry-icon svg{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
body.search-screen .search-entry input{min-width:0!important;width:100%!important;min-height:48px!important;padding:10px 2px!important;border:0!important;outline:0!important;background:transparent!important;color:#153c2f!important;font-size:16px!important;box-shadow:none!important}
body.search-screen .search-entry input::placeholder{color:#8a9b92!important;opacity:1!important}
body.search-screen .search-entry-toggle{min-height:44px!important;padding:0 14px!important;border:1px solid #cfe3d6!important;border-radius:13px!important;background:#f3faf5!important;color:#0d7454!important;font-size:13px!important;font-weight:800!important;white-space:nowrap!important;box-shadow:none!important}
body.search-screen .filter-card{margin:0!important;padding:22px!important;border:1px solid #dce9e1!important;border-radius:22px!important;background:linear-gradient(180deg,#fff 0%,#fcfefc 100%)!important;box-shadow:0 10px 30px rgba(16,58,40,.07)!important}
body.search-screen .filter-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;padding-bottom:16px!important;border-bottom:1px solid #e8efea!important}
body.search-screen .filter-title>div{display:grid!important;gap:5px!important;min-width:0!important}
body.search-screen .filter-title strong{color:#173e31!important;font-size:20px!important;font-weight:800!important;letter-spacing:-.025em!important}
body.search-screen .filter-title span{max-width:560px!important;color:#708278!important;font-size:13px!important;line-height:1.5!important}
body.search-screen .filter-title>b{flex:0 0 auto!important;padding:8px 11px!important;border:1px solid #d6eadc!important;border-radius:999px!important;background:#eff8f1!important;color:#0d7555!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}
body.search-screen .filter-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;margin-top:16px!important}
body.search-screen .filter-field{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:center!important;gap:3px 12px!important;min-width:0!important;min-height:84px!important;padding:12px 14px!important;border:1px solid #e2ece5!important;border-radius:17px!important;background:#fff!important;box-shadow:0 3px 10px rgba(17,63,43,.035)!important;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease!important}
body.search-screen .filter-field:focus-within{border-color:#8ac4a4!important;box-shadow:0 0 0 3px rgba(20,145,97,.1)!important;transform:translateY(-1px)!important}
body.search-screen .filter-field-icon{grid-column:1!important;grid-row:1 / span 2!important;display:grid!important;place-items:center!important;width:48px!important;height:48px!important;margin:0!important;border-radius:15px!important}
body.search-screen .filter-field-icon svg{display:block!important;width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
body.search-screen .filter-field--blue .filter-field-icon{background:#eaf1ff!important;color:#2876d2!important}
body.search-screen .filter-field--rose .filter-field-icon{background:#fff0f3!important;color:#c93d6a!important}
body.search-screen .filter-field--green .filter-field-icon{background:#e7f8f0!important;color:#15936d!important}
body.search-screen .filter-field--purple .filter-field-icon,body.search-screen .filter-field--violet .filter-field-icon{background:#f1ecff!important;color:#7044c7!important}
body.search-screen .filter-field--sky .filter-field-icon{background:#e9f4ff!important;color:#2478ce!important}
body.search-screen .filter-field--orange .filter-field-icon{background:#fff4df!important;color:#c67a1b!important}
body.search-screen .filter-field-title{grid-column:2!important;grid-row:1!important;display:block!important;margin:0!important;color:#435d51!important;font-size:12px!important;font-weight:800!important;line-height:1.25!important}
body.search-screen .filter-field select,body.search-screen .filter-field input{grid-column:2!important;grid-row:2!important;display:block!important;min-width:0!important;width:100%!important;min-height:44px!important;margin:0!important;padding:9px 34px 9px 12px!important;border:1px solid #dbe8df!important;border-radius:13px!important;background-color:#f8fbf9!important;color:#183d30!important;font-family:inherit!important;font-size:14px!important;line-height:1.25!important;box-shadow:none!important}
body.search-screen .filter-field select{white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}
body.search-screen .filter-field input{padding-right:12px!important}
body.search-screen .filter-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin:16px 0 0!important;padding:0!important}
body.search-screen .filter-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:54px!important;padding:12px 18px!important;border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#0a8b66,#087553)!important;color:#fff!important;font-size:15px!important;font-weight:850!important;letter-spacing:.005em!important;box-shadow:0 7px 16px rgba(8,117,83,.2)!important;cursor:pointer!important;transition:transform .16s ease,box-shadow .16s ease!important}
body.search-screen .filter-actions>button:hover{transform:translateY(-1px)!important;box-shadow:0 10px 20px rgba(8,117,83,.24)!important}
body.search-screen .filter-actions>button:active{transform:scale(.99)!important}
body.search-screen .filter-actions>a.btn.light{display:flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;padding:10px 14px!important;border:1px solid #dbe8df!important;border-radius:13px!important;background:#fff!important;color:#547064!important;font-size:13px!important;font-weight:750!important;text-align:center!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important}
body.search-screen .section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:22px 2px 12px!important}
body.search-screen .section-title h2{margin:0!important;color:#f8f4ea!important}
body.search-screen .section-title>.muted{padding:6px 10px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;background:rgba(255,255,255,.08)!important;color:#e1eadf!important;font-size:12px!important}
body.search-screen .empty-state{margin-bottom:18px!important;border-radius:18px!important}
@media(max-width:760px){
 body.search-screen .container.search-page{padding:14px 14px calc(164px + env(safe-area-inset-bottom))!important}
 body.search-screen .filter-card{padding:17px!important;border-radius:19px!important}
 body.search-screen .filter-title{gap:9px!important;padding-bottom:13px!important}
 body.search-screen .filter-title strong{font-size:18px!important}
 body.search-screen .filter-title span{font-size:12px!important}
 body.search-screen .filter-title>b{padding:7px 9px!important;font-size:11px!important}
 body.search-screen .filter-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important;margin-top:13px!important}
 body.search-screen .filter-field{grid-template-columns:48px minmax(0,1fr)!important;min-height:78px!important;padding:10px 12px!important;gap:2px 10px!important;border-radius:15px!important}
 body.search-screen .filter-field-icon{width:44px!important;height:44px!important;border-radius:13px!important}
 body.search-screen .filter-field-icon svg{width:22px!important;height:22px!important}
 body.search-screen .filter-field-title{font-size:11px!important}
 body.search-screen .filter-field select,body.search-screen .filter-field input{min-height:44px!important;font-size:14px!important}
 body.search-screen .filter-actions{position:sticky!important;bottom:calc(84px + env(safe-area-inset-bottom))!important;z-index:70!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:11px -5px 0!important;padding:10px 5px 3px!important;border-top:1px solid rgba(224,235,228,.9)!important;border-radius:0 0 14px 14px!important;background:linear-gradient(180deg,rgba(255,255,255,.88),#fff 24%)!important;backdrop-filter:blur(10px)!important}
 body.search-screen .filter-actions>button{width:100%!important;min-height:54px!important;font-size:15px!important}
 body.search-screen .filter-actions>a.btn.light{width:100%!important;min-height:44px!important;background:#f8fbf9!important}
 body.search-screen .section-title{margin-top:19px!important}
}
@media(max-width:360px){body.search-screen .filter-title{flex-direction:column!important;align-items:flex-start!important}body.search-screen .filter-title>b{align-self:flex-start!important}}
@media(prefers-reduced-motion:reduce){body.search-screen .filter-field,body.search-screen .filter-actions>button{transition:none!important}}
/* Results labels sit on the pale page background, so keep both highly legible. */
body.search-screen .section-title h2{color:#173e31!important;text-shadow:none!important}
body.search-screen .section-title>.muted{border-color:#d3e7d9!important;background:#eef7f0!important;color:#496457!important;font-weight:750!important}

/* Restrained motion for filters and profile results. */
@keyframes searchRiseIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes searchCardIn{from{opacity:0;transform:translateY(14px) scale(.992)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes searchChipIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
body.search-screen .search-entry{animation:searchRiseIn .4s cubic-bezier(.2,.7,.25,1) both}
body.search-screen .filter-card:not([hidden]){animation:searchRiseIn .42s cubic-bezier(.2,.7,.25,1) both}
body.search-screen .filter-title>b{animation:searchChipIn .42s .08s cubic-bezier(.2,.7,.25,1) both}
body.search-screen .filter-field{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
body.search-screen .filter-grid>.filter-field:nth-child(-n+8){animation:searchRiseIn .38s cubic-bezier(.2,.7,.25,1) both}
body.search-screen .filter-grid>.filter-field:nth-child(1){animation-delay:.03s}
body.search-screen .filter-grid>.filter-field:nth-child(2){animation-delay:.07s}
body.search-screen .filter-grid>.filter-field:nth-child(3){animation-delay:.11s}
body.search-screen .filter-grid>.filter-field:nth-child(4){animation-delay:.15s}
body.search-screen .filter-grid>.filter-field:nth-child(5){animation-delay:.19s}
body.search-screen .filter-grid>.filter-field:nth-child(6){animation-delay:.23s}
body.search-screen .filter-grid>.filter-field:nth-child(7){animation-delay:.27s}
body.search-screen .filter-grid>.filter-field:nth-child(8){animation-delay:.31s}
body.search-screen .filter-actions>button{transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important}
body.search-screen .filter-actions>button:active{transform:scale(.985)!important;filter:brightness(.97)!important}
body.search-screen .profile-grid>.profile:nth-child(-n+8){animation:searchCardIn .46s cubic-bezier(.2,.7,.25,1) both}
body.search-screen .profile-grid>.profile:nth-child(1){animation-delay:.035s}
body.search-screen .profile-grid>.profile:nth-child(2){animation-delay:.075s}
body.search-screen .profile-grid>.profile:nth-child(3){animation-delay:.115s}
body.search-screen .profile-grid>.profile:nth-child(4){animation-delay:.155s}
body.search-screen .profile-grid>.profile:nth-child(5){animation-delay:.195s}
body.search-screen .profile-grid>.profile:nth-child(6){animation-delay:.235s}
body.search-screen .profile-grid>.profile:nth-child(7){animation-delay:.275s}
body.search-screen .profile-grid>.profile:nth-child(8){animation-delay:.315s}
body.search-screen .profile-grid .profile-media img,body.search-screen .profile-grid .profile-media .avatar{transition:transform .34s cubic-bezier(.2,.7,.25,1)!important}
body.search-screen .profile-grid>.profile:focus-visible{outline:3px solid rgba(22,129,93,.28)!important;outline-offset:3px!important}
@media(hover:hover){body.search-screen .profile-grid>.profile:hover .profile-media img,body.search-screen .profile-grid>.profile:hover .profile-media .avatar{transform:scale(1.035)!important}}
@media(hover:none){body.search-screen .profile-grid>.profile:active{transform:scale(.99)!important}}
@media(prefers-reduced-motion:reduce){body.search-screen .search-entry,body.search-screen .filter-card:not([hidden]),body.search-screen .filter-title>b,body.search-screen .filter-grid>.filter-field,body.search-screen .profile-grid>.profile{animation:none!important}body.search-screen .filter-field,body.search-screen .filter-actions>button,body.search-screen .profile-grid .profile-media img,body.search-screen .profile-grid .profile-media .avatar{transition:none!important}body.search-screen .filter-actions>button:active,body.search-screen .profile-grid>.profile:hover,body.search-screen .profile-grid>.profile:active{transform:none!important;filter:none!important}}
@media(prefers-reduced-motion:reduce){body.search-screen .filter-field:focus-within,body.search-screen .filter-actions>button:hover,body.search-screen .profile-grid>.profile:hover .profile-media img,body.search-screen .profile-grid>.profile:hover .profile-media .avatar{transform:none!important}}

/* Calm online badge in search results: gentle blinking dot, no bright glow. */
body.search-screen .profile-grid .online-dot.is-online {
  background: #eaf5ec !important;
  color: #286744 !important;
  border: 1px solid #d4e7d8 !important;
  box-shadow: none !important;
  animation: none !important;
}
body.search-screen .profile-grid .online-dot.is-online::before {
  background: #48a96e !important;
  box-shadow: none !important;
  animation: searchOnlineSoftBlink 1.5s ease-in-out infinite !important;
}
body.search-screen .profile-grid .online-dot.is-online::after {
  color: #286744 !important;
}
@keyframes searchOnlineSoftBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .38; }
}
@media (prefers-reduced-motion: reduce) {
  body.search-screen .profile-grid .online-dot.is-online::before { animation: none !important; }
}

/* The whole "В сети" badge gently pulses; the dot stays steady. */
body.search-screen .profile-grid .online-dot.is-online {
  animation: searchOnlineBadgePulse 2.2s ease-in-out infinite !important;
  transform-origin: top left;
}
body.search-screen .profile-grid .online-dot.is-online::before {
  animation: none !important;
  opacity: 1 !important;
}
@keyframes searchOnlineBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 5px rgba(40, 103, 68, .08); }
  50% { transform: scale(1.035); box-shadow: 0 0 0 4px rgba(72, 169, 110, .10); }
}
@media (prefers-reduced-motion: reduce) {
  body.search-screen .profile-grid .online-dot.is-online { animation: none !important; }
}

/* Search status: transparent "В сети" label with a separate pulsing dot. */
body.search-screen .profile-grid .online-dot.is-online {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 4px 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  animation: none !important;
  transform: none !important;
  white-space: nowrap !important;
}
body.search-screen .profile-grid .online-dot.is-online::before {
  content: "" !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  border: 1px solid rgba(255,255,255,.95) !important;
  border-radius: 50% !important;
  background: #39c879 !important;
  box-shadow: 0 0 0 0 rgba(57,200,121,.4) !important;
  animation: searchPresenceDotPulse 1.65s ease-out infinite !important;
}
body.search-screen .profile-grid .online-dot.is-online::after {
  content: "В сети" !important;
  display: block !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  letter-spacing: .01em !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.72), 0 0 5px rgba(0,0,0,.28) !important;
}
@keyframes searchPresenceDotPulse {
  0% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(57,200,121,.42); }
  65% { transform: scale(1); box-shadow: 0 0 0 6px rgba(57,200,121,0); }
  100% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(57,200,121,0); }
}
@media (prefers-reduced-motion: reduce) {
  body.search-screen .profile-grid .online-dot.is-online::before { animation: none !important; }
}

/* Higher contrast green status and a more visible, still soft pulse ring. */
body.search-screen .profile-grid .online-dot.is-online::after {
  color: #16834b !important;
  text-shadow: -1px 0 rgba(255,255,255,.92), 1px 0 rgba(255,255,255,.92), 0 -1px rgba(255,255,255,.92), 0 1px rgba(255,255,255,.92), 0 1px 3px rgba(255,255,255,.75) !important;
}
body.search-screen .profile-grid .online-dot.is-online::before {
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  background: #21bd68 !important;
  border: 1px solid #fff !important;
  box-shadow: 0 0 0 0 rgba(33,189,104,.62), 0 0 7px rgba(33,189,104,.48) !important;
  animation: searchPresenceDotPulseStrong 1.35s ease-out infinite !important;
}
@keyframes searchPresenceDotPulseStrong {
  0% { transform: scale(.88); box-shadow: 0 0 0 0 rgba(33,189,104,.62), 0 0 7px rgba(33,189,104,.48); }
  70% { transform: scale(1); box-shadow: 0 0 0 9px rgba(33,189,104,0), 0 0 10px rgba(33,189,104,.35); }
  100% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(33,189,104,0), 0 0 7px rgba(33,189,104,.3); }
}

/* Bring the "В сети" text closer to its pulsing indicator. */
body.search-screen .profile-grid .online-dot.is-online { gap: 2px !important; }

/* Remove the pale halo behind the green label; keep the label transparent. */
body.search-screen .profile-grid .online-dot.is-online {
  background: transparent !important;
  box-shadow: none !important;
}
body.search-screen .profile-grid .online-dot.is-online::after {
  background: transparent !important;
  text-shadow: none !important;
  filter: none !important;
}
