[v-cloak] {
  display: none;
}

.search-shell {
  max-width: 880px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-icon {
  position: absolute;
  left: 0.9rem;
  width: 18px;
  height: 18px;
  color: var(--faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.85rem 2.6rem 0.85rem 2.6rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.18);
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 0.6rem;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  color: var(--ink);
}

.search-spinner {
  position: absolute;
  right: 0.85rem;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: search-spin 0.7s linear infinite;
}

@keyframes search-spin {
  to {
    transform: rotate(360deg);
  }
}

.search-chips {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.search-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--dur) ease, background var(--dur) ease;
}

.search-chip:hover {
  color: var(--ink);
}

.search-chip.is-active {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--accent);
}

.search-note {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.search-group {
  margin-top: 1.5rem;
}

.search-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.search-count {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: 0;
  font-size: 11px;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background var(--dur) ease, border-color var(--dur) ease;
}

.search-row:hover,
.search-row.is-cursor {
  background: var(--surface-2);
  border-color: var(--border);
  color: inherit;
  text-decoration: none;
}

.search-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.search-row-title {
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-row-sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-row-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.search-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.search-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-cover {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.search-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-cover-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}

.search-cover.is-empty img {
  display: none;
}

.search-clan {
  color: var(--accent);
  font-weight: 600;
}

.search-dash {
  color: var(--faint);
  margin: 0 0.3rem;
}

.search-ver {
  color: var(--muted);
  font-weight: 500;
}

.search-badge {
  font-style: normal;
  margin-left: 0.3rem;
  font-size: 11px;
}

.search-badge-donor {
  color: oklch(0.8 0.14 85);
}

.is-online {
  color: oklch(0.78 0.16 150);
}

.search-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

.search-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  min-width: 46px;
}

.search-stat b {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.search-stat i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.search-stat-stars b {
  color: var(--accent);
}

.search-stat-status b {
  font-family: inherit;
  font-size: 10.5px;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.search-stat-status[data-status='2'] b {
  color: oklch(0.8 0.14 85);
  border-color: oklch(0.5 0.12 85 / 0.5);
}

.search-stat-status[data-status='3'] b {
  color: oklch(0.78 0.14 150);
  border-color: oklch(0.5 0.12 150 / 0.5);
}

.search-stat-status[data-status='5'] b {
  color: oklch(0.75 0.13 320);
  border-color: oklch(0.5 0.12 320 / 0.5);
}

.search-dim {
  color: var(--faint);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex: 0 0 auto;
}

.search-row mark {
  background: oklch(from var(--accent) l c h / 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.search-hint {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
}

.search-hint kbd {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  margin: 0 0.1rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
}

.notif-shell {
  max-width: 820px;
  margin: 0 auto;
}

.notif-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.notif-head h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.notif-head-text p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.notif-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.notif-head-actions {
  flex: 0 0 auto;
}

.notif-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.notif-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.notif-tab:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.notif-tab.is-active {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.notif-tab-count {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  padding: 0.02rem 0.32rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.notif-tab-count.is-hot {
  background: oklch(0.62 0.21 25);
  color: #fff;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-day {
  margin: 0.9rem 0 0.35rem;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.notif-day:first-child {
  margin-top: 0;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background var(--dur) ease, border-color var(--dur) ease;
}

.notif-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.notif-item.is-unread {
  background: oklch(from var(--accent) l c h / 0.07);
  border-color: oklch(from var(--accent) l c h / 0.28);
}

.notif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

.notif-item.is-unread .notif-icon {
  color: var(--accent);
}

.notif-icon-friend_added,
.notif-icon-clan_request_accepted {
  color: oklch(0.78 0.16 150);
}

.notif-icon-friend_removed,
.notif-icon-clan_request_denied,
.notif-icon-clan_kicked,
.notif-icon-clan_left {
  color: oklch(0.68 0.18 25);
}

.notif-icon-clan_promoted,
.notif-icon-clan_ownership {
  color: oklch(0.82 0.15 85);
}

.notif-icon-clan_invited,
.notif-icon-clan_request_sent,
.notif-icon-clan_joined,
.notif-icon-clan_demoted {
  color: var(--accent);
}

.notif-actor {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.notif-body {
  flex: 1 1 auto;
  min-width: 0;
}

.notif-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.notif-title {
  font-size: 13.5px;
  color: var(--ink);
}

.notif-time {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--faint);
}

.notif-text {
  margin: 0.1rem 0 0;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-actor-link {
  color: var(--muted);
  font-weight: 600;
}

.notif-actor-link:hover {
  color: var(--accent);
}

.notif-go {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
  padding: 0.3rem;
}

.notif-go:hover {
  color: var(--accent);
}

.notif-empty {
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.notif-empty p {
  margin: 0.2rem 0;
}

.notif-empty-icon {
  font-size: 26px;
  color: var(--faint);
}

.pager {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .search-stats .search-stat:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .search-row-meta {
    display: none;
  }

  .search-stats {
    gap: 0.6rem;
  }

  .search-stats .search-stat:nth-child(n + 2) {
    display: none;
  }

  .search-stats .search-stat:first-child {
    display: flex;
  }

  .search-cover {
    width: 54px;
    height: 32px;
  }

  .search-row {
    gap: 0.55rem;
    padding: 0.5rem;
  }

  .search-row-sub {
    font-size: 11.5px;
  }
}