/* Rodia Living — отдельная светлая тема (не мемориальная) */

body.person-public-page--alive.rl-theme {
    --living-ink: #0f172a;
    --living-ink-soft: #475569;
    --living-muted: #64748b;
    --living-page: #eef2f7;
    --living-page-2: #e2e8f0;
    --living-card: #ffffff;
    --living-card-solid: #ffffff;
    --living-line: #e2e8f0;
    --living-accent: #059669;
    --living-accent-soft: #ecfdf5;
    --living-accent-muted: #a7f3d0;
    --living-teal: #059669;
    --living-violet: #6366f1;
    --living-radius: 16px;
    --living-radius-sm: 12px;
    --living-shadow: 0 20px 50px rgba(15, 23, 42, .08);
    --living-shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --living-font: 'DM Sans', system-ui, -apple-system, sans-serif;
    --color-bg: var(--living-page);
    --color-text: var(--living-ink);
    --color-muted: var(--living-muted);
    --color-accent: var(--living-accent);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, .08), transparent 50%),
        radial-gradient(900px 500px at 100% 0%, rgba(5, 150, 105, .1), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, var(--living-page) 100%);
    color: var(--living-ink);
    font-family: var(--living-font);
}

body.person-public-page--alive.rl-theme a {
    color: #047857;
}

body.person-public-page--alive.rl-theme .rp-person-meta a {
    color: #047857;
}

.person-public-page--alive .seo-breadcrumbs {
    display: none;
}

body.person-public-page--alive main {
    background: transparent;
}

body.person-public-page--alive.rl-theme .site-header-zone {
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid var(--living-line) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

body.person-public-page--alive.rl-theme .site-header-wrap .site-top,
body.person-public-page--alive.rl-theme .site-top {
    background: transparent !important;
    border-bottom: none !important;
}

body.person-public-page--alive.rl-theme .site-top__inner > .logo {
    padding: 2px 0;
}

body.person-public-page--alive .site-nav a:hover {
    color: var(--living-teal);
}

body.person-public-page--alive.rl-theme .site-footer {
    background: #f8fafc;
    border-top: 1px solid var(--living-line);
}

.person-public-page--alive .rp-wrap--fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 768px) {
    .person-public-page--alive .rp-wrap--fluid {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* Shell */

.rp-social-profile {
    display: block !important;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 0 3rem;
    grid-template-columns: none !important;
}

.rp-social-profile .rp-social-top,
.rp-social-profile .rp-social-profile__panels,
.rp-social-profile .rp-person-panels {
    width: 100%;
    max-width: none;
    grid-column: auto !important;
}

.rp-social-top {
    margin: 12px 10px 22px;
    position: relative;
    z-index: 1;
}

.rp-living-context {
    margin: 0;
    padding: 14px 18px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--living-line);
    border-bottom: 1px solid var(--living-line);
    color: var(--living-ink-soft);
    font-size: .92rem;
    line-height: 1.45;
}

.rp-living-context__title {
    margin: 0 0 4px;
    font-weight: 650;
    font-size: .98rem;
    color: var(--living-ink);
}

.rp-living-context__body {
    margin: 0;
}

.rp-living-context__meta {
    margin: 10px 0 0;
    font-size: .84rem;
    color: var(--living-muted);
}

.rp-living-context--editor {
    border-left: 3px solid var(--living-teal);
}

.rp-living-context--self {
    border-left: 3px solid var(--living-violet);
}

@media (min-width: 768px) {
    .rp-social-top {
        margin: 0 0 24px;
    }

    .rp-living-context {
        padding-left: 22px;
        padding-right: 22px;
    }
}

.rp-person-dash--living .rp-person-panel[hidden] {
    display: none !important;
}

/* Living card — same dash grid as memorial, light nav chrome */
.person-public-page--alive .rp-person-nav__card--living {
    background: var(--living-card-solid);
    border-color: var(--living-line);
    color: var(--living-ink);
    box-shadow: var(--living-shadow-soft);
}

.person-public-page--alive .rp-person-nav__avatar--living {
    background: linear-gradient(145deg, #10b981, #6366f1);
    color: #fff;
    border-color: rgba(255, 255, 255, .85);
}

.person-public-page--alive .rp-person-nav__badge-living {
    margin: .35rem 0 0;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0d9488;
}

.person-public-page--alive .rp-person-nav__living-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: .25rem;
}

.person-public-page--alive .rp-person-nav__tool {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--living-line);
    background: #fff;
    color: var(--living-ink-soft);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.person-public-page--alive .rp-person-panel__head .rp-person-panel__title {
    color: var(--living-ink);
}

.person-public-page--alive .rp-person-panel__subtitle {
    color: var(--living-ink-soft);
}

/* Living dash: нейтрализуем тёмный memorial-chrome из person-public.css */

body.person-public-page--alive.rl-theme .rp-person-about--living {
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.person-public-page--alive.rl-theme .rp-person-about--living .rp-person-about__title {
    margin: 0 0 1rem;
    font-family: var(--living-font);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--living-ink);
}

body.person-public-page--alive.rl-theme .rp-person-panel__title {
    font-family: var(--living-font);
    color: var(--living-ink);
}

body.person-public-page--alive.rl-theme .rp-person-panel__subtitle {
    color: var(--living-ink-soft);
}

body.person-public-page--alive.rl-theme .rp-person-nav__card {
    background: var(--living-card-solid);
    border-color: var(--living-line);
    box-shadow: var(--living-shadow-soft);
    color: var(--living-ink);
}

body.person-public-page--alive.rl-theme .rp-person-nav__name {
    color: var(--living-ink);
}

body.person-public-page--alive.rl-theme .rp-person-nav__meta {
    color: var(--living-muted);
}

body.person-public-page--alive.rl-theme .rp-person-nav__btn {
    color: var(--living-ink-soft);
}

body.person-public-page--alive.rl-theme .rp-person-nav__btn:hover {
    background: #f1f5f9;
    color: var(--living-ink);
}

body.person-public-page--alive.rl-theme .rp-person-nav__btn.is-active {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .25);
}

body.person-public-page--alive.rl-theme .rp-person-nav__btn.is-active .rp-person-nav__icon {
    color: #059669;
}

body.person-public-page--alive.rl-theme .rp-person-nav__icon {
    color: #94a3b8;
}

body.person-public-page--alive.rl-theme .rp-person-nav__relative:hover {
    background: #f1f5f9;
}

body.person-public-page--alive.rl-theme .rp-person-nav__relative-name {
    color: var(--living-ink);
}

body.person-public-page--alive.rl-theme .rp-person-nav__relative-role {
    color: var(--living-muted);
}

body.person-public-page--alive.rl-theme details.mob-accordion.rp-person-nav__card--relatives > summary {
    color: var(--living-ink-soft);
}

body.person-public-page--alive.rl-theme .rp-person-nav__tree-btn {
    border-color: rgba(5, 150, 105, .35);
    background: #ecfdf5;
    color: #047857;
}

body.person-public-page--alive.rl-theme .rp-person-nav__tree-btn:hover {
    border-color: rgba(5, 150, 105, .55);
    background: #d1fae5;
}

body.person-public-page--alive.rl-theme .rp-person-nav__tree-btn-title {
    color: var(--living-ink);
}

body.person-public-page--alive.rl-theme .rp-person-nav__tree-btn-sub {
    color: #059669;
}

body.person-public-page--alive.rl-theme .rp-person-nav__tree-btn .rp-person-nav__icon {
    color: #059669;
}

body.person-public-page--alive.rl-theme .rp-living-sheet {
    margin-bottom: 1.25rem;
}

.rl-theme .rp-social-top {
    background: var(--living-card-solid);
    border: 1px solid var(--living-line);
    border-radius: var(--living-radius);
    box-shadow: var(--living-shadow-soft);
    overflow: hidden;
}

/* ── Living hero (rl-*) ── */

.rl-hero {
    position: relative;
}

.rl-hero__backdrop {
    position: relative;
    height: 112px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 92%),
        radial-gradient(ellipse 90% 120% at 12% 0%, rgba(167, 243, 208, .55) 0%, transparent 58%),
        radial-gradient(ellipse 75% 100% at 88% 8%, rgba(199, 210, 254, .45) 0%, transparent 52%),
        linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 48%, #faf5ff 100%);
}

.rl-hero__backdrop--art {
    height: 148px;
    background-color: #ecfdf5;
    background-image: var(--rl-hero-art);
    background-size: cover;
    background-position: center 42%;
}

@media (min-width: 768px) {
    .rl-hero__backdrop {
        height: 128px;
    }

    .rl-hero__backdrop--art {
        height: 168px;
        background-position: center 40%;
    }
}

.rl-hero__backdrop-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .55) 55%, #fff 100%),
        linear-gradient(90deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .15) 42%, rgba(255, 255, 255, .65) 100%);
}

.rl-hero__backdrop:not(.rl-hero__backdrop--art) .rl-hero__backdrop-veil {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .35) 100%);
}

.rl-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: .35;
    pointer-events: none;
}

.rl-hero__glow--a {
    width: 280px;
    height: 280px;
    top: -120px;
    left: 5%;
    background: #6ee7b7;
}

.rl-hero__glow--b {
    width: 300px;
    height: 300px;
    top: -130px;
    right: 0;
    background: #a5b4fc;
}

.rl-hero__card {
    display: grid;
    gap: 18px;
    padding: 0 20px 8px;
    margin-top: -64px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .rl-hero__card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 24px 28px;
        padding: 0 28px 10px;
        margin-top: -62px;
    }

    .rl-hero:has(.rl-hero__backdrop--art) .rl-hero__card {
        margin-top: -72px;
    }
}

.rl-hero__identity {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.rl-hero__avatar-wrap {
    flex-shrink: 0;
}

/* Living floral wreath + portrait */
.rl-avatar-living {
    position: relative;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
}

.rl-avatar-living--hero {
    width: 148px;
    height: 148px;
}

@media (min-width: 768px) {
    .rl-avatar-living--hero {
        width: 176px;
        height: 176px;
    }
}

.rl-avatar-living--nav {
    width: 108px;
    height: 108px;
}

.rl-avatar-living__halo {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(167, 243, 208, .85) 0%, rgba(52, 211, 153, .35) 45%, rgba(99, 102, 241, .12) 100%);
    filter: blur(2px);
    animation: rl-wreath-halo 5s ease-in-out infinite;
    z-index: 0;
}

.rl-avatar-living__sprout,
.rl-avatar-living__wreath {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 6px 14px rgba(16, 185, 129, .22));
    animation: rl-sprout-sway 5.5s ease-in-out infinite;
    transform-origin: 54% 78%;
}

.rl-avatar-living__core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.rl-avatar-living__photo {
    width: 78px;
    height: 78px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #10b981 0%, #059669 42%, #6366f1 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 700;
    box-shadow:
        0 0 0 3px #fff,
        0 10px 28px rgba(12, 18, 34, .16);
    overflow: hidden;
}

.rl-avatar-living--hero .rl-avatar-living__photo {
    width: 88px;
    height: 88px;
    font-size: 1.85rem;
}

@media (min-width: 768px) {
    .rl-avatar-living--hero .rl-avatar-living__photo {
        width: 102px;
        height: 102px;
        font-size: 2.1rem;
    }
}

.rl-avatar-living--nav .rl-avatar-living__photo {
    width: 68px;
    height: 68px;
    font-size: 1.35rem;
}

button.rl-avatar-living__photo {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

button.rl-avatar-living__photo:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 0 3px #fff,
        0 14px 32px rgba(13, 148, 136, .28);
}

.rl-avatar-living__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes rl-sprout-sway {
    0%, 100% { transform: rotate(-1.5deg) scale(1); }
    50% { transform: rotate(1.5deg) scale(1.02); }
}

@keyframes rl-wreath-halo {
    0%, 100% { opacity: .9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .rl-avatar-living__sprout,
    .rl-avatar-living__wreath,
    .rl-avatar-living__halo {
        animation: none;
    }
}

.rl-hero__text {
    min-width: 0;
    padding-bottom: 2px;
}

.rl-hero__kicker {
    margin: 0 0 6px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #64748b;
    line-height: 1.35;
}

.rl-hero__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.rl-hero__name {
    margin: 0;
    font-size: clamp(1.45rem, 3.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.12;
    color: var(--living-ink);
}

.rl-hero__name-line {
    display: inline;
}

.rl-hero__name-line--surname::after {
    content: ' ';
}

@media (min-width: 769px) {
    .rl-hero__name-line--surname,
    .rl-hero__name-line--given {
        display: inline;
    }
}

.rl-hero__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: var(--living-accent-soft);
    color: #047857;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid var(--living-accent-muted);
}

.rl-hero__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
}

.rl-hero__meta {
    margin: .45rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--living-ink-soft);
}

.rl-hero__chip {
    padding: 2px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .8125rem;
    font-weight: 600;
}

.rl-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .rl-hero__actions {
        align-items: flex-end;
    }
}

.rl-hero__tools {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.rl-hero__tool {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--living-line);
    background: #fff;
    color: var(--living-ink-soft);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.rl-hero__tool:hover {
    background: #f8fafc;
}

.rl-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.rl-hero__cta .btn {
    border-radius: 12px;
    font-weight: 600;
    min-height: 40px;
}

.rl-hero__cta .btn--primary {
    background: var(--living-accent) !important;
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, .3);
}

.rl-hero__cta .btn--outline {
    border: 1px solid var(--living-line) !important;
    background: #fff !important;
    color: var(--living-ink) !important;
}

/* Legacy cover (не используется в rl-hero) */

.rp-social-header__shell {
    background: var(--living-card-solid);
}

.rp-social-cover {
    position: relative;
    height: clamp(180px, 34vw, 300px);
    overflow: hidden;
    background: linear-gradient(120deg, #0f766e 0%, #4338ca 50%, #be185d 100%);
}

.rp-social-cover--art {
    background-image:
        linear-gradient(180deg, rgba(12, 18, 34, .05) 0%, rgba(12, 18, 34, .55) 100%),
        var(--rp-social-cover-img);
    background-size: cover;
    background-position: center 40%;
}

.rp-social-cover__mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 280px at 70% 20%, rgba(255, 255, 255, .25), transparent 70%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.rp-social-cover__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, .18) 0%, transparent 45%, rgba(201, 162, 39, .12) 100%);
    pointer-events: none;
}

.rp-social-cover__brand {
    position: absolute;
    left: 20px;
    bottom: 16px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.rp-social-header__body {
    padding: 18px 20px 22px;
    background: var(--living-card-solid);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .rp-social-header__body {
        padding: 0 28px 26px;
    }
}

.rp-social-header__row {
    display: grid;
    gap: 16px;
    margin-top: -58px;
}

@media (min-width: 768px) {
    .rp-social-header__row {
        grid-template-columns: 176px minmax(0, 1fr) auto;
        align-items: center;
        gap: 20px 28px;
        margin-top: -72px;
    }
}

.rp-social-header__avatar-wrap {
    position: relative;
    width: fit-content;
    justify-self: start;
}

.rp-social-header__alive-mark {
    position: absolute;
    right: -6px;
    bottom: 6px;
    width: 52px;
    height: 52px;
    padding: 3px;
    border-radius: 16px;
    background: var(--living-card-solid);
    box-shadow: 0 8px 24px rgba(13, 148, 136, .35), 0 0 0 1px rgba(13, 148, 136, .2);
    pointer-events: none;
    z-index: 3;
}

.rp-social-header__alive-mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 13px;
}

@media (min-width: 768px) {
    .rp-social-header__alive-mark {
        right: -4px;
        bottom: 10px;
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .rp-social-header__alive-mark img {
        border-radius: 15px;
    }
}

.rp-social-header__avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 5px solid var(--living-card-solid);
    background: linear-gradient(145deg, #14b8a6, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    box-shadow: var(--living-shadow-soft);
    outline: 3px solid rgba(201, 162, 39, .45);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .rp-social-header__avatar {
        width: 140px;
        height: 140px;
        margin-top: 26px;
        font-size: 2.75rem;
    }
}

button.rp-social-header__avatar {
    padding: 0;
    cursor: pointer;
}

button.rp-social-header__avatar:hover {
    filter: brightness(1.03);
}

.rp-social-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.rp-social-header__info {
    min-width: 0;
    padding-top: 4px;
    overflow: visible;
}

@media (max-width: 767px) {
    .rp-social-header__info {
        grid-column: 1 / -1;
    }
}

.rp-social-header__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.rp-social-header__name {
    margin: 0;
    font-size: clamp(1.55rem, 4.2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--living-ink);
    overflow: visible;
    word-break: break-word;
}

.rp-social-header__name::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--living-gold), var(--living-teal));
}

.rp-social-header__status {
    padding: .32rem .85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .3);
}

.rp-social-header__meta {
    margin: .55rem 0 0;
    color: #374151;
    font-size: .98rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.rp-social-header__age {
    background: var(--living-gold-soft);
    color: #78350f;
    padding: .18rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.rp-social-header__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 767px) {
    .rp-social-header__aside {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .rp-social-header__aside {
        align-items: flex-end;
        padding-bottom: 8px;
    }
}

.rp-social-header__tools {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}

.rp-social-header__tool {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    border: 1px solid var(--living-line);
    background: var(--living-card-solid);
    color: var(--living-ink-soft);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.rp-social-header__tool:hover {
    transform: translateY(-2px);
    box-shadow: var(--living-shadow-soft);
}

.rp-social-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: flex-end;
}

.rp-social-header__actions .btn {
    border-radius: 14px;
    font-weight: 700;
    min-height: 42px;
    padding: 0 18px;
    font-size: .875rem;
}

.rp-social-header__actions .btn--primary {
    background: linear-gradient(135deg, #0f766e 0%, #4f46e5 55%, #9333ea 100%);
    border: none;
    box-shadow: 0 10px 28px rgba(79, 70, 229, .35);
    color: #fff !important;
}

.rp-social-header__actions .btn--primary:hover {
    color: #fff !important;
    filter: brightness(1.06);
}

.rp-social-header__actions .btn--outline {
    border: 1px solid #d6cfc4;
    background: var(--living-card-solid);
    color: var(--living-ink);
}

/* Tabs — segmented control */

.rp-social-tabs {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--living-line);
    padding: 0;
}

@media (min-width: 768px) {
    .rp-social-tabs {
        padding: 0;
    }
}

.rl-tabs__track,
.rp-social-tabs__inner {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--living-line);
}

.rp-social-tabs__inner::-webkit-scrollbar {
    display: none;
}

.person-public-page--alive .rp-social-tabs__btn {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--living-font);
    margin: 0;
    flex: 0 0 auto;
    min-width: max(108px, 26%);
    min-height: 48px;
    white-space: nowrap;
    padding: 12px 14px 10px;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #64748b;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

@media (min-width: 720px) {
    .person-public-page--alive .rp-social-tabs__btn {
        min-width: 0;
        flex: 1 1 0;
        font-size: .875rem;
        min-height: 52px;
        padding-inline: 16px;
    }
}

.person-public-page--alive .rp-social-tabs__btn:hover {
    color: #0f172a;
}

.person-public-page--alive .rp-social-tabs__btn:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: -2px;
}

.person-public-page--alive .rp-social-tabs__btn.is-active {
    color: #047857 !important;
    background: transparent;
    border-bottom-color: var(--living-accent);
    box-shadow: none;
}

.person-public-page--alive .rp-social-tabs__btn.is-active:hover {
    color: #065f46 !important;
}

.person-public-page--alive .rp-social-tabs__icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: #94a3b8;
    stroke-width: 2;
}

.person-public-page--alive .rp-social-tabs__btn.is-active .rp-social-tabs__icon {
    color: #059669;
}

.person-public-page--alive .rp-social-tabs__btn span {
    color: inherit;
}

/* Layout */

.rp-social-layout {
    display: grid;
    gap: 20px;
    padding: 20px 14px 0;
    align-items: start;
}

@media (min-width: 960px) {
    .rp-social-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
        gap: 28px;
        padding: 24px 28px 0;
    }

    .rp-social-rail {
        position: sticky;
        top: 140px;
    }
}

.rp-social-layout__main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

/* Profile sheet — one surface for «Обо мне» + биография */

.rp-living-sheet {
    background: var(--living-card-solid);
    border: 1px solid var(--living-line);
    border-radius: calc(var(--living-radius) + 2px);
    box-shadow: var(--living-shadow-soft);
    overflow: hidden;
}

.rp-living-about {
    padding: 24px 20px 20px;
}

@media (min-width: 768px) {
    .rp-living-about {
        padding: 28px 32px 24px;
    }
}

.rp-living-about__head {
    margin-bottom: 16px;
}

.rp-living-about__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--living-ink);
}

.rp-living-about__title--visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rp-living-about__nudge {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border: 1px solid rgba(13, 148, 136, .22);
    font-size: .875rem;
    line-height: 1.45;
    color: #0f766e;
}

.rp-living-about__empty {
    margin: 0;
    padding: 8px 0;
    font-size: .925rem;
    color: var(--living-muted);
}

.rp-living-specs {
    margin: 0;
    border: 1px solid var(--living-line);
    border-radius: var(--living-radius-sm);
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.rp-living-specs--cards {
    display: grid;
    gap: 10px;
    padding: 4px;
    border: none;
    background: transparent;
    overflow: visible;
}

.rp-living-specs--cards .rp-living-specs__row {
    border: 1px solid var(--living-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.rp-living-specs__row {
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
    margin: 0;
    padding: 13px 16px;
    border-bottom: 1px solid var(--living-line);
}

.rp-living-specs__row:last-child {
    border-bottom: none;
}

.rp-living-specs--cards .rp-living-specs__row:last-child {
    border-bottom: 1px solid var(--living-line);
}

@media (min-width: 640px) {
    .rp-living-specs__row {
        padding: 14px 20px;
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .rp-living-specs--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .rp-living-specs--cards .rp-living-specs__row {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 6px;
        padding: 14px 16px;
    }
}

.rp-living-specs__label {
    margin: 0;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #64748b;
}

.rp-living-specs__value {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 1.35rem;
}

.rp-living-specs__text {
    font-size: .975rem;
    font-weight: 600;
    color: var(--living-ink);
    line-height: 1.4;
}

.rp-living-specs__empty {
    font-size: .925rem;
    font-weight: 500;
    color: #94a3b8;
}

.rp-living-bio {
    padding: 22px 20px 24px;
    border-top: 1px solid var(--living-line);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

@media (min-width: 768px) {
    .rp-living-bio {
        padding: 24px 32px 28px;
    }
}

.rp-living-bio__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rp-living-bio__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--living-ink);
}

.rp-living-bio__lead {
    margin: .35rem 0 0;
    font-size: .875rem;
    color: #64748b;
    line-height: 1.45;
}

.rp-person-meta--living {
    padding: 0 4px;
    font-size: .8125rem;
    color: #64748b;
}

/* Cards */

.rp-social-card {
    background: var(--living-card-solid);
    border-radius: var(--living-radius);
    border: 1px solid var(--living-line);
    padding: 20px 20px 18px;
    box-shadow: var(--living-shadow-soft);
}

.rp-social-card--accent {
    border-color: rgba(201, 162, 39, .35);
    background: linear-gradient(165deg, #fff 0%, #fffbeb 100%);
}

.rp-social-card__title {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--living-ink);
}

.rp-social-card .rp-section {
    margin: 0;
    padding: 0;
}

.rp-social-card .rp-section__title {
    font-size: 1.125rem;
    font-weight: 800;
}

.rp-social-card__link-btn,
.rp-social-card__ghost-btn {
    width: 100%;
    margin-top: 14px;
    min-height: 42px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.rp-social-card__link-btn {
    background: linear-gradient(135deg, #ecfdf5, #e0e7ff);
    color: #0f766e;
}

.rp-social-card__ghost-btn {
    background: #f1f5f9;
    color: var(--living-ink-soft);
}

.rl-theme .rp-social-profile .btn--primary,
.rp-social-card .btn--primary {
    background: var(--living-accent) !important;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(5, 150, 105, .25);
}

.rl-theme .rp-social-profile .btn--primary:hover {
    color: #fff !important;
    filter: brightness(1.05);
}

.person-public-page--alive .rp-social-profile .btn--outline {
    color: #111827 !important;
    border-color: #9ca3af;
    background: #fff;
}

/* Sidebar rail — single panel */

.rp-social-rail__panel {
    background: var(--living-card-solid);
    border: 1px solid var(--living-line);
    border-radius: var(--living-radius);
    box-shadow: var(--living-shadow-soft);
    overflow: hidden;
}

.rp-social-rail__block {
    padding: 18px 18px 16px;
    border-top: 1px solid var(--living-line);
}

.rp-social-rail__block:first-child {
    border-top: none;
}

.rp-social-rail__block--highlight {
    background: linear-gradient(165deg, #fff 0%, #ecfdf5 100%);
}

.rp-social-rail__block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rp-social-rail__block-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--living-ink);
}

.rp-social-rail__block--highlight .rp-person-living-aside__now {
    margin-top: 0;
}

.rp-social-rail__title {
    margin: 0 0 12px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.rp-social-rail__cta {
    width: 100%;
    margin-top: 12px;
    min-height: 40px;
    border: 1px solid rgba(13, 148, 136, .25);
    border-radius: 12px;
    background: #ecfdf5;
    color: #0f766e;
    font-weight: 700;
    font-size: .8125rem;
    cursor: pointer;
    transition: background .15s ease;
}

.rp-social-rail__cta:hover {
    background: #d1fae5;
}

.rp-social-rail__footer {
    padding: 12px 18px 16px;
    border-top: 1px solid var(--living-line);
    background: #f8fafc;
}

.rp-social-rail__report {
    width: 100%;
    padding: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rp-social-rail__report:hover {
    color: #0f766e;
}

.rp-person-living-aside__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rp-person-living-aside__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--living-ink);
}

.rp-person-living-aside__text {
    margin: 0 0 12px;
    font-size: .875rem;
    color: #475569;
    line-height: 1.5;
}

.rp-person-living-aside__now {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(13, 148, 136, .2);
}

.rp-person-living-aside__now-row {
    margin: 0;
    font-size: .8125rem;
    color: #334155;
}

.rp-person-living-aside__actions .btn {
    width: 100%;
    border-radius: 12px;
}

.rp-social-people {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.rp-social-people__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.rp-social-people__link:hover {
    background: #f8fafc;
}

.rp-social-people__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.rp-social-people__avatar--initial {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #94a3b8, #64748b);
    color: #fff;
    font-weight: 800;
}

.rp-social-people__name {
    font-weight: 700;
    color: var(--living-ink);
}

.rp-social-people__role {
    font-size: .8125rem;
    color: var(--living-muted);
}

.rp-social-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}

.rp-social-stats__cell {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--living-line);
}

.rp-social-stats dt {
    margin: 0;
    font-size: .75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--living-muted);
}

.rp-social-stats dd {
    margin: 6px 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--living-ink);
    line-height: 1;
}

.rp-social-stats__meta {
    margin: 10px 0 0;
    font-size: .75rem;
    color: #94a3b8;
}

.rp-social-profile.rp-person-dash--living-ui {
    display: block !important;
    grid-template-columns: none !important;
}

.rp-social-profile.rp-person-dash--living-ui .rp-person-panels {
    grid-column: auto !important;
}

/* Logo — горизонтальный living lockup (ширина как у основного бренда) */

body.person-public-page--alive .site-top__inner {
    min-height: 64px;
}

body.person-public-page--alive .site-top__inner > .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(168px, 42vw);
}

body.person-public-page--alive .logo__lockup--living.logo__lockup--full {
    height: 48px;
    width: auto;
    max-width: min(220px, 62vw);
    object-fit: contain;
    object-position: left center;
}

body.person-public-page--alive .logo__lockup--living.logo__lockup--compact {
    height: 38px;
    width: auto;
    max-width: min(132px, 38vw);
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 768px) {
    body.person-public-page--alive .site-top__inner > .logo {
        max-width: min(176px, 22vw);
    }

    body.person-public-page--alive .logo__lockup--living.logo__lockup--full {
        height: 50px;
    }
}

@media (max-width: 767px) {
    body.person-public-page--alive .site-top__inner > .logo {
        max-width: min(220px, 58vw);
    }

    body.person-public-page--alive .logo__lockup--living.logo__lockup--full {
        height: 48px;
        max-width: 100%;
    }

    body.person-public-page--alive .logo__lockup--living.logo__lockup--compact {
        height: 36px;
        max-width: min(120px, 36vw);
    }
}

/* Tab panels: Семья / События / Фото */

.rp-living-panel {
    margin: 0 10px 20px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

@media (min-width: 768px) {
    .rp-living-panel {
        margin: 0 0 24px;
    }
}

.rp-living-panel__shell {
    background: var(--living-card-solid);
    border: 1px solid var(--living-line);
    border-radius: var(--living-radius);
    box-shadow: var(--living-shadow-soft);
    overflow: hidden;
}

.rp-living-panel .rp-person-panel__head {
    padding: 20px 22px 4px;
    margin: 0;
    border: none;
}

.rp-living-panel .rp-person-panel__title {
    font-family: var(--living-font);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--living-ink);
    letter-spacing: -.02em;
}

.rp-living-panel .rp-person-panel__subtitle {
    color: #475569;
    font-size: .9375rem;
    margin-top: .35rem;
}

.rp-living-panel__body {
    padding: 14px 22px 22px;
    display: grid;
    gap: 20px;
    color: var(--living-ink);
}

.rp-living-panel--family .rp-person-panel__head {
    padding-bottom: 0;
}

.rp-living-panel--family .rp-person-panel__subtitle {
    max-width: 36rem;
}

/* Relatives */

.person-public-page--alive .rp-relatives__head,
.person-public-page--alive .rp-relatives__title {
    color: var(--living-ink);
}

.person-public-page--alive .rp-relative-card {
    background: #f8fafc;
    border: 1px solid var(--living-line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    color: var(--living-ink);
}

.person-public-page--alive .rp-relative-card__name {
    color: #0f172a;
}

.person-public-page--alive .rp-relative-card__name:hover {
    color: #0f766e;
}

.person-public-page--alive .rp-relative-card__role {
    color: #64748b;
}

.person-public-page--alive span.rp-relative-card__avatar {
    background: linear-gradient(145deg, #99f6e4, #a5b4fc);
    color: #0f172a;
}

.person-public-page--alive .rp-possible-relatives,
.person-public-page--alive .rp-relatives__section {
    color: var(--living-ink);
}

/* Gallery & documents */

.person-public-page--alive .rp-social-profile .rp-gallery-manage-bar,
.person-public-page--alive .rp-social-profile .rp-gallery--person {
    background: #f8fafc;
    border: 1px solid var(--living-line);
    border-radius: var(--living-radius-sm);
    padding: 14px;
}

.person-public-page--alive .rp-social-profile .rp-gallery__item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--living-line);
    box-shadow: var(--living-shadow-soft);
}

.person-public-page--alive .rp-social-profile .rp-documents,
.person-public-page--alive .rp-social-profile .rp-documents__item,
.person-public-page--alive .rp-social-profile .rp-section {
    color: var(--living-ink);
}

.person-public-page--alive .rp-social-profile .rp-documents__item {
    background: #f8fafc;
    border: 1px solid var(--living-line);
    border-radius: 12px;
}

/* Living events — компактная лента, в духе вкладок карточки */

.rp-living-events {
    display: grid;
    gap: 16px;
}

.rp-living-events__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--living-line);
}

.rp-living-events__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    min-width: 0;
}

.rp-living-events__tab {
    appearance: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin: 0 0 -11px;
    padding: 6px 0 10px;
    font-family: var(--living-font);
    font-size: .875rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.rp-living-events__tab:hover {
    color: #0f172a;
}

.rp-living-events__tab.is-active {
    color: #047857;
    border-bottom-color: var(--living-accent);
    box-shadow: none;
}

.rp-living-events__panel[hidden] {
    display: none !important;
}

.rp-living-events__toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
    color: #0f766e;
    background: #fff;
    border: 1px solid rgba(13, 148, 136, .32);
    flex-shrink: 0;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.rp-living-events__toolbar-link .rp-icon {
    color: #0f766e;
}

.rp-living-events__toolbar-link:hover {
    color: #065f46;
    background: #ecfdf5;
    border-color: rgba(13, 148, 136, .45);
}

.rp-living-events__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 8px 20px rgba(13, 148, 136, .24);
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.rp-living-events__cta .rp-icon {
    color: #fff;
}

.rp-living-events__cta:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(13, 148, 136, .3);
    transform: translateY(-1px);
}

.rp-living-events__cta--inline {
    box-shadow: none;
}

.rp-living-events__cta--ghost {
    background: #fff;
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, .35);
    box-shadow: none;
}

.rp-living-events__cta--ghost:hover {
    background: #ecfdf5;
    color: #065f46;
    transform: none;
}

@media (max-width: 719px) {
    .rp-living-events__cta:not(.rp-living-events__cta--inline) {
        width: 100%;
    }

    .rp-living-events__toolbar-link {
        width: 100%;
    }
}

.rp-living-events__feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.rp-living-events__feed-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    position: relative;
}

.rp-living-events__feed-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -10px;
    width: 2px;
    background: rgba(148, 163, 184, .22);
    transform: translateX(-50%);
}

.rp-living-events__node {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--living-line);
    color: #0f766e;
    position: relative;
    z-index: 1;
}

.rp-living-events__node .rp-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.rp-living-events__feed-item--birth .rp-living-events__node {
    background: #ecfdf5;
    color: #059669;
    border-color: rgba(16, 185, 129, .28);
}

.rp-living-events__feed-item--created .rp-living-events__node {
    background: #f0f9ff;
    color: #0284c7;
    border-color: rgba(14, 165, 233, .28);
}

.rp-living-events__feed-item--death .rp-living-events__node {
    color: #64748b;
}

.rp-living-events__item {
    padding: 12px 14px;
    border-radius: var(--living-radius-sm);
    border: 1px solid var(--living-line);
    background: #f8fafc;
    min-width: 0;
}

.rp-living-events__feed-item:hover .rp-living-events__item {
    background: #fff;
    border-color: rgba(13, 148, 136, .22);
}

.rp-living-events__item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rp-living-events__item-meta time {
    font-size: .75rem;
    font-weight: 600;
    color: #94a3b8;
}

.rp-living-events__pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rp-living-events__pill--confirmed {
    background: #ecfdf5;
    color: #047857;
}

.rp-living-events__pill--info {
    background: #f0f9ff;
    color: #0369a1;
}

.rp-living-events__card-body {
    position: relative;
    min-width: 0;
}

.rp-living-events__card-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--living-ink);
    line-height: 1.35;
}

.rp-living-events__card-text {
    margin: .4rem 0 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #64748b;
}

.rp-living-events__add {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-left: 0;
    border-radius: var(--living-radius-sm);
    border: 1.5px dashed rgba(13, 148, 136, .35);
    background: rgba(236, 253, 245, .35);
    text-decoration: none;
    color: inherit;
    transition: background .2s ease, border-color .2s ease;
}

@media (min-width: 640px) {
    .rp-living-events__add {
        margin-left: calc(var(--le-date-col) + var(--le-row-gap));
    }
}

.rp-living-events__add:hover {
    background: #ecfdf5;
    border-color: rgba(13, 148, 136, .55);
}

.rp-living-events__add-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(13, 148, 136, .25);
    color: #0f766e;
}

.rp-living-events__add-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rp-living-events__add-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--living-ink);
}

.rp-living-events__add-hint {
    font-size: .8125rem;
    color: #64748b;
    line-height: 1.45;
}

.rp-living-events__log {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.rp-living-events__log-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--living-radius-sm);
    border: 1px solid var(--living-line);
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

.rp-living-events__log-card--link:hover {
    background: #fff;
    border-color: rgba(13, 148, 136, .28);
}

.rp-living-events__log-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--living-line);
    color: #0f766e;
}

.rp-living-events__log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.rp-living-events__log-time {
    font-size: .75rem;
    font-weight: 600;
    color: #94a3b8;
}

.rp-living-events__log-status {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.rp-living-events__log-title {
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
    color: var(--living-ink);
}

.rp-living-events__log-text {
    margin: .35rem 0 0;
    font-size: .875rem;
    line-height: 1.5;
    color: #64748b;
}

.rp-living-events__log-actor {
    margin: .35rem 0 0;
    font-size: .8125rem;
    color: #64748b;
}

.rp-living-events__log-actor a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.rp-living-events__log-open {
    display: inline-block;
    margin-top: 8px;
    font-size: .8125rem;
    font-weight: 700;
    color: #0f766e;
}

.rp-living-events__log-more {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.rp-living-events__log-expand {
    appearance: none;
    border: 1px solid var(--living-line);
    border-radius: 10px;
    background: #fff;
    padding: 8px 14px;
    font-family: var(--living-font);
    font-size: .8125rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.rp-living-events__log-expand:hover {
    background: #f8fafc;
    color: #0f172a;
}

.rp-living-events__log-details summary {
    margin-top: 8px;
    font-size: .8125rem;
    font-weight: 700;
    color: #0f766e;
    cursor: pointer;
}

.rp-living-events__tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--living-radius-sm);
    border: 1px solid rgba(99, 102, 241, .16);
    background: linear-gradient(135deg, rgba(240, 253, 250, .9), rgba(238, 242, 255, .95));
}

.rp-living-events__tip-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #6366f1;
    margin-top: 2px;
}

.rp-living-events__tip p {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.55;
    color: #475569;
}

.person-public-page--alive .rp-activity-card,
.person-public-page--alive .rp-life-timeline__item {
    background: #f8fafc;
    border-color: var(--living-line);
    color: #334155;
}

.person-public-page--alive .rp-activity-card__summary--emphasis {
    color: var(--living-ink);
}

/* Семейные заявки (без credibility-hub) */

.rp-living-collab {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(45, 212, 191, .22);
    background: linear-gradient(165deg, #fff 0%, #f0fdfa 100%);
    color: var(--living-ink);
}

.rp-living-collab__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--living-font);
    color: var(--living-ink);
}

.rp-living-collab__lead {
    margin: 6px 0 0;
    font-size: .875rem;
    line-height: 1.55;
    color: #64748b;
}

.rp-living-collab__actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.rp-living-collab__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--living-line);
    background: #fff;
    font-family: var(--living-font);
    font-size: .8125rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s;
}

.rp-living-collab__action:hover {
    border-color: rgba(13, 148, 136, .35);
    background: #f8fffe;
}

.rp-living-collab__action--soft {
    background: #f8fafc;
}

.rp-living-collab__action--muted {
    opacity: .72;
    cursor: default;
}

.person-public-page--alive .rp-living-panel .rp-section__title {
    color: var(--living-ink);
    font-weight: 800;
}

.person-public-page--alive .rp-living-panel .rp-section__subtitle {
    color: #64748b;
}

/* ── Living family tree (полный UI, без person-public / мемориала) ── */

.person-public-page--alive .rp-relatives-panel {
    display: grid;
    gap: 20px;
}

.person-public-page--alive .rp-relatives-panel__list-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--living-ink);
    font-family: var(--living-font);
}

.person-public-page--alive .rp-living-panel--family .rp-living-panel__shell {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.person-public-page--alive .rp-living-panel--family .rp-person-panel__head {
    padding-bottom: 8px;
}

.person-public-page--alive .rp-living-panel--family .rp-living-panel__body {
    padding-top: 0;
    gap: 16px;
}

.person-public-page--alive .rp-living-panel--events .rp-person-panel__head {
    padding-bottom: 2px;
}

.person-public-page--alive .rp-living-panel--events .rp-living-panel__body {
    padding-top: 10px;
    gap: 14px;
}

.person-public-page--alive .rp-ftree--living {
    position: relative;
    font-family: var(--living-font);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__shell {
    display: flex;
    flex-direction: column;
    border-radius: var(--living-radius-sm);
    border: 1px solid var(--living-line);
    background: var(--living-card-solid);
    box-shadow: var(--living-shadow-soft);
    overflow: hidden;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__chrome--living {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--living-line);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__living-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__living-title {
    margin: 0 0 8px;
    font-family: var(--living-font);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--living-ink);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stat-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid var(--living-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--living-ink);
    font-variant-numeric: tabular-nums;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stat-label {
    color: var(--living-muted);
    font-weight: 600;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__meta--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--living-teal) 0%, var(--living-violet) 100%);
    box-shadow: 0 8px 20px rgba(5, 150, 105, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, .28);
    color: #fff;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__living-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ece7df 0%, #e2dcd2 100%);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--living-line);
    font-size: .8125rem;
    font-weight: 600;
    color: #334155;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__tool-label {
    color: #64748b;
    font-weight: 600;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__gens-select {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--living-ink);
    cursor: pointer;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__tool--zoom {
    gap: 2px;
    padding: 4px 6px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__zoom-btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 1.05rem;
    cursor: pointer;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__zoom-btn:hover {
    background: #f1f5f9;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__zoom-value {
    min-width: 2.75rem;
    text-align: center;
    font-size: .8125rem;
    font-weight: 700;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 11px;
    border: 1px solid var(--living-line);
    background: #fff;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__tool-btn:hover {
    background: #f8fafc;
    color: var(--living-ink);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__canvas.is-loading {
    opacity: .55;
    pointer-events: none;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__empty {
    padding: 20px 16px 24px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__viewport {
    overflow: auto;
    padding: 20px 16px 24px;
    min-height: min(52vh, 480px);
    background-color: #f1f5f9;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, .08), transparent 55%),
        radial-gradient(circle, rgba(15, 23, 42, .055) 1px, transparent 1px);
    background-size: auto, 18px 18px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stage {
    transform-origin: top center;
    transition: transform .15s ease;
    width: min(100%, 960px);
    margin: 0 auto;
    position: relative;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stage::before {
    content: '';
    position: absolute;
    left: 124px;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(5, 150, 105, .35) 12%, rgba(99, 102, 241, .35) 88%, transparent);
    pointer-events: none;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row {
    display: grid;
    grid-template-columns: minmax(116px, 140px) 20px minmax(0, 1fr);
    gap: 8px 0;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row:last-child {
    border-bottom: 0;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row-gutter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row-num {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--living-teal), var(--living-violet));
    box-shadow: 0 0 0 3px #f1f5f9;
    position: relative;
    z-index: 1;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row-label {
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    color: #64748b;
    max-width: 6.5rem;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row-track {
    display: flex;
    justify-content: center;
    align-items: center;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row-node {
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: var(--living-violet);
    box-shadow: 0 0 0 4px #f1f5f9;
    position: relative;
    z-index: 1;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding-left: 4px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__couple,
.person-public-page--alive .rp-ftree--living .rp-ftree__band,
.person-public-page--alive .rp-ftree--living .rp-ftree__people {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__heart {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    font-size: .75rem;
    color: #e11d48;
    background: #fff;
    border: 1px solid #fecdd3;
    box-shadow: 0 2px 8px rgba(225, 29, 72, .12);
    flex-shrink: 0;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stem {
    width: 2px;
    background: linear-gradient(180deg, rgba(5, 150, 105, .45), rgba(99, 102, 241, .45));
}

.person-public-page--alive .rp-ftree--living .rp-ftree__stem--down {
    height: 1.5rem;
    margin-top: 6px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: min(100%, 300px);
    min-width: min(100%, 240px);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--living-line);
    background: #fff;
    color: var(--living-ink);
    text-decoration: none;
    text-align: left;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card:hover {
    border-color: rgba(5, 150, 105, .35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--center {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--living-teal), var(--living-violet)) border-box;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .12);
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--center:hover {
    transform: translateY(-2px);
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--placeholder {
    border-style: dashed;
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, .85);
    box-shadow: none;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--placeholder-living {
    width: min(100%, 260px);
    min-width: 0;
    padding: 10px 12px;
    gap: 10px;
    border-color: rgba(148, 163, 184, .55);
    background: #f8fafc;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--placeholder-living .rp-ftree-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #fff;
    color: var(--living-teal);
    font-size: 1.25rem;
    font-weight: 700;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--placeholder-living .rp-ftree-card__icon--muted {
    color: #94a3b8;
    font-weight: 600;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--placeholder-living .rp-ftree-card__name {
    font-size: .875rem;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--placeholder-living .rp-ftree-card__dates {
    font-size: .75rem;
    line-height: 1.45;
}

.person-public-page--alive .rp-ftree--living a.rp-ftree-card--placeholder-living:hover {
    border-color: var(--living-teal);
    background: #fff;
    transform: translateY(-1px);
}

.person-public-page--alive .rp-ftree--living div.rp-ftree-card--placeholder-living {
    cursor: default;
    opacity: .92;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row--center .rp-ftree__row-num {
    background: linear-gradient(135deg, var(--living-teal), var(--living-violet));
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, .25);
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row--center .rp-ftree__row-label {
    color: var(--living-teal);
    font-weight: 800;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__row--parent-gap .rp-ftree__row-label {
    color: #64748b;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__gap-hint {
    margin: 8px 0 0;
    max-width: 36rem;
    text-align: center;
    font-size: .8125rem;
    line-height: 1.5;
    color: #64748b;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--living-person .rp-ftree-card__icon {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    color: #047857;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--unverified {
    border-color: #fcd34d;
    background: #fffbeb;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #ecfdf5, #eef2ff);
    color: var(--living-teal);
    overflow: hidden;
    flex-shrink: 0;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__icon--photo {
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
    background: #f1f5f9;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__icon--placeholder {
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px dashed #94a3b8;
    background: #f8fafc;
    color: #64748b;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__surname,
.person-public-page--alive .rp-ftree--living .rp-ftree-card__name--plain {
    font-family: var(--living-font);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--living-ink);
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__given {
    font-family: var(--living-font);
    font-size: .8125rem;
    font-weight: 500;
    color: #64748b;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card--center .rp-ftree-card__surname,
.person-public-page--alive .rp-ftree--living .rp-ftree-card--center .rp-ftree-card__given,
.person-public-page--alive .rp-ftree--living .rp-ftree-card--center .rp-ftree-card__dates {
    color: inherit;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__dates {
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__verify--pending {
    display: inline-flex;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__dot--bio {
    background: #3b82f6;
}

.person-public-page--alive .rp-ftree--living .rp-ftree-card__doc {
    color: #94a3b8;
}

.person-public-page--alive .rp-ftree--living .rp-ftree__fullscreen-icon--exit,
.person-public-page--alive .rp-ftree--living .rp-ftree__fullscreen-label--exit {
    display: none;
}

.person-public-page--alive .rp-ftree--living.is-fullscreen .rp-ftree__fullscreen-icon--enter,
.person-public-page--alive .rp-ftree--living.is-fullscreen .rp-ftree__fullscreen-label--enter {
    display: none;
}

.person-public-page--alive .rp-ftree--living.is-fullscreen .rp-ftree__fullscreen-icon--exit,
.person-public-page--alive .rp-ftree--living.is-fullscreen .rp-ftree__fullscreen-label--exit {
    display: inline-flex;
}

.person-public-page--alive .rp-ftree--living.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1200;
    padding: 16px;
    background: #f8fafc;
    overflow: auto;
}

.person-public-page--alive .rp-ftree--living.is-fullscreen .rp-ftree__chrome--living {
    position: sticky;
    top: 0;
    z-index: 2;
    border-radius: var(--living-radius-sm);
    box-shadow: var(--living-shadow-soft);
}

.person-public-page--alive .rp-ftree--living.is-fullscreen .rp-ftree__viewport {
    min-height: calc(100vh - 10rem);
    border-radius: 0 0 var(--living-radius-sm) var(--living-radius-sm);
}

@media (max-width: 639px) {
    .person-public-page--alive .rp-ftree--living .rp-ftree__living-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__cta {
        width: 100%;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__living-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__tool--select {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__viewport {
        max-height: min(62dvh, 520px);
        -webkit-overflow-scrolling: touch;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__stage::before {
        left: 92px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__row {
        grid-template-columns: minmax(68px, 80px) 12px minmax(0, 1fr);
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__couple {
        flex-wrap: wrap;
        gap: 6px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__couple .rp-ftree-card {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding: 8px 8px;
        gap: 8px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__couple .rp-ftree-card__icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media print {
    .person-public-page--alive .rp-ftree--living .rp-ftree__living-tools,
    .person-public-page--alive .rp-ftree--living .rp-ftree__cta {
        display: none !important;
    }
}

.person-public-page--alive .rp-prose {
    color: var(--living-ink);
    line-height: 1.7;
    font-size: 1rem;
}

.person-public-page--alive .rp-empty-state {
    background: #f8fafc;
    border-radius: var(--living-radius-sm);
}

/* ── Living: материалы (lv-media) — отдельно от мемориального person-public ── */

.rp-living-panel--media {
    margin: 0 0 28px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.lv-media-page .rp-living-panel__body--materials {
    padding: 0 10px 8px;
    gap: 0;
}

@media (min-width: 768px) {
    .lv-media-page .rp-living-panel__body--materials {
        padding: 0 0 12px;
    }
}

.lv-media-page .lv-media,
.lv-media-page .lv-media-pane,
.lv-media-page .lv-doc-item {
    font-family: 'DM Sans', var(--living-font), system-ui, sans-serif;
}

.lv-media {
    display: grid;
    gap: 22px;
}

.lv-media__hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 22px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .65);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(99, 102, 241, .16), transparent 55%),
        radial-gradient(90% 100% at 0% 100%, rgba(13, 148, 136, .14), transparent 50%),
        linear-gradient(145deg, #fff 0%, #f8fafc 48%, #fff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 20px 50px rgba(12, 18, 34, .1);
}

@media (min-width: 720px) {
    .lv-media__hero {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.lv-media__eyebrow {
    margin: 0 0 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0d9488;
}

.lv-media__title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #0c1222;
}

.lv-media__subtitle {
    margin: 10px 0 0;
    max-width: 42ch;
    font-size: .9375rem;
    line-height: 1.55;
    color: #475569;
}

.lv-media__metrics {
    display: flex;
    gap: 12px;
    margin: 0;
}

.lv-media__metric {
    min-width: 88px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(12, 18, 34, .06);
    backdrop-filter: blur(10px);
    text-align: center;
}

.lv-media__metric dt {
    margin: 0;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.lv-media__metric dd {
    margin: 4px 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #0c1222;
}

.lv-media__layout {
    display: grid;
    gap: 18px;
    align-items: start;
}

@media (min-width: 980px) {
    .lv-media__layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
        gap: 20px;
    }
}

.lv-media-pane {
    padding: 20px 20px 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(12, 18, 34, .07);
    box-shadow: 0 16px 40px rgba(12, 18, 34, .07);
}

.lv-media-pane__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.lv-media-pane__intro {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
}

.lv-media-pane__badge {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0f766e;
    box-shadow: 0 8px 20px rgba(13, 148, 136, .22);
}

.lv-media-pane__badge--violet {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .2);
}

.lv-media-pane__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #0c1222;
}

.lv-media-pane__lead {
    margin: 4px 0 0;
    font-size: .8125rem;
    color: #64748b;
    line-height: 1.45;
}

.lv-media-pane__tip {
    margin: 6px 0 0;
    font-size: .8125rem;
    color: #64748b;
}

.lv-media-pane__tip summary {
    cursor: pointer;
    font-weight: 600;
    color: #0d9488;
    list-style: none;
}

.lv-media-pane__tip summary::-webkit-details-marker {
    display: none;
}

.lv-media-pane__tip p {
    margin: .45rem 0 0;
    line-height: 1.5;
}

.lv-media-pane__upload-form {
    margin: 0;
}

.lv-media-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.lv-media-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
    box-shadow: 0 10px 24px rgba(13, 148, 136, .28);
}

.lv-media-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(99, 102, 241, .32);
    color: #fff;
}

.lv-media-btn--soft {
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid rgba(13, 148, 136, .25);
}

.lv-media-btn--soft:hover {
    background: #ccfbf1;
    color: #0f766e;
}

.lv-media-uploader {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
    padding: 28px 22px;
    border-radius: 20px;
    border: 1px solid rgba(13, 148, 136, .12);
    background: #f8fafc;
}

.lv-media-uploader--compact {
    min-height: 220px;
}

.lv-media-uploader__glow {
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 50% 30%, rgba(13, 148, 136, .18), transparent 55%);
    pointer-events: none;
}

.lv-media-uploader__glow--violet {
    background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, .16), transparent 55%);
}

.lv-media-uploader__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: #fff;
    color: #0d9488;
    box-shadow: 0 12px 32px rgba(13, 148, 136, .18);
}

.lv-media-uploader__icon--violet {
    color: #6366f1;
    box-shadow: 0 12px 32px rgba(99, 102, 241, .16);
}

.lv-media-uploader__title {
    position: relative;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0c1222;
}

.lv-media-uploader__desc {
    position: relative;
    margin: 8px 0 0;
    max-width: 36ch;
    font-size: .875rem;
    line-height: 1.55;
    color: #64748b;
}

.lv-media-uploader__actions {
    position: relative;
    margin-top: 18px;
}

.lv-media-page .lv-media-grid.rp-gallery {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 14px;
}

@media (min-width: 640px) {
    .lv-media-page .lv-media-grid.rp-gallery {
        grid-template-columns: repeat(auto-fill, minmax(128px, 148px));
    }
}

.lv-media-page .lv-media-grid .rp-gallery__wrap {
    position: relative;
    border-radius: 16px;
    touch-action: none;
}

.lv-media-page .lv-media-grid.rp-gallery--manage .rp-gallery__wrap {
    cursor: grab;
}

.lv-media-page .lv-media-grid .rp-gallery__item {
    width: 100%;
    aspect-ratio: 1;
    background: #e2e8f0;
    border-radius: 16px;
}

.lv-media-page .lv-media-grid .rp-gallery__drag {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    cursor: grab;
    opacity: 0;
    transition: opacity .15s ease;
}

.lv-media-page .lv-media-grid .rp-gallery__wrap:hover .rp-gallery__drag,
.lv-media-page .lv-media-grid .rp-gallery__wrap.is-dragging .rp-gallery__drag {
    opacity: 1;
}

.lv-media-page .lv-media-grid .rp-gallery__main-mark {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 700;
    pointer-events: none;
}

.lv-media-page .lv-media-grid .rp-gallery__main-mark[hidden] {
    display: none !important;
}

.lv-media-page .lv-media-grid .rp-gallery__toolbar {
    position: absolute;
    left: .45rem;
    right: .45rem;
    bottom: .45rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .35rem;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
}

.lv-media-page .lv-media-grid .rp-gallery__wrap:hover .rp-gallery__toolbar,
.lv-media-page .lv-media-grid .rp-gallery__wrap:focus-within .rp-gallery__toolbar {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .lv-media-page .lv-media-grid.rp-gallery--manage .rp-gallery__toolbar,
    .lv-media-page .lv-media-grid.rp-gallery--manage .rp-gallery__drag {
        opacity: 1;
        transform: none;
    }
}

.lv-media-page .lv-media-grid .rp-gallery__tool-form {
    display: contents;
}

.lv-media-page .lv-media-grid .rp-gallery__tool {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.lv-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lv-doc-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 14px 14px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border: 1px solid rgba(12, 18, 34, .06);
    border-left: 3px solid #6366f1;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.lv-doc-item:hover {
    background: #fff;
    transform: translateX(2px);
    box-shadow: 0 8px 24px rgba(12, 18, 34, .08);
}

.lv-doc-item__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
}

.lv-doc-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lv-doc-item__title {
    font-weight: 600;
    font-size: .9375rem;
    color: #0c1222;
}

.lv-doc-item__role {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6366f1;
}

.lv-doc-item__meta {
    font-size: .8125rem;
    color: #64748b;
}

.lv-doc-item__arrow {
    color: #94a3b8;
}

.lv-doc-item:hover .lv-doc-item__arrow {
    color: #6366f1;
}

/* Галерея: переопределение мемориальных стилей rp-person-dash внутри lv-media-page */

.lv-media-page .rp-person-dash .rp-gallery__item {
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(12, 18, 34, .1);
    border: 1px solid rgba(255, 255, 255, .8);
}

.lv-media-page .rp-person-dash .rp-gallery__item:hover {
    box-shadow: 0 12px 28px rgba(12, 18, 34, .16);
}

.lv-media-page .rp-person-dash .rp-gallery__wrap.is-cover {
    box-shadow: 0 0 0 3px #14b8a6, 0 12px 32px rgba(13, 148, 136, .25);
}

.lv-media-page .rp-person-dash .rp-gallery__drag {
    background: rgba(255, 255, 255, .92);
    color: #475569;
    border: 1px solid rgba(12, 18, 34, .08);
    box-shadow: 0 4px 12px rgba(12, 18, 34, .12);
}

.lv-media-page .rp-person-dash .rp-gallery__main-mark {
    background: linear-gradient(135deg, #14b8a6, #6366f1);
    color: #fff;
    font-size: .65rem;
    box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}

.lv-media-page .rp-person-dash .rp-gallery__toolbar {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(12, 18, 34, .08);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(12, 18, 34, .12);
}

.lv-media-page .rp-person-dash .rp-gallery__tool {
    background: #f1f5f9;
    border: none;
    color: #334155;
}

.lv-media-page .rp-person-dash .rp-gallery__tool:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.lv-media-page .rp-person-dash .rp-gallery__tool--main.is-active {
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: none;
}

.lv-media-page .rp-person-dash .rp-gallery__tool--danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.lv-media-page .rp-social-profile .rp-gallery-manage-bar,
.lv-media-page .rp-social-profile .rp-gallery--person {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.lv-media-page .rp-living-panel .rp-community-hub {
    margin-top: 18px;
    border-radius: 22px;
}

@media (max-width: 768px) {
    body.person-public-page--alive.rl-theme .site-header-zone {
        background: #fff !important;
        border-bottom-color: #e2e8f0 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    }

    body.person-public-page--alive.rl-theme {
        overflow-x: hidden;
    }

    body.person-public-page--alive .rp-page--fluid {
        padding-bottom: calc(var(--mob-tab-h, 56px) + 1.5rem);
    }

    .rp-social-profile {
        padding-bottom: 2rem;
    }

    .rp-social-top {
        margin: 8px 10px 16px;
        border-radius: calc(var(--living-radius) + 2px);
    }

    .rl-hero__card {
        padding: 0 16px 10px;
        margin-top: -56px;
        gap: 14px;
    }

    .rl-hero__identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        width: 100%;
    }

    .rl-hero__text {
        width: 100%;
        max-width: 100%;
    }

    .rl-hero__title-row {
        justify-content: center;
    }

    .rl-hero__name {
        max-width: 100%;
        font-size: clamp(1.35rem, 6.5vw, 1.75rem);
    }

    .rl-hero__name-line {
        display: block;
    }

    .rl-hero__name-line--surname {
        white-space: nowrap;
    }

    .rl-hero__name-line--surname::after {
        content: none;
    }

    .rl-hero__name-line--given {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.person-public-page--alive .logo__lockup--living.logo__lockup--full {
        height: 48px !important;
        max-width: min(220px, 58vw) !important;
    }

    .person-public-page--alive .rp-living-panel--family .rp-person-panel__head {
        padding: 16px 14px 6px;
    }

    .person-public-page--alive .rp-living-panel--family .rp-living-panel__body {
        padding: 0 0 8px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__living-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__living-bar-actions {
        width: 100%;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__cta {
        width: 100%;
        min-height: 48px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__living-tools {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__tool {
        width: 100%;
        justify-content: space-between;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__tool--zoom {
        justify-content: center;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__tool-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 44px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__viewport {
        max-width: 100%;
        max-height: min(62dvh, 520px);
        min-height: min(42dvh, 360px);
        -webkit-overflow-scrolling: touch;
        padding: 12px 8px 16px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__stage {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 8px 4px 12px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__stage::before {
        left: 86px;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__row {
        grid-template-columns: minmax(72px, 88px) 16px minmax(0, 1fr);
        gap: 0.35rem 0;
        padding: 10px 0;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree-card {
        width: min(100%, 260px);
        min-width: 0;
        max-width: 100%;
        padding: 0.75rem 0.85rem;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree-card--placeholder-living {
        width: min(100%, 260px);
    }

    .person-public-page--alive .rp-ftree--living {
        max-width: 100%;
        min-width: 0;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__shell {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__viewport {
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__row-body {
        max-width: 100%;
        min-width: 0;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__couple {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        gap: 0.35rem;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree__couple .rp-ftree-card {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 0;
        width: auto;
        max-width: 100%;
        padding: 0.55rem 0.45rem;
    }

    .person-public-page--alive .rp-ftree--living .rp-ftree-card {
        min-width: 0 !important;
    }

    .person-public-page--alive .rp-living-panel--family {
        max-width: 100%;
        overflow-x: clip;
    }

    .person-public-page--alive .rp-relatives-panel {
        gap: 16px;
        padding: 0 2px;
    }

    .person-public-page--alive .rp-relatives--cards {
        grid-template-columns: 1fr !important;
    }

    .rl-hero__meta {
        justify-content: center;
    }

    .rl-hero__actions {
        width: 100%;
        align-items: stretch;
    }

    .rl-hero__tools {
        justify-content: center;
    }

    .rl-hero__cta {
        justify-content: stretch;
        flex-direction: column;
    }

    .rl-hero__cta .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .rl-avatar-living--hero {
        width: 120px;
        height: 120px;
    }

    .rl-avatar-living--hero .rl-avatar-living__photo {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
    }

    .rp-social-tabs {
        top: 56px;
        margin-left: -1px;
        margin-right: -1px;
    }

    .rp-social-tabs__inner {
        padding: 0 12px;
        -webkit-overflow-scrolling: touch;
    }

    .person-public-page--alive .rp-social-tabs__btn {
        min-width: max(96px, 24%);
        padding-inline: 10px;
        font-size: .78rem;
    }

    .rp-social-header__name {
        word-break: break-word;
    }

    .rp-social-layout {
        padding: 16px 12px 0;
        gap: 16px;
    }

    .rp-living-panel {
        margin: 0 10px 16px;
    }

    .rp-living-specs__row {
        grid-template-columns: 1fr;
        gap: 4px;
        align-items: start;
    }

    .rp-living-fields {
        grid-template-columns: 1fr;
    }

    .rp-social-cover__brand {
        display: none;
    }
}
