:root {
  --dashboard-bg: #ffffff;
  --dashboard-ink: #0f172a;
  --dashboard-line: #e5e7eb;
}

html {
  color-scheme: light;
}

body.dashboard-shell {
  font-family: "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--dashboard-bg);
  color: var(--dashboard-ink);
}

body.dashboard-shell::before,
body.dashboard-shell::after {
  content: none;
}

.glass-header {
  position: relative;
  border-bottom: 1px solid var(--dashboard-line);
  background: #ffffff;
}

.glass-strip {
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-trigger {
  position: relative;
  display: block;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  padding: 10px 0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.search-trigger:hover {
  border-color: #93c5fd;
}

.search-trigger:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px 24px;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(6px);
}

.search-modal {
  width: min(820px, 100%);
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.search-modal-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.search-input {
  display: block;
  width: 100%;
  border: 2px solid #2563eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 44px 12px 44px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-clear {
  position: absolute;
  inset-block: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  padding-right: 14px;
  color: #64748b;
}

.search-clear:hover {
  color: #0f172a;
}

.search-panel-body {
  max-height: min(70vh, 620px);
  overflow-y: auto;
}

.search-panel-section + .search-panel-section {
  border-top: 1px solid #e5e7eb;
}

.search-panel-title {
  padding: 14px 20px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}

.search-result-item {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 20px;
  text-align: left;
  transition: background-color 120ms ease, color 120ms ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: #f8fafc;
  outline: none;
}

.search-result-item + .search-result-item {
  border-top: 1px solid #eff3f8;
}

.search-result-icon {
  display: inline-flex;
  height: 26px;
  width: 26px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.search-result-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
}

.search-result-title {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.search-result-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.search-empty {
  padding: 10px 20px 18px;
}

.search-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.search-empty-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.search-panel-footer {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 14px 20px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

@media (max-width: 767px) {
  .search-overlay {
    padding-top: 18px;
  }

  .search-modal {
    border-radius: 16px;
  }
}

#main-scroll-area {
  scroll-behavior: smooth;
}

#main-scroll-area::-webkit-scrollbar {
  width: 10px;
}

#main-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

#main-scroll-area::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  background-clip: padding-box;
}

#main-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.45);
  background-clip: padding-box;
}
