.friends-scene {
    --friends-ink: #100817;
    --friends-panel: rgba(31, 17, 47, .94);
    --friends-gold: #f4bd5a;
    --friends-cyan: #72f4d5;
    --friends-ivory: #fff0d3;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: clamp(1rem, 3vw, 2rem) !important;
    border: 1px solid rgba(244, 189, 90, .35);
    border-radius: 28px;
    color: var(--friends-ivory);
    background:
        radial-gradient(circle at 92% 5%, rgba(98, 70, 159, .32), transparent 25rem),
        radial-gradient(circle at 4% 100%, rgba(36, 117, 111, .23), transparent 26rem),
        linear-gradient(135deg, #100817, #23112f 56%, #100817);
    box-shadow: 0 24px 60px rgba(10, 2, 18, .34), inset 0 0 0 1px rgba(255, 240, 211, .04);
}
.friends-scene::before { position: absolute; top: 1rem; right: 1.5rem; color: rgba(244, 189, 90, .1); content: "♆  ✦  ♆"; font: clamp(2rem, 6vw, 5rem)/1 Georgia, serif; letter-spacing: .18em; pointer-events: none; }
.friends-hero, .friends-person-heading, .friends-pending-row { display: flex; gap: 1rem; align-items: center; }
.friends-hero { position: relative; z-index: 1; margin-bottom: 1.25rem; }
.friends-sigil { display: grid; width: 3rem; height: 3rem; flex: none; place-items: center; color: #270c29; border: 1px solid rgba(255, 240, 211, .76); border-radius: 50%; background: radial-gradient(circle at 33% 28%, #ffe8a8, var(--friends-gold) 47%, #9f444b 100%); box-shadow: 0 0 25px rgba(244, 189, 90, .52), inset 0 0 12px rgba(70, 17, 47, .48); }
.friends-title { color: var(--friends-ivory) !important; font-family: Georgia, "Times New Roman", serif; font-weight: 700 !important; letter-spacing: .035em; }
.friends-subtitle { color: rgba(255, 240, 211, .74) !important; }
.friends-card { position: relative; overflow: hidden; padding: 1.1rem; border: 1px solid rgba(244, 189, 90, .28); border-radius: 18px; background: linear-gradient(135deg, rgba(44, 25, 61, .95), rgba(15, 11, 31, .97)); box-shadow: inset 0 0 0 1px rgba(255, 240, 211, .035), 0 14px 30px rgba(6, 2, 12, .22); }
.friends-link-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1rem; align-items: center; }
.friends-link-card > .mud-icon-root { grid-row: 1 / span 2; flex: none; font-size: 2rem; }
.friends-link-card > .mud-button,
.friends-link-card > .friends-link-expiry { grid-column: 1 / -1; }
.friends-link-card > .mud-button { justify-self: start; }
.friends-link-card > .friends-link-create,
.friends-link-card > .friends-link-list { grid-column: 1 / -1; }
.friends-link-create { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.friends-link-list { display: grid; gap: .1rem; margin-top: .5rem; }
.friends-link-list-title { color: var(--friends-ivory) !important; }
.friends-link-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-top: 1px solid rgba(255, 240, 211, .1); }
.friends-link-info { display: grid; min-width: 0; gap: .25rem; }
.friends-link-chips, .friends-link-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.friends-link-chips .mud-chip { height: auto; min-height: 24px; white-space: normal; }
.friends-link-created { color: rgba(255, 240, 211, .68); font-size: .8rem; }
.friends-link-hint { color: rgba(114, 244, 213, .86); font-size: .85rem; }
.friends-link-actions .mud-button { min-height: 40px; }
.friends-link-expiry, .friends-hierarchy { display: block; margin-top: .55rem; color: rgba(114, 244, 213, .86) !important; }
.friends-person-card { display: flex; min-height: 15rem; flex-direction: column; align-items: flex-start; gap: .45rem; }
.friends-person-card .mud-button { margin-top: auto !important; }
.friends-email { color: rgba(255, 240, 211, .82) !important; overflow-wrap: anywhere; }
.friends-empty { display: grid; min-height: 12rem; place-content: center; gap: .5rem; text-align: center; }
.friends-pending-card { display: grid; gap: .45rem; }
.friends-pending-row { justify-content: space-between; padding: .75rem 0; border-top: 1px solid rgba(255, 240, 211, .1); }
.friends-pending-row div { display: grid; gap: .2rem; overflow-wrap: anywhere; }
.friends-pending-row span { color: rgba(255, 240, 211, .68); font-size: .8rem; }
.friends-invite-scene { min-height: min(70dvh, 42rem); display: grid; place-items: center; }
.friends-invite-card { max-width: 38rem; display: grid; justify-items: start; gap: 1rem; }
.friends-in-app-advice { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.friends-in-app-advice > .mud-typography { flex-basis: 100%; }

@media (max-width: 600px) {
    .friends-scene { border-radius: 18px; }
    .friends-hero { align-items: stretch; flex-direction: column; }
    .friends-link-card > .mud-button { width: 100%; }
    .friends-pending-row { align-items: flex-start; }
    .friends-link-row { align-items: stretch; flex-direction: column; }
    .friends-link-actions .mud-button { flex: 1 1 auto; }
}
.friends-in-app-url { flex-basis: 100%; padding: .5rem .75rem; border-radius: 8px; background: rgba(247, 239, 255, .08); color: inherit; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
