/* ==========================================================================
   A person's page (wiki style), the questionnaire form, history, people list.
   ========================================================================== */

.wiki { max-width: 70rem; margin: 0 auto; padding: 1.5rem 1.25rem 7.5rem; }
.wiki-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.wiki-head-main { min-width: 0; }
.wiki-head h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.wiki-from { margin: 0.375rem 0 0; color: var(--text-2); display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.wiki-actions { display: flex; gap: 0.625rem; align-items: center; }
.wiki .tabs { margin: 0.875rem 0 0; }
/* The three tabs of a person's page: big pills under the name. Pale purple like the buttons; the open one is solid. */
.wiki .tabs--pills { margin: 1.125rem 0 0; border-bottom: 0; gap: 0.5rem; flex-wrap: wrap; overflow: visible; }
.tabs--pills { margin: 1.125rem 0 0; border-bottom: 0; gap: 0.5rem; flex-wrap: wrap; overflow: visible; } /* the pill tabs of the Profile page and of Manage */
.tabs--pills .tab { padding: 0.5rem 1.25rem; margin: 0; border: 0; border-radius: 0.625rem; background: var(--btn); color: var(--accent-text); font-size: 1rem; gap: 0.5625rem; }
.tabs--pills .tab:hover { background: var(--btn-hover); color: var(--accent-text); }
.tabs--pills .tab--active, .tabs--pills .tab--active:hover { background: var(--accent); color: var(--on-accent); }
.tabs--pills .tab-badge { background: rgba(0, 0, 0, 0.08); color: inherit; font-weight: 600; }
.tabs--pills .tab--active .tab-badge { background: rgba(255, 255, 255, 0.25); }

.wiki-body { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; margin-top: 1.625rem; }
.wiki-main { min-width: 0; font-size: 1rem; line-height: 1.7; }
.wiki-lead { font-size: 1.0938rem; line-height: 1.65; margin-bottom: 1.1em; }
.wiki-main a { font-weight: 550; }
.wiki-section { margin-top: 2.25rem; scroll-margin-top: 4.75rem; }
.wiki-section > h2 { font-size: 1.4375rem; letter-spacing: -0.015em; padding-bottom: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
/* A section's heading with a small, quiet Edit link at the right end of the column: it opens that section on the Edit tab. */
.wiki-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.wiki-section-head > h2 { margin: 0; padding: 0; border: 0; font-size: 1.4375rem; letter-spacing: -0.015em; }
.wiki-section-edit { display: inline-flex; align-items: center; gap: 0.3125rem; flex: none; padding: 0.125rem 0.5rem; border-radius: 0.5rem; color: var(--text-3); font-size: 0.875rem; font-weight: 550; line-height: 1.5; text-decoration: none; }
.wiki-section-edit:hover { background: var(--btn); color: var(--accent-text); text-decoration: none; }
.story { margin-top: 1.125rem; }
.story h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; color: var(--text); margin-bottom: 0.375rem; }
.story h3 .icon, .fact dt .icon { color: var(--text-3); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.375rem, 1fr)); gap: 0.875rem 1.5rem; margin: 0; }
.fact-grid .fact { min-width: 0; }
.fact dt { display: flex; align-items: center; gap: 0.375rem; font-size: 0.7812rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); line-height: 1.4; }
.fact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.wiki-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.875rem; }
.wiki-foot span { display: inline-flex; align-items: center; gap: 0.375rem; }
.wiki .callout { margin: 0 0 1.25rem; font-size: 0.9375rem; line-height: 1.5; }

.toc { display: inline-block; min-width: 13.75rem; margin: 0.25rem 0 0.5rem; padding: 0.75rem 1.125rem 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface-2); font-size: 0.9062rem; line-height: 1.5; }
.toc h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 0.25rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc a { font-weight: 500; }

.infobox { position: sticky; top: 4.75rem; border: 1px solid var(--border); border-radius: 0.875rem; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; font-size: 0.875rem; line-height: 1.5; }
.infobox-title { padding: 0.75rem 1rem; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 1rem; text-align: center; overflow-wrap: anywhere; }
.infobox-photo { display: block; background: var(--surface-2); }
.infobox-photo img { display: block; width: 100%; max-height: 23.75rem; object-fit: cover; }
/* Somebody with no photo: their colour fills the whole picture area as a square, the way a photo would. */
.infobox-photo--empty { display: block; }
.infobox-photo--empty .avatar { display: grid; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; font-size: 4.5rem; font-weight: 500; letter-spacing: 0.01em; }
.infobox-caption { padding: 0.5rem 0.875rem 0; text-align: center; color: var(--text-2); font-size: 0.8125rem; }
.facts { margin: 0; padding: 0.5rem 1rem 0.875rem; }
.facts .fact { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.625rem; padding: 0.5625rem 0; border-bottom: 1px solid var(--border); }
.facts .fact:last-child { border-bottom: 0; }
.facts .fact dt { display: block; text-transform: none; letter-spacing: 0; font-size: 0.8125rem; color: var(--text-2); font-weight: 650; }
.facts .fact dd { margin: 0; }

.family-group { margin-top: 0.875rem; }
.family-group h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 0.5rem; }
.family-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 0.75rem; }
.person-chip { display: flex; align-items: center; gap: 0.75rem; height: 5rem; padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem; border: 1px solid var(--border-strong); border-radius: 1.125rem; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); line-height: 1.3; transition: box-shadow 0.15s, border-color 0.15s; }
.person-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; }
/* Same picture as on a family tree tile: it fills the height of the card, inside a small even frame. */
.person-chip .avatar { height: 100%; width: auto; aspect-ratio: 1 / 1; border-radius: 0.8125rem; font-size: 1.375rem; }
.person-chip .tile-text { gap: 2px; }
.person-chip .tile-name { font-size: 0.9375rem; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); gap: 0.75rem; }
.gallery li { display: flex; flex-direction: column; gap: 0.25rem; }
.gallery-item { padding: 0; border: 1px solid var(--border); border-radius: 0.875rem; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 1; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { font-size: 0.8125rem; color: var(--text-2); line-height: 1.35; }

.lightbox { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: rgba(8, 10, 16, 0.94); color: #fff; animation: fade 0.12s ease-out; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; }
.lightbox-bar .icon-btn { color: #fff; }
.lightbox-bar .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0 0.5rem 1.25rem; }
.lightbox figure { margin: 0; max-width: min(68.75rem, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 10rem); border-radius: 0.5rem; object-fit: contain; }
.lightbox figcaption { text-align: center; max-width: 40rem; color: #dfe3ec; }
.lightbox-nav { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-nav[disabled] { opacity: 0.25; cursor: default; }

@media (max-width: 67.5rem) {
  .wiki-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .infobox { position: static; order: -1; }
  .infobox-photo--empty .avatar { aspect-ratio: auto; height: 15rem; } /* stacked above the page, the infobox is as wide as the page: a band, not a huge square */
  .wiki-head h1 { font-size: 1.75rem; }
}
@media (max-width: 42rem) {
  .wiki { padding: 1rem 0.875rem 7.5rem; }
  .infobox-photo img { max-height: 15rem; }
  .lightbox-nav { width: 2.375rem; height: 2.375rem; }
}

/* ---------- The questionnaire form ---------- */
.form-wrap { margin: 1.5rem 0 0; }
.progress { display: flex; align-items: center; gap: 0.875rem; }
.progress-bar { flex: 1; height: 0.5rem; border-radius: 6.1875rem; background: var(--surface-3); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 6.1875rem; background: linear-gradient(90deg, var(--accent), #8b5cf6); transition: width 0.3s; }
.progress-text { color: var(--text-2); font-size: 0.875rem; white-space: nowrap; font-weight: 550; }
.form-section { padding: 1.5rem; scroll-margin-top: 4.75rem; }
@media (min-width: 40rem) { .form-section { padding: 3rem; } }
.form-section h2 { font-size: 1.875rem; line-height: 1.2; } /* 36px */
.form-section-desc { margin: 0.25rem 0 0; color: var(--text-2); }
.form-questions { margin-top: 1.5rem; gap: 2.75rem; }
/* Wide screens: short questions (first and last name, dates, places) sit two to a row, in the order of the questions;
   stories, photos and choice lists keep the whole row. A short "pick one" question (Gender) always starts a new row. */
@media (min-width: 56rem) {
  .form-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 2rem; align-items: start; }
  .form-q--wide { grid-column: 1 / -1; }
  .form-q--wide:not(:first-child) { padding-top: 2.5rem; border-top: 1px solid var(--border); }
  /* A paragraph question with prompts: the box is as wide as a short field, the prompts fill the column beside it. */
  .form-q--prompt { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 2rem; align-items: start; }
  .form-q--prompt .prompt-card { margin-top: 1.85rem; }
  .form-q-notes .prompt-card { margin-top: 0; }
  .form-q--prompt .textarea { min-height: 8.25rem; }
  /* Choice lists flow into the same two columns instead of one long strip down the left. */
  .form-q .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; }
  .form-q .choice { max-width: none; }
  .form-q .choices-clear { grid-column: 1 / -1; justify-self: start; }
  /* "Pick one" lists (radio buttons) are short words: together they take half the width of the editing area,
     three to a row, so each one is about a sixth of it, instead of two huge half-width bars. */
  .form-q .choices--single { width: 50%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem 0.625rem; }
  .form-q--half { grid-column: 1; }
  /* A half-width pick-one (Gender): the choices are as wide as their words, side by side, and drop to the next line whole rather than breaking inside a word. */
  .form-q--half .choices--single { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; gap: 0.375rem; }
  .form-q--half .choices--single .choice { width: auto; flex: 0 1 auto; gap: 0.375rem; padding-inline: 0.5rem; font-size: 0.875rem; white-space: nowrap; }
  .form-q--half .choices--single .choices-clear { flex-basis: 100%; text-align: left; }
}
/* The "Name" card: a tab for each language a name is written in, and the name fields of the tab that is open. */
.name-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.name-card-head .field-label { margin: 0; }
.name-tabs { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.name-tab { display: inline-flex; align-items: center; gap: 0.4375rem; height: 2.25rem; padding: 0 0.875rem; border: 1px solid var(--border-strong); border-radius: 0.625rem; background: var(--surface); color: var(--text-2); font: inherit; font-weight: 550; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.name-tab:hover { color: var(--text); border-color: var(--accent); }
.name-tab.is-active { background: var(--btn); border-color: var(--accent); color: var(--accent-text); }
.name-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.name-tab--add { border-style: dashed; }
/* The other-language tab: the language's name, and a small arrow beside it that changes the language. */
.name-tab-group { display: inline-flex; align-items: stretch; }
.name-tab-group .dropdown { display: flex; }
.name-tab-group .name-tab--main { border-radius: 0.625rem 0 0 0.625rem; }
.name-tab-group .name-tab--caret { padding: 0 0.5rem; border-radius: 0 0.625rem 0.625rem 0; margin-left: -1px; }
/* The two halves share an edge: the one under the pointer (or the keyboard) draws it on top, so its whole outline turns purple. */
.name-tab-group .name-tab { position: relative; }
.name-tab-group .name-tab:hover, .name-tab-group .name-tab:focus-visible { z-index: 1; }
.name-tab-group.is-active .name-tab { background: var(--btn); border-color: var(--accent); color: var(--accent-text); }
.name-tab-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--success); flex: none; }
.name-card-fields { display: flex; flex-direction: column; gap: 2.75rem; }
@media (min-width: 56rem) { .name-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 2rem; align-items: start; } }
.form-q-stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.question .field-label { font-size: 1.25rem; line-height: 1.25; } /* 24px */
/* Every question's headline on the Edit page, whatever kind of answer it takes (the small labels inside an entry's form keep their own size, below). */
.form-q .field-label { font-size: 1.25rem; line-height: 1.25; }
.question .field-hint { margin-top: -2px; }
.copy-row { display: flex; gap: 0.5rem; }
.form-q-notes { margin-top: 1.25rem; }
.prompt-card { margin-top: 0.75rem; padding: 0.125rem 0 0.125rem 0.875rem; border-left: 2px solid var(--border-strong); color: var(--text-3); font-size: 0.8125rem; line-height: 1.45; }
.prompt-title { display: flex; align-items: center; gap: 0.375rem; margin: 0 0 0.25rem; color: var(--text-2); font-weight: 500; font-size: 0.8125rem; }
.prompt-list { list-style: disc; margin: 0; padding: 0 0 0 1.125rem; font-size: inherit; line-height: inherit; }
.prompt-list li::marker { color: var(--text-3); }
.prompt-list li + li { margin-top: 0.1875rem; }

.photo-field { display: flex; flex-direction: column; gap: 0.75rem; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); gap: 0.75rem; }
.photo-card { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.5rem; border: 1px solid var(--border); border-radius: 0.875rem; background: var(--surface); }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: 0.625rem; overflow: hidden; background: var(--surface-2); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-badge { position: absolute; left: 0.375rem; top: 0.375rem; display: inline-flex; align-items: center; gap: 0.25rem; padding: 2px 0.5rem; border-radius: 6.1875rem; background: var(--accent); color: var(--on-accent); font-size: 0.7188rem; font-weight: 700; }
.photo-tools { display: flex; align-items: center; gap: 2px; font-size: 0.7812rem; }
.photo-tools .icon-btn { width: 1.75rem; height: 1.75rem; }
.dropzone { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; padding: 1.375rem 1rem; border: 2px dashed var(--border-strong); border-radius: 0.875rem; color: var(--text-2); background: var(--surface-2); text-align: center; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

.savebar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.savebar-inner { max-width: 70rem; margin: 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 0.625rem; }
.savebar-status { margin-right: auto; display: flex; flex-direction: column; gap: 0.0625rem; min-width: 0; line-height: 1.3; }
.savebar-status-main { color: var(--text-2); font-size: 0.875rem; font-weight: 550; display: inline-flex; align-items: center; gap: 0.3125rem; animation: savebar-in 0.35s ease-out; }
.savebar-status-main .icon { color: var(--success, #1f9d55); flex: none; }
.savebar-status-hint { color: var(--text-3); font-size: 0.75rem; }
@keyframes savebar-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
/* Narrow screens: the status sits on a row of its own above the buttons instead of disappearing. */
@media (max-width: 48rem) {
  .savebar-inner { flex-wrap: wrap; }
  .savebar-status { order: -1; flex: 1 1 100%; margin-right: 0; }
}

/* ---------- History ---------- */
.timeline { list-style: none; margin: 1.625rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.875rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--border); }
.timeline-item { position: relative; display: flex; gap: 1rem; padding-bottom: 0.875rem; }
.timeline-dot { position: relative; z-index: 1; flex: none; width: 1.875rem; height: 1.875rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-2); border: 3px solid var(--bg); }
.timeline-dot--success { background: var(--success-soft); color: var(--success); }
.timeline-dot--accent { background: var(--accent-soft); color: var(--accent); }
.timeline-dot--warning { background: var(--warning-soft); color: var(--warning); }
.timeline-card { flex: 1; min-width: 0; padding: 0.875rem 1rem; border: 1px solid var(--border); border-radius: 0.875rem; background: var(--surface); }
.timeline-item.is-open .timeline-card { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; flex-wrap: wrap; }
.timeline-head > div { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.timeline-head time { color: var(--text-3); font-size: 0.8438rem; }
.timeline-summary { margin: 0.375rem 0 0; color: var(--text); }
.timeline-actions { display: flex; align-items: center; gap: 0.875rem; margin-top: 0.625rem; }
.diff { margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 1rem; }
.diff-row h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); margin-bottom: 0.375rem; }
.diff-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.diff-text ins, .diff-pair .diff-new p { background: var(--success-soft); color: var(--success-text); text-decoration: none; border-radius: 0.1875rem; }
.diff-text del, .diff-pair .diff-old p { background: var(--danger-soft); color: var(--danger-text); border-radius: 0.1875rem; }
.diff-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.diff-pair > div span { font-size: 0.75rem; color: var(--text-3); font-weight: 650; }
.diff-pair p { margin: 2px 0 0; padding: 0.375rem 0.625rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-pair .diff-old p { text-decoration: line-through; }
.diff-photos { display: flex; flex-direction: column; gap: 0.5rem; }
.diff-photos > div { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.diff-photos img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 0.625rem; }
.diff-tag { padding: 2px 0.5rem; border-radius: 6.1875rem; font-size: 0.75rem; font-weight: 700; }
.diff-tag--add { background: var(--success-soft); color: var(--success-text); }
.diff-tag--del { background: var(--danger-soft); color: var(--danger-text); }
@media (max-width: 42rem) { .diff-pair { grid-template-columns: 1fr; } }

.day-title { margin: 0.5rem 0 0.625rem; font-size: 0.875rem; color: var(--text-2); }
.change-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 0.875rem; background: var(--surface); overflow: hidden; }
.change-row { display: flex; gap: 0.875rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); align-items: flex-start; }
.change-row:last-child { border-bottom: 0; }
.change-row .timeline-dot { border-color: var(--surface); }
.change-main { display: flex; flex-direction: column; min-width: 0; }
.change-person { font-weight: 650; font-size: 0.9688rem; }
.change-summary { color: var(--text); overflow-wrap: anywhere; }

/* ---------- People list ---------- */
.people-tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.125rem; }
.tree-search--static { width: min(22.5rem, 100%); }
.people-sort { margin-left: auto; width: auto; }
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18.125rem, 1fr)); gap: 0.75rem; }
.people-card { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0.875rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); height: 100%; }
.people-card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-md); }
.people-card .avatar { border-radius: 1rem; }
.people-text { display: flex; flex-direction: column; gap: 0.1875rem; flex: 1; min-width: 0; }
.people-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { display: block; width: 100%; height: 0.25rem; border-radius: 6.1875rem; background: var(--surface-3); overflow: hidden; margin-top: 0.25rem; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 6.1875rem; }

/* ---------- Suggestions list ---------- */
.suggestion-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.suggestion-list .card + .card { margin-top: 0; }
.suggestion-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.375rem; }
.suggestion p { margin: 0.25rem 0; }

/* "Enforce Patriarchy" (last-name bulk fix): a small round button inside the right end of the Last name box; its name appears on hover or focus.
   The pop-up lists what would change. */
.input-wrap { position: relative; }
.input--with-action { padding-right: 2.75rem; }
.round-tool { position: absolute; top: 50%; right: 0.4rem; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; }
.round-tool:hover, .round-tool:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.round-tool::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 0.5rem); padding: 0.3125rem 0.625rem; border-radius: 0.5rem; background: var(--text); color: var(--surface); font-size: 0.8125rem; font-weight: 550; white-space: nowrap; opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity 0.12s, transform 0.12s; z-index: 5; }
.round-tool:hover::after, .round-tool:focus-visible::after { opacity: 1; transform: none; }
.surname-tools { display: flex; gap: 1rem; font-size: 0.875rem; }
.surname-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 0.75rem; max-height: 22rem; overflow-y: auto; }
.surname-list li + li { border-top: 1px solid var(--border); }
.surname-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr); gap: 0.75rem; align-items: center; padding: 0.625rem 0.875rem; cursor: pointer; }
.surname-row:hover { background: var(--surface-2); }
.surname-row input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent); }
.surname-who { display: flex; flex-direction: column; min-width: 0; }
.surname-who small, .surname-skipped small { color: var(--text-2); }
.surname-changes { display: flex; flex-direction: column; gap: 0.125rem; font-size: 0.875rem; color: var(--text-2); }
.surname-changes s { color: var(--text-3); }
.surname-changes b { color: var(--text); font-weight: 650; }
.surname-skipped summary { cursor: pointer; color: var(--text-2); font-size: 0.875rem; }
.surname-skipped ul { margin: 0.5rem 0 0; padding-left: 1.25rem; font-size: 0.875rem; }
@media (max-width: 40rem) { .surname-row { grid-template-columns: auto minmax(0, 1fr); } .surname-changes { grid-column: 2; } }

/* Somebody else is editing this page: the form is shown greyed out and cannot be changed. */
.form-lock { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-lock.is-locked { opacity: 0.55; }
.form-lock.is-locked * { cursor: not-allowed; }
.form-lock-note { margin-bottom: 1rem; }

/* ---------- Entries (lists of dated stories, places, jobs…) ---------- */
.entries { display: block; }
.entries-main { min-width: 0; }
.entries-main > .field-label { font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.entry-rows { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.entry-row { padding: 0.625rem 0; border-top: 1px solid var(--border); }
.entry-row:first-child { border-top: 0; }
.entry-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.entry-row-head strong { overflow-wrap: anywhere; }
.entry-row-actions { margin-left: auto; display: inline-flex; gap: 0.125rem; align-self: center; margin-top: -0.25rem; margin-bottom: -0.25rem; }
.entry-when { font-size: 0.8125rem; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.entry-where { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; color: var(--text-3); }
.entry-snippet { margin: 0.125rem 0 0; color: var(--text-2); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-snippet--text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-top: 0.25rem; color: var(--text); }
.entry-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-top: 0.125rem; font-size: 0.8125rem; color: var(--text-3); }
.entry-row-meta > span { display: inline-flex; align-items: center; gap: 0.25rem; }
.entry-by { color: var(--text-3); font-size: 0.8125rem; }
.entry-by .private-note { margin-left: 0.25rem; }
.entry-add { margin-top: 0.5rem; }
.comp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2rem; align-items: start; margin-top: 0.75rem; }
.comp-grid .prompt-card { margin-top: 0; }
@media (min-width: 56rem) { .comp-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.comp { min-width: 0; }
.comp-restored { margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--text-2); }
.comp-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1rem; margin-top: 0.75rem; }
.comp-row > .field { flex: 0 1 22rem; min-width: 0; }
.comp-row .comp-details { margin-left: auto; }
@media (min-width: 40rem) { .comp-row { flex-wrap: nowrap; } }  /* the Details button stays on the date row; the dates narrow if they have to */
.comp-row .comp-details, .comp-row .date-input .input, .comp-row .date-input .select { height: 2.5rem; min-height: 2.5rem; }  /* the Details button is exactly as tall as the date boxes beside it */
.comp-row .field-label, .comp-det .field-label { font-size: 0.8438rem; }
.comp-det { margin-top: 0.875rem; padding-top: 1rem; border-top: 1px dashed var(--border-strong); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comp-det .is-wide { grid-column: 1 / -1; }
@media (max-width: 40rem) { .comp-det { grid-template-columns: minmax(0, 1fr); } }
.comp-actions { display: flex; gap: 0.5rem; margin-top: 0.875rem; }

.entry-items { list-style: none; margin: 0.5rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--accent-soft); display: grid; gap: 1.25rem; }
.entry-item { position: relative; min-width: 0; }
.entry-item::before { content: ""; position: absolute; left: -1.5rem; top: 0.5rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.entry-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.25rem; }
.entry-headline { font-size: 1rem; overflow-wrap: anywhere; }
.entry-text { margin-top: 0.125rem; }
.entry-item .gallery { margin-top: 0.5rem; }
.entry-item .entry-by { display: block; margin-top: 0.375rem; }


/* ---------- Mentions: @-names in entries, and the "Mentioned in" section (see web/js/components/mentions.js) ---------- */
.mention-box { position: relative; }
.mention-menu { position: absolute; z-index: 30; left: 0; top: calc(100% + 0.25rem); width: min(24rem, 100%); margin: 0; padding: 0.25rem; list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 0.75rem; box-shadow: var(--shadow-md); }
.mention-option { display: flex; align-items: center; gap: 0.625rem; padding: 0.3125rem 0.5rem; border-radius: 0.5rem; cursor: pointer; }
.mention-option.is-active, .mention-option:hover { background: var(--accent-soft); }
.mention-option .avatar { flex: none; border-radius: 0.4375rem; }
.mention-option-name { flex: 1; min-width: 0; font-weight: 600; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-option small { color: var(--text-2); font-size: 0.75rem; white-space: nowrap; }
.mention-menu-hint { padding: 0.375rem 0.5rem 0.25rem; color: var(--text-3); font-size: 0.75rem; }
.mention-with { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; margin-top: 0.5rem; position: relative; }
.mention-with-label { color: var(--text-2); font-size: 0.8125rem; font-weight: 600; }
.mention-chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 1px 0.25rem 1px 0.625rem; border-radius: 6.1875rem; background: var(--accent-soft); color: var(--accent-text); font-size: 0.8125rem; font-weight: 550; text-decoration: none; }
.mention-chip button { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.mention-chip button:hover { background: rgba(79, 70, 229, 0.16); }
.mention-chip--link { padding: 1px 0.625rem; }
a.mention-chip--link:hover { text-decoration: none; background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 30%); }
.mention-add .link-button { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; font-weight: 550; }
.mention-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 0.25rem); width: min(24rem, 100%); padding: 0.5rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 0.75rem; box-shadow: var(--shadow-md); }
.mention-pop ul { list-style: none; margin: 0.375rem 0 0; padding: 0; }
.mention-note { margin: 0.5rem 0 0; }
.mention-note--warn { color: var(--warning-text, #92400e); }
.entry-with { margin-top: 0.375rem; }
.mention-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.375rem; }
/* "@Name" inside the text of an entry */
a.mention { display: inline; padding: 0 0.3125rem; border-radius: 0.375rem; background: var(--accent-soft); color: var(--accent-text); font-weight: 550; text-decoration: none; }
a.mention:hover { text-decoration: none; background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 30%); }
a.mention--me { background: color-mix(in srgb, var(--accent-soft) 55%, var(--accent) 45%); }
/* the entry a link pointed at */
.entry-item.is-linked { animation: entry-linked 2.4s ease-out; }
@keyframes entry-linked { 0%, 40% { background: var(--accent-soft); box-shadow: 0 0 0 0.5rem var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 0.5rem transparent; } }
@media (prefers-reduced-motion: reduce) { .entry-item.is-linked { animation: none; } }

.mentioned-in-sub { margin: 0.125rem 0 0.75rem; color: var(--text-2); font-size: 0.9375rem; }
.mention-items { list-style: none; margin: 0; padding: 0; }
.mention-item { display: flex; gap: 0.75rem; padding: 0.875rem 0; border-top: 1px solid var(--border); }
.mention-item:first-child { border-top: 0; }
.mention-item-avatar { flex: none; }
.mention-item-avatar .avatar { border-radius: 0.6875rem; }
.mention-item-body { flex: 1; min-width: 0; }
.mention-item-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; }
.mention-item-name { font-weight: 650; color: var(--text); }
.mention-item-meta { color: var(--text-2); font-size: 0.8125rem; }
.mention-item-title { margin-top: 0.125rem; font-weight: 600; font-size: 0.9375rem; }
.mention-item-text { margin: 0.25rem 0 0; color: var(--text); line-height: 1.55; overflow-wrap: anywhere; }
.mention-item-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.875rem; margin-top: 0.5rem; font-size: 0.8125rem; }
.mention-item-read { font-weight: 550; }
.mention-item-hide { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--text-2); }
.mentioned-in-more { margin-top: 0.25rem; font-weight: 550; }
.mentioned-in-hidden { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); color: var(--text-2); font-size: 0.875rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mentioned-in-note { color: var(--text-3); font-size: 0.8125rem; }
.mention-items--hidden { margin-top: 0.5rem; opacity: 0.85; }
@media (max-width: 40rem) { .mention-item { gap: 0.5rem; } }

/* A name written in a second language: under the name on a person's page and in the fact box. */
.wiki-name-second { margin: -0.25rem 0 0.375rem; font-size: 1.375rem; line-height: 1.3; color: var(--text-2); font-weight: 550; }
.wiki-name-second small { margin-left: 0.5rem; font-size: 0.8125rem; font-weight: 550; color: var(--text-3); }
.infobox-title:has(+ .infobox-second) { padding-bottom: 0.125rem; }
.infobox-second { padding: 0 1rem 0.75rem; background: var(--accent-soft); color: var(--accent-text); text-align: center; font-weight: 550; overflow-wrap: anywhere; }

/* ---------- The short version of the edit page ---------- */
.se { display: flex; flex-direction: column; gap: 2.25rem; --se-done: #2e90fa; --se-done-soft: var(--info-soft); --se-done-text: #175cd3; } /* the colour of what is filled in (the tags under the picture, the ticks in "Add more info") */
@media (prefers-color-scheme: dark) { .se { --se-done-soft: #12263f; --se-done-text: #84caff; } }
.se-top { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: start; }
.se-h { margin: 0 0 0.875rem; font-size: 1.25rem; line-height: 1.25; font-weight: 650; }
.se-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.75rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.se-hero-photo { position: relative; margin-bottom: 0.875rem; }
.se-hero-photo .avatar { border-radius: 1.375rem; }
.se-hero-camera { position: absolute; right: -0.5rem; bottom: -0.5rem; width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; box-shadow: var(--shadow-sm); }
.se-hero-camera:hover { color: var(--accent-text); border-color: var(--accent); }
.se-hero-name { margin-bottom: 0.875rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.se-hero-sub { margin: 0.125rem 0 0.875rem; color: var(--text-2); font-size: 0.875rem; }
.se-slots { display: flex; flex-wrap: wrap; gap: 0.375rem; justify-content: center; }
.se-slot { display: inline-flex; align-items: center; gap: 0.3125rem; padding: 0.3125rem 0.75rem; border-radius: 6.1875rem; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 0.8125rem; font-weight: 550; cursor: pointer; }
.se-slot:hover { border-color: var(--accent); color: var(--accent-text); }
.se-slot.is-done { border: 1px solid color-mix(in srgb, var(--se-done) 40%, var(--surface)); background: var(--se-done-soft); color: var(--se-done-text); cursor: pointer; }
.se-hero-count { margin-top: 0.875rem; color: var(--text-3); font-size: 0.8125rem; font-weight: 550; }
.se-quiet { color: var(--text-2); margin: 0; }
.se-ic { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; flex: none; }
.se-ic--a { background: var(--accent-soft); color: var(--accent-text); }
.se-ic--d { background: var(--danger-soft); color: var(--danger); }
.se-ic--w { background: var(--warning-soft); color: var(--warning); }
.se-ic--s { background: var(--success-soft); color: var(--success); }
.se-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; }
.se-kind { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 1.125rem 0.75rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font: inherit; color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color 0.12s, background 0.12s; }
.se-kind b { font-weight: 650; }
.se-kind small { color: var(--text-2); font-size: 0.8125rem; line-height: 1.35; }
.se-kind:hover { border-color: var(--accent); }
.se-kind.is-on { border: 2px solid var(--accent); background: var(--accent-soft); padding: calc(1.125rem - 1px) calc(0.75rem - 1px); }
.se-list { margin-top: 1rem; padding: 0.25rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.se-row { padding: 0.875rem 0.5rem; border-top: 1px solid var(--border); border-radius: var(--radius); }
.se-row:first-child { border-top: 0; }
.se-row-head { display: flex; align-items: center; gap: 1rem; }
.se-row-text { flex: 1; min-width: 0; }
.se-row-title { font-weight: 650; font-size: 1rem; overflow-wrap: anywhere; }
.se-row-sub { margin-top: 0.125rem; color: var(--text-2); font-size: 0.875rem; overflow-wrap: anywhere; }
.se-row-sub.has-answer { color: var(--text); }
.se-row-body { margin-top: 0.875rem; }
.se-row-body .form-q--wide { grid-column: auto; padding: 0; border: 0; }
.se-back { margin-bottom: 0.25rem; }

/* Beside the tile: the fields that make it. */
.se-fields { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
/* Two panels side by side that slide: the tile fields, and what slides in over them. The card is as tall as the one showing. */
.se-carousel { overflow: hidden; transition: height 0.3s ease; }
.se-track { display: flex; width: 200%; align-items: flex-start; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.se-carousel.is-more .se-track { transform: translateX(-50%); }
.se-pane { flex: none; width: 50%; box-sizing: border-box; padding: 1.5rem; }
.se-pane-back { display: inline-flex; align-items: center; gap: 0.375rem; margin-bottom: 0.75rem; }
.se-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.se-pane-head .name-tabs { margin-top: 0.125rem; }
.se-fields-more { display: inline-flex; align-items: center; gap: 0.375rem; }
.se-more-pane { display: flex; flex-direction: column; gap: 1.5rem; }
.se-more-pane .name-card-head { margin-bottom: 1rem; }
.se-more-pane .name-card-head .field-label { font-size: 0.9375rem; }
.se-more-pane .name-card-fields { gap: 1.25rem 1rem; }
@media (prefers-reduced-motion: reduce) { .se-track, .se-carousel { transition-duration: 0.01s; } }
.se-pane .se-h { margin-bottom: 0.25rem; }
.se-pane .se-quiet { margin: 0 0 1.125rem; font-size: 0.875rem; }
.se-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; align-items: start; }
.se-pane .form-q .field-label { font-size: 0.9375rem; }
.se-pane .field-hint { font-size: 0.8125rem; }
.se-fields-more { margin-top: 1rem; }
/* One kind opened: a few questions, and the column to add more of them. */
.se-kind-view { margin-top: 1rem; display: block; }
.se-kind-view.has-add { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.se-kind-view .se-list { margin-top: 0; }
.se-empty { padding: 1rem 0; }
.se-add { padding: 1.125rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.se-add-title { margin-bottom: 0.625rem; font-weight: 650; font-size: 1rem; }
.se-pick { display: flex; align-items: flex-start; gap: 0.625rem; width: 100%; padding: 0.5rem 0.25rem; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; font-size: 0.9062rem; text-align: left; color: var(--text); cursor: pointer; }
.se-pick:first-of-type { border-top: 0; }
.se-pick:hover:not(:disabled) .se-check { border-color: var(--accent); }
.se-pick:disabled { cursor: default; color: var(--text-2); }
.se-pick-label { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.se-check { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; display: grid; place-items: center; border-radius: 0.3125rem; border: 1px solid var(--border-strong); background: var(--surface); color: var(--on-accent); }
.se-check.is-on { background: var(--accent); border-color: var(--accent); }
.se-pick:disabled .se-check.is-on { background: var(--se-done-soft); border-color: color-mix(in srgb, var(--se-done) 40%, var(--surface)); color: var(--se-done-text); } /* already has an answer: the same soft blue as the tags under the picture */

/* A row that is not being edited shows what is there; the one just added with "Add more info" glows twice. */
.se-row-read { margin-top: 0.625rem; color: var(--text); overflow-wrap: anywhere; }
.se-row-read .se-read-value { font-size: 0.9688rem; }
.se-row-read .entry-items { margin: 0; }
.se-row.is-new { --found-fill: #ddd6fe; --found-ring: rgba(139, 92, 246, 0.5); animation: se-new 0.25s ease-in-out 0.35s 2; } /* the same quick double glow as the tile found on the tree */
@media (prefers-color-scheme: dark) { .se-row.is-new { --found-fill: #3b2d6b; --found-ring: rgba(167, 139, 250, 0.55); } }
@keyframes se-new {
  0%, 100% { background-color: transparent; box-shadow: 0 0 0 0 transparent; }
  50% { background-color: var(--found-fill); box-shadow: 0 0 0 6px var(--found-ring); }
}
@media (prefers-reduced-motion: reduce) { .se-row.is-new { animation-duration: 0.01s; background-color: var(--found-fill); } }

/* Gender sits beside the nickname (the full form puts a short choice like it on a row of its own). */
.se-fields-grid .form-q--half { grid-column: auto; }

/* "Not displayed on my profile": the switch under an answer, and the badge on a row that has it on. */
.se-privacy { margin-top: 0.875rem; }
.comp-privacy { margin-top: 0.875rem; }
.se-hidden-badge { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; padding: 0.0625rem 0.5rem; border-radius: 6.1875rem; background: var(--warning-soft); color: var(--warning); font-size: 0.75rem; font-weight: 600; vertical-align: middle; white-space: nowrap; }
