body.sv-global-search-open { overflow: hidden; }
.sv-global-search[hidden] { display: none; }
.sv-global-search-start[hidden],.sv-global-search-tabs[hidden],.sv-global-search-loading[hidden],.sv-global-search-results[hidden] { display: none; }
.sv-global-search { position: fixed; z-index: 10000; inset: 0; display: grid; align-items: start; justify-items: center; padding: 72px 20px 20px; }
.sv-global-search-backdrop { position: absolute; inset: 0; background: rgba(7, 18, 38, .62); backdrop-filter: blur(4px); animation: sv-search-fade .16s ease both; }
.sv-global-search-dialog { position: relative; width: min(870px, 100%); max-height: calc(100vh - 92px); overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; border: 1px solid rgba(215, 225, 238, .9); border-radius: 18px; color: #12203b; background: #fff; box-shadow: 0 30px 90px rgba(3, 17, 38, .3); animation: sv-search-rise .2s ease both; }
.sv-global-search-head { min-height: 84px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e8edf4; }
.sv-global-search-field { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1.5px solid #0b70f4; border-radius: 11px; background: #f8fbff; box-shadow: 0 0 0 3px rgba(8, 104, 247, .08); }
.sv-global-search-field > .sv-icon { flex: 0 0 auto; width: 21px; height: 21px; color: #126fe5; stroke-width: 2.2; }
.sv-global-search-field input { min-width: 0; height: 100%; flex: 1; padding: 0; border: 0; outline: 0; color: #12203b; background: transparent; font-size: 15px; }
.sv-global-search-field input::placeholder { color: #8190a7; }
.sv-global-search-field input::-webkit-search-cancel-button { display: none; }
.sv-global-search-field kbd { padding: 4px 7px; border: 1px solid #d8e0eb; border-bottom-width: 2px; border-radius: 5px; color: #718097; background: #fff; font: 600 9px/1 Inter, sans-serif; }
.sv-global-search-field button,.sv-global-search-close,.sv-global-search-back { padding: 0; border: 0; background: transparent; cursor: pointer; }
.sv-global-search-field button { width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #6f7f96; background: #e9eef5; }
.sv-global-search-field button:not([hidden]) { display: grid; }
.sv-global-search-field button svg,.sv-global-search-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sv-global-search-close,.sv-global-search-back { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #53647d; }
.sv-global-search-close:hover,.sv-global-search-back:hover { color: #0868f7; background: #edf5ff; }
.sv-global-search-back { visibility: hidden; }
.sv-global-search-back .sv-icon { width: 19px; transform: rotate(180deg); }
.sv-global-search-tabs { min-height: 54px; overflow-x: auto; display: flex; gap: 4px; padding: 7px 18px 0; border-bottom: 1px solid #e8edf4; scrollbar-width: none; }
.sv-global-search-tabs::-webkit-scrollbar { display: none; }
.sv-global-search-tabs button { position: relative; flex: 0 0 auto; min-height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 0; color: #687991; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.sv-global-search-tabs button::after { position: absolute; right: 10px; bottom: 0; left: 10px; height: 2px; border-radius: 2px; background: #0868f7; content: ''; transform: scaleX(0); transition: transform .15s; }
.sv-global-search-tabs button.active { color: #0868f7; }
.sv-global-search-tabs button.active::after { transform: scaleX(1); }
.sv-global-search-tabs span { min-width: 20px; padding: 3px 6px; border-radius: 10px; color: #738197; background: #edf1f6; font-size: 9px; text-align: center; }
.sv-global-search-tabs button.active span { color: #0868f7; background: #e6f1ff; }
.sv-global-search-body { min-height: 350px; overflow-y: auto; overscroll-behavior: contain; }
.sv-global-search-start { display: grid; gap: 26px; padding: 24px 26px 30px; }
.sv-global-search-start section > header,.sv-search-section > header { min-height: 31px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.sv-global-search-start h2,.sv-search-section h2 { margin: 0; color: #16233c; font-size: 12px; letter-spacing: -.1px; }
.sv-global-search-start header button,.sv-search-section > header button { padding: 0; border: 0; color: #0868f7; background: transparent; font-size: 10px; cursor: pointer; }
.sv-global-search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-global-search-chips button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #e0e7f0; border-radius: 8px; color: #43546d; background: #f8fafc; font-size: 10px; cursor: pointer; }
.sv-global-search-chips button:hover { border-color: #9fc7fa; color: #0868f7; background: #edf5ff; }
.sv-global-search-chips .sv-icon { width: 13px; height: 13px; }
.sv-global-search-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sv-global-search-shortcuts a { min-width: 0; min-height: 72px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e6ebf2; border-radius: 10px; transition: border-color .15s, transform .15s; }
.sv-global-search-shortcuts a:hover { border-color: #b9d5f9; transform: translateY(-1px); }
.sv-global-search-shortcuts i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #0873ef; background: #eaf4ff; }
.sv-global-search-shortcuts i .sv-icon { width: 21px; }
.sv-global-search-shortcuts span { min-width: 0; display: flex; flex-direction: column; }
.sv-global-search-shortcuts strong { overflow: hidden; color: #182640; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.sv-global-search-shortcuts small { overflow: hidden; margin-top: 3px; color: #7b899d; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.sv-global-search-shortcuts > a > .sv-icon { width: 14px; color: #92a0b2; }
.sv-global-search-loading { min-height: 350px; place-items: center; align-content: center; gap: 12px; color: #708098; font-size: 11px; }
.sv-global-search-loading:not([hidden]) { display: grid; }
.sv-global-search-loading i { width: 27px; height: 27px; border: 3px solid #deebfa; border-top-color: #0868f7; border-radius: 50%; animation: sv-search-spin .7s linear infinite; }
.sv-global-search-results { padding: 5px 0 18px; }
.sv-search-summary { display: flex; justify-content: space-between; gap: 15px; padding: 15px 24px 9px; color: #718098; font-size: 9px; }
.sv-search-summary strong { color: #263650; }
.sv-search-section { padding: 9px 24px 11px; }
.sv-search-list { border: 1px solid #e7ecf3; border-radius: 10px; overflow: hidden; }
.sv-search-item { min-height: 74px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #edf1f6; background: #fff; }
.sv-search-item:last-child { border-bottom: 0; }
.sv-search-item:focus-within,.sv-search-item.is-keyboard-active { background: #f6faff; }
.sv-search-item > i,.sv-search-item > img { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #0872ef; background: #e9f3ff; object-fit: cover; }
.sv-search-item > img { border-radius: 50%; }
.sv-search-item > i .sv-icon { width: 20px; }
.sv-search-item > span { min-width: 0; display: flex; flex-direction: column; }
.sv-search-item h3 { overflow: hidden; margin: 0; color: #15243f; font-size: 12px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.sv-search-item h3 a:hover { color: #0868f7; }
.sv-search-item p { overflow: hidden; margin: 3px 0 0; color: #78879c; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.sv-search-item p b { color: #52647e; font-weight: 600; }
.sv-search-item > small { display: flex; align-items: center; gap: 10px; color: #8190a4; font-size: 8px; white-space: nowrap; }
.sv-search-item > small span { display: inline-flex; align-items: center; gap: 4px; }
.sv-search-item > small .sv-icon { width: 13px; height: 13px; }
.sv-search-member { grid-template-columns: 48px minmax(0, 1fr) auto; }
.sv-search-member > img { width: 46px; height: 46px; }
.sv-search-member button,.sv-search-member > a { min-width: 84px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #0868f7; border-radius: 7px; color: #fff; background: #0868f7; font-size: 9px; font-weight: 700; cursor: pointer; }
.sv-search-member button.following,.sv-search-member button.pending,.sv-search-member > a { color: #49617f; border-color: #d8e1ec; background: #f3f6fa; }
.sv-search-member button:disabled { opacity: .6; cursor: wait; }
.sv-search-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-search-tag-list a { min-height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e0e7f0; border-radius: 8px; color: #43546e; background: #fff; font-size: 10px; }
.sv-search-tag-list a:hover { color: #0868f7; border-color: #afd0fa; }
.sv-search-tag-list b { color: #0868f7; }
.sv-search-tag-list small { color: #8a97aa; font-size: 8px; }
.sv-global-search-empty { min-height: 315px; display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; }
.sv-global-search-empty i { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: #7da4d6; background: #eef5fd; }
.sv-global-search-empty i .sv-icon { width: 28px; height: 28px; }
.sv-global-search-empty h2 { margin: 15px 0 5px; font-size: 15px; }
.sv-global-search-empty p { max-width: 360px; margin: 0; color: #718198; font-size: 10px; }
.sv-global-search-foot { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 22px; border-top: 1px solid #e8edf4; color: #8290a4; background: #fafbfd; font-size: 9px; }
.sv-global-search-foot > span { display: flex; align-items: center; gap: 5px; }
.sv-global-search-foot kbd { min-width: 20px; padding: 3px 5px; border: 1px solid #d8e0e9; border-bottom-width: 2px; border-radius: 4px; color: #6f7e91; background: #fff; font: 600 8px/1 Inter, sans-serif; text-align: center; }
.sv-global-search-foot a { display: inline-flex; align-items: center; gap: 6px; color: #0868f7; font-weight: 700; }
.sv-global-search-foot a .sv-icon { width: 14px; }
[data-theme='dark'] .sv-global-search-dialog { border-color: #2a3b52; color: #edf4ff; background: #111d2d; }
[data-theme='dark'] .sv-global-search-head,[data-theme='dark'] .sv-global-search-tabs,[data-theme='dark'] .sv-global-search-foot { border-color: #29384d; }
[data-theme='dark'] .sv-global-search-field { border-color: #2d8cff; background: #17263a; }
[data-theme='dark'] .sv-global-search-field input,[data-theme='dark'] .sv-global-search-start h2,[data-theme='dark'] .sv-search-section h2,[data-theme='dark'] .sv-search-item h3 { color: #eef5ff; }
[data-theme='dark'] .sv-global-search-field kbd,[data-theme='dark'] .sv-global-search-foot kbd { border-color: #394a61; color: #a9b7ca; background: #17263a; }
[data-theme='dark'] .sv-global-search-shortcuts a,[data-theme='dark'] .sv-search-list,[data-theme='dark'] .sv-search-item,[data-theme='dark'] .sv-search-tag-list a { border-color: #29394f; background: #142236; }
[data-theme='dark'] .sv-global-search-shortcuts strong { color: #eaf2ff; }
[data-theme='dark'] .sv-search-item:focus-within,[data-theme='dark'] .sv-search-item.is-keyboard-active { background: #192b43; }
[data-theme='dark'] .sv-global-search-chips button,[data-theme='dark'] .sv-global-search-foot { border-color: #304158; color: #b5c1d1; background: #152338; }
@media (max-width: 760px) {
  .sv-global-search { padding: 0; }
  .sv-global-search-dialog { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .sv-global-search-head { min-height: 69px; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 9px 12px; }
  .sv-global-search-back { visibility: visible; width: 38px; height: 38px; }
  .sv-global-search-close { display: none; }
  .sv-global-search-field { height: 47px; padding-inline: 12px; }
  .sv-global-search-field input { font-size: 13px; }
  .sv-global-search-field kbd { display: none; }
  .sv-global-search-tabs { min-height: 49px; padding: 4px 10px 0; }
  .sv-global-search-tabs button { min-height: 45px; padding-inline: 10px; font-size: 10px; }
  .sv-global-search-body { min-height: 0; }
  .sv-global-search-start { gap: 23px; padding: 20px 16px 25px; }
  .sv-global-search-shortcuts { grid-template-columns: 1fr; }
  .sv-global-search-shortcuts a { min-height: 65px; }
  .sv-search-summary { padding: 13px 15px 6px; }
  .sv-search-section { padding: 8px 12px 10px; }
  .sv-search-item { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .sv-search-item > small { grid-column: 2; margin-top: -5px; }
  .sv-search-member { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .sv-search-member > img { width: 42px; height: 42px; }
  .sv-search-member button,.sv-search-member > a { min-width: 68px; padding-inline: 8px; }
  .sv-global-search-foot { min-height: 49px; padding-inline: 15px; }
  .sv-global-search-foot > span { display: none; }
  .sv-global-search-foot a { margin-left: auto; }
}
@keyframes sv-search-fade { from { opacity: 0; } }
@keyframes sv-search-rise { from { opacity: 0; transform: translateY(-12px) scale(.99); } }
@keyframes sv-search-spin { to { transform: rotate(360deg); } }
