.fl-public-page {
    display: grid;
    align-content: start;
    gap: clamp(17px, 2.2vw, 27px);
    min-height: calc(100svh - 195px);
    padding-block: clamp(22px, 4vw, 40px) 45px;
}
.fl-public-narrow > :is(.fl-cards, .fl-section-title, .fl-public-actions, .fl-public-card:not(.fl-recovery)) {
    width: min(100%, 820px);
    justify-self: center;
}
.fl-public-intro {
    padding: clamp(21px, 4.5vw, 44px);
    background: linear-gradient(130deg, #f5edff, #eee4fb);
    border: 1px solid #e9dcfa;
    border-radius: clamp(17px, 3vw, 27px);
}
.fl-public-intro h1, .fl-profile-info h1 { margin: 0; }
.fl-public-intro p { margin-top: 10px; max-width: 55ch; color: var(--fl-muted); font-size: clamp(1rem, 2vw, 1.12rem); }
.fl-public-card, .fl-public-page .fl-empty {
    padding: clamp(15px, 2.9vw, 26px);
    background: #fff;
    border: 1px solid var(--fl-line);
    border-radius: 19px;
    min-width: 0;
}
.fl-public-page .fl-empty {
    color: var(--fl-muted);
    grid-column: 1 / -1;
}
.fl-section-title { margin-bottom: 12px; }
.fl-section-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
.fl-section-row .fl-section-title { margin: 0; }
.fl-public-card :is(h2, h3) a, .fl-story h2 a, .fl-story h3 a { color: var(--fl-ink); text-decoration: none; }
.fl-public-card :is(h2, h3) a:hover, .fl-text-link:hover { color: var(--fl-accent); text-decoration: underline; }
.fl-cards { display: grid; align-items: stretch; gap: clamp(11px, 2vw, 18px); }
.fl-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-card-meta { color: var(--fl-muted); font-size: .88rem; text-wrap: pretty; }
.fl-public-actions, .fl-legacy-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fl-public-actions > .fl-button { min-height: 44px; }
.fl-legacy-pagination a { color: var(--fl-accent); margin: 0; border-color: var(--fl-line); border-radius: 10px; }
.fl-legacy-pagination a.pager_selected { background: var(--fl-lilac); }
.fl-text-link { color: var(--fl-accent); font-weight: 650; }
.fl-public-page .fl-pagination { margin-top: 12px; }
.fl-feedback, .fl-feed-status { font-size: .88rem; color: var(--fl-muted); }
.fl-feedback:empty, .fl-feed-status:empty { display: none; }
.fl-feed-status { flex-basis: 100%; }
.fl-feed-sentinel { display: block; width: 100%; height: 1px; }
.fl-pagination a[hidden] { display: none; }

.fl-story, .fl-person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow-wrap: anywhere;
}
.fl-story > .fl-button:last-child, .fl-person > .fl-button:last-child { margin-top: auto; }
.fl-story > p:not(.fl-card-meta) { color: var(--fl-muted); margin-bottom: 3px; }
.fl-story-image { display: block; width: 100%; border-radius: 12px; overflow: hidden; }
.fl-story-image img { display: block; aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.fl-rating-photo .fl-story-image img { aspect-ratio: 4 / 3; }
.fl-rating-section { text-align: center; }
.fl-rating-section .fl-section-title { margin-inline: auto; }
.fl-rating-heading { display: grid; justify-items: center; gap: 5px; margin-bottom: 13px; }
.fl-rating-heading .fl-section-title { margin: 0; }
.fl-pick-status { margin: 10px 0 0; color: var(--fl-muted); font-size: .88rem; }
.fl-pick-status:empty { display: none; }
.fl-rating-photo [data-rating-star-display] { display: grid; place-items: center; min-height: 40px; color: #776488; }
.fl-rating-photo [data-rating-star-display].is-rated { color: var(--fl-accent); }
.fl-cards.fl-rating-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.fl-rating-grid > article { flex: 0 1 calc((100% - 28px) / 3); min-width: 0; }
.fl-rating-photo, .fl-person { align-items: center; text-align: center; }
.fl-rating-photo .fl-story-image { width: 100%; }
.fl-rating-photo .fl-post-rating { justify-content: center; width: 100%; }
.fl-rating-photo .shop-rating-summary { flex-basis: 100%; text-align: center; }
.fl-rating-photo .shop-rating-stars { margin-inline: auto; }
.fl-public-actions.fl-profile-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    align-items: stretch;
}
.fl-profile-actions > form { display: grid; min-width: 0; margin: 0; }
.fl-profile-actions .fl-button {
    width: 100%;
    min-height: 36px;
    padding: 6px 5px;
    border-radius: 9px;
    font-size: .79rem;
    line-height: 1.15;
    text-align: center;
}
.fl-profile-actions .fl-button span[aria-hidden] { font-size: inherit; line-height: inherit; }
.fl-public-actions.fl-profile-actions-own { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-profile-action-short { display: none; }
.fl-profile-next { justify-self: start; margin-top: 8px; padding-inline: 8px; }
@media (max-width: 720px) {
    .fl-public-actions.fl-profile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 9px;
    }
    .fl-profile-actions .fl-button { min-height: 44px; padding: 7px 6px; }
    .fl-public-actions.fl-profile-actions-own { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .fl-profile-actions-own .fl-button { min-height: 42px; padding-inline: 3px; font-size: .73rem; white-space: nowrap; }
    .fl-profile-actions-own .fl-profile-action-short { display: inline; }
    .fl-profile-actions-own .fl-profile-action-long { display: none; }
}
@media (max-width: 800px) { .fl-rating-grid > article { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 375px) { .fl-rating-grid > article { flex-basis: 100%; } }
.fl-person .fl-avatar { width: 58px; height: 58px; font-size: 1.35rem; }
.fl-person-body { flex: 1; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.fl-person-body .fl-card-meta { margin-top: 4px; }
.fl-channel-avatar { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; }

.fl-prose { overflow-wrap: break-word; }
.fl-prose :is(h1, h2, h3) { margin: 1em 0 .4em; }
.fl-prose :is(h1, h2, h3):first-child { margin-top: 0; }
.fl-prose :is(p, address, ul, ol) { margin-bottom: 10px; }
.fl-prose :is(ul, ol) { padding-left: 1.35em; }
.fl-prose li + li { margin-top: 3px; }
.fl-prose a { color: var(--fl-accent); }
.fl-prose .fl-button-primary { color: #fff; }
.fl-article-image { width: 100%; max-height: 460px; margin: 14px 0; border-radius: 14px; object-fit: cover; }
.fl-public-page img { max-width: 100%; }
.fl-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 21px; margin-block: 15px; }
.fl-contact-grid > div { padding: 14px; border-radius: 12px; background: #f9f5fd; }
.fl-contact-grid :is(p, address) { margin-bottom: 0; color: var(--fl-muted); }

.fl-recovery { width: min(100%, 480px); justify-self: center; }
.fl-recovery h2 { margin-bottom: 13px; }
.fl-search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
.fl-search-grid label { min-width: 0; display: block; font-size: .89rem; font-weight: 650; }
.fl-search-grid :is(input, select) {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 8px 11px;
    border: 1px solid #ded4ea;
    border-radius: 10px;
    color: var(--fl-ink);
    background: #fcfaff;
    font: inherit;
    font-weight: 400;
}
.fl-search-grid select:disabled { color: var(--fl-muted); background: #f8f6fa; }
.fl-search-login { grid-column: 1 / -1; }
.fl-search-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 15px; margin-top: 13px; color: var(--fl-muted); font-size: .9rem; }
.fl-search-tools > .fl-form-actions { margin-inline-start: auto; }
.fl-search-results-heading #search-results-title { scroll-margin-top: 18px; }
.fl-check { display: flex; align-items: center; gap: 6px; }
.fl-check input { accent-color: var(--fl-accent); width: 16px; height: 16px; }

.fl-profile-card { display: grid; grid-template-columns: minmax(150px, 28%) minmax(0, 1fr); align-items: start; gap: clamp(15px, 4vw, 27px); }
.fl-profile-photo { display: grid; place-items: center; min-height: 135px; overflow: hidden; background: #f6effd; border-radius: 15px; }
.fl-profile-photo .fl-avatar { width: 92px; height: 92px; font-size: 2rem; }
.fl-profile-photo a { width: 100%; }
.fl-profile-photo img { display: block; width: 100%; max-height: 350px; object-fit: contain; }
.fl-profile-info { display: grid; gap: 10px; min-width: 0; }
.fl-profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 3px 0; }
.fl-profile-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; min-width: 0; padding: 9px 4px; border: 1px solid var(--fl-line); border-radius: 11px; text-align: center; }
.fl-profile-stats dt { color: var(--fl-muted); font-size: clamp(.68rem, 2.2vw, .86rem); font-weight: 500; }
.fl-profile-stats dd { margin: 0; color: var(--fl-ink); font-weight: 780; font-size: 1.05rem; }
.fl-profile-gifts h2 { margin-bottom: 10px; }

.fl-legacy-content { overflow-wrap: anywhere; }
.fl-legacy-content .main_lenta, .fl-legacy-content .news_lenta { display: block; max-width: none; text-align: left; margin: 0; }
.fl-legacy-content .news_lenta > .p20, .fl-legacy-content #content {
    padding: clamp(15px, 3vw, 24px);
    background: #fff;
    border: 1px solid var(--fl-line);
    border-radius: 19px;
}
.fl-legacy-content :is(.contest_block, #ch_obj_list) { border-color: var(--fl-line); }
.fl-legacy-content :is(h2, h3) { margin-bottom: .42em; }
.fl-legacy-content :is(p, ul):not(:last-child) { margin-bottom: .7em; }
.fl-legacy-content :is(.btn, input[type="submit"]) { --bs-btn-bg: var(--fl-accent); --bs-btn-border-color: var(--fl-accent); --bs-btn-hover-bg: var(--fl-accent-hover); --bs-btn-hover-border-color: var(--fl-accent-hover); border-radius: 11px; }
.fl-post-sharing { padding: clamp(12px, 3vw, 18px); border: 1px solid var(--fl-line); border-radius: 17px; background: #fff; }
.fl-post-share-center { display: grid; justify-items: center; text-align: center; }
.fl-post-share-center h2 { margin: 0; }
.fl-post-share-social { display: flex; justify-content: center; width: 100%; margin-block: 12px; }
.fl-post-share-social > .ya-share2 { zoom: .5; }
.fl-post-share-copy { padding: 0 8px 4px; border: 0; background: transparent; font-size: .84rem; }
.fl-post-share-copy:hover { text-decoration: underline; }
.fl-post-share-footer {
    position: relative;
    margin-top: 22px;
    padding-top: 13px;
    border-top: 1px solid var(--fl-line);
    font-size: clamp(.78rem, 3.3vw, .9rem);
    line-height: 1.4;
}
.fl-post-share-footer .fl-embed summary { width: max-content; color: var(--fl-accent); cursor: pointer; }
.fl-post-share-footer .fl-embed textarea { width: 100%; margin-top: 10px; }
.fl-post-share-back { position: absolute; inset: 13px 0 auto auto; }

.fl-nav-sections { align-self: center; }
.fl-nav-sections summary { padding: 5px 4px; color: var(--fl-muted); cursor: pointer; font-weight: 600; }
.fl-nav-sections summary:hover, .fl-nav-sections .fl-nav-selected { color: var(--fl-accent); }
.fl-nav-sections summary::after { content: " ▾"; }
.fl-nav-sections .fl-account-menu { max-height: 60dvh; overflow-y: auto; }
.fl-nav-sections .fl-account-menu a { display: block; padding: 8px 10px; }
.fl-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
.fl-footer-inner nav { display: grid; grid-template-columns: repeat(4, minmax(49px, 1fr)); gap: 5px 15px; align-items: center; }
.fl-footer-inner nav a { padding-block: 4px; }

.fl-site .shop-dock {
    --accent: var(--fl-ink);
    --paper: var(--fl-paper);
    --shop-glass-tint: linear-gradient(120deg, #fff8, #f8efff38 53%, #f0deff69);
    width: min(400px, calc(100% - 22px));
    background: var(--shop-glass-tint);
    backdrop-filter: blur(3px) saturate(142%);
    -webkit-backdrop-filter: blur(3px) saturate(142%);
}
.fl-site .shop-dock > :is(a, button) {
    min-width: 0;
    color: #291f3b;
    border: 1px solid transparent;
    text-decoration: none;
}
.fl-site .shop-dock > :is(a, button):hover { background: #fff5; }
.fl-site .shop-dock > a.is-current {
    background: linear-gradient(135deg, #fff6 3%, #f5e8ff2e 55%, #dfc7ff59);
    border-color: #fffc;
    box-shadow: inset 1px 1px 2px #fffa, inset -1px -1px 3px #fcf4ff9e, 0 3px 10px #543c731e;
    backdrop-filter: blur(6px) saturate(134%);
    -webkit-backdrop-filter: blur(6px) saturate(134%);
}
.fl-site .shop-dock > .is-on-dark { color: #fff; }
.fl-site .shop-dock > .is-on-dark svg { filter: drop-shadow(0 1px 2px #1b1425bd); }
.fl-site .shop-dock > a.is-current.is-on-dark {
    background: linear-gradient(135deg, #ffffff45, #e6cdff24 65%, #a27bc537);
    border-color: #ffffff7a;
    box-shadow: inset 1px 1px 2px #fff7, inset -1px -1px 3px #fcf4ff64, 0 3px 10px #1b14255c;
}
.fl-site:has(.shop-dock.is-visible) .fl-cookie { bottom: calc(73px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-transparency: reduce) {
    .fl-site .shop-dock { background: #fbf7ff; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .fl-site .shop-dock > .is-on-dark { color: #291f3b; }
    .fl-site .shop-dock > .is-on-dark svg { filter: none; }
    .fl-site .shop-dock > a.is-current { background: #efdefd; }
}
@media (max-width: 800px) {
    .fl-cards-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .fl-nav-links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        gap: 0;
        min-width: 0;
        margin-inline: calc(-1 * var(--fl-mobile-gutter));
        font-size: .9rem;
    }
    .fl-nav-links > a, .fl-nav-sections > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        padding-inline: 0;
        white-space: nowrap;
    }
    .fl-nav-links > a[aria-current]::after { inset-inline: 17%; }
    .fl-nav-links > a:first-child { justify-content: flex-start; padding-inline-start: var(--fl-mobile-gutter); }
    .fl-nav-sections { align-self: stretch; }
    .fl-nav-sections > summary { justify-content: flex-end; gap: 4px; padding-inline-end: var(--fl-mobile-gutter); }
    .fl-nav-sections .fl-account-menu { right: var(--fl-mobile-gutter); }
}
@media (max-width: 600px) {
    .fl-cards-two { grid-template-columns: 1fr; }
    .fl-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fl-search-mobile-wide { grid-column: 1 / -1; }
    .fl-search-shortcuts > .fl-button { flex: 1 1 auto; text-align: center; }
    .fl-profile-card { grid-template-columns: 1fr; }
    .fl-profile-photo { min-height: 125px; }
    .fl-footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .fl-footer-inner nav { width: 100%; gap: 4px 9px; font-size: .9rem; }
}
@media (max-width: 375px) {
    .fl-cards-three, .fl-contact-grid { grid-template-columns: 1fr; }
    .fl-footer-inner nav { grid-template-columns: repeat(2, minmax(49px, 1fr)); }
}
