/* ================================================================
   FriendsByChance — contacts.css
   Contacts feature styles
   ================================================================ */

/* ── Colour tokens ──────────────────────────────────────────────────
   Contacts-specific only.  Shared tokens (--color-text, --color-danger,
   --color-hover, --color-selected, --color-border) live in main.css.   */
:root {
    --color-contact-ghost:    #7b2d8b;
    --color-contact-live:     #1a6fa8;
    --color-contact-zombie:   #0e7a6a;
    --color-contact-physical: #c0580a;
    --color-merge-suggestion: #eef2ff;
    --color-merge-border:     #b8c8ff;
}

/* ── List panel content overrides ──────────────────────────────── */
#contacts-page .fbc-pane-left {
    width:           var(--fbc-left-w);
    flex-shrink:     0;
    overflow-y:      auto;
    display:         flex;
    flex-direction:  column;
    background:      var(--color-surface);
}

.contact-detail-placeholder {
    color:       var(--color-text-secondary);
    text-align:  center;
    margin-top:  80px;
    font-size:   1rem;
}

/* ── Back button (mobile only) ──────────────────────────────────── */
.contacts-back-btn {
    display:      none;
    align-items:  center;
    gap:          6px;
    background:   none;
    border:       none;
    color:        var(--color-primary);
    font-size:    0.95rem;
    font-weight:  600;
    cursor:       pointer;
    padding:      0 0 12px 0;
    margin-bottom: 4px;
}
.contacts-back-btn:hover { text-decoration: underline; }

/* ── Contact rows ───────────────────────────────────────────────── */
.contacts-rows { flex: 1; }

.contact-row {
    display:        flex;
    align-items:    center;
    gap:            12px;
    padding:        10px 14px;
    cursor:         pointer;
    border-bottom:  1px solid var(--color-border);
    transition:     background 0.1s;
}
.contact-row:hover    { background: var(--color-hover); }
.contact-row.selected { background: var(--color-selected); }

.contact-avatar {
    width:          42px;
    height:         42px;
    border-radius:  50%;
    object-fit:     cover;
    flex-shrink:    0;
    background:     var(--color-divider);
}
.contact-avatar-initials {
    width:          42px;
    height:         42px;
    border-radius:  50%;
    background:     var(--color-primary-light);
    color:          var(--color-text-on-primary);
    display:        flex;
    align-items:    center;
    justify-content: center;
    font-size:      1rem;
    font-weight:    700;
    flex-shrink:    0;
}
.contact-row-info {
    flex:       1;
    min-width:  0;
    min-height: 42px;  /* match avatar height — keeps name position stable with/without tags */
}
.contact-row-name {
    font-weight:    600;
    font-size:      0.95rem;
    white-space:    nowrap;
    overflow:       hidden;
    text-overflow:  ellipsis;
}
.contact-type-badge {
    font-size:      0.65rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding:        2px 6px;
    border-radius:  4px;
    color:          #fff;
}
.badge-ghost    { background: var(--color-contact-ghost); }
.badge-live     { background: var(--color-contact-live); }
.badge-zombie   { background: var(--color-contact-zombie); }
.badge-physical { background: var(--color-contact-physical); }

/* ── Contact type dot (list row — replaces text badge) ──────────── */
.contact-type-dot {
    display:        inline-block;
    width:          7px;
    height:         7px;
    border-radius:  50%;
    flex-shrink:    0;
    margin-right:   4px;
    vertical-align: middle;
    position:       relative;
    top:            -1px;
}
.contact-type-dot--ghost  { background: var(--color-contact-ghost); }
.contact-type-dot--live   { background: var(--color-contact-live); }
.contact-type-dot--zombie { background: var(--color-contact-zombie); }

/* Its actions' "⋯" (FBC.ui.rowMenu), at the row's end. */
.contact-row-more { flex-shrink: 0; }

/* ── Loading / empty / error states ────────────────────────────── */
.contacts-retry {
    margin-left: 6px;
    cursor:      pointer;
    background:  none;
    border:      none;
    color:       var(--color-primary);
    font-weight: 600;
}
.contacts-status {
    padding:    24px 16px;
    text-align: center;
    color:      var(--color-text-secondary);
    font-size:  0.9rem;
}
.contacts-spinner {
    display:        inline-block;
    width:          28px;
    height:         28px;
    border:         3px solid var(--color-divider);
    border-top-color: var(--color-primary);
    border-radius:  50%;
    animation:      contacts-spin 0.7s linear infinite;
    margin-bottom:  10px;
}
@keyframes contacts-spin { to { transform: rotate(360deg); } }

/* ── Detail view shared ─────────────────────────────────────────── */
/* A contact's view, wherever it is drawn (the Contacts page, the right
   pane, a sheet): the container its narrow layout is asked of. */
.contacts-detail-inner { container: contact-view / inline-size; }

.contact-detail-header {
    display:        flex;
    align-items:    stretch;
    gap:            12px;
    margin-bottom:  20px;
}
/* Avatar and name column stay vertically centred */
.contact-detail-header > .contact-detail-avatar,
.contact-detail-header > .contact-detail-avatar-initials,
.contact-detail-header > div:not(.contact-tags-sidebar):not(.contact-header-actions) {
    align-self:     center;
}

.contact-detail-heading { flex: 1; min-width: 0; }
.zombie-link { color: var(--color-contact-zombie); font-weight: 600; }

.contact-detail-avatar {
    width:          72px;
    height:         72px;
    border-radius:  50%;
    object-fit:     cover;
    flex-shrink:    0;
    background:     var(--color-divider);
}
.contact-detail-avatar-initials {
    width:          72px;
    height:         72px;
    border-radius:  50%;
    background:     var(--color-primary-light);
    color:          var(--color-text-on-primary);
    display:        flex;
    align-items:    center;
    justify-content: center;
    font-size:      1.6rem;
    font-weight:    700;
    flex-shrink:    0;
}
.contact-detail-name {
    font-size:      1.3rem;
    font-weight:    700;
    line-height:    1.2;
}
.contact-detail-nick {
    color:          var(--color-text-secondary);
    font-size:      0.9rem;
    margin-top:     3px;
}
.contact-detail-badges {
    display:        flex;
    gap:            6px;
    margin-top:     5px;
    flex-wrap:      wrap;
    align-self:     flex-start;   /* narrow, even in a column (the quick view's names) */
}
/* Its look is .fbc-section-title's (components/shared.css). */
.contact-section-title { margin: 20px 0 8px; }
.contact-field-row {
    padding:        5px 0;
    font-size:      0.95rem;
    border-bottom:  1px solid var(--color-border);
}
.contact-field-label {
    font-weight:    600;
    margin-right:   6px;
    color:          var(--color-text-secondary);
}


/* ── Notes ──────────────────────────────────────────────────────── */
.note-row {
    display:        flex;
    align-items:    flex-start;
    gap:            10px;
    padding:        8px 0;
    border-bottom:  1px solid var(--color-border);
}
.note-row-body { flex: 1; min-width: 0; }
.note-row-text { font-size: 0.9rem; }
.note-row-meta {
    font-size:  0.78rem;
    color:      var(--color-text-secondary);
    margin-top: 3px;
}
.note-row-actions { display: flex; gap: 6px; }

/* ── Detail action buttons ──────────────────────────────────────── */
.contact-detail-actions {
    display:         flex;
    gap:             10px;
    flex-wrap:       wrap;
    justify-content: flex-end;
    margin-top:      40px;   /* blank row above buttons */
    padding-top:     16px;
    border-top:      1px solid var(--color-border);
}
/* Each action button occupies ~25% of the page width, capped at 220px */
.contact-action-btn {
    flex:       0 0 auto;
    width:      clamp(120px, 25%, 220px);
}
/* Zombie-link styled as a compact secondary action */
.contact-action-link {
    display:     flex;
    align-items: center;
    width:       clamp(120px, 25%, 220px);
    justify-content: center;
    color:       var(--color-contact-zombie);
    font-weight: 600;
    text-decoration: none;
}

/* ── Zombie tabs ────────────────────────────────────────────────── */
/* The bar over every contact's view (_topBarHtml): its kinds as tabs —
   one, or a zombie's two — and Actions on the right. */
.contact-topbar {
    display:        flex;
    align-items:    flex-end;
    gap:            10px;
    border-bottom:  2px solid var(--color-border);
    margin-bottom:  20px;
}
.contact-topbar .zombie-tabs { flex: 1; min-width: 0; border-bottom: none; margin-bottom: 0; }
.contact-topbar .zombie-tab--only { cursor: default; }
.contact-actions-btn {
    display:       inline-flex;
    align-items:   center;
    gap:           6px;
    margin-bottom: 6px;
}
.contact-actions-btn svg { width: 16px; height: 16px; }
.zombie-tabs {
    display:        flex;
    border-bottom:  2px solid var(--color-border);
    margin-bottom:  20px;
}
.zombie-tab {
    padding:        9px 28px;
    cursor:         pointer;
    border-bottom:  3px solid transparent;
    margin-bottom:  -2px;
    font-weight:    600;
    font-size:      0.95rem;
    color:          var(--color-text-secondary);
    transition:     color 0.15s, border-color 0.15s;
}
.zombie-tab:hover { color: var(--color-text-primary); }
.zombie-tab.active {
    border-bottom-color: var(--color-primary);
    color:               var(--color-primary);
}
.zombie-tab-panel { display: none; }
.zombie-tab-panel.active { display: block; }

/* ── Ghost / Live editor form ───────────────────────────────────── */
.contact-editor-title {
    font-size:      1.2rem;
    font-weight:    700;
    margin-bottom:  20px;
    color:          var(--color-text-primary);
}
.contact-editor-banner {
    margin-bottom: 12px;
}
/* The ghost editor's and the merge's section titles: .fbc-section-title--ruled, as the
   other person forms' (components/shared.css). */

/* ── Merge page ─────────────────────────────────────────────────── */
.merge-title {
    font-size:   1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.merge-subtitle {
    font-size:   0.88rem;
    color:       var(--color-text-secondary);
    margin-bottom: 20px;
}
.btn-secondary.use-suggestion { padding: 3px 10px; font-size: 0.8rem; }
.merge-suggestion-row {
    display:        flex;
    align-items:    center;
    gap:            10px;
    background:     var(--color-merge-suggestion);
    border:         1px solid var(--color-merge-border);
    border-radius:  5px;
    padding:        5px 10px;
    margin-bottom:  5px;
    font-size:      0.85rem;
}
.merge-suggestion-label { flex: 1; color: var(--color-text-secondary); }
.merge-suggestion-value {
    font-style:  italic;
    color:       var(--color-text-primary);
    max-width:   200px;
    overflow:    hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.merge-from-header {
    font-weight: 700;
    font-size:   0.85rem;
    margin:      18px 0 8px;
    color:       var(--color-contact-ghost);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.merge-check-row {
    display:        flex;
    align-items:    center;
    gap:            10px;
    padding:        7px 10px;
    border:         1px solid var(--color-border);
    border-radius:  5px;
    margin-bottom:  6px;
    background:     var(--color-surface);
    font-size:      0.9rem;
}
.merge-check-row.duplicate {
    background: #fffbf0;
    border-color: #ffe082;
}
.merge-check-row input[type="checkbox"] { flex-shrink: 0; }
.merge-check-row-label { flex: 1; }
.merge-duplicate-tag {
    font-size:  0.72rem;
    font-weight: 700;
    color:      #b8860b;
    background: #fff3cd;
    padding:    1px 5px;
    border-radius: 3px;
    white-space: nowrap;
}
.merge-notes-section-label {
    font-weight: 600;
    font-size:   0.88rem;
    color:       var(--color-text-secondary);
    margin:      12px 0 6px;
    font-style:  italic;
}

/* ── The people search (contacts.js openUserSearch: a Sheet) ────── */
.user-search-input { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.user-search-note {
    padding:    12px 4px;
    text-align: center;
    color:      var(--color-text-secondary);
    font-size:  0.88rem;
}
.user-search-result {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             10px;
    padding:         6px 0;
    border-bottom:   1px solid var(--color-border);
}
.user-search-result:last-child { border-bottom: none; }
.user-search-who {
    display:       flex;
    align-items:   center;
    gap:           8px;
    flex:          1;
    min-width:     0;
    padding:       4px;
    border-radius: 6px;
}
.user-search-who--open { cursor: pointer; }
.user-search-who--open:hover { background: var(--color-hover); }
.user-search-nick {
    min-width:     0;
    font-size:     0.8rem;
    color:         var(--color-text-secondary);
    white-space:   nowrap;
    overflow:      hidden;
    text-overflow: ellipsis;
}
.user-search-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
/* Finger-sized, as the person forms' buttons are. */
.user-search-actions .fbc-icon-btn { width: 44px; height: 44px; border-radius: 8px; }
.user-search-mark { display: inline-flex; color: #388E3C; }
.user-search-mark svg { width: 20px; height: 20px; }

/* ── Generic reuse in detail panels ────────────────────────────── */
.btn-primary {
    background:     var(--color-primary);
    color:          var(--color-text-on-primary);
    border:         none;
    border-radius:  6px;
    padding:        9px 18px;
    font-size:      0.9rem;
    font-weight:    600;
    cursor:         pointer;
}
.btn-primary:hover    { background: var(--color-primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background:     transparent;
    color:          var(--color-text-primary);
    border:         1px solid var(--color-divider);
    border-radius:  6px;
    padding:        8px 18px;
    font-size:      0.9rem;
    cursor:         pointer;
}
.btn-secondary:hover { background: var(--color-hover); }

.btn-add-note {
    background:     none;
    border:         1px dashed var(--color-divider);
    border-radius:  6px;
    padding:        7px 14px;
    font-size:      0.85rem;
    cursor:         pointer;
    color:          var(--color-text-secondary);
    width:          100%;
    text-align:     left;
    margin-top:     8px;
}
.btn-add-note:hover { background: var(--color-hover); color: var(--color-text-primary); }

/* ── Note modal ─────────────────────────────────────────────────── */
.note-modal-location {
    display:        flex;
    gap:            8px;
}
.note-modal-location input { flex: 1; }
.note-modal-location > .form-group { flex: 1; margin: 0; }
.fbc-section-title.note-modal-location-title { margin-top: 12px; }
.note-modal-text { resize: vertical; }

/* List row tag line: scrollable chip area + always-visible +N chip */
.contact-tags-line {
    display:        flex;
    align-items:    center;
    gap:            4px;
    margin-top:     4px;
}

.contact-tags-line > .chipped-display { flex: 1; min-width: 0; }
.contact-tags-bar  > .chipped-display { flex: 1; min-width: 0; width: 100%; }

/* ── Tags sidebar (contact detail header — centre-right column) ──── */
.contact-tags-sidebar {
    display:        flex;
    flex-direction: column;
    align-self:     stretch;
    flex:           0 0 40%;
    max-width:      40%;
    margin-left:    auto;
    padding-left:   10px;
    overflow:       hidden;
}
.contact-tags-bar {
    display:        flex;
    flex-wrap:      wrap;
    align-content:  flex-start;
    justify-content: flex-end;
    gap:            4px;
    flex:           1;
    /* limit to 3 rows of chips and their 4px gaps */
    max-height:     calc(3 * var(--fbc-chip-h) + 2 * 4px);
    overflow:       hidden;
}

/* A narrow view (the right pane, a narrow window — the user, 2026-11-01):
   the tags on a row of their own under the picture and the name, the whole
   width theirs; none, no row.  Asked of the VIEW, not the window
   (.contacts-detail-inner is the container, below). */
@container contact-view (max-width: 480px) {
    .contact-detail-header { flex-wrap: wrap; row-gap: 10px; }
    .contact-tags-sidebar {
        order:        1;
        flex:         1 0 100%;
        max-width:    none;
        margin-left:  0;
        padding-left: 0;
    }
    .contact-tags-sidebar:has(.journeys-assoc-none) { display: none; }
    .contact-tags-bar { justify-content: flex-start; }
}

/* ── Header action column (chat icon + select tags — far right) ───── */
.contact-header-actions {
    display:        flex;
    flex-direction: column;
    align-self:     stretch;
    flex-shrink:    0;
    width:          72px;
    gap:            6px;
}
.btn-chat-icon {
    flex:           1;           /* takes all remaining height above select-tags */
    width:          100%;
    background:     var(--color-primary);
    color:          var(--color-text-on-primary);
    border:         none;
    border-radius:  6px;
    cursor:         pointer;
    display:        flex;
    align-items:    center;
    justify-content: center;
    transition:     background var(--transition);
}
.btn-chat-icon:hover                  { background: var(--color-primary-dark); }
.btn-chat-icon.btn-chat-icon--disabled,
.btn-chat-icon:disabled               { background: #ccc; cursor: default; }

/* "Select tags" in the header action column (Live / Ghost / Zombie views):
   the shared icon button (FBC.ui.iconBtn — its label is the tooltip),
   sized to the column like the chat button above it. */
.contact-header-actions .contact-tags-btn {
    width:          100%;
    height:         36px;
    border-radius:  6px;
    color:          var(--color-primary);
}
.contact-header-actions .contact-tags-btn svg { width: 20px; height: 20px; }

/* When select-tags is the only button (Ghost — no chat icon above it), fill the height */
.contact-header-actions .contact-tags-btn:only-child {
    flex:           1;
    height:         auto;
}

/* ── Combined QR overlay ─────────────────────────────────────── */
/* Overlay scrolls if the modal is taller than the viewport (small screens) */
.qr-combined-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    z-index: 500; display: flex; align-items: flex-start; justify-content: center;
    padding: 16px; overflow-y: auto; }
/* Modal sizes to content — no max-height, no overflow clipping */
.qr-combined-modal {
    background: #fff; border-radius: 10px;
    display: flex; flex-direction: column;
    width: min(780px, 96vw); margin: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
.qr-combined-header {
    padding: 14px 18px; font-weight: 600; font-size: 1rem;
    border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center; }
.qr-combined-close {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; line-height: 1; }
/* Body: no fixed height, no overflow — grows with content */
.qr-combined-body { display: flex; flex-direction: row; }
.qr-panel {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 16px; min-width: 0; }
.qr-panel + .qr-panel { border-left: 1px solid #eee; }
.qr-panel-title {
    font-weight: 600; font-size: 0.85rem;
    color: var(--color-text-secondary, #6D4C41);
    margin-bottom: 12px; text-align: center; }
.qr-gen-content {
    display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-gen-footer { padding-top: 8px; display: flex; justify-content: center; }
.qr-scan-content {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    width: 100%; }
.qr-spinner-wrap { padding: 24px 0; }
/* QR image and camera view are the same square size */
.qr-img-wrap { width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.qr-img { width: 100%; height: 100%; }
.qr-img.expired { opacity: 0.3; }
.qr-countdown { font-size: 1.3rem; font-weight: 600; color: var(--color-primary, #4a7c59); letter-spacing: 0.05em; }
.qr-expired-label, .qr-gen-error, .qr-scan-error { font-size: 0.85rem; color: #c00; text-align: center; }
.qr-display { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* Camera: same 200×200 square as the QR image, cropped to center */
.qr-video-wrap { position: relative; width: 200px; height: 200px; overflow: hidden; border-radius: 6px; }
.qr-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 100%; height: 100%; object-fit: cover; }
/* Scan frame fills the square with a small border margin */
.qr-scan-frame {
    position: absolute; top: 5%; left: 5%; width: 90%; height: 90%;
    border: 3px solid rgba(74,124,89,0.85); border-radius: 8px; pointer-events: none; }
.qr-confirm-area { width: 100%; text-align: center; }
.qr-confirm-nick { font-size: 1rem; font-weight: 600; margin: 0 0 10px; }

/* Portrait: stack panels vertically */
@media (orientation: portrait) {
    .qr-combined-body { flex-direction: column; }
    .qr-panel + .qr-panel { border-left: none; border-top: 1px solid #eee; }
    .qr-combined-modal { width: min(420px, 96vw); }

    /* Both squares smaller in portrait to keep panels compact */
    .qr-img-wrap { width: 160px; height: 160px; }
    .qr-video-wrap { width: 160px; height: 160px; }
}

/* ── A contact's chip (FBC.contacts.makeChip) ─────────────────────────
   A PERSON, not a tag: their picture (or initial), their name — pressed,
   where it is shown, their card (summaryChip). */
.tl-chip.contact-chip {
    gap:           7px;
    padding:       2px 12px 2px 3px;
    background:    var(--color-surface, #fff);
    border:        1px solid var(--color-border);
}
.contact-chip-face {
    flex:          0 0 auto;
    width:         calc(var(--fbc-chip-h) - 8px);
    height:        calc(var(--fbc-chip-h) - 8px);
    border-radius: 50%;
    object-fit:    cover;
}
.contact-chip-face--initial::before { content: attr(data-initial); }
.contact-chip-face--initial {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    background:      var(--color-primary);
    color:           var(--color-text-on-primary);
    font-size:       0.72rem;
    font-weight:     700;
}
.contact-chip-name {
    min-width:     0;
    overflow:      hidden;
    text-overflow: ellipsis;
}
/* Pressable (FBC.contacts.summaryChip): the whole chip — their card; its look .fbc-pressable's. */

/* Who they are, larger (profileEl: a sheet, The Map's People card, its
   right pane): a bar of what can be done — the host's at its start, Open
   in Contacts (and close) at its end — over the picture and the names. */
.contact-profile-bar {
    display:     flex;
    align-items: center;
    gap:         6px;
    margin-bottom: 10px;
}
.contact-profile-bar-start,
.contact-profile-bar-end {
    display:     flex;
    align-items: center;
    gap:         6px;
}
.contact-profile-bar-end { margin-left: auto; }
.contact-profile-head {
    display:               grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items:           center;
    gap:                   10px 12px;
    margin-bottom:         14px;
}
.contact-profile-picture {
    width:         112px;
    height:        112px;
    max-width:     36vw;
    max-height:    36vw;
    border-radius: 12px;
    object-fit:    cover;
}
.contact-profile-names {
    align-self:    center;
    display:       flex;
    flex-direction: column;
    gap:           4px;
    min-width:     0;
    overflow-wrap: anywhere;
}
.contact-profile-picture--initial {
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      var(--color-primary);
    color:           var(--color-text-on-primary);
    font-size:       3rem;
    font-weight:     700;
}
.contact-profile-name { font-size: 1.15rem; font-weight: 700; }
.contact-profile-nick { color: var(--color-text-secondary); }

/* ── A view's header buttons, two by two (_headerBtnsHtml) ── */
.contact-header-actions.contact-header-actions--grid {
    display:               grid;
    grid-template-columns: repeat(2, 36px);
    grid-auto-rows:        36px;
    gap:                   6px;
    width:                 auto;
    align-self:            center;
    align-content:         center;
}
.contact-header-actions--grid > .contact-header-btn {
    width:         36px;
    height:        36px;
    border-radius: 6px;
}
.contact-header-actions--grid > .contact-header-btn:not(.btn-chat-icon) { color: var(--color-primary); }
.contact-header-actions--grid > .contact-header-btn svg { width: 18px; height: 18px; }
.contact-header-actions--grid > .contact-tags-btn,
.contact-header-actions--grid > .contact-tags-btn:only-child {
    flex:   none;
    width:  36px;
    height: 36px;
}

/* A ghost's homes and check-ins, in its view and its edit mode. */
.contact-homes-slot:empty,
.contact-checkins-slot:empty { display: none; }
.contact-checkins-slot { margin-top: 16px; }

/* A diary in a contact's view (FBC.ui.Diary.view — the ghost's, or their
   own About me) and in a ghost's editor; a merge's rows say what each is. */
.contact-diary-slot   { margin-bottom: 8px; }
.contact-diary-editor { margin-top: 16px; }
.merge-diary-kind {
    margin-left: auto;
    font-size:   0.78rem;
    color:       var(--color-text-muted);
}

/* ── A contact in the right pane (contacts.js, A CONTACT'S VIEW) ─────
   The Contacts page's view, as it is there — with the room round it the
   page's main pane gives it, and its own scroll under the history's row. */
.contacts-pane-host {
    flex:       1;
    min-height: 0;
    overflow-y: auto;
    padding:    12px 14px 20px;
}

/* A person's TILE (the Contacts page's tiled view, FBC.contacts.card):
   their face as their row draws it, their name and kinds beside it. */
.contact-tile-head  { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-tile-names { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-tile-name  { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-tile-head .contact-detail-badges { margin: 0; }
