:root {
  --bg: #f5f6f8; --card: #ffffff; --line: #eaecf0; --text: #1d2939; --muted: #667085;
  --accent: #d1a41d; --accent-soft: #f6ecd0; --ink: #202124; --link: #004eeb; --err: #b42318;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
a { color: var(--link); }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--err); font-size: 13px; display: block; margin-top: 4px; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.top-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 20px; }
.brand { font-weight: 800; letter-spacing: .5px; color: var(--ink); text-decoration: none; }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-right form { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel.narrow { max-width: 440px; margin: 40px auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 16px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(.95); }
.ghost { color: var(--muted); text-decoration: none; font-size: 14px; }
.ghost:hover { color: var(--text); }
.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; }
.link:hover { color: var(--text); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; margin: 0; }

.bar { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.bar input, .bar select { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card.is-hidden { opacity: .5; }
.card-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.who { min-width: 0; flex: 1; }
.who p { margin: 2px 0 0; }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.headline { margin: 0; font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips:empty { display: none; }
.chip { font-size: 12px; background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.rows { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 14px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; }
.about { margin: 0; font-size: 14px; color: var(--muted); }
.acts { display: flex; gap: 14px; align-items: center; margin-top: auto; padding-top: 4px; }

.map-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.map { height: calc(100vh - 170px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); }
.pop .card { border: 0; padding: 4px 0 0; }

@media (max-width: 820px) {
  .bar { grid-template-columns: 1fr 1fr; }
  .bar input { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .top-in { gap: 10px; }
  .top-right .ghost { display: none; }
  .tabs a { padding: 0 8px; }
  .panel { padding: 20px; }
}

/* brand bar, photos, suggestions (2026-10-13) */
.top { background: #0a0a0b; border-bottom: 0; }
.brand img { display: block; height: 32px; width: auto; }
.tabs a { color: #b9b4a8; }
.tabs a:hover, .tabs a.on { color: #f4f1ea; }
.top-right .ghost, .top-right .link { color: #b9b4a8; }
.top-right .ghost:hover, .top-right .link:hover { color: #f4f1ea; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.big { width: 72px; height: 72px; font-size: 26px; }
.photo-row { display: flex; gap: 16px; align-items: center; }
.suggest-wrap { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); max-height: 280px; overflow-y: auto; font-weight: 400; }
.suggest li { padding: 8px 10px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.suggest li:hover, .suggest li:focus { background: var(--accent-soft); outline: none; }
.suggest li.person img { width: 24px; height: 24px; border-radius: 50%; }
.slack-box .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.slack-box .suggest-wrap input { margin-top: 0; }
.linked { color: #067647; font-weight: 600; font-size: 14px; }
[hidden] { display: none !important; }
.suggest li.note-row { color: var(--muted); cursor: default; }
.suggest li.note-row:hover { background: none; }
