/* Search uses the app's existing palette and navigation. */
.app-header #open-search{width:36px;min-width:36px;height:40px;padding:8px;color:#b9cbd4}
.app-header #open-search:hover,.app-header #open-search:focus-visible{color:#59d4df;background:#15202a}
.app-header:not(.profile-page-header)>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-header.search-header{justify-content:flex-start;gap:12px}
.search-header>strong{flex:1;font-size:16px}
.search-back{font-size:24px!important;min-width:36px;height:40px}
.search-field{display:flex;align-items:center;gap:10px;margin:16px 14px 4px;padding:0 12px;border:1px solid #3e4d59;border-radius:13px;background:#11181e;min-height:46px}
.search-field:focus-within{border-color:#70b9c7;box-shadow:0 0 0 2px #58ccd912}
.search-field>svg,.search-empty>svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;color:#a3b5c1}
.search-field input{flex:1;min-width:0;width:100%;padding:12px 0;margin:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:16px;color:#edf3f7}
.search-field input::-webkit-search-cancel-button{display:none}
.search-clear{padding:0;width:28px;height:32px;border:0;background:transparent;font-size:24px;color:#a9bac4}
.search-tabs{gap:0}.search-tabs button{flex:1;font-size:14px}
.search-status{margin:14px 16px 8px;font-size:12px;color:#9bafbd;min-height:16px}
.search-result{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid #1c2931;padding:13px 16px;background:transparent;color:#e8f0f5}
.search-result:hover,.search-result:focus-visible{background:#121e27}
.search-avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1px solid #40535f}
.search-initial,.search-kind{display:grid;place-items:center;background:#16232d;color:#71cbd3;font-size:22px}
.search-thumbnail{width:66px;height:80px;object-fit:cover;border-radius:8px;flex-shrink:0;background:#15212a}
.search-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.search-copy strong{font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.search-copy small{font-size:12px;color:#9fb2bf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-excerpt{font-size:12px;line-height:1.5;color:#aabac6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.search-chevron{color:#6b8393;font-size:22px}.search-more{display:block;margin:20px auto;padding:10px 22px;font-size:13px}
.search-empty{text-align:center;padding:38px 24px;color:#8ea4b3}.search-empty>svg{width:36px;height:36px;opacity:.6}
.search-empty h2{font-size:17px;color:#dce6eb;margin:18px 0 8px}.search-empty p{font-size:14px;line-height:1.6;margin:0}
.search-page [hidden]{display:none!important}

/* Subtle brand accents: neutral surfaces, spectrum only around interactive edges. */
.search-header{background:#080d12f5}
.app-header.search-header>strong{color:#e7edf2;font-size:16px}
.search-page{background:radial-gradient(ellipse at 100% 0,#22b8d308,transparent 240px),#080d12}
.search-field{border:1px solid transparent;background:linear-gradient(#11171e,#11171e) padding-box,linear-gradient(110deg,#a66b535c,#936cb66b,#46799680,#39a29466) border-box;transition:box-shadow .18s ease,border-color .18s ease}
.search-field:focus-within{border-color:transparent;background:linear-gradient(#121a22,#121a22) padding-box,linear-gradient(110deg,#ed9b6a99,#b88ee7aa,#4cbbddaa,#35c4ac99) border-box;box-shadow:0 0 0 3px #5a9eb80b}
.search-field>svg{color:#8ec8d2}
.search-tabs{padding:0 14px;gap:12px;border-bottom-color:#24323c;position:relative}
.search-tabs button{position:relative;border-bottom:0;margin-top:4px;padding:14px 0;transition:color .18s ease,background .18s ease;border-radius:8px 8px 0 0}
.search-tabs button.active{background:linear-gradient(0deg,#64a6c110,transparent);color:#edf7fa}
.search-tabs button.active:after{content:'';position:absolute;bottom:-1px;height:2px;left:8px;right:8px;border-radius:4px;background:linear-gradient(90deg,#ff966b,#ba8de0,#40bee9,#29c5ad)}
.search-result{transition:background .18s ease;min-height:76px}
.search-result:active{background:#1a2934}
.search-avatar{border-color:#617484;box-shadow:0 0 0 3px #22313e44}
.search-kind{border:1px solid transparent;background:linear-gradient(145deg,#1b2331,#11262a) padding-box,linear-gradient(135deg,#bb8de444,#40c7ce66) border-box;color:#8edbdc;font-size:27px}
.search-thumbnail{box-shadow:0 3px 10px #0003}
.search-copy strong{font-weight:650}
.search-chevron{transition:color .18s ease,transform .18s ease}
.search-result:hover .search-chevron{color:#72d5df;transform:translateX(2px)}
.search-more{border:1px solid transparent;background:linear-gradient(#15202a,#15202a) padding-box,linear-gradient(110deg,#d38b6b80,#aa89ce88,#34bfcc88) border-box;border-radius:11px;font-weight:600}
.search-empty>svg{color:#88c8d5;opacity:.85;filter:drop-shadow(0 0 12px #3ac8db22)}
.search-empty h2{font-weight:650}
@media(prefers-reduced-motion:reduce){.search-field,.search-tabs button,.search-result,.search-chevron{transition:none}}

.profile-top .profile-stats button{appearance:none;border:0;padding:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:center;min-width:0;cursor:pointer;border-radius:5px}
.profile-top .profile-stats button:hover{color:#74d7df}
.connections-content .connection-tabs{padding:0;gap:0;margin:16px 0 12px}.connection-tabs button{flex:1}
.connections-content .search-field{margin:0 0 12px}.connection-status{font-size:12px;color:#99aebc;min-height:18px;margin:0}
.connection-list{max-height:55dvh;overflow:auto;overscroll-behavior:contain}
.connection-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #22313b}
.connection-person{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:transparent;padding:0;text-align:left}
.connection-person .avatar{width:42px;height:42px;border-radius:50%;flex-shrink:0}
.connection-person>span:last-child{min-width:0}.connection-person strong,.connection-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connection-person strong{font-size:13px}.connection-person small{font-size:11px;margin-top:2px}
.connection-follow{flex-shrink:0;font-size:12px;font-weight:600;padding:7px 10px;border:1px solid transparent;background:linear-gradient(#193039,#193039) padding-box,var(--rainbow) border-box;color:#d9f4f5;border-radius:8px}
.connection-follow[aria-pressed=true]{background:#17212a;border-color:#36444e;color:#afbdc7}
.connection-empty{padding:24px 8px;color:#9bafbd;text-align:center;font-size:13px}

.app-header .header-bell{width:34px;min-width:34px;padding:7px;flex-shrink:0}
.app-header .header-bell svg{width:20px;height:20px}
.app-header .critix-volume-panel{position:fixed;right:12px;top:calc(100% + 8px);width:min(260px,calc(100vw - 24px))}
@media(max-width:360px){.app-header.profile-page-header{gap:6px}.profile-page-header .profile-brand{width:24px;height:24px}}

.header-bell{position:relative}
.notification-badge{position:absolute;top:0;right:-3px;background:linear-gradient(110deg,#ea6588,#8a72d4);color:#fff;border:2px solid #080d12;min-width:16px;height:17px;padding:0 3px;border-radius:12px;font-size:9px;line-height:13px;text-align:center;font-weight:700}
.notification-toolbar{display:flex;justify-content:flex-end}.notification-toolbar button{font-size:12px;color:#7dd3dd;padding:6px 0}
.notification-list{max-height:57dvh;overflow:auto;overscroll-behavior:contain}
.notification-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:14px 8px;border:0;border-radius:9px;background:transparent;border-bottom:1px solid #24313a;font-size:13px;line-height:1.5}
.notification-row .avatar{width:42px;height:42px;border-radius:50%;flex-shrink:0}
.notification-row>span:last-child{min-width:0;overflow-wrap:anywhere}.notification-row small{display:block;font-size:11px;margin-top:4px;color:#8ca5b5}
.notification-row.unread{background:linear-gradient(110deg,#9d78d110,#31b8c110)}
.notification-row.unread:after{content:'';width:6px;height:6px;border-radius:50%;background:#67cedd;flex-shrink:0;margin-left:auto}
.notification-status{font-size:12px;color:#9aafbd}

.app-header .profile-favorites{width:28px;min-width:28px;height:38px;padding:4px;flex-shrink:0}
.profile-favorites svg{width:20px;height:20px}
.bookmark[aria-pressed=true]{color:#6bd7df}.bookmark[aria-pressed=true] svg{fill:#6bd7df22}
.astro-feed-post footer .bookmark{margin-left:auto}
