:root {
  --bg: #f8ebe1;
  --card: #fff;
  --ink: #222;
  --sub: #6b6460;
  --line: #eadbd0;
  --accent: #ff6a2b;
  --shadow: 0 2px 8px rgba(80, 50, 30, .10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.45;
}
.wrap { position: relative; max-width: 480px; margin: 0 auto; padding: 28px 16px 32px; min-height: 100vh; display: flex; flex-direction: column; }

.share {
  position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .12); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.share:focus-visible, .search input:focus-visible, .list a:focus-visible, .biz:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.prof { text-align: center; padding-top: 24px; }
.av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; background: #e6d3c5; }
.prof h1 { font-size: 22px; margin: 14px 0 6px; font-weight: 800; letter-spacing: -.3px; }
.bio { margin: 0 0 10px; color: var(--sub); font-size: 14px; white-space: pre-line; }
.biz {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}

.search {
  display: flex; align-items: center; gap: 8px; margin: 22px 0 14px; padding: 0 14px; height: 48px;
  background: #fbf7f4; border: 1px solid var(--line); border-radius: 12px; color: #9a918b;
}
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list a {
  display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 12px 8px 8px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .12s ease;
}
.list a:active { transform: scale(.98); }
.list img, .noimg { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex: none; background: #f1e6de; }
.noimg { display: grid; place-items: center; font-weight: 800; color: var(--sub); font-size: 14px; }
.t { flex: 1; text-align: center; font-size: 15px; font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; }
.t b { font-weight: 700; }
.empty { text-align: center; color: var(--sub); margin: 24px 0; }
.list .hit a { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }

.disc { margin-top: auto; padding-top: 32px; text-align: center; font-size: 12px; color: var(--sub); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .list a, .toast { transition: none; } }
