/* ── Topbar ── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 48px;
  display: none;
  align-items: stretch;
  flex-shrink: 0;
}
body.search-mode .topbar { display: flex; }
.topbar-left  { display: flex; align-items: center; gap: 16px; flex: 1; }
.topbar-right { display: flex; align-items: center; border-left: 1px solid var(--border); margin-left: 12px; padding-left: 16px; }

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding-right: 16px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Topbar search — hidden on homepage, shown in search-mode */
.search-wrap, .sources-btn {
  display: none;
}
body.search-mode .search-wrap,
body.search-mode .sources-btn {
  display: flex;
}

.search-wrap {
  flex: 1;
  max-width: 440px;
  position: relative;
  align-items: center;
}
.search-wrap input {
  width: 100%;
  padding: 6px 12px 6px 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 13px;
  outline: none;
}
.search-wrap input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(74,144,217,.1); }
.search-icon { position: absolute; left: 9px; color: var(--text-dim); font-size: 12px; pointer-events: none; }

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #eef4fd 0%, var(--base-bg) 65%);
}
body.search-mode .hero { display: none; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  animation: hero-fadein .4s ease both;
}

@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.hero-title   { font-size: 28px; font-weight: 800; text-align: center; line-height: 1.2; letter-spacing: -.3px; }
.hero-sub     { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.6; max-width: 420px; }

.hero-footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-stats { font-size: 11px; color: var(--text-dim); }

.hero-search-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-search-wrap input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: #f8fafc;
  font-size: 14px;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hero-search-wrap input:focus { border-color: var(--accent); background: var(--surface); }
.hero-search-icon { position: absolute; left: 11px; color: var(--text-dim); font-size: 13px; pointer-events: none; }
.hero-search-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--accent-dark);
  border: 1.5px solid #c6d8f5;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.hero-search-btn:hover { background: #eef4fd; border-color: var(--accent); }

.mcp-hint { font-size: 11px; color: var(--text-dim); }
.mcp-hint a { color: var(--accent); text-decoration: none; }
.mcp-hint a:hover { text-decoration: underline; }

/* ── Search layout (40/60 split) ── */
.search-layout {
  display: none;
  flex: 1;
  overflow: hidden;
}
body.search-mode .search-layout { display: flex; }

.results-panel {
  width: 40%;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.results-list {
  flex: 1;
  overflow-y: auto;
}

.detail-panel {
  flex: 1;
  background: var(--base-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.detail-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
}
