.public-profile-page .l-page { min-width: 0; }
.public-profile-page .l-header { top: 0; }
.public-profile-page .l-header-h { box-sizing: border-box; width: min(900px, 100%); height: 40px; }
.public-profile-page .l-footer-h { box-sizing: border-box; width: min(860px, calc(100% - 28px)); }

.profile-layout {
    --profile-ink: #17262e;
    --profile-muted: #50656f;
    --profile-link: #195a73;
    --profile-line: #dae4e7;
    --profile-pale: #eff6f9;
    --profile-tint: #e9f3f7;
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
    width: min(860px, calc(100% - 28px));
    margin: 65px auto 30px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, .2);
    color: var(--profile-ink);
    overflow-wrap: anywhere;
}
.public-profile-page .l-page-h { display: flow-root; }
.profile-layout [hidden] { display: none !important; }
.profile-layout :focus-visible { outline: 2px solid #23749a; outline-offset: 2px; }
.profile-layout p, .profile-layout h1, .profile-layout h2 { margin: 0; }
.profile-layout a { color: var(--profile-link); }
.profile-layout button:disabled { cursor: wait; opacity: .65; }
.profile-sidebar {
    min-width: 0;
    padding: 18px;
    border-right: 1px solid var(--profile-line);
    border-radius: 5px 0 0 5px;
    background: #f4f7f8;
}
.profile-summary h1 { color: var(--profile-ink); font-size: 25px; line-height: 31px; font-weight: 700; }
.profile-layout .profile-byline { color: var(--profile-muted); font-size: 13px; line-height: 18px; }
.profile-summary .profile-byline { margin-top: 4px; }
.profile-layout .profile-mood, .profile-layout .profile-bio { margin-top: 7px; font-size: 14px; line-height: 20px; color: #30454f; }
.profile-identity { display: grid; grid-template-columns: minmax(78px, 102px) minmax(0, 1fr); gap: 13px; margin-top: 9px; align-items: start; }
.profile-portrait img, .profile-portrait-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #e4eef2; }
.profile-layout .profile-presence { margin-top: 5px; color: var(--profile-muted); font-size: 12px; line-height: 17px; }
.profile-presence::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #8b9a9f; }
.profile-layout .profile-presence.is-online { color: #315f4a; }
.profile-presence.is-online::before { background: #315f4a; }
.profile-identity-links { display: grid; align-content: start; gap: 4px; }
.profile-layout .profile-gallery-link { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; gap: 5px; align-items: center; min-height: 24px; font-size: 13px; text-decoration: none; }
.profile-gallery-link span { text-decoration: underline; }
.profile-gallery-link small { color: var(--profile-muted); font-size: 12px; }
.profile-layout .profile-website { min-height: 20px; margin-top: 3px; color: var(--profile-muted); font-size: 12px; line-height: 17px; }
.profile-social, .profile-share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.profile-layout .profile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid var(--profile-line);
    border-radius: 5px;
    background: #fff;
    color: var(--profile-link);
    font: 13px/18px Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.profile-layout .profile-chip:hover { background: var(--profile-pale); border-color: #bed6df; }
.profile-social .profile-chip { flex: 0 0 28px; min-height: 29px; padding: 3px; font-weight: 700; }
.profile-summary .profile-follow-action { margin-top: 9px; }
.profile-connections, .profile-share { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--profile-line); }
.profile-connections-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-connections-controls [aria-current="true"] { background: var(--profile-tint); border-color: #c8dde6; font-weight: 700; }
.profile-portrait-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 9px; padding: 0; list-style: none; }
.profile-portrait-grid a { display: block; border-radius: 4px; }
.profile-portrait-grid a:hover { box-shadow: 0 0 0 2px #92b6c5; }
.profile-people-all { font-size: 13px; line-height: 19px; }
.profile-layout .profile-people-empty, .profile-layout .profile-action-error { margin-top: 9px; }
.profile-layout .profile-action-error { color: #8e2d28; font-size: 13px; }
.profile-share h2 { margin-bottom: 10px; font-size: 14px; line-height: 20px; font-weight: 700; }
.profile-share-actions { gap: 8px; }
.profile-share-actions .profile-chip { padding-inline: 14px; }

.profile-main { min-width: 0; padding: 22px; }
.profile-ask { padding: 13px 15px 15px; border: 1px solid var(--profile-line); border-radius: 5px; background: var(--profile-pale); }
.profile-ask-heading, .profile-answers-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.profile-ask h2, .profile-answers h2 { color: var(--profile-ink); font-size: 22px; line-height: 30px; font-weight: 700; }
.profile-character-count { flex: none; padding-top: 7px; color: var(--profile-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.profile-ask form { margin-top: 2px; }
.profile-ask textarea, .profile-email-input input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #909ca0;
    border-radius: 3px;
    background: #fff;
    box-shadow: inset 0 1px 3px rgb(0 0 0 / .1);
    color: var(--profile-ink);
    font: 15px/22px Arial, sans-serif;
}
.profile-ask textarea { min-height: 100px; resize: vertical; }
.profile-ask textarea::placeholder { color: var(--profile-muted); opacity: 1; }
.profile-ask textarea.highlightRed { border-color: #ae352c; }
.profile-ask-toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 11px; }
.profile-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-right: auto; }
.profile-attachments .profile-chip { min-width: 56px; min-height: 34px; white-space: nowrap; }
.profile-anonymous { display: inline-flex; gap: 7px; color: #30454f; align-items: center; min-height: 34px; font-size: 13px; cursor: pointer; }
.profile-anonymous input { margin: 0; accent-color: #195a73; }
.profile-ask-submit {
    min-height: 40px;
    min-width: 128px;
    padding: 6px 12px;
    border: 1px solid #779bab;
    border-radius: 5px;
    background: linear-gradient(#a3c6d7, #7595a3);
    color: #142833;
    font: 700 15px/22px Arial, sans-serif;
    cursor: pointer;
}
.profile-ask-submit:hover { filter: brightness(1.07); }
.profile-ask-submit:active { filter: brightness(.9); }
.profile-ask-toolbar #sendIndicator { position: absolute; inset-inline-end: 7px; bottom: 12px; }
.profile-layout .profile-ask-notice, .profile-email-input { margin-top: 10px; font-size: 14px; line-height: 20px; }
.profile-ask-notice button { margin-top: 6px; }
.profile-email-input input { max-width: 280px; margin-top: 3px; }
.profile-attachment-preview:not(:empty) { margin-top: 9px; font-size: 13px; }
.profile-attachment-preview img { max-width: 100%; }

.profile-answers { margin-top: 25px; }
.profile-answers-heading { justify-content: flex-start; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--profile-line); }
.profile-answers-count { box-sizing: border-box; min-width: 36px; padding: 2px 6px; border-radius: 4px; background: var(--profile-tint); color: var(--profile-link); font-size: 12px; font-weight: 700; line-height: 19px; text-align: center; }
.profile-answers-count:empty { display: none; }
.profile-answers .g-lenth-list { margin-bottom: 0; }
.profile-answers .g-lenth-item { padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--profile-line); }
.profile-answers .g-lenth-item-head { padding: 16px 0 9px; border: 0; }
.profile-answers .g-lenth-item-head h3 { color: var(--profile-ink); font-size: 17px; font-weight: 700; line-height: 24px; }
.profile-answers .g-lenth-item-body { padding: 4px 0 10px; font-size: 15px; line-height: 21px; color: #30454f; }
.profile-answers .g-lenth-item img, .profile-answers .g-lenth-item iframe, .profile-answers .g-lenth-item video { max-width: 100%; }
.profile-answers .g-lenth-item-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; min-height: 28px; padding: 0; color: var(--profile-muted); font-size: 12px; }
.profile-answers .g-lenth-item-foot-item { margin: 0; }
.profile-answers .g-lenth-item-foot > :first-child { margin-right: auto; }
.profile-answers .g-lenth-item-foot .b-comment,
.profile-answers .g-lenth-item-foot .like_btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: none;
    min-width: 30px;
    min-height: 27px;
    margin: 0;
    padding: 2px 3px;
    border-radius: 4px;
    background: transparent;
    color: var(--profile-link);
    text-decoration: none;
    font-size: 12px;
    box-shadow: none;
}
.profile-answers .g-lenth-item-foot .b-comment:hover, .profile-answers .g-lenth-item-foot .like_btn:hover { background: var(--profile-tint); }
.profile-answers .g-lenth-item-foot .b-comment::before, .profile-answers .g-lenth-item-foot .like_btn::before { content: ''; position: static; width: 16px; height: 16px; background: url('/images/public-profile-comment.svg') center / contain no-repeat; }
.profile-answers .g-lenth-item-foot .like_btn::before { background-image: url('/images/public-profile-heart.svg'); }
.profile-answers .g-lenth-item-foot .like_btn > :first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-answers .g-lenth-item-foot .like_btn .like_btn_ico { display: none; }
.profile-answers-status { color: var(--profile-muted); font-size: 14px; line-height: 21px; }
.profile-answers .profile-answers-status:not(:empty) { margin-top: 13px; }
.profile-answers .profile-more { margin-top: 13px; }

@media (max-width: 680px) {
    .public-profile-page .l-header-h { padding-inline: 12px; }
    .public-profile-page .l-header:has(.g-header-notification) { height: 87px; }
    .public-profile-page .l-header-h:has(.g-header-notification) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 35px 35px;
        gap: 4px 7px;
        align-items: center;
        height: auto;
    }
    .public-profile-page .l-header-h:has(.g-header-notification)::before,
    .public-profile-page .l-header-h:has(.g-header-notification)::after { display: none; }
    .public-profile-page .g-logo { grid-area: 1 / 1; width: min(152px, 48vw); }
    .public-profile-page .g-header-user { grid-area: 1 / 2; justify-self: end; }
    .public-profile-page .g-header-notification { grid-area: 2 / 1; margin: 0; }
    .public-profile-page .g-header-search { grid-area: 2 / 2; min-width: 0; width: 100%; margin: 0; }
    .public-profile-page .g-header-search .g-input { padding: 0; }
    .public-profile-page .g-header-search .g-input-h { box-sizing: border-box; width: 100%; }
    .public-profile-page .l-page-h:has(.g-header-notification) .profile-layout { margin-top: 112px; }
    .public-profile-page .l-footer-h { padding: 10px 12px; }
    .public-profile-page .g-footer-nav, .public-profile-page .g-footer-copy { float: none; }
    .public-profile-page .g-footer-nav-list { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; }
    .public-profile-page .g-footer-nav-item { float: none; margin: 0; }

    .profile-layout { grid-template-columns: minmax(0, 1fr); }
    .profile-sidebar { padding: 16px; border-right: 0; border-radius: 5px 5px 0 0; }
    .profile-main { padding: 16px; }
    .profile-identity { gap: 13px; }
    .profile-portrait-grid { gap: clamp(6px, 2.4vw, 10px); }
    .profile-ask textarea { min-height: 97px; font-size: 16px; }
    .profile-ask-submit { width: 100%; min-height: 44px; }
    .profile-answers { margin-top: 16px; }
    .profile-answers .g-lenth-item-head h3 { font-size: 16px; line-height: 22px; }
    .profile-answers .g-lenth-item-foot { justify-content: flex-end; }
    .profile-answers .g-lenth-item-foot > :first-child { width: 100%; margin-right: 0; }
}
