/* XSSM Search Hub */

.modern-sidebar.search-mode > :is(.stories-rail, .sidebar-tabs, .sidebar-notif),
.modern-sidebar.search-mode .sidebar-content > :is(
    .folder-tabs-wrap,
    .sidebar-sys-items,
    .pull-hint,
    .mobile-chats-heading,
    #chats-list,
    #contacts-list
) {
    display: none !important;
}

.ssr-status-emoji { display:inline-block;margin-right:5px;vertical-align:.02em; }

.modern-sidebar.search-mode > .sidebar-content {
    overflow: hidden !important;
    padding: 0 8px 10px !important;
}

#sidebar-search-results {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;
    background:
        radial-gradient(circle at 7% 0%, rgba(137, 107, 244, 0.13), transparent 30%),
        radial-gradient(circle at 100% 92%, rgba(32, 196, 158, 0.07), transparent 28%),
        linear-gradient(160deg, rgba(13, 17, 33, 0.82), rgba(5, 8, 18, 0.72));
    -webkit-backdrop-filter: blur(34px) saturate(155%);
    backdrop-filter: blur(34px) saturate(155%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 48px rgba(0, 0, 0, 0.2);
    animation: ssrHubIn 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

#sidebar-search-results::before {
    position: absolute;
    z-index: -1;
    top: -58px;
    left: 28px;
    width: 180px;
    height: 120px;
    border-radius: 50%;
    background: rgba(131, 101, 238, 0.12);
    filter: blur(45px);
    content: "";
    pointer-events: none;
}

@keyframes ssrHubIn {
    from { transform: translateY(8px) scale(0.985); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.ssr-search-head {
    display: flex;
    min-height: 63px;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.ssr-search-back {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(230, 225, 241, 0.62);
    font: inherit;
    font-size: 0.62rem;
    cursor: pointer;
    transition: transform 190ms cubic-bezier(0.16, 1, 0.3, 1), background 170ms ease, color 170ms ease;
}

.ssr-search-back:hover {
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.065);
    color: rgba(255, 255, 255, 0.9);
}

.ssr-search-heading {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ssr-search-heading > span {
    color: rgba(246, 243, 251, 0.9);
    font-size: 0.72rem;
    font-weight: 790;
    letter-spacing: -0.018em;
}

.ssr-search-heading > small {
    overflow: hidden;
    margin-top: 2px;
    color: rgba(188, 181, 205, 0.4);
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssr-search-total {
    display: grid;
    min-width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(195, 188, 211, 0.4);
    font-size: 0.52rem;
    font-weight: 740;
    font-variant-numeric: tabular-nums;
}

.ssr-search-total.has-results {
    border-color: rgba(178, 154, 255, 0.17);
    background: rgba(142, 112, 235, 0.1);
    color: #c6b7ff;
}

.ssr-filter-bar {
    display: flex;
    min-height: 47px;
    flex: 0 0 auto;
    gap: 5px;
    padding: 7px 9px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    scrollbar-width: none;
}

.ssr-filter-bar[hidden] { display: none !important; }
.ssr-filter-bar::-webkit-scrollbar { display: none; }

.ssr-filter {
    display: inline-flex;
    min-height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(200, 194, 215, 0.46);
    font: inherit;
    font-size: 0.52rem;
    font-weight: 660;
    cursor: pointer;
    transition: color 170ms ease, border-color 170ms ease, background 170ms ease, transform 190ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ssr-filter:hover { transform: translateY(-1px); color: rgba(238, 233, 247, 0.75); }

.ssr-filter:disabled {
    opacity: 0.36;
    cursor: default;
    pointer-events: none;
}

.ssr-filter.active {
    border-color: rgba(178, 155, 255, 0.22);
    background: linear-gradient(145deg, rgba(145, 116, 235, 0.17), rgba(87, 68, 181, 0.07));
    color: rgba(235, 229, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ssr-filter > small {
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding: 0 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(224, 218, 237, 0.48);
    font-size: 0.43rem;
    font-variant-numeric: tabular-nums;
}

.ssr-filter.active > small {
    background: rgba(187, 169, 255, 0.13);
    color: #cbbfff;
}

.ssr-search-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.09) transparent;
}

.ssr-search-content::-webkit-scrollbar { width: 3px; }
.ssr-search-content::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255, 255, 255, 0.09); }

.ssr-landing-intro {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 12px;
    padding: 15px 13px;
    border: 1px solid rgba(176, 153, 255, 0.11);
    border-radius: 18px;
    background:
        radial-gradient(circle at 6% 30%, rgba(147, 117, 244, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(143, 112, 236, 0.08), rgba(38, 194, 158, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.ssr-landing-orb {
    position: relative;
    display: grid;
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    place-items: center;
    border: 1px solid rgba(192, 173, 255, 0.2);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(158, 128, 249, 0.25), rgba(74, 56, 168, 0.08));
    color: #d7ccff;
    box-shadow: 0 10px 26px rgba(59, 40, 137, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.ssr-landing-orb > i:last-child {
    position: absolute;
    top: 7px;
    right: 7px;
    color: #65ddb9;
    font-size: 0.42rem;
}

.ssr-landing-intro > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ssr-landing-intro strong {
    color: rgba(246, 242, 252, 0.9);
    font-size: 0.72rem;
    font-weight: 790;
}

.ssr-landing-intro div > span {
    margin-top: 3px;
    color: rgba(192, 185, 208, 0.4);
    font-size: 0.51rem;
    line-height: 1.45;
}

.ssr-landing-section { margin-top: 13px; }

.ssr-landing-section > header,
.ssr-header {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px 6px;
}

.ssr-landing-section > header > span,
.ssr-header > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(204, 197, 219, 0.5);
    font-size: 0.52rem;
    font-weight: 740;
    letter-spacing: 0.015em;
    text-transform: none;
}

.ssr-landing-section > header i,
.ssr-header > span i { color: rgba(169, 145, 244, 0.64); font-size: 0.5rem; }

.ssr-landing-section > header > small,
.ssr-header > small {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(195, 188, 211, 0.36);
    font-size: 0.44rem;
    font-weight: 680;
}

.ssr-history-clear {
    border: 0;
    background: transparent;
    color: rgba(189, 171, 247, 0.52);
    font: inherit;
    font-size: 0.48rem;
    cursor: pointer;
}

.ssr-query-chips {
    display: flex;
    gap: 6px;
    padding: 1px 1px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ssr-query-chips::-webkit-scrollbar { display: none; }

.ssr-query-chip {
    display: inline-flex;
    min-height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(214, 208, 226, 0.57);
    font: inherit;
    font-size: 0.51rem;
    cursor: pointer;
}

.ssr-query-chip i { color: rgba(174, 151, 246, 0.58); font-size: 0.46rem; }

.ssr-recent-list { display: grid; gap: 3px; }

.ssr-recent-chat {
    display: flex;
    width: 100%;
    min-height: 55px;
    align-items: center;
    gap: 9px;
    padding: 6px 7px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 190ms cubic-bezier(0.16, 1, 0.3, 1), border-color 170ms ease, background 170ms ease;
}

.ssr-recent-chat:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.032);
}

.ssr-recent-chat > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ssr-recent-chat strong {
    overflow: hidden;
    color: rgba(239, 235, 247, 0.83);
    font-size: 0.63rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssr-recent-chat small {
    overflow: hidden;
    margin-top: 2px;
    color: rgba(184, 178, 199, 0.37);
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssr-recent-chat > i { color: rgba(203, 196, 218, 0.2); font-size: 0.46rem; }

.ssr-section {
    margin: 0;
    padding: 0 0 7px;
    border: 0;
}

.ssr-section + .ssr-section {
    margin-top: 4px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ssr-section[hidden] { display: none !important; }

.ssr-item {
    position: relative;
    display: flex;
    min-height: 60px;
    align-items: center;
    gap: 9px;
    margin: 0 0 2px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.ssr-item:hover,
.ssr-item:focus-visible {
    z-index: 1;
    transform: translateX(2px);
    outline: none;
    border-color: rgba(255, 255, 255, 0.065);
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ssr-avatar,
.ssr-msg-icon {
    display: grid;
    width: 43px;
    height: 43px;
    min-width: 43px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(129, 101, 222, 0.45), rgba(76, 60, 158, 0.2));
    background-position: center;
    background-size: cover;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.12);
    font-size: 0.7rem;
    font-weight: 750;
}

.ssr-avatar-group { background: linear-gradient(145deg, rgba(29, 184, 152, 0.45), rgba(17, 101, 101, 0.2)); }
.ssr-avatar-channel { background: linear-gradient(145deg, rgba(37, 174, 230, 0.48), rgba(31, 91, 171, 0.22)); }
.ssr-avatar-person { border-radius: 50%; background: linear-gradient(145deg, rgba(221, 105, 182, 0.43), rgba(112, 72, 180, 0.2)); }
.ssr-msg-icon { border-radius: 14px; background: linear-gradient(145deg, rgba(157, 127, 245, 0.24), rgba(79, 62, 168, 0.08)); color: #c6b6ff; }

.ssr-item .chat-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ssr-item .chat-name {
    overflow: hidden;
    color: rgba(241, 237, 248, 0.84);
    font-size: 0.65rem;
    font-weight: 690;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssr-item .chat-name > span {
    color: rgba(185, 178, 200, 0.38);
    font-size: 0.49rem;
    font-weight: 520;
}

.ssr-item .chat-preview {
    overflow: hidden;
    margin-top: 3px;
    color: rgba(186, 180, 201, 0.4);
    font-size: 0.5rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssr-highlight {
    padding: 0 1px;
    border-radius: 3px;
    background: rgba(151, 123, 239, 0.16);
    color: #c8baff;
    font-weight: 760;
}

.ssr-result-tail {
    display: flex;
    min-width: 45px;
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
}

.ssr-result-tail small {
    color: rgba(189, 182, 203, 0.26);
    font-size: 0.43rem;
    font-weight: 610;
}

.ssr-result-tail i { color: rgba(206, 198, 221, 0.19); font-size: 0.43rem; }

.ssr-loading-state { position: relative; overflow: hidden; padding: 4px 0; }

.ssr-loading-beam {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 -60%;
    width: 45%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
    animation: ssrBeam 1.35s ease-in-out infinite;
}

@keyframes ssrBeam { to { left: 125%; } }

.ssr-skeleton-row {
    display: flex;
    min-height: 61px;
    align-items: center;
    gap: 10px;
    padding: 8px 7px;
}

.ssr-skeleton-row > i {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
}

.ssr-skeleton-row > span { display: flex; flex: 1; flex-direction: column; gap: 7px; }
.ssr-skeleton-row b { width: 57%; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.045); }
.ssr-skeleton-row b:last-child { width: 82%; opacity: 0.66; }

.ssr-state-card {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 22px;
    text-align: center;
}

.ssr-state-card > span:first-child {
    position: relative;
    display: grid;
    width: 69px;
    height: 69px;
    place-items: center;
    border: 1px solid rgba(181, 157, 255, 0.16);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(153, 124, 245, 0.17), rgba(76, 60, 166, 0.04));
    color: rgba(201, 187, 255, 0.7);
    box-shadow: 0 16px 36px rgba(49, 34, 112, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 1.12rem;
}

.ssr-state-orb > i:last-child {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 6px;
    background: #18172a;
    color: rgba(243, 154, 177, 0.8);
    font-size: 0.44rem;
}

.ssr-state-card > strong {
    margin-top: 16px;
    color: rgba(241, 237, 248, 0.84);
    font-size: 0.77rem;
    font-weight: 780;
}

.ssr-state-card > small {
    max-width: 240px;
    margin-top: 6px;
    color: rgba(188, 181, 204, 0.4);
    font-size: 0.52rem;
    line-height: 1.5;
}

.ssr-search-tips { display: flex; gap: 6px; margin-top: 15px; }
.ssr-search-tips > span { display: inline-flex; min-height: 27px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(255,255,255,.02); color: rgba(198,191,214,.4); font-size: .46rem; }
.ssr-search-tips i { color: rgba(173,149,244,.55); font-size: .43rem; }

.ssr-state-card > button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 0 13px;
    border: 1px solid rgba(185, 164, 255, 0.18);
    border-radius: 12px;
    background: rgba(143, 114, 235, 0.12);
    color: rgba(232, 225, 255, 0.78);
    font: inherit;
    font-size: 0.52rem;
    font-weight: 690;
    cursor: pointer;
}

.ssr-filter-empty {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: rgba(189, 182, 204, 0.38);
    font-size: 0.52rem;
}

.ssr-filter-empty i { color: rgba(177, 153, 248, 0.5); font-size: 1.2rem; }

/* Universal inbox empty state: styled on desktop and mobile. */
#chats-list > .mobile-chat-empty {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 360px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 8px 9px 14px;
    padding: 34px 22px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 25px;
    background:
        radial-gradient(circle at 50% 12%, rgba(139, 108, 239, 0.13), transparent 32%),
        radial-gradient(circle at 92% 90%, rgba(38, 202, 164, 0.07), transparent 30%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 20px 50px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.mobile-chat-empty-glow {
    position: absolute;
    z-index: -1;
    top: 30px;
    left: 50%;
    width: 170px;
    height: 130px;
    margin: 0 !important;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(126, 95, 232, 0.13);
    filter: blur(46px);
}

.mobile-chat-empty-visual {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
}

.mobile-chat-empty-ring {
    position: absolute;
    margin: 0 !important;
    border: 1px solid rgba(181, 158, 255, 0.11);
    border-radius: 34px;
}

.mobile-chat-empty-ring.ring-one { inset: 5px; transform: rotate(11deg); }
.mobile-chat-empty-ring.ring-two { inset: 16px; transform: rotate(-9deg); border-radius: 25px; opacity: 0.7; }

#chats-list .mobile-chat-empty-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 61px;
    height: 61px;
    place-items: center;
    margin: 0;
    border: 1px solid rgba(190, 170, 255, 0.22);
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(156, 126, 246, 0.28), rgba(76, 59, 164, 0.09));
    color: rgba(218, 207, 255, 0.86);
    box-shadow: 0 16px 34px rgba(54, 37, 130, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.13);
    font-size: 1.05rem;
}

.mobile-chat-empty-spark {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(18, 21, 39, 0.9);
    font-size: 0.48rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.mobile-chat-empty-spark.spark-one { top: 11px; right: 4px; color: #62dcb9; }
.mobile-chat-empty-spark.spark-two { bottom: 7px; left: 4px; color: #c0adff; }

.mobile-chat-empty-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.mobile-chat-empty-copy > small {
    margin: 10px 0 0;
    color: rgba(174, 150, 246, 0.62);
    font-size: 0.47rem;
    font-weight: 790;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

#chats-list .mobile-chat-empty-copy > strong {
    margin: 7px 0 0;
    color: rgba(242, 238, 249, 0.9);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.022em;
}

.mobile-chat-empty-copy > p {
    max-width: 252px;
    margin: 7px 0 0;
    color: rgba(187, 180, 201, 0.43);
    font-size: 0.56rem;
    line-height: 1.55;
}

.mobile-chat-empty-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

#chats-list .mobile-chat-empty-features > span {
    display: inline-flex;
    max-width: none;
    min-height: 27px;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.022);
    color: rgba(199, 192, 215, 0.45);
    font-size: 0.45rem;
}

.mobile-chat-empty-features i { color: rgba(99, 218, 184, 0.68); font-size: 0.43rem; }

#chats-list .mobile-chat-empty-action {
    display: flex;
    width: min(230px, 100%);
    min-height: 48px;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    padding: 5px 7px;
    border: 1px solid rgba(198, 179, 255, 0.21);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(145, 113, 236, 0.34), rgba(91, 69, 191, 0.18));
    color: rgba(248, 245, 255, 0.94);
    font: inherit;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(58, 39, 139, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.13);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), filter 170ms ease;
}

#chats-list .mobile-chat-empty-action:hover { transform: translateY(-2px); filter: brightness(1.08); }

#chats-list .mobile-chat-empty-action > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    margin: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.56rem;
}

#chats-list .mobile-chat-empty-action > strong {
    flex: 1;
    margin: 0;
    color: inherit;
    font-size: 0.6rem;
    text-align: left;
}

#chats-list .mobile-chat-empty-action > i { margin-right: 6px; color: rgba(255, 255, 255, 0.5); font-size: 0.48rem; }

[data-theme="light"] #sidebar-search-results {
    border-color: rgba(65, 53, 98, 0.09);
    background:
        radial-gradient(circle at 7% 0%, rgba(137, 107, 244, 0.11), transparent 30%),
        radial-gradient(circle at 100% 92%, rgba(32, 196, 158, 0.065), transparent 28%),
        rgba(250, 250, 255, 0.72);
    box-shadow: inset 0 1px 0 #fff, 0 18px 44px rgba(76, 75, 105, 0.11);
}

[data-theme="light"] :is(.ssr-search-heading > span, .ssr-landing-intro strong, .ssr-recent-chat strong, .ssr-item .chat-name, .ssr-state-card > strong) {
    color: #30374e;
}

[data-theme="light"] :is(.ssr-search-heading > small, .ssr-landing-intro div > span, .ssr-recent-chat small, .ssr-item .chat-preview, .ssr-state-card > small) {
    color: rgba(48, 55, 78, 0.47);
}

[data-theme="light"] :is(.ssr-search-head, .ssr-filter-bar, .ssr-section + .ssr-section) { border-color: rgba(47, 51, 75, 0.065); }
[data-theme="light"] :is(.ssr-search-back, .ssr-filter, .ssr-query-chip) { border-color: rgba(47, 51, 75, 0.075); background-color: rgba(255, 255, 255, 0.52); color: rgba(48, 55, 78, 0.58); }
[data-theme="light"] .ssr-item:hover { border-color: rgba(71, 57, 117, 0.075); background: rgba(116, 91, 197, 0.055); }
[data-theme="light"] .ssr-state-orb > i:last-child { background: #f4f2fb; }

[data-theme="light"] #chats-list > .mobile-chat-empty {
    border-color: rgba(62, 51, 91, 0.075);
    background:
        radial-gradient(circle at 50% 12%, rgba(139, 108, 239, 0.11), transparent 32%),
        radial-gradient(circle at 92% 90%, rgba(38, 202, 164, 0.06), transparent 30%),
        rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 #fff, 0 18px 42px rgba(76, 75, 105, 0.08);
}

[data-theme="light"] #chats-list .mobile-chat-empty-copy > strong { color: #30374e; }
[data-theme="light"] .mobile-chat-empty-copy > p { color: rgba(48, 55, 78, 0.48); }
[data-theme="light"] .mobile-chat-empty-spark { background: rgba(250, 250, 255, 0.94); }

@media (max-width: 768px) {
    .modern-sidebar.search-mode > .sidebar-content { padding: 0 var(--mobile-inbox-pad) 8px !important; }

    #sidebar-search-results {
        height: 100%;
        border-radius: 23px;
        background:
            radial-gradient(circle at 8% 0%, rgba(137, 107, 244, 0.14), transparent 31%),
            linear-gradient(160deg, rgba(13, 17, 33, 0.9), rgba(5, 8, 18, 0.82));
    }

    .ssr-search-head { min-height: 59px; }
    .ssr-filter-bar { padding-right: 8px; padding-left: 8px; scroll-padding-inline: 8px; }
    .ssr-search-content { padding: 8px 7px calc(13px + env(safe-area-inset-bottom)); }
    .ssr-item { min-height: 62px; }

    #chats-list > .mobile-chat-empty {
        min-height: 340px;
        margin: 7px var(--mobile-inbox-pad) 16px;
        padding: 30px 18px;
        border-radius: 24px;
    }

    .mobile-chat-empty-visual { width: 96px; height: 96px; }
    #chats-list .mobile-chat-empty-icon { width: 58px; height: 58px; }
}

@media (max-width: 390px) {
    .ssr-search-heading > small { max-width: 185px; }
    .ssr-result-tail small { display: none; }
    .ssr-result-tail { min-width: 14px; justify-content: center; }
    .ssr-search-tips { flex-wrap: wrap; justify-content: center; }
    #chats-list > .mobile-chat-empty { min-height: 320px; margin-right: 9px; margin-left: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    #sidebar-search-results,
    .ssr-loading-beam,
    .ssr-item,
    .ssr-recent-chat,
    #chats-list .mobile-chat-empty-action {
        animation: none !important;
        transition: none !important;
    }
}
