:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --stone-950: #1c1917;
  --stone-700: #44403c;
  --line: rgba(120, 53, 15, 0.18);
  --shadow: 0 22px 70px rgba(120, 53, 15, 0.20);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, .25), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(120, 53, 15, .16), transparent 30rem),
    linear-gradient(140deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 390px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.82);
  backdrop-filter: blur(18px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 100vh;
  overflow: hidden;
}

.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff7ed;
  font-weight: 900;
  font-size: 28px;
  background: linear-gradient(145deg, var(--amber-700), var(--amber-500));
  box-shadow: 0 12px 30px rgba(180, 83, 9, .32);
}
.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 800;
  color: var(--amber-700);
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 22px; margin-bottom: 0; }
h2 { font-size: clamp(34px, 5vw, 55px); line-height: .95; margin-bottom: 12px; color: var(--amber-900); }
h3 { margin-bottom: 8px; color: var(--amber-900); }

.search-card, .profile-card, .hero {
  border: 1px solid var(--line);
  background: rgba(255, 248, 230, 0.82);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.search-card { padding: 16px; }
.search-card label { display: block; font-weight: 800; margin-bottom: 8px; color: var(--amber-900); }
.search-row { display: flex; gap: 8px; }
input, button {
  border: 1px solid rgba(120, 53, 15, .22);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}
input { width: 100%; background: #fffdf4; }
input:focus { border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(245, 158, 11, .16); }
button {
  cursor: pointer;
  color: #fff7ed;
  border: 0;
  font-weight: 800;
  background: linear-gradient(145deg, var(--amber-700), var(--amber-500));
}
button:hover { filter: brightness(1.04); transform: translateY(-1px); }
#clearSearch { width: 46px; padding: 0; font-size: 24px; }
.hint { color: var(--stone-700); font-size: 13px; line-height: 1.45; margin-bottom: 0; }

.people-list {
  overflow: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.person-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: rgba(255,255,255,.45);
  text-align: left;
  color: var(--stone-950);
}
.person-row:hover, .person-row.active {
  border-color: rgba(180, 83, 9, .32);
  background: rgba(254, 243, 199, .9);
  box-shadow: 0 10px 30px rgba(120, 53, 15, .12);
}
.avatar { width: 52px; height: 52px; border-radius: 18px; object-fit: cover; }
.person-name { font-weight: 900; display: block; }
.person-meta { display: block; font-size: 12px; color: var(--stone-700); margin-top: 3px; }
.badge-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  margin-top: 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: var(--amber-900);
  background: var(--amber-100);
}
.no-result {
  padding: 18px;
  border: 1px dashed rgba(120, 53, 15, .28);
  border-radius: 18px;
  color: var(--stone-700);
  background: rgba(255,255,255,.4);
}
.detail-panel {
  padding: 34px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
}
.hero { padding: 30px; }
.hero p:last-child { max-width: 780px; color: var(--stone-700); margin-bottom: 0; }
.profile-card { padding: 28px; }
.empty-state { display: grid; place-items: center; text-align: center; color: var(--stone-700); }
.empty-icon { font-size: 48px; margin-bottom: 10px; }
.profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.profile-head .avatar { width: 110px; height: 110px; border-radius: 34px; box-shadow: 0 14px 35px rgba(120, 53, 15, .22); }
.profile-name { font-size: 34px; margin-bottom: 6px; }
.profile-title { color: var(--stone-700); margin-bottom: 10px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-item {
  background: rgba(255, 253, 244, .78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
}
.detail-label { display: block; color: var(--amber-700); font-size: 11px; text-transform: uppercase; font-weight: 900; letter-spacing: .09em; margin-bottom: 6px; }
.detail-value { font-weight: 720; word-break: break-word; }
.redacted { color: #991b1b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-panel { padding: 20px; }
  .details-grid { grid-template-columns: 1fr; }
}
