/* /Components/Layout/Trading/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-i9lg0r973l] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-i9lg0r973l] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-i9lg0r973l] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-i9lg0r973l] {
    font-size: 1.1rem;
}

.bi[b-i9lg0r973l] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-i9lg0r973l] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-i9lg0r973l] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-i9lg0r973l] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-i9lg0r973l] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-i9lg0r973l] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-i9lg0r973l] {
        padding-bottom: 1rem;
    }

    .nav-item[b-i9lg0r973l]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-i9lg0r973l]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-i9lg0r973l]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-i9lg0r973l] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-i9lg0r973l] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-i9lg0r973l] {
        display: none;
    }

    .nav-scrollable[b-i9lg0r973l] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/FamilyTies.razor.rz.scp.css */
/* Scoped CSS for FamilyTies.razor.
   Blazor's CSS isolation pipeline rewrites each selector to include a `[b-{hash}]`
   attribute that the compiler also stamps onto every HTML element rendered from
   the matching .razor file, so these styles apply only to this page.

   GOAL (2024 restyle): make the logged-in page look + lay out like the guest /
   ephemeral page (familyties-ephemeral.css): a flush, full-height app shell —
   crimson gradient, gold hairline borders, woodgrain section headers, velvet
   per-participant bubbles, an internal-only scrolling message area and a compose
   bar pinned to the bottom of the chat column. No rounded floating "cards", no
   page scroll, no outer margins.

   Markup is intentionally NOT changed (the .razor is large + logic-heavy and this
   is unverifiable without a deploy). One structural difference from the guest page
   remains by necessity: the logged-in page also has a families panel (.ft-side) —
   guests never pick a family. It's styled as a second left-rail panel rather than
   a third column so the shell still reads as "people rail | chat".

   The --ft-* custom properties stay so other site themes keep overriding them at
   html[data-home-theme="…"] .home-shell--front; the crimson defaults below are
   tuned to the ephemeral palette. */

/* ----- full-height app shell (ephemeral: body{display:flex;flex-direction:column;
   height:100%;overflow:hidden}) ----- */
.ft-fullscreen.home-shell.home-shell--front[b-dga7qeimep],
.mud-paper.ft-fullscreen.home-shell.home-shell--front[b-dga7qeimep] {
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    --ft-btn-bg: rgba(234, 179, 8, 0.85);
    --ft-btn-bg-hover: rgba(234, 179, 8, 1);
    --ft-btn-fg: #1c0709;
    --ft-btn-border: rgba(234, 179, 8, 0.55);
    --ft-btn-alt-bg: rgba(255, 255, 255, 0.12);
    --ft-btn-alt-fg: inherit;
    --ft-btn-alt-border: rgba(255, 255, 255, 0.25);
    --ft-toggle-bg: #110305;
    --ft-toggle-border: rgba(234, 179, 8, 0.40);
}

/* ----- header: full-width bar with a single gold bottom hairline (ephemeral
   `header`). Sits above the rail+chat split and never scrolls. ----- */
.ft-header[b-dga7qeimep] {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 10px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(234, 179, 8, 0.40);
}
.ft-home-link[b-dga7qeimep] {
    color: inherit; text-decoration: none;
    padding: 0.35rem 0.7rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(234, 179, 8, 0.55);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem; line-height: 1; white-space: nowrap; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.ft-home-link:hover[b-dga7qeimep] { background: rgba(255, 255, 255, 0.2); }
.ft-home-link svg[b-dga7qeimep] { width: 1rem; height: 1rem; }
/* ephemeral header .grp: flex:1, 1.05rem, 700, #fcd34d, ellipsis */
.ft-title[b-dga7qeimep] {
    margin: 0; flex: 1; min-width: 0;
    font-size: 1.05rem; font-weight: 700; color: #fcd34d;
    line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ft-title-tag[b-dga7qeimep] { font-size: 1.05rem; opacity: 1; margin-left: 0; }
.home-brand[b-dga7qeimep], .home-brand-suffix[b-dga7qeimep] { color: #fcd34d; }
.ft-header-actions[b-dga7qeimep] { display: flex; align-items: center; gap: 0.5rem; }

/* Admin gear menu — pure CSS via <details>. */
.ft-menu[b-dga7qeimep] { position: relative; }
.ft-menu-summary[b-dga7qeimep] {
    list-style: none; cursor: pointer;
    padding: 0.35rem 0.55rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(234, 179, 8, 0.55);
    background: rgba(255, 255, 255, 0.12);
    font-size: 1rem; line-height: 1;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.ft-menu-summary[b-dga7qeimep]::-webkit-details-marker { display: none; }
.ft-menu-summary:hover[b-dga7qeimep] { background: rgba(255, 255, 255, 0.2); }
.ft-menu-summary svg[b-dga7qeimep] { width: 1.05rem; height: 1.05rem; }
.ft-menu[open] > .ft-menu-summary[b-dga7qeimep] { background: rgba(234, 179, 8, 0.22); }
.ft-menu-items[b-dga7qeimep] {
    position: absolute; right: 0; top: calc(100% + 0.35rem);
    background: linear-gradient(180deg, #2a0a0e 0%, #1a0508 100%);
    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 0.55rem;
    padding: 0.35rem 0;
    min-width: 13rem; z-index: 30;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ft-menu-item[b-dga7qeimep] {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    color: #fde68a; text-decoration: none;
    font-size: 0.95rem;
}
.ft-menu-item:hover[b-dga7qeimep] { background: rgba(234, 179, 8, 0.16); }
.ft-menu-item svg[b-dga7qeimep] { width: 1rem; height: 1rem; opacity: 0.85; }

/* ----- the split: shell-inner fills what's left of the viewport, ft-row is the
   ephemeral `.layout` (flex row, internal scroll only, no page scroll/margins) --- */
.ft-shell-inner[b-dga7qeimep] {
    flex: 1; min-height: 0;
    max-width: none; margin: 0; padding: 0;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.ft-row[b-dga7qeimep] {
    display: flex; flex: 1;
    min-height: 0; gap: 0;
    flex-wrap: nowrap; margin: 0;
    overflow: hidden;
}

/* ----- left rail: ephemeral `.roster` (flex:0 0 17rem, own scroll, gold
   right-border, faint dark wash, square). The families panel (.ft-side) becomes a
   second rail panel right after it rather than a third column. ----- */
.ft-contacts-card[b-dga7qeimep] {
    flex: 0 0 17rem;
    min-height: 0;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    border-right: 1px solid rgba(234, 179, 8, 0.20);
    border-radius: 0;
    margin: 0;
    padding: 0 0 0.6rem 0;
    color: inherit;
}
.ft-side[b-dga7qeimep] {
    flex: 0 0 14rem;
    min-height: 0;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(234, 179, 8, 0.20);
    padding: 0.6rem;
}

/* Section header bar — ephemeral `.roster h3`: woodgrain stripe, gold bottom
   hairline only, flush, not a pill. */
.ft-contacts-title[b-dga7qeimep] {
    margin: 0;
    padding: 0.25rem 1rem;
    font-size: 0.9rem; font-weight: 600; color: #fde68a;
    background: url('/images/woodgrain-dark.jpg') center/100% 100% no-repeat;
    border-bottom: 1px solid rgba(234, 179, 8, 0.40);
    display: flex; align-items: center; gap: 0.5rem;
    position: sticky; top: 0; z-index: 1;
}

/* Contact + family rows: thin separators, no card chrome (ephemeral `.roster .row`). */
.ft-contact-row[b-dga7qeimep] {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ft-contact-row:last-child[b-dga7qeimep] { border-bottom: 0; }
.ft-contact-name[b-dga7qeimep] { flex: 1; min-width: 0; }
.ft-contact-name .name[b-dga7qeimep] {
    font-weight: 500; font-size: 0.9rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ft-contact-name .sub[b-dga7qeimep] { font-size: 0.72rem; opacity: 0.65; }
.ft-contact-icons[b-dga7qeimep] { display: flex; gap: 0.15rem; }
.ft-contact-icons .ft-btn-icon[b-dga7qeimep] {
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #fde68a;
    border-radius: 0.3rem;
    padding: 0.18rem 0.3rem;
}
.ft-contact-icons .ft-btn-icon:hover[b-dga7qeimep] { background: rgba(234, 179, 8, 0.32); }
.ft-contact-icons .ft-btn-icon[disabled][b-dga7qeimep] {
    background: rgba(234, 179, 8, 0.10);
    color: rgba(253, 230, 138, 0.4);
    cursor: not-allowed;
}

.ft-fam[b-dga7qeimep] {
    padding: 0.35rem 0.6rem; border-radius: 0.3rem; cursor: pointer; color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.9rem;
}
.ft-fam:hover[b-dga7qeimep] { background: rgba(255, 255, 255, 0.06); }
.ft-fam.sel[b-dga7qeimep] { background: rgba(234, 179, 8, 0.16); font-weight: 600; }
.ft-fam .invite[b-dga7qeimep] { font-size: 0.72rem; opacity: 0.7; }

.ft-card[b-dga7qeimep] {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: inherit;
}

/* Phone-contacts subsection — keep the separator idea but flush. */
.ft-phone-section[b-dga7qeimep] {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.ft-phone-head[b-dga7qeimep] {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.85rem; font-weight: 600; opacity: 0.8;
    padding: 0 0.6rem; margin-bottom: 0.35rem;
}

/* ----- chat column: ephemeral `.chatcol` (flex:1 column) + `main`
   (flex:1; overflow-y:auto). Compose pins to the bottom of THIS column. ----- */
.ft-main[b-dga7qeimep] {
    flex: 1 1 auto; min-width: 0; min-height: 0;
    display: flex; flex-direction: column;
}
.ft-presence[b-dga7qeimep] {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    padding: 0.3rem 0.55rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(234, 179, 8, 0.20);
    font-size: 0.78rem;
}
.ft-presence-pill[b-dga7qeimep] {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.1rem 0.55rem; border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}
.ft-presence-dot[b-dga7qeimep] { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #4b5563; }
.ft-presence-dot.online[b-dga7qeimep] { background: #22c55e; }
.ft-presence-dot.guest[b-dga7qeimep] { background: #fbbf24; }

.ft-chat-scroll[b-dga7qeimep] {
    flex: 1; min-height: 0;
    height: auto;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.22);
    padding: 0.75rem;
    border: 0; border-radius: 0;
    display: flex; flex-direction: column; gap: 0.4rem;
}

/* Message rows + velvet bubbles. Bubble metrics match ephemeral `.bub`
   (.45rem .7rem / radius .7rem / max-width 80% / .95rem). The per-participant
   velvet palette is the shared cross-surface design and is kept as-is. */
.ft-msg[b-dga7qeimep] { display: flex; margin: 0; }
.ft-msg.me[b-dga7qeimep] { justify-content: flex-end; }
.ft-bub[b-dga7qeimep] {
    padding: 0.45rem 0.7rem;
    border-radius: 0.7rem;
    max-width: 80%;
    font-size: 0.95rem;
    color: #fff;
    border: 1px solid rgba(234, 179, 8, 0.4);
    font-weight: 500;
}
.ft-bub.velvet0[b-dga7qeimep] { background: url('/images/velvet_darker_blue.png')   center/cover no-repeat; }
.ft-bub.velvet1[b-dga7qeimep] { background: url('/images/velvet_darker_green.png')  center/cover no-repeat; }
.ft-bub.velvet2[b-dga7qeimep] { background: url('/images/velvet_darker_purple.png') center/cover no-repeat; }
.ft-bub.velvet3[b-dga7qeimep] { background: url('/images/velvet_darker_crimson.png')center/cover no-repeat; }
.ft-bub.velvet4[b-dga7qeimep] { background: url('/images/velvet_darker_yellow.png') center/cover no-repeat; }
.ft-bub.velvet5[b-dga7qeimep] { background: url('/images/velvet_blue.png')    center/cover no-repeat; }
.ft-bub.velvet6[b-dga7qeimep] { background: url('/images/velvet_green.png')   center/cover no-repeat; }
.ft-bub.velvet7[b-dga7qeimep] { background: url('/images/velvet_purple.png')  center/cover no-repeat; }
.ft-bub.velvet8[b-dga7qeimep] { background: url('/images/velvet_crimson.png') center/cover no-repeat; }
.ft-bub.velvet9[b-dga7qeimep] { background: url('/images/velvet_yellow.png')  center/cover no-repeat; }
/* System notice pill — ephemeral `.bub.sys` (centered, woodgrain, italic, small). */
.ft-msg.sys[b-dga7qeimep] { justify-content: center; margin: 0; }
.ft-msg.sys .ft-bub[b-dga7qeimep] {
    background-image: url('/images/woodgrain-dark.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde68a;
    font-style: italic; font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
}
.ft-time[b-dga7qeimep] { font-size: 0.7rem; opacity: 0.7; margin-top: 0.15rem; }
.ft-reactions[b-dga7qeimep] { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.25rem; flex-wrap: wrap; }
.ft-react-pill[b-dga7qeimep] {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 1rem; padding: 0.05rem 0.45rem;
    font-size: 0.8rem; line-height: 1;
}
.ft-react-btn[b-dga7qeimep] {
    background: transparent; border: 0; padding: 0 0.15rem;
    font-size: 0.9rem; cursor: pointer; opacity: 0.55;
}
.ft-react-btn:hover[b-dga7qeimep] { opacity: 1; }

/* Unread DM badge (kept). */
.ft-unread-badge[b-dga7qeimep] {
    display: inline-block; margin-left: 0.35rem; color: #ef4444;
    animation: ftUnreadPulse-b-dga7qeimep 1.6s ease-in-out infinite; font-size: 0.9em; line-height: 1;
}
.ft-has-unread .name[b-dga7qeimep] { font-weight: 700; }
@keyframes ftUnreadPulse-b-dga7qeimep {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.82); }
}

/* ----- compose: ephemeral `.compose` — pinned to the bottom of the chat column,
   gold top hairline, dark input with amber placeholder. ----- */
.ft-compose[b-dga7qeimep] {
    display: flex; gap: 0.5rem;
    padding: 0.5rem;
    margin: 0;
    flex-shrink: 0;
    border-top: 1px solid rgba(234, 179, 8, 0.30);
}
.ft-compose input[b-dga7qeimep] {
    flex: 1;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    color: #fde68a;
    font-size: 1rem;
}
.ft-compose input[b-dga7qeimep]::placeholder { color: rgba(253, 230, 138, 0.55); }

/* Buttons — ephemeral `.btn` / `.btn.alt`. */
.ft-btn[b-dga7qeimep] {
    padding: 0.35rem 0.7rem;
    background: var(--ft-btn-bg);
    color: var(--ft-btn-fg);
    border: 1px solid var(--ft-btn-border);
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.ft-btn:hover:not(:disabled)[b-dga7qeimep] { background: var(--ft-btn-bg-hover); }
.ft-btn:disabled[b-dga7qeimep] { opacity: 0.4; cursor: not-allowed; }
.ft-btn-icon[b-dga7qeimep] {
    padding: 0.18rem 0.3rem; line-height: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.ft-btn-icon svg[b-dga7qeimep] { width: 1rem; height: 1rem; display: block; }
.ft-btn.alt[b-dga7qeimep] {
    background: var(--ft-btn-alt-bg);
    color: var(--ft-btn-alt-fg);
    border-color: var(--ft-btn-alt-border);
}
/* Language <select> in the header reuses .ft-btn.alt — keep it readable. */
select.ft-btn.alt[b-dga7qeimep] { font-size: 0.85rem; }

.ft-err[b-dga7qeimep] { color: #fda4af; font-size: 0.85rem; padding: 0.75rem; }
.ft-empty[b-dga7qeimep] { opacity: 0.65; padding: 2rem; text-align: center; }
.ft-subtitle[b-dga7qeimep] { opacity: 0.85; margin: 0 0 0.5rem 0; }
.status[b-dga7qeimep], .ft-status[b-dga7qeimep] { font-size: 0.75rem; opacity: 0.7; cursor: pointer; }
.status.err[b-dga7qeimep], .ft-status.err[b-dga7qeimep] { color: #fda4af; }

/* ----- narrow viewport: ephemeral collapses the rail behind a "Contacts ▸"
   woodgrain toggle and the chat fills the screen (≤900px). Mirror that. ----- */
.ft-contacts-toggle[b-dga7qeimep] { display: none; }
.ft-back-to-contacts[b-dga7qeimep] { display: none; }

@media (max-width: 900px) {
    .ft-row[b-dga7qeimep] { flex-direction: column; flex-wrap: nowrap; gap: 0; }
    .ft-contacts-card[b-dga7qeimep], .ft-side[b-dga7qeimep], .ft-main[b-dga7qeimep] { flex: 1 1 auto; min-width: 0; }
    .ft-side[b-dga7qeimep] { display: none; }                 /* families hidden on phone, as before */
    .ft-contacts-card[b-dga7qeimep] {
        display: none;
        flex: 0 0 auto;
        max-height: 60vh;
        border-right: 0;
        border-bottom: 1px solid rgba(234, 179, 8, 0.20);
    }
    .ft-contacts-card.open[b-dga7qeimep] { display: block; }
    .ft-contacts-toggle[b-dga7qeimep] {
        display: flex; align-items: center; gap: 0.5rem;
        padding: 0.3rem 1rem;
        flex-shrink: 0;
        background-color: var(--ft-toggle-bg);
        background-image: url('/images/woodgrain-dark.jpg');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        border: 0;
        border-bottom: 1px solid var(--ft-toggle-border);
        border-radius: 0;
        color: #fde68a; cursor: pointer;
        font-size: 0.9rem; width: 100%; text-align: left;
        -webkit-tap-highlight-color: transparent;
    }
    .ft-contacts-toggle .ft-toggle-chev[b-dga7qeimep] {
        display: inline-block; transition: transform 0.15s; font-size: 1.5rem;
        line-height: 1; opacity: 0.8;
    }
    .ft-contacts-toggle.open .ft-toggle-chev[b-dga7qeimep] { transform: rotate(90deg); }
    .ft-contacts-toggle .ft-toggle-count[b-dga7qeimep] { margin-left: auto; opacity: 0.7; font-size: 0.78rem; }
    .ft-back-to-contacts[b-dga7qeimep] {
        display: inline-flex; align-items: center; gap: 0.35rem;
        padding: 0.35rem 0.65rem; margin: 0.4rem;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 0.4rem; color: inherit; cursor: pointer;
        font-size: 0.85rem;
    }
}

/* Dialogs — keep the existing translucent crimson modal (matches the theme). */
.ft-modal-bg[b-dga7qeimep] {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center; z-index: 50;
}
.ft-modal[b-dga7qeimep] {
    background: linear-gradient(180deg, #2a0a0e 0%, #1a0508 100%);
    color: #fde68a;
    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 0.5rem;
    padding: 1rem;
    min-width: 18rem;
}
.ft-modal h3[b-dga7qeimep] { margin-top: 0; color: #fcd34d; }
.ft-modal input[b-dga7qeimep] {
    width: 100%;
    padding: 0.45rem;
    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    color: #fde68a;
    box-sizing: border-box;
}
