/* UKBOX Connect address book (<site>/people). Uses the shared look in ux-*.css (colours, fonts, buttons, avatars).
   Movement is switched off for people who ask their device for less motion. */
.page-people .shell { max-width: 780px; }

/* ---- signed out: one card */
.gate { max-width: 470px; margin: 7vh auto 0; text-align: center; padding: 30px 24px 26px; animation: rise .6s var(--ease) both .1s; }
.gate h1 { font-size: clamp(1.8rem, 7vw, 2.3rem); line-height: 1.08; margin: 4px 0 0; }
.gate .lead { margin: 10px auto 0; max-width: 26em; }
.gate .primary { width: 100%; margin: 22px 0 0; }
.gate .small { margin: 14px 0 0; }
.gate .msg.show { color: var(--green2); }
.gate-art { position: relative; display: flex; justify-content: center; align-items: center; height: 92px; margin: 0 auto 6px; }
.gate-art .ava { width: 52px; height: 52px; margin: 0 -7px; font-size: 1.2rem; border: 3px solid #13271E;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35); animation: gate-in .6s var(--spring) both, bob 5s ease-in-out infinite; }
.gate-art .ava:nth-child(1) { animation-delay: .15s, 0s; } .gate-art .ava:nth-child(2) { animation-delay: .25s, -1.2s; margin-top: -18px; }
.gate-art .ava:nth-child(3) { animation-delay: .35s, -2.4s; margin-top: -18px; } .gate-art .ava:nth-child(4) { animation-delay: .45s, -3.6s; }
.gate-lock { position: absolute; left: 50%; bottom: -2px; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px;
  border-radius: 50%; background: #1B2414; border: 2px solid var(--gold); color: var(--gold); animation: pop .5s var(--spring) both .7s; }
.gate-lock .ic { width: 17px; height: 17px; }
@keyframes gate-in { from { opacity: 0; transform: translateY(16px) scale(.6); } }

/* ---- signed in: the list */
.book-head { padding: 6px 2px 0; animation: rise .6s var(--ease) both .05s; }
.book-head h1 { font-size: clamp(1.9rem, 7.4vw, 2.7rem); line-height: 1.05; font-weight: 700; }
.book-head .lead { margin: 8px 0 0; }
.how { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; }
.how li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 11px; border-radius: 14px; font-size: .86rem; line-height: 1.3;
  color: var(--body); background: rgba(10, 22, 17, .55); border: 1px solid var(--line); animation: rise .55s var(--ease) both; }
.how li:nth-child(1) { animation-delay: .12s; } .how li:nth-child(2) { animation-delay: .2s; } .how li:nth-child(3) { animation-delay: .28s; }
.how .n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #06130C; background: var(--green); }
.how .n .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.how b { color: var(--green2); }
.find { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 6px 8px 6px 14px;
  border-radius: 18px; border: 1.5px solid var(--line2); background: rgba(10, 22, 17, .86); box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .2s, box-shadow .2s; }
.find:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(47, 191, 113, .16), 0 14px 30px rgba(0, 0, 0, .3); }
.find > .ic { color: var(--muted); width: 20px; height: 20px; }
.find input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 4px; border: 0; background: transparent; box-shadow: none; font-size: 1.05rem; }
.find input:focus { box-shadow: none; background: transparent; }
.find input::-webkit-search-cancel-button { filter: invert(.8); }
.tally { flex: none; padding: 5px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; color: var(--green2); background: rgba(47, 191, 113, .12); }
.jump { display: flex; gap: 4px; margin: 12px 0 0; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; font: 700 .9rem/1 var(--head);
  color: var(--body); text-decoration: none; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.jump a:hover { color: #fff; border-color: var(--green); background: rgba(47, 191, 113, .14); }
.jump a.off { opacity: .3; pointer-events: none; }
.book { margin: 10px 0 0; }
.letter { scroll-margin-top: 84px; }
.letter h2 { display: flex; align-items: center; gap: 10px; margin: 18px 4px 8px; font: 700 .95rem/1 var(--head); color: var(--green2); letter-spacing: .06em; }
.letter h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), rgba(52, 89, 75, 0)); }
.letter ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.person { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 48, 38, .85), rgba(18, 37, 28, .85)); animation: rise .5s var(--ease) both;
  transition: transform .2s var(--ease), border-color .2s, background .2s; }
.person:hover { transform: translateY(-2px); border-color: var(--line2); }
.book .letter:nth-child(1) .person:nth-child(1) { animation-delay: .3s; } .book .letter:nth-child(1) .person:nth-child(2) { animation-delay: .36s; }
.book .letter:nth-child(1) .person:nth-child(3) { animation-delay: .42s; } .book .letter:nth-child(1) .person:nth-child(4) { animation-delay: .48s; }
.book .letter:nth-child(2) .person { animation-delay: .5s; } .book .letter:nth-child(n+3) .person { animation-delay: .56s; }
.person .ava { width: 44px; height: 44px; font-size: 1.05rem; }
.who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 1px; }
.who b { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 1.02rem/1.3 var(--head); }
.who em { font-style: normal; padding: 1px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; color: #06130C; background: var(--green2); }
.who code { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .92rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--green2); }
.person.me { border-color: rgba(47, 191, 113, .5); }
.copy { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border-radius: 13px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 600; font-size: .92rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease); }
.copy:hover { background: rgba(47, 191, 113, .14); border-color: var(--green); }
.copy:active { transform: scale(.96); }
.copy .ic { width: 17px; height: 17px; }
.copy .c-done { display: none; stroke-width: 3; }
.copy.done { color: #06130C; background: var(--green); border-color: var(--green); }
.copy.done .c-copy { display: none; } .copy.done .c-done { display: block; animation: pop .35s var(--spring); }
.none { margin: 26px 0; padding: 22px; border-radius: 18px; text-align: center; border: 1px dashed var(--line2); color: var(--muted); }
.later { margin: 26px 0 0; }
.book-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 0; padding: 14px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, .07); font-size: .9rem; color: var(--muted); }
.book-foot form { margin: 0; }
.ghost.small-btn { min-height: 40px; padding: 7px 14px; font-size: .9rem; }
.person.hide, .letter.hide { display: none; }
.nw { white-space: nowrap; }

/* ---- nobody yet (a new server) */
.empty { margin: 18px 0 0; padding: 30px 22px 28px; border-radius: 22px; text-align: center; border: 1px dashed var(--line2);
  background: rgba(10, 22, 17, .45); animation: rise .6s var(--ease) both .3s; }
.empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin: 0 0 12px; border-radius: 18px;
  color: var(--green2); background: rgba(47, 191, 113, .12); border: 1px solid rgba(47, 191, 113, .3); animation: pop .5s var(--spring) both .45s; }
.empty-ic .ic { width: 27px; height: 27px; }
.empty h2 { margin: 0; font: 700 1.3rem/1.2 var(--head); }
.empty p { margin: 8px auto 0; max-width: 30em; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 20; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 16px; font-size: .92rem; color: var(--text); background: #10241A; border: 1px solid rgba(47, 191, 113, .5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transform: translate(-50%, 24px); transition: opacity .25s, transform .35s var(--spring); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--green2); }

/* ---- UKBOX house look (21 Nov 2026, step 38): see ux-*.css. The lock on the picture is green (gold only ever means
   "needs you"), the people stand still, rows are cards on hairlines. */
.gate-art .ava { border-color: #101814; animation: gate-in .6s var(--spring) both; }
.gate-lock { background: #0C120F; border-color: var(--green); color: var(--green); }
.gate h1, .book-head h1 { font-weight: 600; letter-spacing: -.03em; }
.how li { border-radius: 12px; background: rgba(16, 24, 20, .72); }
.how .n { border-radius: 9px; color: var(--ink); }
.find { border: 1px solid var(--line2); border-radius: 14px; background: rgba(12, 18, 15, .9); }
.find:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 191, 113, .2), 0 14px 30px rgba(0, 0, 0, .3); }
.find input, .find input:focus { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.tally { border-radius: 9px; font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tint); }
.jump a { border-radius: 9px; font-weight: 600; }
.letter h2 { font-weight: 600; letter-spacing: .03em; }
.letter h2::after { background: linear-gradient(90deg, var(--line2), rgba(255, 255, 255, 0)); }
.person { border-radius: 14px; background: var(--panel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.person.me { border-color: rgba(47, 191, 113, .5); }
.who b { letter-spacing: -.01em; }
.who em { border-radius: 7px; font-family: var(--head); font-weight: 600; color: var(--ink); background: var(--green); }
.copy { border-radius: 11px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.copy:active { transform: translateY(1px); }
.copy.done { color: var(--ink); }
.none { border-radius: 14px; }
.empty { border-radius: 18px; background: rgba(12, 18, 15, .6); }
.empty-ic { border-radius: 14px; }
.empty h2 { font-weight: 600; letter-spacing: -.02em; }
.toast { border-radius: 14px; background: #101814; }

@media (min-width: 720px) { .jump { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 559px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .how li { padding: 8px 10px; }
  .copy span { display: none; }
  .copy { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-art .ava { animation: none !important; }
}
