/* The More menu and the pages under it (profile.js, settings.js), and The Parking Lot (lot.js, with lot.css): the client's light
   look by default (cream page, white cards with a soft shadow, navy words, gray lines under them, outline icons on the
   left, › on the right), and the navy look in App Settings. Built from the shared tokens (--bg --paper --paper-2 --ink
   --ink-2 --line --clay --clay-dark --navy --blue --gold --cream); everything here is a pf- class, plus the person's
   own face, .avatar-me. Text is 16px and up (the fine print excepted), and every tap target is 44px or more. */

/* ---------- Our own tokens, for each look ---------- */
:root, :root[data-theme="light"] {
  --pf-shadow: 0 1px 2px rgba(11, 31, 59, 0.05), 0 8px 24px rgba(11, 31, 59, 0.07);
  --pf-edge: transparent;              /* a card's border: none on cream, a hairline on navy */
  --pf-gold: #c98f1f;                  /* the crown, deep enough to see on white */
  --pf-tint: rgba(59, 167, 249, 0.13); /* the circle behind an update's icon */
  --pf-danger: #d8372c;
  --pf-switch-off: #cfc8b8;
  --pf-field: #ffffff;
}
:root[data-theme="dark"] {
  --pf-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.25);
  --pf-edge: var(--line);
  --pf-gold: var(--gold);
  --pf-tint: rgba(59, 167, 249, 0.18);
  --pf-danger: #ff8f7a;
  --pf-switch-off: rgba(248, 244, 233, 0.24);
  --pf-field: var(--paper-2);
}

/* Hidden means hidden, whatever display a rule below gives it. */
:is(.pf-page, .pf-table, .pf-sheet) [hidden] { display: none !important; }

/* ---------- Pieces ---------- */
.pf-page, .pf-table { padding-bottom: 12px; }
/* A page's heading: the shared .page-title/.display look when it's there; these only fill in without it. */
:where(.pf-head) { margin: 18px 0 16px; }
:where(.pf-head) h1 { margin: 0; font: 700 30px/1.15 var(--display, var(--sans, system-ui)); letter-spacing: -0.02em; color: var(--ink); }
:where(.pf-head) .page-lede { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); }

.pf-group { margin: 24px 0 0; }
.pf-group-title { margin: 0 4px 8px; font: 700 15px/1.3 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.pf-group-danger .pf-group-title { color: var(--pf-danger); }
.pf-box {
  margin: 0; overflow: hidden;
  border: 1px solid var(--pf-edge); border-radius: 16px;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--pf-shadow);
}
.pf-box > * + * { border-top: 1px solid var(--line); }
.pf-page > .pf-box + .pf-box, .pf-page > .pf-box + .pf-group, .pf-page > .pf-group + .pf-box { margin-top: 16px; }

.pf-note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pf-note b { color: var(--ink); }
.pf-center { text-align: center; }
.pf-fine { margin: 26px 8px 8px; font-size: 14px; line-height: 1.5; text-align: center; color: var(--ink-2); }
.pf-error { margin: 0; font-size: 16px; line-height: 1.45; color: var(--pf-danger); }
.pf-error:empty { display: none; }
/* Words for screen readers only. */
.pf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pf-loading { display: flex; justify-content: center; gap: 7px; padding: 28px 0; }
.pf-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); animation: pf-blink 1.2s infinite; }
.pf-loading span:nth-child(2) { animation-delay: 0.2s; }
.pf-loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pf-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.pf-empty { padding: 32px 12px; text-align: center; color: var(--ink-2); }
.pf-empty h3 { margin: 0 0 6px; font: 700 22px/1.25 var(--sans); color: var(--ink); }
.pf-empty p { margin: 0 auto 16px; max-width: 380px; font-size: 16px; line-height: 1.5; }
.pf-empty .btn { display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0; padding: 12px 24px; }
.pf-empty-ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--pf-tint); color: var(--clay-dark); }

/* Buttons side by side, wrapping on a narrow phone. */
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-actions .btn, .pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; flex: 1 1 auto; min-height: 48px; margin: 0; padding: 12px 18px; text-align: center;
}
.pf-actions .btn + .btn { margin-top: 0; }
.pf-actions .btn svg, .pf-btn svg { flex: 0 0 auto; }
.btn.pf-danger { background: transparent; border-color: color-mix(in srgb, var(--pf-danger) 45%, transparent); color: var(--pf-danger); box-shadow: none; }
.btn.pf-danger-fill { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--pf-danger); border-color: var(--pf-danger); color: #fff; }
.pf-small-btn {
  flex: 0 0 auto; min-width: 88px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 999px;
  background: var(--paper); color: var(--clay-dark); font: 600 16px var(--sans);
}

/* ---------- Faces: a photo, or initials in a circle (avatarFor; .avatar-me is the person's own) ---------- */
.pf-av {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; overflow: hidden;
  border-radius: 50%; background: var(--pf-c, #1f6fb3); color: #fff;
  font-family: var(--sans); font-weight: 700; line-height: 1; letter-spacing: 0.02em;
  vertical-align: middle; user-select: none; -webkit-user-select: none;
}
.pf-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-av > span { font: inherit; }
/* The header's round photo (app.js draws it into #sh-me): a thin light ring, so a dark photo shows on the navy bar. */
#sh-me .avatar-me { box-shadow: 0 0 0 2px rgba(248, 244, 233, 0.85); }

/* ---------- Rows: an icon, words and a line under them, › ---------- */
.pf-list { padding: 0; list-style: none; }
.pf-list > li { margin: 0; }
.pf-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; margin: 0; padding: 12px 12px 12px 16px;
  border: 0; border-radius: 0; background: none; color: var(--ink);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.pf-row:active { background: var(--paper-2); }
.pf-row:focus-visible { outline: 2px solid var(--clay); outline-offset: -3px; }
.pf-ico { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); }
.pf-row-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.pf-row-text b { font: 600 18px/1.3 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.pf-row-text small { font-size: 16px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.pf-chev { flex: 0 0 auto; display: grid; place-items: center; color: var(--ink-2); }
.pf-row-plus .pf-ico { color: var(--pf-gold); }
@media (hover: hover) {
  .pf-row:hover, .pf-q summary:hover, .pf-set-btn:hover { background: var(--paper-2); }
}

/* ---------- #more: the person's card, the updates ---------- */
.pf-me { display: flex; align-items: center; gap: 16px; padding: 16px 12px 16px 16px; color: var(--ink); text-decoration: none; }
.pf-me > * + * { border-top: 0; }
.pf-me:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.pf-me-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.pf-me-text b { font: 700 21px/1.25 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.pf-me-text small { overflow: hidden; font-size: 16px; line-height: 1.4; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.pf-me-small .pf-me-text b { font-size: 19px; }
.pf-me-small .pf-me-text small { white-space: normal; }
.pf-plan {
  justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 11px;
  border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font: 600 15px/1.25 var(--sans); font-style: normal;
}
.pf-plan.plus { background: color-mix(in srgb, var(--gold) 24%, transparent); color: var(--ink); }
.pf-plan.plus svg { color: var(--pf-gold); }
.pf-page-more .pf-me { margin-top: 0; }
.pf-page-more .pf-list { margin-top: 16px; }

.pf-updates { margin: 0 0 18px; }
.pf-up .pf-ico, .pf-ann .pf-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--pf-tint); color: var(--clay-dark); }
.pf-ann { display: flex; align-items: flex-start; gap: 14px; padding: 14px 4px 14px 16px; }
.pf-ann .pf-row-text { padding-top: 2px; }
.pf-ann-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font: 600 16px var(--sans); color: var(--clay-dark); }
.pf-dismiss {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; margin: -4px 0 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer;
}
.pf-dismiss:active { background: var(--paper-2); }

/* ---------- Settings: a row of words with a switch, buttons or a list ---------- */
.pf-set { display: grid; gap: 12px; margin: 0; padding: 14px 16px; }
.pf-set-text { display: grid; gap: 2px; min-width: 0; }
.pf-set-text b { font: 600 18px/1.3 var(--sans); color: var(--ink); }
.pf-set-text small { font-size: 16px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.pf-set-line { display: flex; align-items: center; gap: 12px; }
.pf-set-line .pf-set-text { flex: 1 1 auto; }
/* A setting that opens something (the player's speed): the whole row is the button. */
.pf-set-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px;
  border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.pf-set-btn .pf-set-text { flex: 1 1 auto; }
.pf-set-btn > svg { flex: 0 0 auto; color: var(--ink-2); }
.pf-set-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: -3px; }
.pf-value { flex: 0 0 auto; font: 700 18px var(--sans); color: var(--clay-dark); }

/* One of a few, picked: the picked one in the app's blue. */
.pf-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.pf-seg button {
  flex: 1 1 auto; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px;
  background: none; color: var(--ink-2); font: 600 16px/1.2 var(--sans); cursor: pointer;
}
.pf-seg button[aria-checked="true"] { background: var(--blue); color: var(--navy); box-shadow: 0 1px 3px rgba(11, 31, 59, 0.18); }
.pf-seg button:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }

/* On or off. The real checkbox sits under the drawing, for screen readers and keyboards. */
.pf-switch-row { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.pf-switch-row .pf-set-text { flex: 1 1 auto; }
.pf-switch-row input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pf-switch { position: relative; flex: 0 0 auto; width: 52px; height: 32px; border-radius: 999px; background: var(--pf-switch-off); transition: background 160ms; }
.pf-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 160ms;
}
.pf-switch-row input:checked + .pf-switch { background: var(--blue); }
.pf-switch-row input:checked + .pf-switch::after { transform: translateX(20px); }
.pf-switch-row input:focus-visible + .pf-switch { outline: 2px solid var(--clay); outline-offset: 2px; }

.pf-select-row select, .pf-field select {
  width: 100%; min-height: 48px; margin: 0; padding: 10px 40px 10px 14px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 12px;
  background-color: var(--pf-field); color: var(--ink); font: 17px/1.3 var(--sans);
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 15px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}

/* ---------- Forms ---------- */
.pf-form { display: grid; gap: 16px; padding: 16px; }
.pf-form > * + * { border-top: 0; }
.pf-inset { background: var(--paper-2); }
.pf-field { display: grid; gap: 6px; margin: 0; }
.pf-field-label { font: 600 17px/1.3 var(--sans); color: var(--ink); }
.pf-field-label em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.pf-field small { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.pf-field :is(input, textarea), .pf-reply-form textarea {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 12px;
  background: var(--pf-field); color: var(--ink); font: 17px/1.4 var(--sans);
  box-shadow: none; -webkit-appearance: none; appearance: none;
}
.pf-field textarea, .pf-reply-form textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.pf-field input[type="date"] { text-align: left; }
.pf-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
:is(.pf-field, .pf-reply-form) :is(input, textarea, select):focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 22%, transparent);
}
.pf-form > .btn { margin: 0; }
.pf-form .pf-switch-row { padding: 0; }

/* ---------- #profile: the photo, the form, how it looks ---------- */
.pf-photo-box { position: relative; display: grid; justify-items: center; gap: 14px; padding: 22px 16px 18px; text-align: center; }
.pf-photo-box > * + * { border-top: 0; }
.pf-photo .pf-av { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); }
.pf-photo-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.pf-photo-tools .btn { flex: 1 1 150px; max-width: 260px; }
.pf-photo-tools .btn + .btn { margin-top: 0; }
.pf-file { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf-profile-form { margin-top: 16px; }
.pf-preview { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--paper-2); }
.pf-preview .pf-group-title { margin: 0; }
.pf-pv-post { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--paper); }
.pf-pv-text { display: grid; gap: 2px; min-width: 0; }
.pf-pv-text b, .pf-pv-who b { font: 600 17px/1.3 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.pf-pv-text small, .pf-pv-who small { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.pf-pv-card { margin-top: 0; padding: 12px; border-radius: 12px; background: var(--paper); }
.pf-pv-label { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.pf-pv-who { display: flex; align-items: center; gap: 12px; }
.pf-pv-who > span { display: grid; gap: 2px; min-width: 0; }
.pf-pv-bio { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- #help and #about ---------- */
.pf-faq { display: grid; }
.pf-q + .pf-q { border-top: 1px solid var(--line); }
.pf-q summary {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 12px 14px 16px;
  font: 600 18px/1.35 var(--sans); color: var(--ink); cursor: pointer; list-style: none;
}
.pf-q summary::-webkit-details-marker { display: none; }
.pf-q summary > span:first-child { flex: 1 1 auto; }
.pf-q summary:focus-visible { outline: 2px solid var(--clay); outline-offset: -3px; }
.pf-q-chev { flex: 0 0 auto; display: grid; place-items: center; color: var(--ink-2); transition: transform 160ms; }
.pf-q[open] .pf-q-chev { transform: rotate(90deg); }
.pf-a { padding: 0 16px 16px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.pf-a p { margin: 0 0 10px; }
.pf-a p:last-child { margin-bottom: 0; }
.pf-a a, .pf-resource p a { color: var(--clay-dark); font-weight: 600; }
.pf-resource { gap: 10px; }
.pf-resource h3 { margin: 0; font: 700 18px/1.3 var(--sans); color: var(--ink); }
.pf-resource p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pf-meetings .pf-fine { margin-top: 12px; }
.pf-prose { padding: 18px 18px 4px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.pf-prose > * + * { border-top: 0; }
.pf-prose p { margin: 0 0 14px; }
.pf-help-note { margin-bottom: 4px; }

/* ---------- Sheets: a name, a profile card, deleting the account ---------- */
.pf-sheet .pf-form { padding: 12px 0 0; }
.pf-person-body { display: grid; gap: 14px; padding: 10px 0 4px; }
.pf-person-top { display: flex; align-items: center; gap: 16px; }
.pf-person-top > div { min-width: 0; }
.pf-person-name { margin: 0 0 2px; font: 700 22px/1.25 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.pf-person-bio { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.pf-facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pf-facts li { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.pf-facts svg { flex: 0 0 auto; color: var(--clay-dark); }

/* ---------- The forum pieces (lot.js draws with them: the two men, chips, threads, replies, review) ---------- */
.pf-men { margin: 4px 0 26px; }
.pf-men-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 10px; }
.pf-man {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 16px; background: var(--navy); color: var(--cream); text-decoration: none; box-shadow: var(--pf-shadow);
}
.pf-man img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-man > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 12px 12px; background: linear-gradient(180deg, transparent, rgba(11, 31, 59, 0.94) 55%); }
.pf-man b { display: block; font: 700 19px/1.2 var(--sans); }
.pf-man small {
  display: -webkit-box; margin-top: 4px; overflow: hidden; font-size: 14px; line-height: 1.3; opacity: 0.92;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.pf-man::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, #3ba7f9) 60%, transparent); pointer-events: none; }
.pf-man:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.pf-forum-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 0 0 12px; }
.pf-forum-head h2 { margin: 0; font: 700 22px/1.2 var(--sans); color: var(--ink); }
.pf-forum-tools { display: inline-flex; align-items: center; gap: 8px; }
.pf-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 600 16px var(--sans); text-decoration: none;
}
.btn.pf-new { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 44px; margin: 0; padding: 0 18px; }
.pf-tabs { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.pf-tabs a {
  flex: 1 1 0; display: grid; place-items: center; min-height: 44px; padding: 0 8px; border-radius: 10px;
  color: var(--ink-2); font: 600 16px/1.2 var(--sans); text-align: center; text-decoration: none;
}
.pf-tabs a[aria-current="page"] { background: var(--blue); color: var(--navy); }
.pf-tabs a:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.pf-search {
  display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0 0 12px; padding: 0 14px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 14px; background: var(--paper); color: var(--ink-2);
}
.pf-search:focus-within { border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 18%, transparent); }
.pf-search svg { flex: 0 0 auto; }
.pf-search input {
  flex: 1 1 auto; min-width: 0; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; color: var(--ink); font: 17px var(--sans); box-shadow: none; outline: none; -webkit-appearance: none; appearance: none;
}
.pf-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

.pf-posts { margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid var(--pf-edge); border-radius: 16px; background: var(--paper); box-shadow: var(--pf-shadow); }
.pf-post { display: flex; align-items: flex-start; gap: 2px; padding: 4px 4px 4px 8px; }
.pf-post + .pf-post { border-top: 1px solid var(--line); }
.pf-face {
  flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; margin: 6px 0 0; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.pf-face:focus-visible, .pf-author:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.pf-post-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px 10px 4px; color: var(--ink); text-decoration: none; }
.pf-post-link:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; border-radius: 10px; }
.pf-post-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.pf-post-text b { font: 600 17px/1.3 var(--sans); overflow-wrap: anywhere; }
.pf-post-text small { font-size: 15px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.pf-post-text em { font-style: normal; color: var(--clay-dark); }
.pf-post-replies { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding-top: 2px; font: 600 15px var(--sans); color: var(--ink-2); }
.pf-post.waiting .pf-post-text b { opacity: 0.75; }
.pf-wait {
  justify-self: start; display: inline-block; margin: 6px 0 0; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 38%, transparent); color: var(--ink); font: 600 14px/1.35 var(--sans);
}
.pf-wait.off { background: var(--paper-2); color: var(--ink-2); }
.pf-more-row { display: flex; justify-content: center; margin: 18px 0 0; }
.pf-more-row:empty { display: none; }
.pf-more-row .btn { width: auto; margin: 0; padding: 12px 24px; }
.pf-forum .pf-empty { border-radius: 16px; background: var(--paper); box-shadow: var(--pf-shadow); }

.pf-thread { padding-top: 14px; }
.pf-thread-head { display: flex; align-items: flex-start; gap: 6px; }
.pf-thread-head h1 { flex: 1 1 auto; min-width: 0; margin: 4px 0 10px; font: 700 26px/1.2 var(--sans); letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.pf-icon-btn {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer;
}
.pf-icon-btn:active { background: var(--paper-2); }
.pf-icon-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.pf-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.pf-author {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 2px 12px 2px 2px;
  border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 17px/1.2 var(--sans); text-align: left; cursor: pointer;
}
button.pf-author:active { background: var(--paper-2); }
.pf-author b { font-weight: 600; overflow-wrap: anywhere; }
.pf-byline-meta { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.pf-byline-meta a { color: var(--clay-dark); }
.pf-body { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
p.pf-wait { display: inline-block; margin: 8px 0 0; }
.pf-replies { margin-top: 28px; }
.pf-replies h2 { margin: 0 0 4px; font: 700 20px/1.3 var(--sans); color: var(--ink); }
.pf-replies ul { margin: 0; padding: 0; list-style: none; }
.pf-reply { padding: 12px 0 16px; border-top: 1px solid var(--line); }
.pf-reply.waiting { opacity: 0.72; }
.pf-reply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.pf-reply .pf-body { margin-top: 6px; }
.pf-reply-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pf-reply-form .btn { justify-self: end; width: auto; min-width: 128px; margin: 0; padding: 12px 24px; }
.pf-as { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.pf-as b { color: var(--ink); }
.pf-as a { color: var(--clay-dark); font-weight: 600; }
.pf-about-talk {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid var(--pf-edge); border-radius: 14px; background: var(--paper); box-shadow: var(--pf-shadow); font-size: 16px; color: var(--ink);
}
.pf-about-talk svg { flex: 0 0 auto; color: var(--blue); }
.pf-mod-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pf-mod-item { display: grid; gap: 8px; padding: 14px; }
.pf-mod-item > * + * { border-top: 0; }
.pf-mod-item .pf-note:empty { display: none; }
.pf-mod-title { font: 600 17px/1.3 var(--sans); color: var(--ink); }
.pf-mod-item .pf-body { margin: 0; font-size: 16px; }

/* ---------- Round 9: the red numbers, the Updates page, sending in a talk, My talks ---------- */
/* A small red pill with a white number: on the More menu's rows (the Shell draws the one on the photo). The same red
   in both looks: white on it reads either way. */
.pf-badge {
  flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: #d8372c; color: #fff; font: 700 14px/1 var(--sans); letter-spacing: 0.01em;
}
.pf-updates-row { margin: 0 0 16px; }
.pf-page-more .pf-updates-row + .pf-me { margin-top: 0; }
/* Mark all read, above the inbox. */
.pf-tools-row { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.pf-tools-row:empty { display: none; }
.pf-mark-all { gap: 6px; border: 1px solid var(--line-strong, var(--line)); cursor: pointer; font: 600 16px var(--sans); }
.pf-mark-all svg { color: var(--clay-dark); }
/* The inbox: each update is a button; a blue dot while it's unread. */
.pf-inbox { margin-top: 0; }
.pf-notif {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 72px; margin: 0; padding: 12px 14px 12px 16px;
  border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.pf-notif:active { background: var(--paper-2); }
.pf-notif:focus-visible { outline: 2px solid var(--clay); outline-offset: -3px; }
.pf-notif-face { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; }
.pf-notif-face .pf-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--pf-tint); color: var(--clay-dark); }
.pf-notif .pf-row-text b { font-weight: 500; }
.pf-notif.unread .pf-row-text b { font-weight: 700; }
.pf-notif .pf-row-text em { font-style: normal; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pf-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 10px; border-radius: 50%; background: transparent; }
.pf-notif.unread .pf-dot { background: var(--blue); box-shadow: 0 0 0 3px var(--pf-tint); }
.pf-page-updates .pf-group-title { margin-top: 0; }
.pf-page-updates [data-inbox] > .pf-group-title { margin-top: 22px; }
.pf-page-updates .pf-updates { margin-bottom: 0; }
.pf-page-updates [data-talks] .pf-group { margin-top: 24px; }
.pf-page-updates .pf-empty { border-radius: 16px; background: var(--paper); box-shadow: var(--pf-shadow); }
.pf-page-updates .pf-empty .btn { margin-top: 4px; }

/* Submit a talk: pick the file, the details, a big box to tick, then the bar while it goes up. */
.pf-pick { display: grid; gap: 10px; }
.pf-pick .pf-btn { width: 100%; }
.pf-set-plain { padding: 0; }
.pf-check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; margin: 0; cursor: pointer; }
.pf-check input { flex: 0 0 auto; width: 28px; height: 28px; margin: 1px 0 0; accent-color: var(--clay); }
.pf-check span { font-size: 16px; line-height: 1.5; color: var(--ink); }
.pf-check input:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.pf-submit-form .btn[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pf-upload, .pf-thanks { display: grid; gap: 14px; padding: 20px 16px; }
.pf-upload > * + *, .pf-thanks > * + * { border-top: 0; }
.pf-upload-name { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.pf-upload-name b { color: var(--ink); }
.pf-bar { height: 14px; overflow: hidden; border-radius: 999px; background: var(--paper-2); }
.pf-bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width 240ms; }
.pf-upload-status { font-size: 16px; color: var(--ink); }
.pf-thanks { justify-items: center; text-align: center; padding: 28px 16px 22px; }
.pf-thanks .pf-empty-ico { margin: 0; }
.pf-thanks h2 { margin: 0; font: 700 24px/1.2 var(--sans); color: var(--ink); }
.pf-thanks p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pf-thanks .pf-actions { width: 100%; justify-content: center; }
/* My talks: each recording and what became of it. */
.pf-sub { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.pf-sub .pf-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--pf-tint); color: var(--clay-dark); }
.pf-sub .pf-row-text { gap: 4px; }
.pf-wait.on { background: var(--pf-tint); color: var(--clay-dark); }
.pf-sub-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font: 600 16px var(--sans); color: var(--clay-dark); }
.pf-sub-note { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.pf-page-my-talks [data-list] + .pf-list { margin-top: 16px; }
.pf-page-my-talks .pf-empty { padding-bottom: 24px; }

/* ---------- Round 9: the forum: replies to replies, a reply found by a link, applying to moderate ---------- */
.pf-reply-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.pf-reply-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 0 -8px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; color: var(--clay-dark); font: 600 16px var(--sans); cursor: pointer;
}
.pf-reply-btn:active { background: var(--paper-2); }
.pf-reply-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.pf-reply.nested { margin-left: 22px; padding-left: 14px; border-left: 3px solid var(--line); }
.pf-reply-to { margin: 0 0 4px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.pf-reply-to b { font-weight: 600; color: var(--ink); }
/* The reply a link pointed at: a soft blue wash that fades. */
.pf-reply.pf-hilite { border-radius: 12px; animation: pf-wash 2.8s ease-out both; }
@keyframes pf-wash {
  0%, 35% { background: var(--pf-tint); box-shadow: 0 0 0 8px var(--pf-tint); }
  100% { background: transparent; box-shadow: 0 0 0 8px transparent; }
}
.pf-replying {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 4px 4px 4px 14px;
  border-radius: 12px; background: var(--pf-tint); font-size: 16px; line-height: 1.4; color: var(--ink);
}
.pf-replying b { font-weight: 600; }
.pf-apply { margin: 20px 0 0; }
.pf-apply .pf-set { gap: 10px; }
.pf-apply h2 { margin: 0; font: 700 19px/1.3 var(--sans); color: var(--ink); }
.pf-apply .pf-actions .btn { flex: 0 1 auto; }
.pf-why-left { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Round 10: the Messages page (the envelope with its number), the Messages row ---------- */
.pf-msg-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 600 18px/1.3 var(--sans); color: var(--ink); }
.pf-msg-head.quiet { color: var(--ink-2); }
.pf-msg-env { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--pf-tint); color: var(--clay-dark); }
.pf-msg-env .pf-badge { position: absolute; top: -4px; right: -6px; box-shadow: 0 0 0 2px var(--bg); }
.pf-msg-links { margin-top: 16px; }
.pf-row-messages .pf-ico { color: var(--clay-dark); }

/* ---------- Round 9: a question in a sheet, the plan card ---------- */
.pf-ask-body { padding: 8px 0 4px; }
.pf-ask-body p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.pf-ask-actions { margin-top: 14px; }
.pf-plan-card { gap: 10px; }
.pf-plan-note { margin: 0; font: 600 17px/1.45 var(--sans); color: var(--ink); }
.pf-plan-fine { font-size: 14px; }
.pf-plan-card .pf-actions .btn { flex: 1 1 160px; }

/* ---------- Round 13: the verified check, Get verified, Report a problem / Make a suggestion ---------- */
/* The check after a verified speaker's name: tapes.js's badge in blue; until that drawing lands (.plain), a plain
   check in a small blue circle. Sized inline by settings.js (verifiedMark). */
.pf-verified { display: inline-grid; place-items: center; flex: 0 0 auto; margin-left: 4px; vertical-align: -3px; color: var(--clay-dark); }
.pf-verified.plain { width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--clay-dark); color: #fff; }
:root[data-theme="dark"] .pf-verified.plain { color: var(--navy); }
.pf-verified svg { display: block; }
.pf-person-name .pf-verified { vertical-align: -2px; }
.pf-fact-verified .pf-verified { margin-left: 0; }
.pf-fact-verified a { color: var(--clay-dark); font-weight: 600; }
.pf-pv-verified { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font: 600 15px/1.4 var(--sans); color: var(--ink); }
.pf-pv-verified .pf-verified { margin-left: 0; }
/* The verification card (Account Settings, and the Parking Lot's home for members who never asked). */
.pf-verify-card { margin-top: 16px; }
.pf-verify-card .pf-set { gap: 10px; }
.pf-verify-card h2 { display: flex; align-items: center; gap: 6px; margin: 0; font: 700 19px/1.3 var(--sans); color: var(--ink); }
.pf-verify-card h2 .pf-verified { margin-left: 0; }
.pf-verify-card .pf-actions .btn { flex: 0 1 auto; }
.pf-ver-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 6px; font: 600 16px var(--sans); color: var(--clay-dark); text-decoration: none; }
.lot-page .pf-verify-card { margin-top: 20px; }
/* The Get verified sheet: the search, the list of speakers, the one chosen. */
.pf-ver-search { margin: 0; }
.pf-ver-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.pf-ver-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 8px 10px 8px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.pf-ver-row:active { background: var(--paper-2); }
.pf-ver-row:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.pf-ver-row .pf-row-text b { font-size: 17px; }
.pf-ver-row .pf-row-text small { font-size: 15px; }
.pf-ver-none { margin-top: 8px; font-size: 15px; }
.pf-ver-chosen { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px 8px 14px; border: 1.5px solid var(--clay); border-radius: 14px; background: color-mix(in srgb, var(--clay) 10%, var(--paper)); }
.pf-ver-chosen .pf-row-text b { display: flex; align-items: center; gap: 4px; font-size: 17px; }
.pf-ver-chosen .pf-verified { margin-left: 0; }
/* Report a problem / Make a suggestion: two 48px choices, the words, how to reach you, what's attached, thanks. */
.pf-row-feedback .pf-ico { color: var(--pf-gold); }
.pf-fb-kind button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; }
.pf-fb-kind button svg { flex: 0 0 auto; }
.pf-fb-attached { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: 14px; line-height: 1.45; }
.pf-fb-attached svg { flex: 0 0 auto; margin-top: 1px; color: var(--ink-2); }
.pf-fb-attached b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pf-fb-thanks { padding: 24px 8px 8px; }
.pf-fb-thanks h2 { font-size: 22px; }
.pf-fb-thanks .pf-actions .btn { flex: 0 1 200px; }
@media (max-width: 380px) {
  .pf-fb-kind button { font-size: 15px; padding: 0 4px; }
}

/* ---------- Round 14: the username, Have a code?, My albums ---------- */
/* The Username box wears an @ at its left; the words under it say whether it's free as you type. */
.pf-handle-wrap { position: relative; display: block; }
.pf-handle-at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 600 17px var(--sans); color: var(--ink-2); pointer-events: none; }
.pf-field .pf-handle-wrap input { padding-left: 34px; }
.pf-pv-handle { margin-left: 4px; font-weight: 500; color: var(--ink-2); }
.pf-pv-who small .pf-pv-handle { margin-left: 0; }
.pf-row-code .pf-ico { color: var(--pf-gold); }

/* ---------- Narrow phones: a little more room for the words ---------- */
@media (max-width: 380px) {
  .pf-row { gap: 12px; padding-left: 14px; }
  .pf-seg button { padding: 0 6px; }
  .pf-thread-head h1 { font-size: 24px; }
  .pf-reply.nested { margin-left: 12px; padding-left: 10px; }
  .pf-notif { gap: 12px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-switch, .pf-switch::after, .pf-q-chev, .pf-bar span { transition: none; }
  .pf-loading span { animation: none; opacity: 0.6; }
  .pf-reply.pf-hilite { animation: none; background: var(--pf-tint); }
}
