:root {
    --blog-bg: #f5f5f5;
    --blog-card: #fff;
    --blog-text: #171719;
    --blog-muted: #74767a;
    --blog-line: #e7e8eb;
    --blog-accent: #1f9d55;
}

body.fiwork-page-blog {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.community-blog,
.blog-editor-page,
.blog-manage-page {
    min-height: calc(100vh - 80px);
    background: var(--blog-bg);
    color: var(--blog-text);
    padding: 28px 20px 64px;
    font-family: Inter, sans-serif;
}

.community-blog {
    padding-right: 0;
    padding-left: 0;
}

.community-blog__layout {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 760px) 290px;
    gap: 22px;
    align-items: start;
}

.community-blog__aside,
.community-blog__right {
    position: sticky;
}

.community-blog__brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 4px 10px 22px;
}

.community-blog__brand > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.community-blog__brand div,
.community-post__author div {
    display: flex;
    flex-direction: column;
}

.community-blog__brand strong { font-size: 15px; }
.community-blog__brand small { color: var(--blog-muted); font-size: 12px; }

.community-blog__nav,
.community-blog__topics,
.community-blog__info,
.community-blog__rules {
    border-radius: 16px;
    background: var(--blog-card);
    padding: 9px;
}

.community-blog__nav a,
.community-blog__topics a {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    color: #303135;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.community-blog__nav a:hover,
.community-blog__nav a.is-active,
.community-blog__topics a:hover,
.community-blog__topics a.is-active { background: #f0f1f3; color: #111; }
.community-blog__nav a > span { width: 20px; text-align: center; color: #6c6f75; font-size: 18px; }
.community-blog__nav .community-blog__nav-icon {
    display: grid;
    place-items: center;
}
.community-blog__nav a > em { margin-left: auto; color: #999; font-style: normal; font-size: 12px; }
.community-blog__topics { margin-top: 14px; }
.community-blog__topics > p { padding: 9px 12px 5px; margin: 0; color: #999; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.community-blog__topics a { min-height: 46px; justify-content: flex-start; font-weight: 500; }
.community-blog__topics .community-topic-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: hsl(var(--topic-hue, 150) 38% 30%);
    background: hsl(var(--topic-hue, 150) 55% 90%);
    font-size: 12px;
    font-weight: 800;
}
.community-blog__topics .community-topic-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.community-blog__topics .community-topic-avatar--all {
    color: #62656a;
    background: #e9eaec;
}
.community-blog__topics .community-topic-name {
    min-width: 0;
    overflow: hidden;
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.community-blog__topics small { color: #a0a2a6; }
.community-blog__topics a.is-topic-hidden { display: none; }
.community-blog__topics-toggle {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    color: #66696e;
    background: transparent;
    font: 650 12px Inter, Arial, sans-serif;
    cursor: pointer;
}
.community-blog__topics-toggle:hover { color: #222; background: #f0f1f3; }
.community-blog__topics-toggle.is-expanded svg { transform: rotate(180deg); }

.community-blog__header {
    min-height: 184px;
    padding: 28px 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
    color: #fff;
    border-radius: 20px;
    background: linear-gradient(120deg, #0d1110, #202c27 62%, #34765b);
}

.community-blog__header::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    top: -120px;
    border-radius: 50%;
    background: rgba(92, 223, 154, .18);
    box-shadow: 0 0 0 45px rgba(92, 223, 154, .06);
}

.community-blog__header > * { position: relative; z-index: 1; }
.community-blog__eyebrow { color: #8ce1b4; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.community-blog__header h1 { margin: 5px 0 4px; color: inherit; font-size: clamp(32px, 5vw, 48px); line-height: 1; }
.community-blog__header p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }

.community-blog__create,
.blog-editor__actions button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #20ad63;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.community-blog__create:hover { color: #fff; background: #179754; }

.community-digest {
    overflow: hidden;
    border: 1px solid #e8e9eb;
    border-radius: 16px;
    background: #fff;
}

.community-digest__bar {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #ececef;
}

.community-digest__date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.community-digest__date > label {
    min-width: 126px;
    min-height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    border-radius: 9px;
    color: #292a2d;
    background: #f2f3f4;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.community-digest__date > label:hover { background: #e9eaec; }

.community-digest__date select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.community-digest__rates {
    display: flex;
    align-items: center;
    gap: 18px;
}

.community-digest__rates > span {
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.community-digest__rates b {
    color: #8b8d92;
    font-size: 11px;
    font-weight: 700;
}

.community-digest__rates strong {
    color: #303135;
    font-size: 13px;
}

.community-digest__rates small {
    color: #a2a4a8;
    font-size: 11px;
}

.community-digest__rates .is-unavailable {
    color: #999;
    font-size: 12px;
}

.community-digest__popular { padding: 18px; }

.community-digest__title {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-digest__title strong { font-size: 15px; }

.community-digest__title span {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #85878c;
    background: #f0f1f2;
    font-size: 10px;
    font-weight: 700;
}

.community-digest__articles {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    border: 1px solid #ececef;
    border-radius: 12px;
    background: #ececef;
}

.community-digest__articles > a {
    min-width: 0;
    min-height: 78px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #252629;
    background: #fff;
    text-decoration: none;
}

.community-digest__articles > a:hover { background: #fafafa; color: #111; }

.community-digest__articles > a > span {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #6b6d72;
    background: #f0f1f2;
    font-size: 11px;
    font-weight: 800;
}

.community-digest__articles > a > div {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.community-digest__articles > a strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.community-digest__articles > a small {
    overflow: hidden;
    color: #999b9f;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-digest__empty {
    padding: 28px;
    color: #929499;
    background: #fff;
    text-align: center;
    font-size: 13px;
}

.community-blog__tabs { display: flex; gap: 24px; padding: 22px 4px 12px; }
.community-blog__tabs a { padding: 6px 0; color: #7d7f83; text-decoration: none; font-weight: 650; border-bottom: 2px solid transparent; }
.community-blog__tabs a.is-active { color: #111; border-color: #111; }
.community-blog__tabs > span {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: #7d7f83;
    font-weight: 650;
}
.community-blog__tabs > span.is-active { color: #111; border-color: #111; }
.community-blog__feed { display: grid; gap: 14px; }

.community-post {
    padding: 22px;
    border: 1px solid rgba(0,0,0,.025);
    border-radius: 18px;
    background: var(--blog-card);
}

.community-post__author { display: flex; align-items: center; gap: 10px; }
.community-post__avatar { width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border-radius: 50%; text-decoration: none; }
.community-post__avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-post__avatar span { width: 100%; height: 100%; display: grid; place-items: center; background: #111; color: #fff; font-weight: 800; }
.community-post__author div > a { color: #222; font-size: 14px; font-weight: 700; text-decoration: none; }
.community-post__author-name { display: inline-flex; align-items: center; gap: 5px; }
.community-post__author-name > a { color: #222; font-size: 14px; font-weight: 700; text-decoration: none; }
.community-post__author-name > a:hover { color: #111; }
.community-post__verified { width: 15px; height: 15px; flex: 0 0 15px; display: block; object-fit: contain; }
.community-post__author time { color: #999; font-size: 12px; }
.community-post__author-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 12px;
}
.community-post__author-category {
    color: #278c59;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}
.community-post__author-category::after {
    margin-left: 5px;
    color: #b1b2b5;
    content: "·";
}
.community-post__subscribe {
    min-height: 30px;
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid #dfe1e4;
    border-radius: 9px;
    color: #303236;
    background: #fff;
    font: 650 11px Inter, Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.community-post__subscribe:hover { border-color: #c8cace; background: #f7f7f8; }
.community-post__subscribe.is-subscribed { color: #72757a; background: #f0f1f2; }
.community-post__subscribe:disabled { opacity: .65; cursor: wait; }
.community-post__body { display: block; color: inherit; text-decoration: none; }
.community-post__body:hover { color: inherit; }
.community-post h2 a { color: inherit; text-decoration: none; }
.community-post h2 a:hover { color: #111; }
.community-post__category { display: block; margin-top: 18px; color: var(--blog-accent); font-size: 12px; font-weight: 700; }
.community-post h2 { margin: 6px 0 9px; color: #18191b; font-size: clamp(21px, 3vw, 28px); line-height: 1.18; }
.community-post__body p {
    margin: 0 0 16px;
    color: #626469;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
}
.community-post__summary {
    color: #626469;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.community-post__summary.is-collapsed {
    position: relative;
    max-height: 116px;
    overflow: hidden;
}
.community-post__summary.is-collapsed::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38%;
    height: 24px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 78%);
}
.community-post__summary > :first-child { margin-top: 0; }
.community-post__summary > :last-child { margin-bottom: 16px; }
.community-post__summary img { max-width: 100%; height: auto; border-radius: 12px; }
.community-post__summary a { color: #16844c; }
.community-post__leading-image {
    width: 100%;
    margin: 4px 0 16px;
    color: #626469;
    font-size: 15px;
    line-height: 1.55;
}
.community-post__leading-image p { margin: 0 0 16px; }
.community-post__leading-image > :first-child { margin-top: 0; }
.community-post__leading-image > :last-child { margin-bottom: 0; }
.community-post__leading-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #e5e6e8;
    border-radius: 13px;
    object-fit: contain;
}
.community-post__read-more {
    margin: -5px 0 16px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 0;
    color: #55585d;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.community-post__read-more svg { flex: 0 0 auto; }
.community-post__read-more.is-expanded svg { transform: rotate(180deg); }
.community-post__cover { display: block; text-decoration: none; }
.community-post__image { width: 100%; max-height: 420px; object-fit: cover; display: block; border-radius: 13px; }
.community-post__footer {
    width: 100%;
    margin: 0;
    padding: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #85878c;
    font-size: 12px;
}

.community-post-action {
    min-width: 36px;
    height: 34px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 9px;
    color: #7d7f84;
    background: #f1f2f3;
    text-decoration: none;
    font: 600 11px/1 Inter, sans-serif;
    cursor: pointer;
}

.community-post-action:hover { color: #303135; background: #e8e9eb; }
.community-post-action.is-active { color: #1f8f56; background: #e8f7ef; }
.community-post-action.is-active svg { fill: currentColor; }
.community-post-action--like.is-liked { color: #df4458; background: #fff0f2; }
.community-post-action--like.is-liked svg { fill: currentColor; }
.community-post-action--views { background: transparent; cursor: default; }
.community-post-action--views:hover { color: #7d7f84; background: transparent; }
.community-post__footer-space { flex: 1; }

.community-article { padding: 28px; }
.community-article__body { padding-top: 6px; }
.community-article .community-post__category { display: inline-block; text-decoration: none; }
.community-article h1 {
    margin: 6px 0 9px;
    color: #17181a;
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: normal;
}
.community-article__lead {
    margin: 0 0 16px;
    color: #626469;
    font-size: 15px;
    line-height: 1.55;
}
.community-article__cover-image {
    width: 100%;
    max-height: 520px;
    margin: 4px 0 26px;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}
.community-article__content {
    color: #626469;
    font-size: 15px;
    line-height: 1.55;
}
.community-article__content > :first-child { margin-top: 0; }
.community-article__content h2 { margin: 32px 0 12px; font-size: 28px; line-height: 1.2; }
.community-article__content h3 { margin: 26px 0 10px; font-size: 22px; line-height: 1.25; }
.community-article__content p { margin: 0; }
.community-article__content img { max-width: 100%; height: auto; border-radius: 12px; }
.community-article__content blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid #2cab68; color: #5d6065; }
.community-article__content a { color: #16844c; }

.community-post-share { position: relative; }

.community-post-share__menu {
    width: 205px;
    padding: 6px;
    position: absolute;
    z-index: 20;
    left: 0;
    bottom: calc(100% + 7px);
    border: 1px solid #e3e4e6;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 22, 25, .14);
}

.community-post-share__menu[hidden] { display: none; }

.community-post-share__menu button,
.community-post-share__menu a {
    width: 100%;
    min-height: 38px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    color: #3d3f43;
    background: transparent;
    text-decoration: none;
    font: 500 12px/1.3 Inter, sans-serif;
    cursor: pointer;
}

.community-post-share__menu button:hover,
.community-post-share__menu a:hover { background: #f2f3f4; }

.community-blog__right { display: grid; gap: 14px; }
.community-blog__right-create {
    min-height: 46px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e8e9eb;
    border-radius: 12px;
    color: #fff;
    background: #2c2c2c;
    text-decoration: none;
    font: 700 13px Inter, Arial, sans-serif;
}
.community-blog__right-create:hover { color: #fff; background: #111; }
.community-popular-comments {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.community-popular-comments > h3 {
    margin: 0;
    padding: 17px 18px 14px;
    border-bottom: 1px solid #ececef;
    color: #242528;
    font-size: 15px;
}

.community-popular-comments__list { display: grid; }

.community-popular-comment {
    padding: 16px 18px;
    border-bottom: 1px solid #eeeeef;
}

.community-popular-comment:last-child { border-bottom: 0; }

.community-popular-comment header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.community-popular-comment header > a {
    grid-column: 1;
    grid-row: 1;
    width: 34px;
    height: 34px;
    margin: 0;
    align-self: start;
    overflow: hidden;
    border-radius: 50%;
}

.community-popular-comment header img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-popular-comment header > div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 5px;
}

.community-popular-comment__author {
    color: #292a2d;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.community-popular-comment__author:hover { color: #111; }

.community-popular-comment header span {
    color: #a0a2a6;
    font-size: 10px;
}

.community-popular-comment__article {
    width: 100%;
    overflow: hidden;
    color: #87898e;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-popular-comment__text {
    margin-top: 10px;
    display: block;
    color: #393a3e;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
}

.community-popular-comment__text:hover { color: #111; }

.community-popular-comment__reactions {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8a8c91;
    font-size: 10px;
}

.community-popular-comment__reactions b {
    color: #e56a75;
    font-size: 13px;
}

.community-popular-comments__empty {
    padding: 22px 18px;
    color: #929499;
    font-size: 12px;
    line-height: 1.5;
}

.community-blog__info, .community-blog__rules { padding: 20px; }
.community-blog__info h3, .community-blog__rules h3 { margin: 0 0 9px; font-size: 17px; }
.community-blog__info p, .community-blog__rules li { color: #6c6e73; font-size: 13px; line-height: 1.55; }
.community-blog__info a { color: var(--blog-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.community-blog__rules ul { margin: 0; padding-left: 18px; }
.community-blog__empty { padding: 55px 24px; border-radius: 18px; background: #fff; text-align: center; }
.community-blog__empty strong { font-size: 20px; }
.community-blog__empty p { margin: 7px 0 0; color: var(--blog-muted); }
.community-blog__pagination { padding: 12px; }
.community-blog__mobile-create { display: none; }

.community-author-card {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #e8e9eb;
    border-radius: 18px;
    background: #fff;
}

.community-author-card__cover {
    height: 174px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 78% 24%, rgba(255, 255, 255, .2), transparent 25%),
        linear-gradient(125deg, #17191c, #3d4147 56%, #777d84);
}

.community-author-card__cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .16));
}

.community-author-card__cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-author-card__content {
    padding: 0 24px 21px;
    position: relative;
}

.community-author-card__avatar {
    width: 92px;
    height: 92px;
    margin-top: -47px;
    overflow: hidden;
    display: block;
    position: relative;
    z-index: 2;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #f0f1f2;
}

.community-author-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-author-card__actions {
    min-height: 45px;
    margin-top: -37px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
}

.community-author-card__actions :is(a, button) {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedfe2;
    border-radius: 10px;
    color: #45474b;
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.community-author-card__actions :is(a, button):hover { color: #111; border-color: #c9cace; }
.community-author-card__actions :is(a, button).is-primary { color: #fff; border-color: #2c2c2c; background: #2c2c2c; }
.community-author-card__actions :is(a, button).is-primary:hover { background: #111; }
.community-author-card__follow {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    color: #fff;
    background: #2c2c2c;
    font: 700 12px Inter, Arial, sans-serif;
    cursor: pointer;
}
.community-author-card__follow:hover { background: #111; }
.community-author-card__follow.is-subscribed {
    border-color: #dedfe2;
    color: #55585d;
    background: #f0f1f2;
}
.community-author-card__follow:disabled { opacity: .65; cursor: wait; }

.community-author-card__identity {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 9px;
}

.community-author-card__identity h1 {
    width: 100%;
    margin: 0;
    color: #191a1c;
    font-size: 25px;
    line-height: 1.18;
}

.community-author-card__identity > span {
    color: #8b8d91;
    font-size: 13px;
}

.community-author-card__identity > small {
    color: #707278;
    font-size: 12px;
}

.community-author-card__identity > small::before {
    margin-right: 9px;
    color: #c2c3c6;
    content: "·";
}

.community-author-card__content > p {
    max-width: 650px;
    margin: 13px 0 0;
    color: #55575c;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.community-author-card__stats {
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    color: #85878c;
    font-size: 12px;
}

.community-author-card__stats strong { color: #303135; font-size: 13px; }

.community-author-card__tabs {
    min-height: 50px;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    gap: 24px;
    border-top: 1px solid #ececef;
}

.community-author-card__tabs a {
    padding: 0 1px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-bottom: 2px solid transparent;
    color: #77797e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.community-author-card__tabs a.is-active { color: #161719; border-bottom-color: #161719; }
.community-author-card__tabs span {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: #898b90;
    background: #f0f1f2;
    font-size: 10px;
}

.community-blog--mine .blog-manage__success { margin: 0 0 14px; }
.community-post__owner-actions {
    margin-top: 13px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    border-top: 1px solid #f0f0f1;
}

.community-post__owner-actions a,
.community-post__owner-actions button {
    min-height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    color: #6d6f74;
    background: transparent;
    text-decoration: none;
    font: 600 11px Inter, sans-serif;
    cursor: pointer;
}

.community-post__owner-actions a:hover { color: #222; background: #f1f2f3; }
.community-post__owner-actions button:hover { color: #b63a46; background: #fff0f1; }
.community-blog__drafts { margin-top: 14px; }
.community-blog__drafts article { grid-template-columns: 58px minmax(0, 1fr) auto; }
.community-blog__draft-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #72757a;
    background: #f1f2f3;
}

.community-subscriptions {
    overflow: hidden;
    border: 1px solid #e8e9eb;
    border-radius: 18px;
    background: #fff;
}

.community-subscriptions__heading {
    min-height: 150px;
    padding: 26px 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.13), transparent 28%),
        linear-gradient(120deg, #181a1d, #363a40 68%, #656b72);
}

.community-subscriptions__heading span {
    color: #c7c9cd;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
}

.community-subscriptions__heading h1 {
    margin: 6px 0 5px;
    color: #fff;
    font-size: 30px;
}

.community-subscriptions__heading p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 13px;
}

.community-subscriptions__heading > a {
    min-height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.08);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.community-subscriptions__heading > a:hover { background: rgba(255,255,255,.16); }
.community-subscriptions__authors {
    padding: 14px;
    display: grid;
    gap: 1px;
}

.community-subscriptions__authors article {
    min-width: 0;
    min-height: 64px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.community-subscriptions__authors article > a {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #292a2d;
    text-decoration: none;
}

.community-subscriptions__authors img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
}

.community-subscriptions__authors a > span { min-width: 0; display: grid; gap: 3px; }
.community-subscriptions__authors strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.community-subscriptions__authors small { color: #929499; font-size: 10px; }
.community-subscriptions__authors button {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #6f7277;
    background: #f0f1f2;
    font: 650 10px Inter, sans-serif;
    cursor: pointer;
}

.community-subscriptions__tabs span {
    padding: 6px 0;
    border-bottom: 2px solid #111;
    color: #111;
    font-weight: 650;
}

.blog-editor,
.blog-manage {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.blog-editor__header,
.blog-manage > header {
    margin-bottom: 18px;
    padding: 25px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-radius: 18px;
    background: #fff;
}

.blog-editor__header a,
.blog-manage > header a:first-child { color: #777; text-decoration: none; font-size: 13px; }
.blog-editor__header h1,
.blog-manage h1 { margin: 7px 0 2px; font-size: 29px; }
.blog-editor__header p { margin: 0; color: var(--blog-muted); font-size: 14px; }
.blog-editor__actions { display: flex; gap: 9px; }
.blog-editor__actions button.is-secondary { color: #333; background: #eef0f2; }
.blog-editor__errors, .blog-manage__success { margin-bottom: 14px; padding: 14px 18px; border-radius: 12px; background: #fff0f0; color: #b22; }
.blog-manage__success { color: #167442; background: #eaf8f0; }
.blog-editor__errors p { margin: 2px 0; }

.blog-editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.blog-editor__content, .blog-editor__settings { padding: 26px; border-radius: 18px; background: #fff; }
.blog-editor__content { display: grid; gap: 22px; }
.blog-editor label { display: grid; gap: 8px; color: #36373a; font-size: 13px; font-weight: 700; }
.blog-editor input[type="text"], .blog-editor textarea, .blog-editor select {
    width: 100%;
    border: 1px solid #dedfe2;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #1d1e20;
    font: 400 15px/1.5 Inter, sans-serif;
}
.blog-editor input[type="text"], .blog-editor select { min-height: 46px; padding: 0 14px; }
.blog-editor textarea { padding: 13px 14px; resize: vertical; }
.blog-editor input:focus, .blog-editor textarea:focus, .blog-editor select:focus { border-color: #6fbc91; box-shadow: 0 0 0 3px rgba(49,173,104,.1); }
.blog-editor__settings { display: grid; gap: 18px; }
.blog-editor__settings > p { margin: -5px 0 0; color: #929499; font-size: 11px; line-height: 1.45; }
.blog-editor__cover input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.blog-editor__cover-preview { min-height: 165px; display: grid; place-items: center; align-content: center; gap: 5px; overflow: hidden; border: 1px dashed #cfd1d5; border-radius: 12px; background: #f7f8f9; cursor: pointer; }
.blog-editor__cover-preview img { width: 100%; height: 165px; object-fit: cover; }
.blog-editor__cover-preview em { color: #777; font-size: 28px; font-style: normal; }
.blog-editor__cover-preview small { color: #777; font-weight: 500; }
.blog-editor__remove { display: flex !important; grid-template-columns: auto 1fr; align-items: center; font-weight: 500 !important; }

.blog-manage > header { display: flex; }
.blog-manage > header > div { display: grid; }
.blog-manage__list { display: grid; gap: 10px; }
.blog-manage__list article { min-height: 112px; padding: 15px; display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 17px; align-items: center; border-radius: 15px; background: #fff; }
.blog-manage__list article > img { width: 140px; height: 84px; object-fit: cover; border-radius: 10px; }
.blog-manage__list h2 { margin: 5px 0; font-size: 18px; }
.blog-manage__list p { margin: 0; color: #888; font-size: 12px; }
.blog-manage__list article > div > span { padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.blog-manage__list .is-published { color: #158348; background: #e8f8ef; }
.blog-manage__list .is-draft { color: #79601b; background: #fff5d9; }
.blog-manage__actions { display: flex; align-items: center; gap: 10px; }
.blog-manage__actions a, .blog-manage__actions button { border: 0; background: none; color: #4e5156; text-decoration: none; font-size: 12px; cursor: pointer; }
.blog-manage__actions button { color: #b44; }

.blog-comments {
    margin-top: 30px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
}

.blog-comments__form { display: flex; align-items: flex-start; gap: 11px; }
.blog-comments__form > img, .blog-comment > img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; }
.blog-comments__form > div { position: relative; min-width: 0; flex: 1; }
.blog-comments__form textarea { width: 100%; padding: 11px 92px 44px 12px; border: 1px solid #dedfe2; border-radius: 10px; outline: none; resize: vertical; font: 13px/1.5 Inter, sans-serif; }
.blog-comments__form textarea:focus { border-color: #69b88c; }
.blog-comments__form button {
    position: absolute;
    right: 8px;
    bottom: 9px;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    background: #21a75f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.blog-comments__form button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.blog-comments__login { padding: 14px; display: block; border-radius: 10px; color: #4e5155; background: #f3f4f5; text-align: center; text-decoration: none; font-size: 13px; }
.blog-comments__list { margin-top: 20px; display: grid; }
.blog-comment { padding: 17px 0; display: flex; gap: 11px; border-top: 1px solid #eeeeef; scroll-margin-top: 100px; }
.blog-comment > div { min-width: 0; flex: 1; }
.blog-comment header { display: flex; align-items: baseline; gap: 7px; }
.blog-comment header strong { color: #292a2d; font-size: 13px; }
.blog-comment header time { color: #a0a2a6; font-size: 10px; }
.blog-comment p { margin: 7px 0 8px; color: #393a3e; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.blog-comment__actions { display: flex; align-items: center; gap: 5px; }
.blog-comment__actions .community-post-action { height: 32px; }
.blog-comment__reply-form { margin-top: 12px; }
.blog-comment__reply-form[hidden] { display: none; }
.blog-comment__replies { margin-top: 10px; display: grid; }
.blog-comment--reply { padding: 14px 0 4px; border-top: 1px solid #f0f0f1; }
.blog-comment--reply > img { width: 32px; height: 32px; flex-basis: 32px; }
.blog-comments__empty { padding: 25px 0 8px; color: #999; text-align: center; font-size: 13px; }

body.fiwork-blog-editor-open { overflow: hidden; }
.blog-compose-modal[hidden] { display: none !important; }

.blog-compose-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    padding: 22px;
    display: grid;
    place-items: center;
    background: rgba(18, 19, 21, .62);
    backdrop-filter: blur(8px);
}

.blog-compose {
    width: min(680px, 100%);
    max-width: 680px;
    height: min(690px, calc(100dvh - 44px));
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
    color: #202124;
    font-family: Inter, Arial, sans-serif;
}

.blog-compose.has-errors {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.blog-compose__topbar {
    min-height: 68px;
    padding: 12px 18px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #eceef0;
}
.blog-compose__heading { margin: 0 auto 0 0; color: #202124; font: 650 20px/1.25 Inter, Arial, sans-serif; }

.blog-compose__controls,
.blog-compose__actions {
    display: flex;
    align-items: center;
}

.blog-compose__topic { position: relative; width: max-content; max-width: 240px; display: inline-flex; align-items: center; gap: 3px; color: #777b80; font-size: 12px; cursor: pointer; }
.blog-compose__topic select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.blog-compose__topic span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-compose__topic svg { flex: 0 0 auto; }
.blog-compose__controls { flex: 0 0 auto; margin-left: auto; align-self: center; gap: 8px; }
.blog-compose__icon-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #55595e;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}
.blog-compose__icon-button:hover { color: #202124; background: #f1f2f3; }

.blog-compose__errors { padding: 9px 22px; color: #a62835; background: #fff1f2; font-size: 12px; }
.blog-compose__errors p { margin: 2px 0; }
.blog-compose__scroll {
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.blog-compose__scroll::-webkit-scrollbar { display: none; }
.blog-compose__canvas { width: min(600px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 28px; }
.blog-compose__media { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #c8cdd4; border-radius: 18px; background: #fafbfc; }
.blog-compose__media.is-dragging { border-color: #0088ff; background: #f1f7ff; }
.blog-compose__media > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.blog-compose__media-empty { width: 100%; min-height: 260px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; cursor: pointer; }
.blog-compose__media-empty svg { width: 48px; height: 48px; color: #7d8896; }
.blog-compose__media-empty strong { color: #303640; font-size: 20px; font-weight: 650; }
.blog-compose__media-empty > span { padding: 9px 16px; border-radius: 12px; background: #e8ebef; color: #252b33; font-size: 13px; font-weight: 650; }
.blog-compose__media-preview { width: 100%; max-height: 380px; display: grid; place-items: center; }
.blog-compose__media-preview :is(img, video) { display: block; max-width: 100%; max-height: 380px; object-fit: contain; }
.blog-compose__media-replace { position: absolute; right: 12px; top: 12px; padding: 8px 12px; border-radius: 10px; color: #fff; background: rgba(25, 31, 42, .82); font-size: 12px; font-weight: 650; cursor: pointer; }
.blog-compose__media :is([data-blog-media-empty], [data-blog-media-preview], [data-blog-media-replace])[hidden] { display: none !important; }
.blog-compose__remove-media { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: #68727d; font-size: 13px; cursor: pointer; }
.blog-compose__remove-media input { margin: 0; }

.blog-compose__title,
.blog-compose__excerpt {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: #202124;
    background: transparent;
    font-family: Inter, Arial, sans-serif;
    resize: none;
}
.blog-compose__title {
    min-height: 36px;
    overflow: hidden;
    font-size: 32px;
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.blog-compose__title::placeholder { color: #c2c4c7; }
.blog-compose__excerpt { margin-top: 15px; font-size: 16px; line-height: 1.55; }
.blog-compose__excerpt::placeholder { color: #b2b5b9; }
.blog-compose__source { display: none; }
.blog-compose__editor-shell { position: relative; margin-top: 26px; }
.blog-compose__editor-shell:has([data-blog-editor-simple]) { margin-top: 18px; }
.blog-compose__editor-shell:has([data-blog-editor-simple]) .ql-editor { min-height: 150px; padding: 8px 2px; }
.blog-compose__editor-shell .ql-toolbar.ql-snow {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid #eceef0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}
.blog-compose__editor-shell .ql-container.ql-snow { border: 0; font-family: Inter, Arial, sans-serif; }
.blog-compose__editor-shell .ql-editor { min-height: 330px; padding: 22px 2px; color: #303236; font-size: 16px; line-height: 1.75; }
.blog-compose__editor-shell .ql-editor.ql-blank::before { left: 2px; color: #b2b5b9; font-style: normal; }
.blog-compose__editor-shell .ql-editor img { max-width: 100%; border-radius: 12px; }
.blog-editor-uploading { display: none; position: absolute; right: 8px; top: 54px; padding: 7px 10px; border-radius: 8px; background: #202124; color: #fff; font-size: 11px; }
.blog-editor-shell.is-uploading .blog-editor-uploading { display: flex; align-items: center; gap: 7px; }
.blog-editor-uploading span { width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: blog-compose-spin .7s linear infinite; }
@keyframes blog-compose-spin { to { transform: rotate(360deg); } }

.blog-compose__footer {
    min-height: 72px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #eceef0;
    background: #fff;
}
.blog-compose__hint { color: #92959a; font-size: 11px; }
.blog-compose__actions { gap: 9px; }
.blog-compose__actions button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; font: 700 12px Inter, sans-serif; cursor: pointer; }
.blog-compose__actions .is-draft { color: #494d52; background: #eff1f2; }
.blog-compose__actions .is-publish { color: #fff; background: #202124; }
.blog-compose__actions button:hover { filter: brightness(.95); }

@media (max-width: 1150px) {
    .community-blog__layout { grid-template-columns: 210px minmax(0, 1fr); }
    .community-blog__right { display: none; }
}

@media (max-width: 760px) {
    .blog-compose-modal { padding: 0; }
    .blog-compose {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
    }
    .blog-compose__topbar { min-height: 64px; padding: 10px 12px; }
    .blog-compose__hint { display: none; }
    .blog-compose__canvas { width: calc(100% - 30px); padding: 28px 0 46px; }
    .blog-compose__media, .blog-compose__media-empty { min-height: 210px; }
    .blog-compose__title { font-size: 32px; }
    .blog-compose__excerpt,
    .blog-compose__editor-shell .ql-editor { font-size: 15px; }
    .blog-compose__editor-shell .ql-toolbar.ql-snow { margin-inline: -7px; overflow-x: auto; white-space: nowrap; }
    .blog-compose__footer { min-height: 68px; padding: 10px 12px; justify-content: flex-end; }
    .blog-compose__actions { width: 100%; }
    .blog-compose__actions button { flex: 1; padding-inline: 10px; }
    .community-blog, .blog-editor-page, .blog-manage-page { padding: 14px 10px 42px; }
    .community-blog__mobile-create {
        width: 100%;
        min-height: 46px;
        margin: 0 0 12px;
        padding: 0 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #e8e9eb;
        border-radius: 12px;
        color: #fff;
        background: #2c2c2c;
        font: 700 13px Inter, Arial, sans-serif;
        text-decoration: none;
    }
    .community-blog__mobile-create:active { transform: translateY(1px); }
    .community-blog__layout { display: block; }
    .community-blog__aside { position: static; }
    .community-blog__brand, .community-blog__topics { display: none; }
    .community-blog__nav { margin-bottom: 12px; display: flex; overflow-x: auto; }
    .community-blog__nav a { white-space: nowrap; }
    .community-blog__header { min-height: 170px; padding: 22px; align-items: flex-start; flex-direction: column; }
    .community-digest__bar { padding: 10px 12px; align-items: stretch; flex-direction: column; gap: 9px; }
    .community-digest__date { justify-content: space-between; }
    .community-digest__date > label { flex: 1; }
    .community-digest__rates { padding: 0 4px 4px; justify-content: space-between; gap: 8px; overflow-x: auto; }
    .community-digest__popular { padding: 13px; }
    .community-blog__create { width: 100%; }
    .community-post { padding: 17px; border-radius: 15px; }
    .community-author-card { border-radius: 15px; }
    .community-author-card__cover { height: 120px; }
    .community-author-card__content { padding: 0 17px 18px; }
    .community-author-card__avatar { width: 76px; height: 76px; margin-top: -39px; border-width: 3px; }
    .community-author-card__actions { min-height: 38px; margin-top: -30px; gap: 6px; }
    .community-author-card__actions :is(a, button) { min-height: 34px; padding: 0 10px; font-size: 11px; }
    .community-author-card__identity { margin-top: 12px; }
    .community-author-card__identity h1 { font-size: 21px; }
    .community-author-card__stats { gap: 8px 14px; }
    .community-author-card__tabs { padding: 0 17px; gap: 20px; }
    .community-subscriptions { border-radius: 15px; }
    .community-subscriptions__heading { min-height: 142px; padding: 21px 18px; align-items: flex-start; flex-direction: column; }
    .community-subscriptions__heading h1 { font-size: 25px; }
    .community-subscriptions__heading > a { width: 100%; justify-content: center; }
    .community-subscriptions__authors { padding: 10px; }
    .community-post__author { flex-wrap: wrap; }
    .community-post__subscribe { margin-left: 48px; }
    .community-article { padding: 18px; }
    .community-article h1 { font-size: 21px; }
    .blog-editor__header, .blog-manage > header { align-items: stretch; flex-direction: column; padding: 20px; }
    .blog-editor__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .blog-editor__grid { grid-template-columns: 1fr; }
    .blog-editor__content, .blog-editor__settings { padding: 19px; }
    .blog-manage__list article,
    .community-blog__drafts article { grid-template-columns: 58px minmax(0, 1fr); }
    .blog-manage__list article > img { width: 76px; height: 76px; }
    .blog-manage__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
