[hidden] { display: none !important; }
:root {
  --bg: #F6F5F3; --card: #FFFFFF; --ink: #1D1D1F; --ink2: #5F5E5B; --ink3: #8A8884; --line: #E4E2DE; --line2: #EEECE8;
  --red: #ED1C24; --red-ink: #B3141B; --red-bg: #FDECEC; --amber-bg: #FFF4E0; --amber-ink: #8A5300; --green-bg: #E8F5EC; --green-ink: #1E6B3A;
  --blue-bg: #EAF1FB; --blue-ink: #1F4E8C; --radius: 12px; --focus: 0 0 0 3px rgba(237, 28, 36, .28);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.brand-t { font-weight: 500; letter-spacing: .01em; }
.brand-t b { font-weight: 700; }
.tenant { font-size: 12px; color: var(--ink2); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink2); font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { background: var(--bg); color: var(--ink); font-weight: 600; }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.me { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.me select { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; background: #fff; }

.banner { max-width: 1240px; margin: 12px auto 0; padding: 10px 16px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-ink); font-size: 14px; }
main { max-width: 1240px; margin: 0 auto; padding: 24px 24px 80px; outline: none; }
main:focus, main:focus-visible { box-shadow: none; }
h1 { font: 600 30px/1.15 var(--serif); margin: 0; letter-spacing: -.01em; }
h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin: 0 0 10px; }
.sub { color: var(--ink2); margin: 6px 0 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.counts { display: flex; gap: 10px; flex-wrap: wrap; }
.count { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; min-width: 112px; }
.count b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.count span { font-size: 12px; color: var(--ink2); }
.count.hot b { color: var(--red-ink); }

.cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; }
.card.lead-fulfill { border-left: 4px solid var(--red); padding-left: 17px; }
.card .who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card .who a { font-weight: 700; font-size: 17px; text-decoration: none; }
.card .who a:hover { text-decoration: underline; }
.card .why { font-size: 16px; font-weight: 500; margin: 2px 0 0; }
.card .quote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--ink2); font-size: 14px; background: #FBFAF8; border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink2); margin-top: 8px; }
.meta .sep::before { content: "·"; margin-right: 14px; color: var(--ink3); }
.also { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.also li { font-size: 14px; color: var(--ink2); list-style: none; }
.also ul { margin: 0; padding: 0; }
.acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--ink2); border: 1px solid var(--line); white-space: nowrap; }
.chip.red { background: var(--red-bg); color: var(--red-ink); border-color: #F6C9CB; }
.chip.amber { background: var(--amber-bg); color: var(--amber-ink); border-color: #F2DDB4; }
.chip.green { background: var(--green-bg); color: var(--green-ink); border-color: #C5E5CF; }
.chip.blue { background: var(--blue-bg); color: var(--blue-ink); border-color: #C9DAF2; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #000; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--ink3); }
.btn.ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn.ghost:hover { background: var(--bg); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }

.empty, .err, .loading { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink2); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.err { border-style: solid; border-color: #F6C9CB; background: #FFFBFB; color: var(--red-ink); }
.sk { background: linear-gradient(90deg, #EEECE8, #F6F5F3, #EEECE8); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 88px; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

.person { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ph { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ph .lines { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink2); font-size: 14px; margin-top: 8px; }
.ph .lines a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ph .tools { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.fact { padding: 10px 0; border-top: 1px solid var(--line2); }
.fact:first-of-type { border-top: 0; padding-top: 0; }
.fact .k { font-size: 12px; color: var(--ink2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.fact .v { margin-top: 2px; }
.fact .src { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.fact .src a { color: var(--ink2); }
.none { color: var(--ink3); }

.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line2); }
.tl li:first-child { border-top: 0; }
.tl li.flash { background: #FFFBEA; border-radius: 8px; }
.tl .when { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.tl .what { font-weight: 600; }
.tl .body { white-space: pre-wrap; color: var(--ink2); font-size: 14px; margin-top: 4px; }
.tl .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.filters select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; }
.form > .field, #dlgForm .field { flex: none; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--ink2); }
.field input, .field select, .field textarea { min-height: 42px; border: 1px solid #D9D6D1; border-radius: 10px; padding: 8px 12px; background: #fff; width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:focus-visible) { box-shadow: var(--focus); }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,20,20,.38); }
#dlgForm { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
#dlgForm h3 { margin: 0; font: 600 22px/1.2 var(--serif); }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.preview { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.formerr { color: var(--red-ink); font-size: 14px; min-height: 1em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }

table.data { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line2); font-size: 14px; vertical-align: top; }
table.data th { background: #FBFAF8; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); border-top: 0; }
.results { display: flex; flex-direction: column; gap: 8px; }
.result { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.result:hover { border-color: var(--ink3); }

@media (max-width: 980px) {
  .person { grid-template-columns: 1fr; }
  .search { max-width: none; }
}
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .search { order: 2; flex: 1 1 100%; }
  .add, .me { margin-left: auto; }
  main { padding: 16px 14px 96px; }
  .card { grid-template-columns: 1fr; }
  .acts { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .acts .btn { flex: 1 1 auto; }
  .tl li { grid-template-columns: 1fr; gap: 4px; }
  .meta { flex-direction: column; gap: 2px; }
  .meta .sep::before { content: none; }
  h1 { font-size: 26px; }
}
.formerr { margin: 0; } .formerr:empty { display: none; }
.seg-fs { border: 0; padding: 0; margin: 0; }
.frow { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle { margin-bottom: 14px; cursor: pointer; }
.sub.tight { margin-top: -4px; }
.mt6 { margin-top: 6px; }
.inline-acts { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.search { min-width: 220px; }
@media (max-width: 1180px) { .tenant { display: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.panel-head h2 { margin: 0; }
tr.muted td { color: var(--ink3); }
table.data select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; font-size: 13px; }
.nav a, .btn, .brand-t, .tenant { white-space: nowrap; }
@media (max-width: 1320px) { .tenant { display: none; } }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.check input { margin-top: 3px; accent-color: var(--ink); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; }

.why-here { border-left: 3px solid var(--green-ink); }
.why-here .fact .v { white-space: pre-wrap; }

/* Sign-in (Waypoint's own) */
.signed-out .top, .signed-out .banner { display: none; }
.auth { min-height: calc(100vh - 104px); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 28px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.05); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-h { font-size: 26px; margin-bottom: 6px; }
.auth-note { color: var(--ink2); margin: 0 0 16px; }
.auth-card .form { gap: 14px; }
.auth-card .btn[type=submit] { width: 100%; min-height: 44px; }
.auth-link { font-size: 14px; color: var(--ink2); text-align: center; text-decoration: none; }
.auth-link:hover { color: var(--ink); text-decoration: underline; }
.code-in { font-size: 22px !important; letter-spacing: .18em; font-variant-numeric: tabular-nums; text-align: center; }
.steps { margin: 0 0 12px; padding-left: 20px; color: var(--ink2); font-size: 14px; }
.steps li { margin-bottom: 4px; }
.qr { display: grid; place-items: center; padding: 12px; border: 1px solid var(--line2); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.qr img { display: block; image-rendering: pixelated; }
.key { display: flex; flex-direction: column; gap: 2px; font-size: 12px; margin: 0 0 14px; }
.key code { font-size: 14px; letter-spacing: .06em; word-break: break-all; color: var(--ink); background: var(--bg); padding: 6px 8px; border-radius: 8px; }
.codes { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.codes code { display: block; text-align: center; font-size: 15px; letter-spacing: .08em; background: var(--bg); border: 1px solid var(--line2); padding: 8px; border-radius: 8px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.me { display: flex; align-items: center; gap: 4px; }
.me-link { font-weight: 600; text-decoration: none; color: var(--ink); }
.me-link:hover { text-decoration: underline; }
.choice-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.mini { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin: 14px 0 6px; }
.form.narrow { max-width: 420px; }
.acts-cell { white-space: nowrap; }
@media (max-width: 520px) { .auth { place-items: start center; } .auth-card { border: 0; box-shadow: none; padding: 20px 4px; background: transparent; } }
.btn.wide { width: 100%; margin-bottom: 12px; text-align: center; min-height: 44px; height: auto; padding: 10px 14px; line-height: 1.3; }
