/* Profiles (10/13 redesign; web/js/profile-card.js, wall.js, views/me.js render, views/network.js renderProfile).
   Order: the hero, About, the chip rows, prompts, Firsts, Recent, the wall last. One column, max 640px, and a
   112px label gutter shared by the facts, the chip rows and the Firsts, so everything lines up on one edge.
   Loaded after app.css (app.html), so these win over the older .profile rules there. */
.profile { text-align: left; max-width: 640px; margin: 0 auto; padding-top: 0; }
.pf-hero { text-align: center; padding: 4px 0 22px; border-bottom: 1px solid var(--line); }
.pf-hero .profile-orb { width: 104px; height: 104px; margin: 14px auto 18px; font-size: 2.3rem;
  box-shadow: 0 0 0 6px var(--halo-soft), 0 0 0 14px var(--halo-faint), 0 0 48px 6px var(--halo-soft); }
.pf-hero .profile-title { font-size: 1.75rem; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.pf-handle, .pf-line { margin: 4px 0 0; color: var(--ink-soft); font-size: .9375rem; overflow-wrap: anywhere; }
.pf-handle { margin-top: 6px; }
/* The slogan (10/22): their own line or two, in ink (it's them talking), between the handle and the town line. */
.pf-slogan { max-width: 420px; margin: 8px auto 2px; color: var(--ink); font-size: .9875rem; line-height: 1.45; overflow-wrap: anywhere; text-wrap: pretty; }
.pf-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--halo-soft); background: var(--halo-faint); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.pf-pill::after { content: ""; position: absolute; inset: -4px 0; } /* a 44px tap target around a 36px pill */
.pf-pill:hover { border-color: var(--halo); }
.pf-pill:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.pf-pill-ico { width: 16px; height: 16px; flex: none; fill: var(--halo-ink); }
.pf-pill-n { flex: none; }
.pf-pill-top { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink-soft); }
.pf-pill-top::before { content: "\00b7"; margin-right: 6px; }
/* A friend's Ex-versary today: one slim row, not a second hero. */
.pf-celebrate { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 360px; margin: 14px auto 0; padding: 4px 4px 4px 16px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  font-size: .875rem; font-weight: 700; text-align: left; }
.pf-celebrate .btn { flex: none; min-height: 44px; }
/* 11/23: a box to the right of the name lines (your friend QR code on You): the lines go left-aligned beside it. */
.pf-id-top { display: flex; align-items: center; gap: 14px; text-align: left; }
.pf-id-main { flex: 1 1 auto; min-width: 0; }
.pf-id-top .profile-name { justify-content: flex-start; }
.pf-id-top .profile-name .profile-title { text-align: left; }
.pf-id-top .pf-slogan { margin-left: 0; }
.pf-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.pf-main-act { flex: 1 1 0; max-width: 260px; min-width: 0; }
.pf-actions .pf-main-act + .pf-main-act { max-width: 160px; }
.pf-more-btn { flex: none; width: 48px; padding: 0; display: grid; place-items: center; }
.pf-more-btn svg { width: 20px; height: 20px; fill: currentColor; }
.pf-note { max-width: 440px; margin: 18px auto 0; text-align: center; color: var(--ink-soft); font-size: .9375rem; }
.pf-sec { padding-bottom: 4px; }
.pf-h { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 10px; }
.pf-h-sub { font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.profile .profile-bio { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.pf-facts { margin: 0; }
.pf-facts > div, .pf-tagrow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.pf-facts > div { padding: 9px 0; border-top: 1px solid var(--line); }
.pf-facts > div:last-child { border-bottom: 1px solid var(--line); }
.pf-facts dt, .pf-taglabel { color: var(--ink-soft); font-size: .8125rem; font-weight: 600; }
.pf-facts dt { padding-top: 1px; }
.pf-facts dd { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.pf-fact-sub { display: block; color: var(--ink-soft); font-size: .8125rem; }
.pf-facts .match { display: inline-block; margin-top: 2px; font-size: .8125rem; }
.pf-tags { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pf-taglabel { padding-top: 6px; }
.pf-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pf-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .8125rem; font-weight: 600; }
.pf-tagrow:not(.open) .pf-x { display: none; }
.pf-x:focus { outline: none; }
.pf-more { position: relative; border: 1px solid var(--line); background: none; color: var(--halo-ink); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.pf-more::after { content: ""; position: absolute; inset: -7px -4px; }
.profile .prompt-card { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--halo); border-radius: 4px 14px 14px 4px; background: var(--surface-2); }
.profile .prompt-card figcaption { margin-bottom: 4px; }
.profile .prompt-card p { overflow-wrap: anywhere; }
.profile .firsts-list { gap: 0; }
.profile .first-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "when main rep"; gap: 0 12px; padding: 10px 0;
  border-radius: 0; background: none; border-top: 1px solid var(--line); }
.profile .first-item:last-child { border-bottom: 1px solid var(--line); }
.first-when-col { grid-area: when; padding-top: 2px; font-variant-numeric: tabular-nums; }
.first-main { grid-area: main; min-width: 0; }
.first-report { grid-area: rep; align-self: start; min-height: 44px; margin: -11px -8px -11px 0; padding: 0 8px; border: 0; background: none; color: var(--ink-soft);
  font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.first-report:hover { color: var(--ink); }
.pf-feed { list-style: none; margin: 0; padding: 0; }
.pf-feed-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pf-feed-row:last-child { border-bottom: 1px solid var(--line); }
.pf-feed-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.pf-feed-t a { color: inherit; font-weight: 600; text-decoration: none; }
.pf-feed-t a:hover { text-decoration: underline; }
.pf-feed-del { min-height: 44px; margin: -10px 0; padding: 0 4px; }
.pf-feed-del.danger { color: var(--danger); }
.wall-form { margin-bottom: 6px; }
.pf-wall .cm-feed { margin-top: 6px; }
.wall-empty, .wall-off { margin: 14px 0; }
.wall-post.cm .cm-text { margin-top: 2px; }
/* Who sees one wall post (10/13): the owner's Friends | Public choice in the post's "..." sheet. */
.wall-aud { margin: 4px 0 12px; }
.wall-aud-h { margin: 0 0 6px; }
.wall-aud .segments { margin-bottom: 6px; }
.wall-aud-note { margin: 0 0 12px; }
.wall-form .cm-replying { margin-left: 0; }
/* You: "See it as Friends | Investigators" above your profile, under a smaller page title. */
.me-head, .pf-after { max-width: 640px; margin-left: auto; margin-right: auto; }
.me-head h1 { font-size: 1.6rem; }
.me-head p { font-size: .875rem; }
.pf-preview { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; }
.pf-preview .segments { flex: 1; max-width: 300px; margin: 0; padding: 3px; }
.pf-preview .segments button { min-height: 38px; padding: 6px 0; font-size: .875rem; }
.pf-preview-note { max-width: 640px; margin: 6px auto 4px; }
/* The badge sheet */
.pf-sheet-sub { margin: 4px 0 6px; }
.pf-badge-list { list-style: none; margin: 0 0 6px; padding: 0; }
.pf-badge { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pf-badge > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 5px; }
.pf-badge-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--halo-soft); background: var(--halo-faint); }
.pf-badge-ico svg { width: 16px; height: 16px; fill: var(--halo-ink); }
.pf-badge.quiet .pf-badge-ico svg { fill: var(--ink-soft); }
.pf-badge.todo .pf-badge-ico { border: 1px dashed var(--line); background: none; }
.pf-badge.todo .pf-badge-ico svg { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; }
.pf-badge.todo b { color: var(--ink-soft); }
.pf-more-badges summary { list-style: none; display: flex; align-items: center; min-height: 44px; margin: 6px 0 0; cursor: pointer; }
.pf-more-badges summary::-webkit-details-marker { display: none; }
.pf-more-badges summary::after { content: " \25BE"; margin-left: 4px; }
.pf-more-badges[open] summary::after { content: " \25B4"; }
.pf-sheet-done { margin-top: 16px; }
/* Phones: chip rows and Firsts take the full width (labels above, the date as a small line over each first). */
@media (max-width: 520px) {
  .pf-tagrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pf-taglabel { padding-top: 0; }
  .profile .first-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when rep" "main main"; }
  .first-when-col { padding-top: 0; }
  .first-when-col:empty { display: none; }
  .pf-facts > div { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
}
/* Wide screens: the photo beside the name, everything left-aligned like a proper profile header. */
@media (min-width: 720px) {
  .pf-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 28px; text-align: left; padding: 18px 0 26px; }
  .pf-hero .profile-orb { width: 120px; height: 120px; margin: 6px; font-size: 2.6rem; }
  .pf-hero .profile-name { justify-content: flex-start; }
  .pf-hero .profile-name .profile-title { text-align: left; }
  .pf-hero .pf-pills, .pf-hero .pf-actions { justify-content: flex-start; }
  .pf-hero .pf-celebrate, .pf-hero .pf-slogan { margin-left: 0; }
  .pf-photo { display: flex; flex-direction: column; align-items: center; }
}
/* Character bots (10/13, server/bots.mjs; web/js/profile-card.js botProfileHtml). The pill is a label, not a button. */
.pf-botpill { cursor: default; font-weight: 600; white-space: normal; text-align: left; line-height: 1.3; padding: 6px 14px 6px 10px; }
.pf-botpill:hover { border-color: var(--halo-soft); }
.pf-botpill::after { content: none; }
.pf-botpill .pf-pill-ico { fill: none; stroke: var(--halo-ink); stroke-width: 1.8; }
.pf-bot .pf-line { margin-top: 12px; }
.pf-bot-title { margin: 4px 0 0; font-size: .9375rem; overflow-wrap: anywhere; }
.pf-bot-facts, .pf-sayings { list-style: none; margin: 0; padding: 0; }
.pf-bot-facts li, .pf-sayings li { padding: 10px 0; border-top: 1px solid var(--line); }
.pf-bot-facts li:last-child, .pf-sayings li:last-child { border-bottom: 1px solid var(--line); }
.pf-bot-facts p { margin: 0; overflow-wrap: anywhere; }
.pf-src { margin: 2px 0 0; overflow-wrap: anywhere; }
.pf-bot-aside { margin: 22px 0 4px; padding: 12px 16px; border-left: 3px solid var(--ink-soft); border-radius: 4px 14px 14px 4px; background: var(--surface-2); }
.pf-aside-h { margin: 0 0 6px; color: var(--ink-soft); font-size: .8125rem; font-weight: 700; }
.pf-bot-aside ul { margin: 0; padding-left: 18px; }
.pf-bot-aside li { margin: 4px 0; font-style: italic; overflow-wrap: anywhere; }
.pf-sayings blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }
/* Edit profile spacing (11/05 padding pass; views/me.js renderEdit, #body.ef-page).
   r2 (operator: "the distance under the headings is a little too much. Especially ones with toggles"): the card
   under a heading has no top padding, so its first line sits --head-gap under the heading's words (the heading's own
   margin). Was 18 to 32px. A first row loses its own top padding, and rises by what its row adds above the words: 6px in
   a row head (the 32px audience menu), up to 12px in a 44px title row. A switch row stays put: its 44px switch is the line. */
.ef-page :is(.section-title, .me-sec-head, .me-sec-head + .about-text) + .card { padding-top: 0; }
.ef-page .me-sec-head { margin-bottom: var(--head-gap); }
.ef-page :is(.section-title, .me-sec-head, .me-sec-head + .about-text) + .card > .ef-row:first-child { padding-top: 0; margin-top: -6px; }
/* Under a heading that has its own (i) (Ex-versary) the title rises 6px only: two (i) targets one over the other need
   their centers ~32px apart. */
.ef-page .section-title + .card > .about-head:first-child { margin-top: -12px; }
.ef-page .card > .about-head:first-child { margin-top: -6px; }
.ef-page #first-add { margin-top: 10px; }
.ef-page .card > .ef-row + p { margin-top: 10px; }
/* One left edge: the shared .card's 2px side padding put every row 2px right of its section heading. */
.ef-page .card { padding-left: 0; padding-right: 0; }
/* Where I came from (11/11 history badges; profile-card.js historyHtml, Edit profile picker in views/me.js).
   The apostasy badges lead in a card with a 64px seal and a serif italic name; the rest are a compact list of 44px
   medallions. Each medallion holds both drawings; .mark-light / .mark-dark (app.css) pick the theme's. */
.hb-med { display: block; flex: none; width: 44px; height: 44px; }
.hb-med > span, .hb-med svg { width: 100%; height: 100%; }
.hb-med svg { display: block; }
.hb-med.hb-seal { width: 64px; height: 64px; }
.hb-feat { display: flex; gap: 14px; align-items: center; margin: 0 0 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.hb-feat-t { min-width: 0; }
.hb-feat-name { margin: 0; font-family: Fraunces, Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.hb-line { display: block; margin: 3px 0 0; color: var(--ink-soft); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.hb-what { position: relative; margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--halo-ink); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.hb-what::after { content: ""; position: absolute; inset: -12px -6px; } /* a 44px tap target */
.hb-what:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; border-radius: 4px; }
.hb-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.hb-item { display: flex; gap: 12px; align-items: center; padding: 7px 2px; }
.hb-t { min-width: 0; }
.hb-t b { display: block; font-size: .9375rem; }
.hb-t .hb-line { margin-top: 1px; }
.hb-foot { margin: 10px 0 0; color: var(--ink-soft); font-size: .8125rem; }
/* The picker on Edit profile: one toggle per badge (medallion + name), grouped. Selected = halo ring + tint. */
.hb-pick-group { margin: 12px 0 0; }
.hb-pick-h { margin: 0 0 6px; color: var(--ink-soft); font-size: .8125rem; font-weight: 700; }
.hb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); gap: 6px; }
.hb-tog { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: break-word; min-height: 52px; padding: 4px 10px 4px 4px; border-radius: 14px; border: 1px solid var(--line); background: none;
  color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.hb-tog .hb-med { width: 36px; height: 36px; flex: none; opacity: .55; }
.hb-tog > span[aria-hidden] { min-width: 0; }
.fb-edit-med { width: 36px; height: 36px; flex: none; }
.first-value:has(.fb-edit-med) { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; }
.first-value:has(.fb-edit-med) > :not(.fb-edit-med) { grid-column: 2; }
.first-value .fb-edit-med { grid-row: 1 / span 3; }
.hb-medwrap { position: relative; display: inline-flex; flex: none; }
.hb-tog .hb-flag { font-size: 15px; left: -4px; bottom: -4px; }
.hb-drow .hb-flag { font-size: 16px; left: -5px; bottom: -3px; }
.hb-dflag:empty { display: none; }
.pf-hb-match { margin: 6px 0 0; }
.hb-tog[aria-pressed="true"] { border-color: var(--halo); background: var(--halo-faint); box-shadow: inset 0 0 0 1px var(--halo); }
.hb-tog[aria-pressed="true"] .hb-med { opacity: 1; }
.hb-tog.pending { border-style: dashed; border-color: var(--halo); }
.hb-tog:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.hb-confirm { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.hb-confirm h4 { margin: 0 0 6px; font-size: .9375rem; }
.hb-confirm p { margin: 0 0 8px; font-size: .875rem; line-height: 1.45; }
.hb-confirm label { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; font-weight: 600; }
.hb-confirm input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.hb-confirm .row { gap: 8px; margin-top: 10px; }
/* 11/11 badge dates and places (Edit profile): one row per picked badge. */
.hb-details { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.hb-drow { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.hb-dmed { width: 36px; height: 36px; margin-top: 2px; }
.hb-dfields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hb-dfields b { font-size: .9rem; }
.hb-dsel { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-sel { width: auto; min-width: 120px; flex: 1; }
/* 11/11 round 2: one month/year box per date (web/js/month-year.js), typed or picked. */
.my-field { display: inline-flex; align-items: center; gap: 4px; }
.my-input { width: 7.5em; text-align: center; letter-spacing: .04em; }
.my-cal { width: 44px; height: 44px; }
.my-lab { display: flex; flex-direction: column; gap: 2px; font-size: .8125rem; color: var(--ink-soft); }
.my-yr { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0; }
.my-yr b { font-size: 1.1rem; min-width: 3.5em; text-align: center; }
.my-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 10px; }
.my-months .chip { justify-content: center; min-height: 40px; }
/* 11/11 round 2: Badges and Firsts fold in Edit profile; the dates audience; the Clear buttons. */
.ef-fold { margin: 0 0 8px; }
.ef-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 700; }
.ef-fold > summary::-webkit-details-marker { display: none; }
.ef-fold-act::after { content: 'Edit \25BE'; color: var(--halo-ink); font-weight: 700; font-size: .875rem; }
.ef-fold[open] .ef-fold-act::after { content: 'Done \25B4'; }
.ef-fold[open] > summary { margin-bottom: 8px; }
.ef-fold > summary:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.hb-dvis { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.my-clear { margin-left: 2px; }
/* 11/12 Sign out pill beside the Settings and Scrapbook titles (web/js/sign-out-pill.js) */
.set-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.set-top > h1, .set-top > h2 { margin-right: auto; }
.pill-out { flex: none; border-radius: 999px; margin-top: .25rem; }
/* 11/12 Cascades (operator: "cascade into each other a bit"; round 2: "just the tokens"; round 3: "Let's just have the pop
   out be a small card that pops over everything (doesn't move things down.)"): Medallions Earned and Firsts on a profile
   (profile-card.js cascadeHtml, cascade.js). Round tokens, each overlapping the one before it by --ov; rows wrap (the
   padding puts a wrapped row's first token back on the edge), so 360px never scrolls sideways. Later tokens sit on top.
   NOTHING moves: hover and focus only ring the token; the picked one keeps its ring and its words float in .cas-cap,
   absolutely placed by cascade.js under the token (above it near the bottom of the window), over the page. */
.pf-h-line { margin: -4px 0 8px; color: var(--ink-soft); font-size: .8125rem; font-style: italic; }
.cas { position: relative; }
.cas-row { list-style: none; display: flex; flex-wrap: wrap; row-gap: 10px; margin: 0; padding: 10px 0 0 var(--ov, 18px); } /* round 4: room for the lift up front */
.cas-item { flex: none; position: relative; z-index: var(--i, 0); margin-left: calc(-1 * var(--ov, 18px)); }
.cas-item:has(> .cas-card:is(.up, :hover, :focus-visible)) { z-index: 200; }
.cas-card { display: block; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cas-tok { display: block; position: relative; width: 56px; height: 56px; border-radius: 50%; pointer-events: none; box-shadow: -3px 1px 8px rgb(0 0 0 / .28);
  transition: transform .15s ease, box-shadow .15s ease; }
.cas-tok .hb-medwrap, .cas-tok > .hb-med { display: block; width: 56px; height: 56px; }
.cas-tok .hb-med { width: 56px; height: 56px; }
.cas-tok .hb-flag { font-size: 16px; left: -3px; bottom: -2px; } /* bottom LEFT: the next token covers the right edge */
/* round 4 (operator: "Rather than the blue circle, have the card slightly pop up is all"): the token inside lifts 6px
   (into the room the row keeps above it); the BUTTON stays put, so the pointer never slides off it. Keyboard focus also
   gets a thin outline. */
.cas-card:is(:hover, .up, :focus-visible) .cas-tok { transform: translateY(-6px); box-shadow: 0 8px 14px rgb(0 0 0 / .35); }
.cas-card:focus-visible { outline: none; }
.cas-card:focus-visible .cas-tok { outline: 2px solid var(--halo); outline-offset: 2px; }
.cas-cap { position: absolute; z-index: 300; left: 0; top: 0; width: max-content; min-width: 200px; max-width: 320px; margin: 0; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 28px rgb(0 0 0 / .35); animation: cas-in .14s ease-out; }
.cas-cap[hidden] { display: none; }
@keyframes cas-in { from { opacity: 0; } }
.cas-cap > p { margin: 0; }
.cas-cap-name { font-weight: 700; font-size: .9375rem; }
.cas-cap-when { margin-top: 2px !important; color: var(--halo-ink); font-size: .8125rem; font-weight: 600; }
.cas-cap-line { margin-top: 6px !important; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.cas-cap-foot { margin-top: 8px !important; color: var(--ink-soft); font-size: .75rem; font-style: italic; }
.cas-cap .hb-pop-def { margin-top: 6px; font-size: .8125rem; }
.cas-cap-report { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .cas-cap { animation: none; } .cas-tok { transition: none; } }
/* 11/12 Edit profile rows for Firsts and medallions (operator: "to the right of the badge ... edit the month/year and the
   story. Rather than it being confusingly below everything"): the medal, its words, then small buttons on the right;
   a tapped one opens its boxes under that row only. */
.fe-row, .hb-erow { padding: 6px 0; border-bottom: 1px solid var(--line); }
.fe-row:last-child, .hb-erow:last-of-type { border-bottom: 0; }
.fe-top, .hb-etop { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.fe-what { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.fe-what:focus-visible, .fe-chip:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; border-radius: 8px; }
.hb-ename { flex: 1; min-width: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.fe-acts { display: flex; gap: 6px; flex: none; }
.fe-chip { position: relative; min-height: 32px; max-width: 46vw; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); background: none; color: var(--halo-ink);
  font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-chip::after { content: ""; position: absolute; inset: -6px -2px; } /* a 44px tap target */
.fe-chip.set { border-style: solid; color: var(--ink); background: var(--surface-2); font-weight: 600; }
.fe-chip.on, .fe-chip[aria-expanded="true"] { border-color: var(--halo); box-shadow: inset 0 0 0 1px var(--halo); }
.hb-echip { flex: 0 1 auto; max-width: 52%; }
/* 11/13 QC: a date only filled in from the profile is a suggestion, not a saved answer. */
.hb-echip.suggested { font-style: italic; color: var(--ink-soft); border-style: dashed; background: transparent; }
.hb-echip .hb-sugg { font-weight: 400; font-size: .85em; }
.hb-sugg-note { margin: 4px 0 6px; }
.hb-erow .hb-dfields { margin: 4px 0 8px 48px; }
.hb-erow .hb-dfields[hidden], .hb-lang2[hidden], .hb-addlang[hidden] { display: none; }
.fe-row .first-form { margin: 4px 0 8px 46px; }
.hb-addlang { align-self: flex-start; min-height: 44px; }
@media (max-width: 400px) {
  .hb-erow .hb-dfields, .fe-row .first-form { margin-left: 0; }
  .fe-chip { padding: 4px 8px; }
}
/* 11/12 round 2: the fold's title and its Edit never touch. */
.ef-fold > summary { gap: 10px; }
.ef-fold > summary > span:first-child { min-width: 0; }
.hb-details { margin-top: 0; padding-top: 0; border-top: 0; }
.ef-fold-act { flex: none; white-space: nowrap; }
/* 11/12 round 4: a first's words are a label now (presets can't be renamed); a pre-presets first carries a small Remove. */
span.fe-what { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; cursor: default; }
.fe-remove { min-height: 32px; font-weight: 700; }
.fe-remove.danger { color: var(--danger, #c0392b); }
/* 11/12 round 4: the "+ Your own" tile in the firsts picker turns into a box in the same spot. */
.fb-custom { border-style: dashed; color: var(--halo-ink); }
.fb-custom.on { border-style: solid; border-color: var(--halo); }
.fb-custom-in { flex: 1; min-width: 0; height: 36px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .875rem; font-weight: 600; outline: none; }
/* 11/12 several mission countries: mini flags overlapping a little, bottom left of the token. */
.cas-flags { display: flex; white-space: nowrap; }
.cas-flags > span + span { margin-left: -6px; }

/* ---------- Walls revamp (r212, 11/27, operator: "We also need to revamp our ugly walls") ----------
   web/js/wall.js + wall-tabs.js; phone components/people/Wall.tsx + WallTabs.tsx draw the same.
   The wall section: the balloon toggle (Posts | Comments | Discussions) under the heading, then cards on the page color.
   Every post is a card (surface, hairline, 16px corners): the post, its replies on a rule, the reply box. Pinned cards
   carry a halo edge (never gold). The name and when share one line; the icons sit beside them on a wide wall and under
   the words on a narrow one (container query), so a name never wraps away from its time on a phone. */
.pf-wall { container-type: inline-size; }
.pf-wall .wall-tabs { margin: 2px 0 6px; max-width: 460px; }
.pf-wall .wall-note { margin: 4px 0 10px; color: var(--ink-soft); font-size: .8125rem; }
.wall-pager .pager-pane { min-height: 0; padding-top: 6px; }
.pf-wall .cm-feed { border-top: 0; margin-top: 0; }
.pf-wall .wall-list { margin-top: 0; }
/* The composer: a card of its own on top. */
.pf-wall .wall-form.wall-top { margin: 4px 0 16px; padding: 10px 10px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pf-wall .wall-top .cm-compose-row { align-items: center; }
.pf-wall .wall-top .cm-compose-row .cm-av { margin-bottom: 0; }
.pf-wall .wall-top textarea.input { min-height: 40px; border: 1px solid transparent; background: var(--surface-2); }
.pf-wall .wall-top textarea.input:focus { border-color: var(--halo); outline: none; }
/* Cards */
.pf-wall .wall-card { margin: 0 0 12px; padding: 2px 14px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pf-wall .wall-card .cm { border-bottom: 0; }
.pf-wall .wall-card > .cm:first-child, .pf-wall .wall-card > .wall-post { padding: 14px 0 10px; }
.pf-wall .cm { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.pf-wall .cm > .cm-av, .pf-wall .cm > .cm-av-link .cm-av { width: 40px; height: 40px; }
.pf-wall .cm.reply { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 8px 0 6px; }
.pf-wall .cm.reply > .cm-av, .pf-wall .cm.reply > .cm-av-link .cm-av { width: 30px; height: 30px; font-size: .7rem; }
.pf-wall .cm-replies { margin: 0 0 8px 19px; padding: 0 0 2px 20px; border-left: 2px solid var(--line); }
.pf-wall .cm-thread { border-bottom: 1px solid var(--line); }
.pf-wall .wall-card.cm-thread { border-bottom: 1px solid var(--line); }
.pf-wall .wall-card.pinned { border-color: color-mix(in srgb, var(--halo) 50%, var(--line)); background: color-mix(in srgb, var(--halo) 5%, var(--surface)); }
/* The pinned group: a small label, no rule (the halo edge on each card says it). */
.pf-wall .wall-pins { margin: 0 0 4px; border-bottom: 0; }
.pf-wall .wall-pin-h { margin: 0 0 8px; }
/* One post: meta | tools on the first row, then the words and photo across. */
.pf-wall .wall-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 4px; }
.pf-wall .wall-body > * { grid-column: 1 / -1; }
.pf-wall .wall-meta { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; min-height: 22px; white-space: normal; font-size: .9375rem; }
.pf-wall .wall-meta b { font-weight: 700; }
.pf-wall .cm.reply .wall-meta { font-size: .875rem; }
.pf-wall .wall-sub { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; color: var(--ink-soft); font-size: .8rem; }
.pf-wall .wall-sub .cm-ago { white-space: nowrap; }
.wall-aud-tag, .wall-only { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-size: .72rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.wall-only svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pf-wall .wall-tools { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; margin: -11px -12px -10px 0; }
.pf-wall .wall-tools .cm-tools { margin: 0; }
.pf-wall .wall-tools .cm-more { margin: 0; }
.pf-wall .wall-tools .sus-ico { width: 20px; height: 20px; }
.pf-wall .wall-body .cm-text { margin: 4px 0 0; font-size: .9875rem; line-height: 1.45; }
.pf-wall .cm.reply .wall-body .cm-text { margin-top: 2px; font-size: .9375rem; }
.pf-wall .cm-img { max-height: 300px; border-radius: 14px; }
/* Narrow wall: the icons go under the words, right-aligned, so the name line keeps the width. */
@container (max-width: 560px) {
  .pf-wall .wall-tools { grid-column: 1 / -1; grid-row: 9; margin: 2px -12px -10px 0; }
  .pf-wall .cm.reply .wall-tools { margin-top: 0; }
  .pf-wall .cm .wall-tools.solo { grid-column: 2; grid-row: 1; margin: -11px -12px -10px 0; } /* read only: just "...", beside the name */
  .pf-wall .wall-top .cm-compose-row > .cm-av { display: none; } /* the box gets the room: "Write on Jordan's wall" read cut off at 360 */
}
.pf-wall .cm-more-replies { margin: 2px 0 4px; min-height: 36px; }
/* An extra (their post on another wall, a tag): a context line on top that opens it where it lives. */
.wall-ctx { display: flex; align-items: center; gap: 6px; min-height: 36px; padding-top: 8px; margin-bottom: -4px; color: var(--ink-soft); font-size: .8125rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.wall-ctx svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--halo-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.wall-ctx:hover > span { text-decoration: underline; }
a.wall-ctx:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; border-radius: 6px; }
.pf-wall .wall-extra > .wall-post { padding-top: 8px; }
/* Comments tab: a card per reply of theirs; the whole card opens the thread (the context link is stretched over it). */
.wall-tab-list { display: flex; flex-direction: column; }
.pf-wall .wall-cmt { position: relative; display: block; padding: 2px 14px 12px; }
.wall-stretch::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.wall-cmt:hover { border-color: color-mix(in srgb, var(--halo) 40%, var(--line)); }
.wall-cmt a:not(.wall-stretch), .wall-cmt .photo-open, .wall-cmt button { position: relative; z-index: 1; }
.wall-quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 10px; padding: 2px 0 2px 10px; border-left: 3px solid color-mix(in srgb, var(--ink-soft) 40%, transparent); color: var(--ink-soft); font-size: .875rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.wall-cmt-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.wall-cmt-row .cm-av { width: 32px; height: 32px; font-size: .72rem; }
.wall-cmt-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wall-cmt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .875rem; }
.wall-cmt-meta .sus { min-height: 24px; min-width: 0; padding: 0; font-size: .8rem; color: var(--ink-soft); }
.wall-cmt-meta .sus-ico { width: 16px; height: 16px; }
.wall-cmt-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.45; }
/* Discussions tab: one quiet row per thread, the whole row a link. */
.wall-dlist { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wall-dthread { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 40px 12px 14px; color: var(--ink); text-decoration: none; }
.wall-dthread + .wall-dthread { border-top: 1px solid var(--line); }
.wall-dthread:hover { background: var(--surface-2); }
.wall-dthread:focus-visible { outline: 2px solid var(--halo); outline-offset: -2px; }
.wd-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.wd-kind { color: var(--halo-ink); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .6875rem; }
.wd-floor { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wd-subject { font-weight: 700; font-size: .9875rem; line-height: 1.3; overflow-wrap: anywhere; }
.wd-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.wd-who { color: var(--ink); font-weight: 600; }
.wd-meta { color: var(--ink-soft); font-size: .75rem; }
.wd-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; color: var(--ink-soft); }
.wd-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Empty states + "Show more" */
.pf-wall .wall-empty { margin: 8px 0 14px; padding: 22px 18px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--ink-soft); font-size: .9375rem; text-wrap: pretty; }
.pf-wall .wall-older { margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
