/* 通知中心 + 全局搜索 */
.dash-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

/* 欢迎卡片右侧 */
.welcome-card__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
}

.welcome-card .dash-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.welcome-card .dash-tool-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.welcome-card .dash-tool-btn:active {
  transform: translateY(0);
}

.welcome-card .dash-tool-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}

/* 其它页顶栏右上角（若使用 banner__actions） */
.brand-banner .banner__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  margin: 0;
  gap: 6px;
}

.dash-tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}

.dash-tool-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.65);
}

.dash-tool-btn:active {
  transform: scale(0.96);
}

.dash-tool-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  flex-shrink: 0;
}
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f53f3f;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.notif-badge.hidden {
  display: none;
}
.feature-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.feature-overlay.hidden {
  display: none;
}
.feature-sheet {
  width: min(520px, 100%);
  max-height: min(72vh, 640px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feature-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e6eb;
}
.feature-sheet-head h3 {
  margin: 0;
  font-size: 16px;
}
.feature-sheet-body {
  overflow: auto;
  flex: 1;
  padding: 8px 0;
}
.feature-sheet-foot {
  padding: 10px 16px;
  border-top: 1px solid #e5e6eb;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.search-input-wrap {
  padding: 12px 16px 8px;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  font-size: 14px;
}
.search-result-item,
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f2f3f5;
  cursor: pointer;
}
.search-result-item:hover,
.notif-item:hover {
  background: #f7f8fa;
}
.search-result-item.unread,
.notif-item.unread {
  background: #f0f7ff;
}
.search-result-title,
.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
}
.search-result-sub,
.notif-item-body {
  font-size: 12px;
  color: #86909c;
  margin-top: 4px;
}
.search-result-kind,
.notif-item-time {
  font-size: 11px;
  color: #c9cdd4;
  margin-top: 4px;
}
.team-feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.team-feed-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(22, 93, 255, 0.2);
  color: #93c5fd;
}
.kb-form-grid {
  display: grid;
  gap: 12px;
}
.kb-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.kb-form-grid input,
.kb-form-grid select,
.kb-form-grid textarea {
  padding: 8px 10px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  font-size: 13px;
}
.kb-form-grid textarea {
  min-height: 160px;
  resize: vertical;
}
.admin-search-drop {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(420px, 90vw);
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  z-index: 100;
  margin-top: 4px;
}
.admin-search-drop.hidden {
  display: none;
}
.navbar-search {
  position: relative;
}
