/* My people screens (B7): People, networks, Add people, a person, Circles, a circle.
   One bold idea: the current network's colour (--net, from the admin palette, ink-safe) fills the band at the top,
   with the brand's open ring as a large watermark, and the page rises out of it on a rounded sheet. Everything
   below stays quiet: paper, ink, hairlines, Bricolage for titles and buttons, Figtree for reading. Circles are drawn
   as open rings with one dot per person. Ink text on every accent; colour is never the only sign of a state. */

.mp-page { --mp-ink: #1C1828; background: var(--bg); }
.mp-wrap { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 16px; }
.mp-narrow { max-width: 680px; }

/* ── the band ── */
.mp-band { position: relative; overflow: hidden; background: var(--net); color: var(--mp-ink); padding: 14px 0 56px; }
.mp-band::before {                                 /* the open ring, very large, cut by the edge */
  content: ""; position: absolute; right: -90px; top: -70px; width: 300px; height: 300px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='34' fill='none' stroke='%231C1828' stroke-opacity='.09' stroke-width='14' stroke-linecap='round' stroke-dasharray='173 40.6' transform='rotate(-11 50 50)'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mp-band-in { position: relative; }               /* no z-index: sheets inside must sit above the bars */
.mp-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.02;
  letter-spacing: -.025em; margin: 14px 0 4px; color: var(--mp-ink); overflow-wrap: anywhere; }
.mp-line { margin: 0; font-size: .9375rem; color: rgba(28, 24, 40, .74); }
.mp-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -6px; padding: 0 6px;
  color: var(--mp-ink); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); }
.mp-back + .mp-netmenu { display: none; }          /* inner pages: back link instead of the switcher */
.mp-back:hover { background: rgba(255, 255, 255, .35); color: var(--mp-ink); }

/* the page rises out of the colour */
.mp-body { position: relative; margin-top: -32px; background: var(--bg); border-radius: 28px 28px 0 0;
  padding-top: 24px; padding-bottom: calc(var(--tabbar-h) + 104px); min-height: 50vh; }
.mp-page .mp-body.mp-narrow { max-width: 712px; }

/* network switcher button */
.mp-net-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .58); color: var(--mp-ink); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; list-style: none; user-select: none;
  box-shadow: inset 0 0 0 1px rgba(28, 24, 40, .12); }
.mp-net-btn::-webkit-details-marker { display: none; }
.mp-net-btn:hover { background: rgba(255, 255, 255, .75); }
.mp-swatch { --sw: var(--net); display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sw); box-shadow: inset 0 0 0 2px rgba(28, 24, 40, .85); }
.mp-net-btn .mp-swatch { background: var(--net); }

.mp-net-list { display: grid; gap: 2px; margin: 8px 0 12px; }
.mp-net-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 12px;
  border: 0; border-radius: var(--radius-md); background: none; color: var(--text); text-align: left; }
.mp-net-row:hover { background: var(--tint); }
.mp-net-row[aria-current="true"] { background: var(--tint); font-weight: 700; }
.mp-net-row .mp-swatch { width: 22px; height: 22px; }
.mp-net-text { display: flex; flex-direction: column; flex: 1; font-weight: 600; line-height: 1.25; }
.mp-net-text small { font-weight: 400; font-size: .8125rem; color: var(--text-muted); }
.mp-net-new { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; font-weight: 600;
  color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }

/* ── sheets: a bottom sheet on phones, a centred dialog on computers; <details>, so no JavaScript is needed ── */
.mp-sheet > summary { list-style: none; cursor: pointer; }
.mp-sheet > summary::-webkit-details-marker { display: none; }
.mp-sheet[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 1080; background: var(--scrim);
  cursor: default; animation: mp-fade var(--dur-base) var(--ease-standard); }
/* a closed sheet takes no room (founder 4 Dec: a closed sheet inside the scrolling group chips widened the circle page on phones) */
.mp-sheet:not([open]) > .mp-sheet-panel, details[data-sheet]:not([open]) > .mp-sheet-panel { display: none; }
.mp-sheet-panel { position: fixed; z-index: 1085; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto;
  background: var(--surface); color: var(--text); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-float);
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); animation: mp-rise var(--dur-slow) var(--ease-join); }
.mp-sheet-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 14px;
  border-radius: 2px; background: var(--line-strong); }
.mp-sheet-title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.01em;
  margin: 0 0 8px; }
.mp-sheet-panel p { color: var(--text-muted); }
.mp-sheet-panel hr { margin: 20px 0; border-color: var(--line); opacity: 1; }
.mp-sheet-panel .mp-btn-block + .mp-btn-block, .mp-sheet-panel form + .mp-btn-block { margin-top: 8px; }
@media (min-width: 768px) {
  .mp-sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: min(460px, calc(100vw - 32px));
    transform: translate(-50%, -50%); border-radius: 22px; padding: 28px; animation-name: mp-pop; }
  .mp-sheet-panel::before { display: none; }
}
@keyframes mp-fade { from { opacity: 0; } }
@keyframes mp-rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes mp-pop { from { transform: translate(-50%, calc(-50% + 12px)); opacity: 0; } }

/* ── search and chips ── */
.mp-search { position: relative; margin-bottom: 14px; }
.mp-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted);
  pointer-events: none; }
.mp-search input { width: 100%; height: 50px; padding: 0 16px 0 44px; border: 1.5px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-size: 1rem; }
.mp-chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px 8px; padding-inline: 16px;
  scrollbar-width: none; }
.mp-chips::-webkit-scrollbar { display: none; }
.mp-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.mp-chip:hover { border-color: var(--text); color: var(--text); }
.mp-chip[aria-current="true"] { background: var(--net); border-color: var(--mp-ink); color: var(--mp-ink); font-weight: 700; }
.mp-chip--add { padding: 0 12px; }
.mp-status { margin: 4px 0 12px; font-size: .875rem; color: var(--text-muted); }

/* ── rows ── */
.mp-section { margin-top: 18px; }
.mp-section-title { font-family: var(--font-body); font-weight: 600; font-size: .8125rem; letter-spacing: .01em;
  color: var(--text-muted); margin: 0 0 4px; }
.mp-rows { list-style: none; margin: 0; padding: 0; }
.mp-rows > li + li { border-top: 1px solid var(--line); }
.mp-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 8px; margin-inline: -8px;
  border-radius: var(--radius-md); color: var(--text); text-decoration: none; cursor: pointer; }
.mp-row:hover { background: var(--surface); color: var(--text); }
.mp-row .icon:last-child { color: var(--text-muted); }
.mp-row--flat { cursor: default; }
.mp-row--flat:hover { background: none; }
.mp-row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.mp-name { font-weight: 600; font-size: 1.03rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-fit { font-size: .8438rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Faces (initials) are a calm brand neutral, never the accent: a list of people should not shout (founder 3 Dec). */
:root { --face-bg: #E9E5F1; --face-ink: #1C1828; }
[data-bs-theme="dark"] { --face-bg: #2E2840; --face-ink: #F6F4FA; }
.mp-face { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--face-bg); color: var(--face-ink); font-family: var(--font-display);
  font-weight: 800; font-size: 1.125rem; }
.mp-face--xl { width: 72px; height: 72px; font-size: 2rem; background: var(--face-bg);
  box-shadow: inset 0 0 0 2px var(--line-strong); }
.mp-member { display: flex; align-items: center; gap: 4px; }
.mp-member .mp-row { flex: 1; min-width: 0; }
.mp-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--text-muted); }
.mp-icon-btn:hover { background: var(--tint); color: var(--text); }
.mp-pick-rows input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--mp-ink); flex: none; }

/* ── buttons (accent primary; ink text) ── */
.mp-btn, .mp-btn-quiet, .mp-btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill); font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; text-decoration: none; transition: filter var(--dur-fast), background var(--dur-fast); }
.mp-btn { background: var(--net); color: var(--mp-ink); border: 0; box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14); }
.mp-btn:hover { color: var(--mp-ink); filter: brightness(.95); }
.mp-btn-quiet { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.mp-btn-quiet:hover { border-color: var(--text); color: var(--text); }
.mp-btn-danger { background: transparent; color: var(--error); border: 1.5px solid currentColor; }
.mp-btn-danger:hover { color: var(--error); background: color-mix(in srgb, var(--error) 8%, transparent); }
.mp-confirm .mp-sheet-panel .mp-btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.mp-btn-block { display: flex; width: 100%; }
.mp-page :is(.mp-btn, .mp-btn-quiet, .mp-btn-danger, .mp-chip, .mp-row, .mp-net-btn, .mp-net-row, .mp-ring,
  .mp-way, .mp-icon-btn, .mp-back):focus-visible { outline: 3px solid var(--text); outline-offset: 2px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--net) 60%, transparent); }
.mp-fab { position: fixed; z-index: 1020; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-float), inset 0 -2px 0 rgba(28, 24, 40, .14); }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mp-actions--end { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 28px; }

/* ── empty, none, done ── */
.mp-empty, .mp-done { text-align: center; padding: 28px 8px 8px; max-width: 420px; margin-inline: auto; }
.mp-empty h2, .mp-done h2, .mp-none h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.01em; margin: 12px 0 6px; }
.mp-empty p { color: var(--text-muted); }
.mp-empty .mp-btn { margin: 8px 0 18px; }
.mp-done .mp-actions { justify-content: center; }
.mp-none { padding: 24px 0; }
.mp-none p { color: var(--text-muted); }
.mp-quiet { color: var(--text-muted); font-size: .9375rem; }
.mp-quiet a, .mp-help a { color: var(--text); font-weight: 600; }
.mp-more { text-align: center; padding: 16px 0; }

/* ── the ring (circles) ── */
.mr { display: block; width: 100%; height: auto; overflow: visible; }
.mr-track { stroke: var(--sw, var(--net)); }
.mr-dot { fill: var(--text); }
.mr--empty { width: 120px; margin-inline: auto; }
.mr--empty .mr-track { stroke: var(--line-strong); stroke-dasharray: 3 9 !important; stroke-width: 4; }
.mr--done { width: 96px; margin-inline: auto; }
.mr--head { width: 76px; flex: none; }
.mr--head .mr-track { stroke: var(--mp-ink); opacity: .9; }
.mr--head .mr-dot { fill: #fff; stroke: var(--mp-ink); stroke-width: 2; }

.mp-rings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; }
.mp-rings > li { animation: mp-join var(--dur-slow) var(--ease-join) both; }
.mp-rings > li:nth-child(2) { animation-delay: 40ms; } .mp-rings > li:nth-child(3) { animation-delay: 80ms; }
.mp-rings > li:nth-child(4) { animation-delay: 120ms; } .mp-rings > li:nth-child(n+5) { animation-delay: 160ms; }
@keyframes mp-join { from { opacity: 0; transform: scale(.94); } }
.mp-ring { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; height: 100%;
  padding: 16px 10px 14px; border-radius: var(--radius-lg); color: var(--text); text-decoration: none; }
.mp-ring:hover { background: var(--surface); color: var(--text); }
.mp-ring .mr { width: min(128px, 100%); margin-bottom: 8px; }
.mp-ring-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em;
  line-height: 1.15; overflow-wrap: anywhere; }
.mp-ring-meta { font-size: .8438rem; color: var(--text-muted); }
.mp-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 10px;
  border-radius: var(--radius-pill); background: var(--tint); font-size: .8125rem; font-weight: 600; }
.mp-archived { margin-top: 36px; }
.mp-circle-head, .mp-person-head { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.mp-circle-head .mp-title, .mp-person-head .mp-title { margin-top: 0; }
.mp-readonly { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin-bottom: 16px;
  border-radius: var(--radius-md); background: var(--tint); box-shadow: inset 4px 0 0 var(--text); }
.mp-readonly p { margin: 2px 0 0; color: var(--text-muted); font-size: .9375rem; }

/* ── a person ── */
.mp-block { padding: 18px 0; }
.mp-block + .mp-block { border-top: 1px solid var(--line); }
.mp-fits { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; }
.mp-fits li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; }
/* founder 4 Dec: where a person sits reads group · circle · network; each name is a link */
.mp-fits .mp-swatch { --sw: inherit; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sw); }
.mp-fit-path { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--text-muted); font-size: .9375rem; }
.mp-fit-path a { display: inline-block; padding: 10px 0; color: var(--text); font-weight: 700; text-decoration: none; }
.mp-fit-path a:hover { text-decoration: underline; }
.mp-fit-circle, .mp-fit-group { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill); text-decoration: none; color: var(--mp-ink); font-weight: 700; }
.mp-fit-circle { background: color-mix(in srgb, var(--sw) 55%, #fff); }
.mp-fit-circle .mp-swatch { background: var(--sw); }
.mp-fit-group { background: var(--surface); color: var(--text); border: 1.5px solid var(--line-strong); font-weight: 600; }
.mp-fit-label { font-size: .875rem; color: var(--text-muted); }
.mp-note-text { font-size: 1.0625rem; line-height: 1.6; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--surface); box-shadow: inset 3px 0 0 var(--net); }
.mp-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mp-details li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }

/* ── forms ── */
.mp-form { display: grid; gap: 18px; }
.mp-h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; margin: 0; }
.mp-lead { font-size: 1.0625rem; margin: 0; }
.mp-field { display: grid; gap: 6px; margin: 0 0 4px; border: 0; padding: 0; min-width: 0; }
.mp-field > label, .mp-field > legend { font-weight: 600; font-size: .9375rem; margin: 0; padding: 0; float: none; }
.mp-opt { font-weight: 400; color: var(--text-muted); }
.mp-page :is(.mp-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]), .mp-field select,
  .mp-field textarea, .mp-sheet-panel textarea) {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 1rem; }
.mp-page :is(.mp-field input, .mp-field select, .mp-field textarea, .mp-sheet-panel textarea, .mp-search input):focus {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--net) 55%, transparent); }
.mp-help { margin: 0; font-size: .875rem; color: var(--text-muted); }
.mp-error { margin: 0; font-size: .875rem; font-weight: 600; color: var(--error); }
.mp-error--top { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--error) 9%, var(--surface)); }
.has-error input { border-color: var(--error) !important; }
.mp-pair { display: grid; gap: 8px; }
@media (min-width: 560px) { .mp-pair { grid-template-columns: 1fr 1fr; } }
.mp-colour-note { display: flex; align-items: center; gap: 8px; }
.mp-swatch--next { background: conic-gradient(#FFB01F 0 25%, #12968C 0 50%, #FF6FA8 0 75%, #B9A6F2 0); }
.mp-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.mp-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--mp-ink); }
.mp-choices { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.mp-choice { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; cursor: pointer;
  border-radius: var(--radius-md); border: 1.5px solid var(--line-strong); background: var(--surface); }
.mp-choice input { width: 20px; height: 20px; flex: none; accent-color: var(--mp-ink); }
.mp-choice > span:last-child { display: flex; flex-direction: column; line-height: 1.3; color: var(--text-muted);
  font-size: .875rem; }
.mp-choice b { color: var(--text); font-size: 1rem; font-weight: 600; }
.mp-choice:has(input:checked) { border-color: var(--text); background: color-mix(in srgb, var(--net) 18%, var(--surface)); }
.mp-choice--group { margin-left: 28px; min-height: 52px; }
.mp-new-circle { margin: 0 0 0 4px; }
.mp-dupes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mp-dupes li { display: flex; align-items: center; gap: 12px; }
.mp-dupes .mp-face { width: 36px; height: 36px; font-size: 1rem; }

/* ── Add people: three ways ── */
.mp-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mp-way { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 16px;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--line); }
.mp-way:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.mp-way > .icon:first-child { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--net);
  color: var(--mp-ink); flex: none; }
.mp-way > span { display: flex; flex-direction: column; flex: 1; color: var(--text-muted); font-size: .9063rem; }
.mp-way b { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--text); }
.mp-phone { margin-bottom: 18px; display: grid; gap: 10px; justify-items: start; }

/* the bottom bar's dot follows the network too */
.mp-page .tabbar a[aria-current="page"]::before { background: var(--net); box-shadow: 0 0 0 1.5px var(--mp-ink); }

/* ── computers ── */
@media (min-width: 1024px) {
  .mp-band { padding: 28px 0 76px; }
  .mp-band-in { padding-inline: 16px; }
  .mp-band::before { width: 460px; height: 460px; right: 4%; top: -150px; }
  .mp-body { margin-top: -44px; padding: 32px 32px 96px; border-radius: 32px 32px 0 0; }
  .mp-wrap.mp-body { max-width: 1040px; }
  .mp-rings { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .mp-fab { bottom: 32px; right: max(32px, calc((100vw - 1040px) / 2)); }
}
@media (min-width: 640px) and (max-width: 1023.98px) { .mp-rings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── dark ── */
[data-bs-theme="dark"] .mp-face { background: var(--face-bg); color: var(--face-ink); }
[data-bs-theme="dark"] .mp-fit-circle { background: var(--sw); }

@media (prefers-reduced-motion: reduce) {
  .mp-sheet-panel, .mp-rings > li { animation: mp-fade var(--dur-base) linear; }
  .mp-sheet[open] > summary::before { animation: none; }
}

/* ── bottom bar (phones): four equal tabs, words shown, the selected one in a pill of the network's colour ── */
.mp-tabbar { height: calc(72px + env(safe-area-inset-bottom)); background: var(--surface); backdrop-filter: none;
  -webkit-backdrop-filter: none; border-top: 1px solid var(--line); }
.mp-page { --tabbar-h: 72px; }
.mp-tabbar a { gap: 4px; color: var(--text-muted); font-size: .75rem; font-weight: 600; min-height: 56px; }
.mp-tabbar a::before { display: none; }
.mp-tab-pill { position: relative; display: grid; place-items: center; width: 60px; height: 32px;
  border-radius: var(--radius-pill); transition: background var(--dur-base) var(--ease-standard); }
.mp-tabbar .icon { width: 22px; height: 22px; }
.mp-tab-ring { width: 22px; height: 22px; }
.mp-tab-ring circle { stroke-width: 11; }
.mp-tabbar a[aria-current="page"] { color: var(--text); }
.mp-tabbar a[aria-current="page"] .mp-tab-pill { background: var(--net); color: var(--mp-ink); }
.mp-tabbar a[aria-current="page"] .mp-tab-word { font-weight: 800; }
.mp-tabbar a:focus-visible { outline: none; }
.mp-tabbar a:focus-visible .mp-tab-pill { outline: 3px solid var(--text); outline-offset: 2px; }
.mp-tab-badge { position: absolute; top: -4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--cmu-ink); color: #fff; font-size: .6875rem; font-weight: 800; line-height: 18px;
  text-align: center; box-shadow: 0 0 0 2px var(--surface); }
[data-bs-theme="dark"] .mp-tab-badge { background: var(--cmu-paper); color: var(--cmu-ink); }

/* ── Experiment 4 pages around My people (B8–B10): offer, set-up, You ── */
.mp-focus .tabbar, .mp-focus .mp-fab { display: none; }
.mp-focus .mp-body { padding-bottom: 64px; }
.mp-narrow-band { max-width: 712px; }
.mp-chip-static { display: inline-flex; margin: 6px 0 0; padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .6); font-weight: 700; font-size: .8125rem; box-shadow: inset 0 0 0 1px rgba(28, 24, 40, .14); }
.mp-price { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 18px; }
.mp-price b { font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; line-height: 1; letter-spacing: -.03em; }
.mp-price span { color: var(--text-muted); }
.mp-facts { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.mp-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mp-facts li span:first-child { color: var(--text-muted); }
.mp-facts li span:last-child { font-weight: 600; text-align: right; }
.mp-ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.mp-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.mp-ticks .icon { flex: none; margin-top: 3px; padding: 2px; border-radius: 50%; background: var(--net); color: var(--mp-ink); }
.mp-fine { font-size: .875rem; color: var(--text-muted); }
.mp-fine a { color: var(--text); }
.mp-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: .875rem; color: var(--text-muted); }
.mp-progress-dots { display: inline-flex; gap: 6px; }
.mp-progress-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mp-progress-dots i.on { background: var(--net); box-shadow: 0 0 0 1.5px var(--mp-ink); }
.mp-q { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.08;
  letter-spacing: -.02em; margin: 6px 0 8px; }
.mp-toggles { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.mp-toggle { position: relative; }
.mp-toggle input { position: absolute; opacity: 0; inset: 0; }
.mp-toggle span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; }
.mp-toggle input:checked + span { background: var(--net); border-color: var(--mp-ink); color: var(--mp-ink); font-weight: 700; }
.mp-toggle input:checked + span::before { content: "✓"; }
.mp-toggle input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 2px; }
.mp-menu { list-style: none; margin: 0; padding: 0; }
.mp-menu li + li { border-top: 1px solid var(--line); }
.mp-menu a, .mp-menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 4px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.0625rem; background: none; border: 0; text-align: left; }
.mp-menu a .icon:first-child, .mp-menu button .icon:first-child { color: var(--text-muted); }
.mp-menu a .icon:last-child { margin-left: auto; color: var(--text-muted); }
.mp-card-ea { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line), inset 6px 0 0 var(--net); margin-bottom: 18px; }
.mp-card-ea b { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; display: block; }
.mp-banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius-md); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line), inset 4px 0 0 var(--net); }
.mp-banner p { margin: 0; flex: 1 1 220px; }
.mp-steps { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.mp-made { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.mp-made li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.mp-made .mp-swatch { width: 20px; height: 20px; }
.mp-btn-solid { background: var(--error); color: #fff; border-color: var(--error); }
.mp-btn-solid:hover { color: #fff; filter: brightness(.95); }
.mp-danger-link { color: var(--error); font-weight: 600; }
.mp-menu form { margin: 0; }
.mp-bulk-bar { position: sticky; bottom: calc(var(--tabbar-h) + 8px); z-index: 5; margin-top: 12px; padding: 12px 14px;
  border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-float); }
.mp-bulk-bar .mp-actions { margin-top: 6px; align-items: center; }
.mp-bulk-bar select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); padding: 0 10px;
  background: var(--surface); color: var(--text); }
.mp-offline { position: fixed; z-index: 1075; left: 12px; right: 12px; top: calc(var(--topbar-h) + 8px); max-width: 520px;
  margin-inline: auto; padding: 10px 14px; border-radius: 12px; background: var(--cmu-ink); color: #fff; font-weight: 600;
  text-align: center; }

/* ══ 1 Dec redesign (founder): no colour band (it was hard to read in dark), the network as a glass pill at the top
   middle, a list like phone contacts, the search-and-add bar, hold to choose. Phones lose the top bar on these
   pages; the bottom bar has the logo. ══ */
.mp-band { background: transparent; color: var(--text); padding: 12px 0 4px; overflow: visible; }
.mp-band::before { display: none; }
.mp-title { color: var(--text); font-size: clamp(1.875rem, 6vw, 2.75rem); margin: 10px 0 2px; }
.mp-line { color: var(--text-muted); }
.mp-back { color: var(--text); }
.mp-back:hover { background: var(--tint); color: var(--text); }
.mp-body { margin-top: 0; border-radius: 0; padding-top: 8px; background: transparent; }
.mp-face--xl { background: var(--face-bg); }
.mp-chip-static { background: color-mix(in srgb, var(--net) 30%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }

/* the network pill: glass, its colour as a dot with a halo */
.mp-net-btn { background: color-mix(in srgb, var(--surface) 78%, transparent); color: var(--text);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1.5px var(--line-strong), 0 6px 18px rgba(28, 24, 40, .08); max-width: 260px; }
.mp-net-btn:hover { background: var(--surface); }
.mp-net-btn .mp-swatch { box-shadow: 0 0 0 3px color-mix(in srgb, var(--net) 32%, transparent); }
.mp-net-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-net-btn > .icon { transition: transform var(--dur-base) var(--ease-standard); }
.mp-netmenu[open] .mp-net-btn > .icon { transform: rotate(180deg); }
.mp-net-row .mp-swatch { background: var(--sw); }
.mp-band--top .mp-band-in { display: flex; flex-direction: column; }
@media (max-width: 1023.98px) {
  .mp-page:not(.fx-page):not(.pub-page) .topbar { display: none; }
  .mp-page:not(.fx-page):not(.pub-page) .app-main { padding-top: env(safe-area-inset-top); }
  .mp-band--top { position: sticky; top: 0; z-index: 1010; padding: 10px 0 8px;
    background: linear-gradient(var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent)); }
  .mp-band--top .mp-netmenu { align-self: center; }
  .mp-band--top .mp-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mp-band--top + .mp-body .mp-chips { position: sticky; top: 62px; z-index: 1005; background: var(--bg); padding-top: 4px; }
}
@media (min-width: 1024px) { .mp-band--top .mp-netmenu { order: 2; align-self: flex-start; margin-top: 4px; } }

/* rows like phone contacts: a letter, then the people under it */
.mp-letter { position: sticky; top: 0; margin: 14px 0 2px; padding: 4px 0; font-family: var(--font-display); font-weight: 800;
  font-size: .9375rem; color: var(--text-muted); }
@media (max-width: 1023.98px) { .mp-letter { top: 112px; z-index: 2; background: var(--bg); } }
.mp-section-title { display: none; }
.mp-li { position: relative; display: flex; align-items: center; }
.mp-li > .mp-row { flex: 1; min-width: 0; min-height: 64px; border-radius: 16px; transition: background var(--dur-fast) var(--ease-standard), transform 160ms var(--ease-standard); -webkit-touch-callout: none; user-select: none; }
.mp-rows > li + li { border-top: 0; }
.mp-face { position: relative; background: var(--face-bg); color: var(--face-ink); font-family: var(--font-display); font-weight: 800; }
.mp-face-tick { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg);
  opacity: 0; transform: scale(.6); transition: opacity 120ms linear, transform 220ms cubic-bezier(.3, 1.4, .5, 1); }
.mp-tick { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mp-hover-tick { display: none; }
.mp-row.is-held { transform: scale(.98); background: var(--tint); }
.mp-li.on > .mp-row, .mp-li:has(.mp-tick:checked) > .mp-row { background: color-mix(in srgb, var(--net) 18%, var(--surface)); }
.mp-li.on .mp-face-tick, .mp-li:has(.mp-tick:checked) .mp-face-tick { opacity: 1; transform: none; }
.is-selecting .mp-face { box-shadow: inset 0 0 0 2px var(--line-strong); background: var(--surface); color: transparent; }
.mp-tick:focus-visible + .mp-row { outline: 3px solid var(--text); outline-offset: -3px; }
@media (hover: hover) and (min-width: 1024px) {
  .mp-hover-tick { display: block; position: absolute; right: 12px; width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--line-strong); background: var(--surface); opacity: 0; transition: opacity 120ms linear; }
  .mp-li:hover .mp-hover-tick, .is-selecting .mp-hover-tick { opacity: 1; }
  .mp-li:has(.mp-tick:checked) .mp-hover-tick { background: var(--text); box-shadow: none; }
}

/* the bar while choosing: in place of the bottom bar */
.mp-selbar { display: none; }
.is-selecting .mp-selbar { display: grid; gap: 8px; position: fixed; z-index: 1040; left: 16px; right: 16px; max-width: 640px; margin-inline: auto;
  bottom: calc(14px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 12px; border-radius: 24px;
  background: radial-gradient(120px 80px at 0% 100%, color-mix(in srgb, var(--net) 26%, transparent), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-line), var(--glass-shadow); animation: mp-rise 260ms var(--ease-join); }
.mp-selbar-top { display: flex; align-items: center; gap: 10px; }
.mp-sel-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); }
.mp-sel-count { margin: 0; font-weight: 600; }
.mp-sel-count b { font-family: var(--font-display); font-size: 1.125rem; }
.mp-selbar-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mp-selbar-acts select { flex: 1 1 120px; min-width: 0; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); padding: 0 12px;
  background: var(--surface); color: var(--text); }
.mp-selbar-acts .btn { border-radius: 999px; min-height: 44px; }
body.mp-selecting .ab, body.mp-selecting .mp-dock { display: none; }
@media (min-width: 1024px) { .is-selecting .mp-selbar { bottom: 24px; } }

/* favourites, search and Add people: one glass bar over the list */
.mp-dock { position: fixed; z-index: 1025; left: 16px; right: 16px; max-width: 640px; margin-inline: auto;
  bottom: calc(14px + var(--ab-h, 64px) + 10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 6px;
  border-radius: 999px; background: radial-gradient(110px 80px at 0% 100%, color-mix(in srgb, var(--net) 22%, transparent), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-line), var(--glass-shadow); }
.mp-dock-star { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text-muted); display: grid; place-items: center; }
.mp-dock-star:active { transform: scale(.92); }
.mp-dock-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--text-muted); }
.mp-dock-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 1rem; outline: none; }
.mp-dock-search input, .mp-dock-search input:focus, .mp-dock-search input:focus-visible { outline: none; box-shadow: none; border: 0; }
.mp-dock-search input::-webkit-search-decoration, .mp-dock-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mp-dock-add { flex: none; height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--net); color: #1C1828; font-family: var(--font-display); font-weight: 700; text-decoration: none; box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14); }
.mp-dock-add:hover { color: #1C1828; filter: brightness(.97); }
.mp-dock-add:active { transform: scale(.96); }
.mp-page:has(.mp-dock) .mp-body { padding-bottom: calc(var(--ab-h, 64px) + 120px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .mp-dock { bottom: 24px; } }
.mp-fab { bottom: calc(14px + var(--ab-h, 64px) + 14px + env(safe-area-inset-bottom)); border-radius: 999px;
  box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14), var(--glass-shadow); }
@media (min-width: 1024px) { .mp-fab { bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .mp-face-tick, .mp-li > .mp-row { transition: none; } }

/* a sheet opened from the sticky header must sit above the bars */
.mp-band:has(details[open]) { z-index: 1100; }

/* Add people: the two ways for many people on top of the form for one (founder 1 Dec) */
.mp-add-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.mp-add-way { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface);
  color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--dur-fast) var(--ease-standard), transform 160ms var(--ease-standard); }
.mp-add-way:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.mp-add-way:active { transform: scale(.98); }
.mp-add-way > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--net); color: #1C1828; }
.mp-add-way b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.mp-add-way small { display: block; color: var(--text-muted); font-size: .8125rem; margin-top: 2px; }
.mp-add-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--text-muted); font-size: .875rem; font-weight: 600; }
.mp-add-or::before, .mp-add-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ══ 2 Dec (founder): the network switch opens down from the pill at the top, not up from the bottom; the pill keeps
   one steady width whatever the network's name ══ */
.mp-net-btn { width: 220px; max-width: calc(100vw - 32px); justify-content: center; }
.mp-net-name { flex: 0 1 auto; }
.mp-netmenu .mp-sheet-panel { top: calc(env(safe-area-inset-top) + 66px); bottom: auto; left: 16px; right: 16px; max-width: 420px;
  margin-inline: auto; max-height: min(70vh, 560px); border-radius: 24px; padding: 14px 14px 12px; transform-origin: top center;
  animation: mp-drop 240ms cubic-bezier(.2, .9, .3, 1); box-shadow: 0 24px 60px rgba(28, 24, 40, .28), 0 0 0 1px var(--line); }
.mp-netmenu .mp-sheet-panel .mp-sheet-title { font-size: 1rem; margin: 2px 6px 6px; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; }
.mp-netmenu .fx-grab { display: none; }
@keyframes mp-drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@media (min-width: 1024px) {
  .mp-netmenu { position: relative; }
  .mp-netmenu .mp-sheet-panel { position: absolute; top: calc(100% + 8px); left: 0; right: auto; width: 360px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mp-netmenu .mp-sheet-panel { animation: mp-fade 150ms linear; } }
.mp-netmenu .mp-sheet-panel::before { display: none; }

/* ══ Circles, 2 Dec redesign: orbit cards. The ring (network colour, one dot per person) is the hero of each card; a
   big count sits inside it; the first faces under the name; a round + to add people. A dashed card makes a new one.
   Cards rise in one by one on load (once), then stay still. ══ */
.cr-sum { margin: 2px 0 14px; color: var(--text-muted); font-size: .875rem; }
.cr-sum a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--net); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cr-card { position: relative; border-radius: 26px; background:
    radial-gradient(120px 100px at 50% 0%, color-mix(in srgb, var(--sw, var(--net)) 18%, transparent), transparent 75%), var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 2px rgba(28, 24, 40, .04);
  animation: cr-in 420ms cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard); }
.cr-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sw, var(--net)) 70%, var(--line)), 0 10px 26px rgba(28, 24, 40, .1); }
.cr-card:active { transform: scale(.98); }
.cr-open { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 12px 16px; text-align: center; color: var(--text); text-decoration: none; min-height: 196px; }
.cr-open:hover { color: var(--text); }
.cr-orbit { position: relative; width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 8px; }
.cr-orbit .cr-ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sw, var(--net)); }
.cr-n { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1; }
.cr-name { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cr-meta { font-size: .8125rem; color: var(--text-muted); }
.cr-faces { display: flex; margin-top: 10px; }
.cr-faces i { width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800;
  font-size: .6875rem; background: var(--face-bg); color: var(--face-ink); box-shadow: 0 0 0 2px var(--surface); }
.cr-faces i:first-child { margin-left: 0; }
.cr-faces .cr-more { background: var(--tint); color: var(--text-muted); }
.cr-add { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sw, var(--net)); color: #1C1828; box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14); }
.cr-add:hover { color: #1C1828; filter: brightness(.95); }
.cr-new { background: transparent; box-shadow: none; border: 2px dashed var(--line-strong); }
.cr-new:hover { box-shadow: none; border-color: var(--text-muted); }
.cr-orbit--new { border-radius: 50%; border: 2px dashed var(--line-strong); color: var(--text-muted); }
.cr-orbit--new .icon { width: 28px; height: 28px; }
.cr-card.is-ro { opacity: .7; }
.cr-make > summary.visually-hidden { position: absolute; }
.cr-make:not([open]) > summary:not(.visually-hidden) { display: flex; width: max-content; margin-inline: auto; }
@keyframes cr-in { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 640px) { .cr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .cr-open { min-height: 220px; } .cr-orbit { width: 104px; height: 104px; } }
@media (prefers-reduced-motion: reduce) { .cr-card { animation: none; transition: none; } }

/* Circles, 2 Dec second pass: network chips, the circle mark, the network on each card, a closable New circle sheet */
.cr-nets { margin-top: 2px; }
.cr-nets .mp-chip { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.cr-nets .mp-chip[aria-current="true"] { background: var(--net); border-color: transparent; color: #1C1828; font-weight: 700; }
.cm-mark .cm-track { stroke: var(--sw, var(--net)); }
.cm-mark .cm-bead { fill: var(--text); stroke: var(--surface); stroke-width: 2; }
.cm-mark .cm-room { stroke: #FFB01F; }
.cr-card:hover .cm-room { animation: cr-room 1.4s ease-in-out infinite; transform-origin: 74px 26px; }
@keyframes cr-room { 50% { transform: scale(1.25); } }
.cr-net { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--tint);
  font-size: .75rem; font-weight: 700; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-net i { width: 8px; height: 8px; border-radius: 50%; background: var(--sw, var(--net)); flex: none; }
.cr-card[hidden] { display: none; }
.cr-make-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-x { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--tint); color: var(--text); flex: none; }
.cr-make[open]::before { content: ""; position: fixed; inset: 0; z-index: 1080; background: var(--scrim); animation: mp-fade 200ms linear; }
@media (prefers-reduced-motion: reduce) { .cr-card:hover .cm-room { animation: none; } }

/* a page with its own dock instead of the tabs (one circle; founder 2 Dec): back, the main action, then quiet tools */
.cdock { position: fixed; z-index: 1030; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto;
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px;
  background: radial-gradient(110px 80px at 0% 100%, color-mix(in srgb, var(--net) 26%, transparent), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-line), var(--glass-shadow); }
.cdock > details { margin: 0; }
.cdock-b { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text);
  list-style: none; cursor: pointer; }
.cdock-b::-webkit-details-marker { display: none; }
.cdock-b:active { transform: scale(.94); }
.cdock-go { flex: 1; min-height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--net); color: #1C1828; font-family: var(--font-display); font-weight: 700; text-decoration: none; box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14); }
.cdock-go:hover { color: #1C1828; filter: brightness(.96); }
.cdock-go--quiet { background: var(--surface); color: var(--text); box-shadow: none; }
.mp-page:has(.cdock) .mp-body { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.cm-mark--head { width: 72px; height: 72px; flex: none; }
@media (min-width: 1024px) { .cdock { bottom: 24px; } }

/* ══ You as a profile (founder 2 Dec, like Instagram): name and gear on top, your mark with counts, bio, two buttons,
   your circles as rings ══ */
.yp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.yp-handle { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-gear { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); flex: none; }
.yp-gear:hover { background: var(--tint); color: var(--text); }
.yp-gear .icon { width: 24px; height: 24px; }
.yp-head { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.yp-avatar { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; }
.yp-avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.yp-dot { fill: #FFB01F; }
.yp-avatar b { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--net) 34%, var(--surface));
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--text); }
.yp-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; text-align: center; }
.yp-stats a { color: var(--text); text-decoration: none; display: flex; flex-direction: column-reverse; padding: 6px 0; border-radius: 12px; }
.yp-stats a:hover { background: var(--tint); }
.yp-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; }
.yp-stats dt { font-weight: 500; font-size: .8125rem; color: var(--text-muted); }
.yp-bio { margin: 14px 0 0; font-size: 1rem; }
.yp-bio--empty a { color: var(--text-muted); font-weight: 600; }
.yp-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 16px 0; }
.yp-btn { min-height: 40px; border-radius: 12px; background: var(--tint); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }
.yp-btn:hover { background: color-mix(in srgb, var(--tint) 70%, var(--line)); color: var(--text); }
.yp-rings ul { position: relative; list-style: none; margin: 18px -16px 0; padding: 0 16px 6px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.yp-rings ul::-webkit-scrollbar { display: none; }
.yp-rings li { flex: none; }
.yp-rings a { display: grid; justify-items: center; gap: 6px; width: 72px; color: var(--text); text-decoration: none; font-size: .75rem; font-weight: 600; text-align: center; }
.yp-rings a span:last-child { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-ring { width: 64px; height: 64px; }
.yp-ring--new { display: grid; place-items: center; border-radius: 50%; border: 2px dashed var(--line-strong); color: var(--text-muted); }

/* People's ⋮ menu, top right (founder 2 Dec) */
.mp-band--top .mp-band-in { position: relative; }
.mp-kebab { position: absolute; right: 8px; top: 2px; z-index: 5; }
.mp-kebab > summary { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; list-style: none; cursor: pointer; color: var(--text); }
.mp-kebab > summary::-webkit-details-marker { display: none; }
.mp-kebab > summary .icon { transform: rotate(90deg); }
.mp-kebab > summary:hover, .mp-kebab[open] > summary { background: var(--tint); }
.mp-kebab[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: -1; cursor: default; }
.mp-kebab-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px; border-radius: 18px; background: var(--surface);
  box-shadow: 0 18px 40px rgba(28, 24, 40, .22), 0 0 0 1px var(--line); animation: mp-drop 200ms cubic-bezier(.2, .9, .3, 1); transform-origin: top right; }
.mp-kebab-panel a, .mp-kebab-panel button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px;
  background: none; color: var(--text); text-decoration: none; font-weight: 600; text-align: left; cursor: pointer; }
.mp-kebab-panel a:hover, .mp-kebab-panel button:hover { background: var(--tint); color: var(--text); }
.mp-kebab-panel .icon { color: var(--text-muted); }
.mp-k-light { display: none; }
[data-bs-theme="dark"] .mp-k-dark { display: none; }
[data-bs-theme="dark"] .mp-k-light { display: inline; }
.mp-k-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--net); color: #1C1828; font: 800 .75rem/20px var(--font-body); font-style: normal; text-align: center; }
@media (min-width: 1024px) { .mp-kebab { top: 12px; } }

/* ══ Favourites (founder 2 Dec): a small filled star after a favourite's name; on a computer a star appears on hover
   to add or remove; on a phone, hold people and tap Favourite in the bar. The dock's ★ shows every favourite across
   networks, with a temporary Favourites chip while it is on. ══ */
.mp-star { display: none; margin-left: 6px; color: #FFB01F; vertical-align: -1px; }
.mp-star .icon { width: 14px; height: 14px; fill: currentColor; }
.mp-li.is-fav .mp-star { display: inline-flex; }
.mp-fav-btn { display: none; }
@media (hover: hover) and (min-width: 1024px) {
  .mp-fav-btn { display: grid; place-items: center; position: absolute; right: 48px; width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: var(--surface); color: var(--text-muted); opacity: 0; transition: opacity 120ms linear, transform 160ms var(--ease-standard); cursor: pointer; }
  .mp-li:hover .mp-fav-btn, .mp-fav-btn:focus-visible { opacity: 1; }
  .mp-fav-btn[aria-pressed="true"] { opacity: 1; color: #FFB01F; }
  .mp-fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
  .mp-fav-btn:active { transform: scale(.88); }
  .mp-local .mp-fav-btn { right: 12px; }
}
.mp-sel-fav { display: inline-flex; align-items: center; gap: 6px; }
.mp-sel-fav .icon { color: #FFB01F; }
.mp-dock-star.is-on { background: var(--net); color: #1C1828; }
.mp-dock-star.is-on .icon { fill: currentColor; }
.mp-dock-star .icon { transition: transform 220ms cubic-bezier(.3, 1.4, .5, 1); }
.mp-dock-star.is-on .icon { transform: scale(1.12); }
.mp-chip--fav { display: inline-flex; align-items: center; gap: 6px; background: var(--text) !important; color: var(--bg) !important;
  border-color: transparent !important; font-weight: 700; animation: mp-drop 220ms cubic-bezier(.2, .9, .3, 1); }
.mp-chip--fav .icon { color: #FFB01F; fill: #FFB01F; }

/* ══ Circles, 2 Dec third pass: a solid top bar (title, search, grid/list), no network chips, circles grouped under
   their network, shorter cards, and a list view ══ */
.cr-top { position: sticky; top: 0; z-index: 1010; background: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 0 8px;
  box-shadow: 0 1px 0 var(--line); }
.cr-top-in { display: flex; align-items: center; gap: 6px; }
.cr-title { flex: 1; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; }
.cr-tool { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--text); cursor: pointer; }
.cr-tool:hover, .cr-tool[aria-expanded="true"] { background: var(--tint); }
.cr-tool .icon { width: 22px; height: 22px; }
.cr-ico-grid { display: none; }
.cr-tool[aria-pressed="true"] .cr-ico-list { display: none; }
.cr-tool[aria-pressed="true"] .cr-ico-grid { display: inline-flex; }
.cr-find { padding-top: 8px; }
.cr-find input { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1rem; outline: none; }
.cr-find input:focus { border-color: var(--text); }
.cr-find[hidden] { display: none; }
.cr-sum { margin-top: 12px; }
.cr-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 8px 0 -2px; font-family: var(--font-display); font-weight: 800;
  font-size: .9375rem; color: var(--text-muted); list-style: none; }
.cr-group i { width: 10px; height: 10px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw) 30%, transparent); }
.cr-group:first-child { margin-top: 0; }
.cr-group[hidden] { display: none; }
/* shorter cards */
.cr-open { min-height: 0; padding: 14px 10px 12px; gap: 1px; }
.cr-orbit { width: 72px; height: 72px; margin-bottom: 6px; color: var(--sw, var(--net)); }
.cr-n { font-size: 1.375rem; }
.cr-faces { margin-top: 6px; }
.cr-faces i { width: 22px; height: 22px; font-size: .625rem; }
.cr-add { width: 32px; height: 32px; top: 8px; right: 8px; }
@media (min-width: 1024px) { .cr-open { min-height: 0; } .cr-orbit { width: 84px; height: 84px; } }
/* list view: one row per circle, mark on the left */
.cr-grid.is-list { grid-template-columns: 1fr; gap: 8px; }
.cr-grid.is-list .cr-open { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 10px 56px 10px 12px; flex-wrap: wrap; }
.cr-grid.is-list .cr-orbit { width: 52px; height: 52px; margin: 0; flex: none; }
.cr-grid.is-list .cr-n { font-size: 1rem; }
.cr-grid.is-list .cr-name { flex: 1 1 auto; min-width: 0; -webkit-line-clamp: 1; }
.cr-grid.is-list .cr-meta { flex-basis: 100%; margin: -10px 0 0 66px; }
.cr-grid.is-list .cr-faces { display: none; }
.cr-grid.is-list .cr-add { top: 50%; transform: translateY(-50%); right: 12px; }
.cr-grid.is-list .cr-card { border-radius: 20px; }

/* ══ You, 2 Dec second pass: familiar shape (mark, name, counts, two buttons, highlights), our own idea (the mark is
   made of your networks). Overrides the first pass above. ══ */
.yp-top { padding-top: calc(12px + env(safe-area-inset-top)); }
.yp-hi { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--text-muted); }
.yp-menu { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.yp-menu:hover { background: var(--tint); color: var(--text); }
.yp-menu .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.yp-head { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.yp-avatar { width: 104px; height: 104px; }
.yp-nr { position: absolute; inset: 0; width: 100%; height: 100%; }
.yp-avatar b { width: 74px; height: 74px; font-size: 2.125rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 8px 22px rgba(28, 24, 40, .10); }
.yp-id { min-width: 0; }
.yp-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 6.5vw, 2rem); line-height: 1.05; letter-spacing: -.025em;
  overflow-wrap: anywhere; }
.yp-bio { display: block; margin: 6px 0 0; font-size: .9375rem; color: var(--text-muted); line-height: 1.4; }
.yp-bio--empty { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--net); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.yp-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.yp-legend li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); font-size: .8125rem; font-weight: 600; }
.yp-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.yp-legend b { min-width: 22px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 30%, var(--surface)); font-size: .75rem; text-align: center; }
/* the counts as one rail, numbers first */
.yp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; padding: 4px; border-radius: 20px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); }
.yp-stats a { flex-direction: column; align-items: center; padding: 10px 0; border-radius: 16px; position: relative; }
.yp-stats a + a::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.yp-stats dd { font-size: 1.5rem; line-height: 1.1; }
.yp-stats dt { font-size: .75rem; }
.yp-acts { margin: 12px 0 0; }
.yp-btn { min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.yp-btn .icon { width: 18px; height: 18px; }
.yp-btn--go, .yp-btn--go:hover { background: var(--net); color: #1C1828; box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14); }
.yp-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--net) 16%, var(--surface)); color: var(--text); text-decoration: none; font-size: .875rem; }
.yp-note b { font-weight: 600; }
.yp-note span { flex: none; font-family: var(--font-display); font-weight: 700; text-decoration: underline; text-decoration-color: var(--net); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.yp-note:hover { color: var(--text); }
.yp-rings ul { margin-top: 20px; }

/* Circles, 2 Dec fourth pass: chips under the title (one network at a time), search and + in the bottom bar */
.cr-nets { margin-top: 8px; margin-bottom: 0; }
.cr-top { padding-bottom: 6px; }
.cr-dock { grid-template-columns: none; }
.cr-plus { width: 44px; padding: 0; justify-content: center; }
.cr-plus .icon { width: 22px; height: 22px; }
.mp-page:has(.cr-dock) .mp-body { padding-bottom: calc(var(--ab-h, 64px) + 120px + env(safe-area-inset-bottom)); }
.mp-sel-fav.is-un .icon { fill: #FFB01F; }

/* founder 2 Dec: no mark on the circle cards; the name leads, then the count and the first faces */
.cr-open { align-items: flex-start; text-align: left; padding: 16px 48px 14px 16px; min-height: 112px; }
.cr-name { font-size: 1.125rem; }
.cr-faces { margin-top: 10px; }
.cr-grid.is-list .cr-open { padding: 14px 56px 14px 16px; min-height: 0; }
.cr-grid.is-list .cr-meta { margin: 0; flex-basis: auto; }
/* the chips line up with the title (the chips' usual edge-to-edge margin does not apply here) */
.cr-top .cr-nets { margin: 8px auto 0; padding-inline: 16px; width: 100%; max-width: 1040px; }

/* You, 2 Dec third pass: Coming soon numbers, a heading for recent circles; Settings' own dock */
.yp-stats > div { display: flex; flex-direction: column; align-items: center; padding: 10px 0; position: relative; }
.yp-stats > div + div::before, .yp-stats a + a::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.yp-soon dd span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1.5px dashed var(--line-strong);
  font-family: var(--font-body); font-weight: 700; font-size: .75rem; color: var(--text-muted); letter-spacing: 0; }
.yp-soon dt { color: var(--text-muted); text-align: center; }
.yp-sub { margin: 22px 0 0; font-family: var(--font-display); font-weight: 800; font-size: .9375rem; color: var(--text-muted); }
.yp-rings ul { margin-top: 10px; }
.cdock-form { flex: 1; display: flex; margin: 0; }
.cdock-form .cdock-go { width: 100%; border: 0; cursor: pointer; }
.cdock-out { color: var(--error) !important; }
/* Circles: the divider sits under the title bar, above the network chips (founder 2 Dec) */
.cr-top { box-shadow: none; }
.cr-top-in { padding-bottom: 10px; box-shadow: 0 1px 0 var(--line); max-width: none; }
.cr-top .cr-nets { margin-top: 10px; }
/* founder 2 Dec: back to the centred card, still without the mark */
.cr-open { align-items: center; text-align: center; padding: 22px 14px 18px; min-height: 120px; justify-content: center; }
.cr-grid.is-list .cr-open { align-items: center; text-align: left; justify-content: flex-start; padding: 14px 56px 14px 16px; }

/* Get Early access, docked above the search bar for someone signed in without it (founder 2 Dec) */
.mp-eadock { position: fixed; z-index: 1026; left: 16px; right: 16px; max-width: 640px; margin-inline: auto;
  bottom: calc(14px + var(--ab-h, 64px) + 10px + 56px + 10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 20px;
  background: radial-gradient(120px 80px at 0% 100%, color-mix(in srgb, var(--net) 30%, transparent), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-line), var(--glass-shadow); animation: mp-drop 300ms ease both; }
.mp-eadock-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--net); }
.mp-eadock-i svg { width: 26px; height: 26px; }
.mp-eadock-t { flex: 1; min-width: 0; line-height: 1.2; }
.mp-eadock-t b { display: block; font-family: var(--font-display); font-weight: 800; }
.mp-eadock-t small { color: var(--text-muted); font-size: .8125rem; }
.mp-eadock-go { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  background: #1C1828; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .875rem; text-decoration: none; }
[data-bs-theme="dark"] .mp-eadock-go { background: #F1EEF7; color: #1C1828; }
.mp-eadock-x { margin: 0; } .mp-eadock-x button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); display: grid; place-items: center; }
.mp-page:has(.mp-eadock) .mp-body { padding-bottom: calc(var(--ab-h, 64px) + 190px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .mp-eadock { bottom: 90px; } }

/* Networks overview (founder 2 Dec) */
.nw-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.nw-row { display: flex; align-items: center; gap: 14px; padding: 14px 10px 14px 16px; border-radius: 22px;
  background: radial-gradient(160px 90px at 0% 50%, color-mix(in srgb, var(--sw) 18%, transparent), transparent 75%), var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line); }
.nw-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sw) 30%, transparent); }
.nw-t { flex: 1; min-width: 0; } .nw-t b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; }
.nw-t small { color: var(--text-muted); }
.nw-btn { width: 44px; height: 44px; }
.cdock button.cdock-go { border: 0; cursor: pointer; }
.nw-make[open]::before { content: ""; position: fixed; inset: 0; z-index: 1080; background: var(--scrim); }

/* Circles: network chips short (colour only) or wide, plus the two tool chips (founder 2 Dec). */
.cr-nets .cr-tool { display: inline-grid; place-items: center; min-width: 44px; padding-inline: 12px; color: var(--text-muted); text-decoration: none; }
.cr-nets .cr-tool .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cr-nets .cr-size .cr-i-wide, .cr-nets.is-short .cr-size .cr-i-short { display: none; }
.cr-nets.is-short .cr-size .cr-i-wide { display: block; }
.cr-nets.is-short [data-net] .cr-nm { display: none; }
.cr-nets.is-short [data-net] { min-width: 44px; padding-inline: 14px; justify-content: center; }
.cr-nets.is-short [data-net] .mp-swatch { width: 16px; height: 16px; margin: 0; }

/* 3 Dec (Impeccable pass, app): the two ways to add are rows, icon beside the words, not cards with an icon on top. */
.mp-add-ways { grid-template-columns: 1fr; gap: 8px; }
.mp-add-way { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; min-height: 64px; border-radius: 16px; }
.mp-add-way > .icon { width: 36px; height: 36px; padding: 8px; flex: none; }
.mp-add-way small { display: block; }
@media (min-width: 640px) { .mp-add-ways { grid-template-columns: 1fr 1fr; } }

/* Circle picker in every add form (founder 3 Dec): tick one or more circles, grouped by network */
.mp-cpick { border: 0; padding: 0; margin: 0; min-width: 0; }
.mp-cpick legend { float: none; font-size: .9375rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.mp-cpick-net + .mp-cpick-net { margin-top: 12px; }
.mp-cpick-name { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .8125rem; color: var(--text-muted, #6B6578); }
.mp-cpick-name i { width: 10px; height: 10px; border-radius: 50%; background: var(--net); flex: none; }
.mp-cpick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-cpick-item { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong, rgba(28,24,40,.18)); border-radius: 999px; background: var(--surface); cursor: pointer;
  font-size: .9375rem; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.mp-cpick-item:active { transform: scale(.97); transition-duration: 0s; }
.mp-cpick-item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mp-cpick-item span::before { content: ""; display: inline-block; width: 0; height: 10px; margin-right: 0;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: 0;
  transition: width 160ms ease, margin 160ms ease, opacity 160ms ease; }
.mp-cpick-item:has(input:checked) { background: var(--net); border-color: var(--net); color: #1C1828; font-weight: 700; }
.mp-cpick-item:has(input:checked) span::before { width: 5px; margin-right: 10px; opacity: 1; }
.mp-cpick-item:has(input:focus-visible) { outline: 2px solid var(--focus, #6C4CE0); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mp-cpick-item, .mp-cpick-item span::before { transition: none; } }

/* iPhone contacts: the three steps in the Contacts app (founder 3 Dec) */
.mp-steps-how { list-style: none; counter-reset: how; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.mp-steps-how li { counter-increment: how; display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; }
.mp-steps-how li::before { content: counter(how); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--face-bg); color: var(--face-ink); font-family: var(--font-display); font-weight: 700; font-size: .875rem; }
.mp-steps-how li b { font-weight: 700; }
.mp-how-more { margin: -8px 0 16px; font-size: .9375rem; }
.mp-how-more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; }
.mp-how-more p { margin: 4px 0 8px; line-height: 1.45; }
/* the file picker reads as a real button, 44 px, and shows the chosen file's name next to it */
.mp-form input[type="file"] { width: 100%; min-height: 52px; padding: 6px; border: 1px dashed var(--line-strong, rgba(28,24,40,.25));
  border-radius: var(--radius-md, 14px); background: var(--surface); color: var(--text-muted); font-size: .9375rem; }
.mp-form input[type="file"]::file-selector-button { min-height: 40px; margin-right: 12px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--face-bg); color: var(--face-ink); font: 600 .9375rem var(--font-display); cursor: pointer; }
.mp-form input[type="file"]:active::file-selector-button { transform: scale(.97); }

/* People A–Z (founder 3 Dec "too much space between letters"): a small letter tucked right above its people */
[data-people-list] .mp-section { margin-top: 0; }
[data-people-list] .mp-letter { margin: 8px 0 0; padding: 2px 0; line-height: 1.2; font-size: .8125rem; }
[data-people-list] .mp-section:first-child .mp-letter { margin-top: 0; }

/* Circles top bar: the Map button (founder 3 Dec): an orbit in the brand's ring-and-dot, the dot in the accent */
.cr-map { color: var(--text); text-decoration: none; }
.cr-map .icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.cr-map .cr-map-dot { fill: currentColor; stroke: none; }
.cr-map:active .icon { transform: scale(.9); transition: transform 0s; }
.cr-map .icon { transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
/* Circle map icon (founder 4 Dec): a tick and a press on tap, and a ring if the map takes more than 300 ms to open */
.cr-map { position: relative; }
.cr-map:active { background: var(--tint); }
.cr-map[aria-busy="true"]::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid transparent;
  border-top-color: currentColor; opacity: 0; animation: tap-spin 700ms linear infinite, tap-show 1ms linear 300ms forwards; }
@media (prefers-reduced-motion: reduce) { .cr-map[aria-busy="true"]::after { animation: tap-show 1ms linear 300ms forwards; } }
/* a dock's primary button stays on one line (founder 4 Dec) */
.cdock-go { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Your photo (founder 4 Dec): a complete ring in your networks' colours, no logo dot; the photo or initial inside; a
   camera badge; the whole thing is one 104 px button that opens the photo sheet. */
.yp-photo { flex: none; }
.yp-photo > summary.yp-avatar { cursor: pointer; border-radius: 50%; transition: transform 160ms var(--ease-standard, ease); }
.yp-photo > summary.yp-avatar:active { transform: scale(.96); transition-duration: 0s; }
.yp-photo > summary.yp-avatar:focus-visible { outline: 3px solid var(--net); outline-offset: 3px; }
.yp-photo .yp-nr circle { stroke-width: 5; }
.yp-avatar img { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 3px var(--bg), 0 8px 22px rgba(28, 24, 40, .14); }
.yp-photo .yp-avatar b { width: 82px; height: 82px; background: var(--face-bg); color: var(--face-ink); box-shadow: 0 0 0 3px var(--bg); }
.yp-cam { position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); box-shadow: 0 0 0 3px var(--bg); }
.yp-avatar .yp-cam svg { position: static; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.yp-pick { position: relative; margin-top: 6px; }
.yp-pick[aria-busy="true"] { opacity: .78; pointer-events: none; }
.yp-photo-row { display: flex; align-items: center; gap: 18px; padding: 8px 0 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.yp-photo-row b { font-family: var(--font-display); font-size: 1.0625rem; }
/* after a file import (founder 4 Dec): what was done, then the optional circles step with two buttons */
.mp-done { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--success, #1E9E6A) 12%, var(--surface)); color: var(--text); font-weight: 600; }
.mp-done .icon { flex: none; margin-top: 2px; color: var(--success, #1E9E6A); stroke-width: 2.4; }
.fx-bar--two { display: flex; gap: 8px; }
.fx-bar--two .mp-btn-quiet { flex: 0 0 auto; padding-inline: 20px; }
.fx-bar--two .fx-go { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
