body.public-mode.posts-page .content-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.posts-shell,
.post-detail-shell,
.post-form-shell {
    display: grid;
    gap: 24px;
}

.posts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.posts-head h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.posts-head p {
    max-width: 720px;
    margin: 6px 0 0;
    color: #aeb9c9;
}

.posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(0, 640px) minmax(220px, 280px);
    justify-content: center;
    gap: 18px;
    align-items: start;
}

.community-feed {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.community-sidebar {
    display: grid;
    gap: 16px;
}

.community-panel,
.community-composer {
    background: #262736;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.community-panel {
    padding: 14px;
}

.community-panel h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.community-list {
    display: grid;
    gap: 6px;
}

.community-person,
.community-group,
.community-news,
.community-composer,
.community-composer-prompt {
    color: #f5f7fb;
}

.community-person,
.community-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
}

.community-person:hover,
.community-group:hover,
.community-news:hover,
.community-composer:hover {
    background: rgba(255, 255, 255, 0.05);
}

.community-avatar,
.community-group img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #c64d8d, #4f7ee8);
    color: white;
    font-weight: 800;
}

.community-avatar img,
.community-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-item-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.community-item-copy strong,
.community-news strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-item-copy small,
.community-news small,
.community-muted {
    color: #9eabba;
    font-size: 0.82rem;
}

.community-news {
    display: grid;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 8px;
}

.community-news small {
    line-height: 1.35;
}

.community-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.community-composer-prompt {
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 999px;
    background: #1a1b29;
    color: #aeb9c9;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.community-composer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.community-composer-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4f9fff;
    font: inherit;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
}

.community-composer-actions button:hover,
.community-composer-prompt:hover {
    background: rgba(255, 255, 255, 0.07);
}

.community-composer-actions button:nth-child(1) span:first-child {
    color: #45bd76;
}

.community-composer-actions button:nth-child(2) span:first-child {
    color: #ffb84d;
}

.post-create-modal[hidden] {
    display: none;
}

.post-create-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.post-create-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.post-create-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #242531;
    color: #f5f7fb;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.post-create-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: 0 -16px;
    padding: 0 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #242531;
}

.post-create-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.post-create-close {
    position: absolute;
    right: 14px;
    top: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #c8d1df;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.post-create-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-create-author strong,
.post-create-author small {
    display: block;
}

.post-create-author small {
    color: #aeb9c9;
    font-size: 0.82rem;
}

.post-create-title {
    display: grid;
    gap: 6px;
}

.post-create-title span {
    color: #aeb9c9;
    font-size: 0.84rem;
    font-weight: 800;
}

.post-create-title input,
.post-create-dialog textarea {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #181925;
    color: #f5f7fb;
    font: inherit;
}

.post-create-title input {
    padding: 12px 14px;
}

.post-create-dialog textarea {
    min-height: 130px;
    padding: 14px 0;
    background: transparent;
    font-size: 1.2rem;
    resize: vertical;
}

.post-create-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.post-create-preview {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #12131f;
}

.post-create-preview img {
    display: block;
    width: 100%;
    max-height: 52vh;
    object-fit: contain;
}

.post-create-preview video {
    display: block;
    width: 100%;
    max-height: 52vh;
    background: #050713;
}

.post-create-preview [hidden] {
    display: none !important;
}

.post-create-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    max-height: 52vh;
    overflow: auto;
}

.post-create-preview-grid[data-count="1"] {
    grid-template-columns: 1fr;
}

.post-create-preview-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-create-preview-grid[data-count="1"] img {
    height: auto;
    max-height: 52vh;
    object-fit: contain;
}

.post-media-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 2px;
    overflow: hidden;
    margin: 0 -20px;
    background: #11131c;
}

.post-media-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #0c0e17;
}

.post-media-gallery__item img,
.post-media-gallery__item video,
.post-media-gallery__item .post-premium-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-media-gallery--count-1 {
    display: block;
    background: transparent;
}

.post-media-gallery--count-1 .post-media-gallery__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.post-media-gallery--count-1 .post-media-gallery__item--landscape,
.post-media-gallery--count-1 .post-media-gallery__item--square {
    background: transparent;
}

.post-media-gallery--count-1 .post-media-gallery__item--landscape img,
.post-media-gallery--count-1 .post-media-gallery__item--square img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.post-media-gallery--count-1 .post-media-gallery__item--portrait {
    height: min(72vh, 720px);
}

.post-media-gallery--count-1 .post-media-gallery__item--portrait img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-media-gallery--count-1 .post-media-gallery__item--unknown img,
.post-media-gallery--count-1 .post-media-gallery__item video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(72vh, 720px);
    object-fit: contain;
}

.post-media-gallery--count-1 .post-premium-placeholder {
    width: 100%;
    min-height: 280px;
}

.post-media-gallery--count-3 .post-media-gallery__item--1,
.post-media-gallery--count-4 .post-media-gallery__item--1,
.post-media-gallery--count-5 .post-media-gallery__item--1,
.post-media-gallery--count-6 .post-media-gallery__item--1,
.post-media-gallery--count-7 .post-media-gallery__item--1,
.post-media-gallery--count-8 .post-media-gallery__item--1,
.post-media-gallery--count-9 .post-media-gallery__item--1,
.post-media-gallery--count-10 .post-media-gallery__item--1 {
    grid-row: span 2;
}

.post-media-gallery__more,
.post-media-gallery__premium {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 12, .58);
    color: #fff;
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 800;
}

.post-media-gallery__premium {
    inset: auto 10px 10px auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 10, 18, .78);
    font-size: .8rem;
}

@media (max-width: 640px) {
    .post-media-gallery { margin-inline: -14px; grid-auto-rows: 170px; }
    .post-media-gallery--count-1 .post-media-gallery__item--portrait { height: min(68vh, 620px); }
    .post-create-preview-grid img { height: 160px; }
}

.post-create-preview span {
    display: block;
    padding: 8px 10px;
    color: #aeb9c9;
    font-size: .86rem;
}

.post-create-preview button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
}

.post-create-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.post-create-premium {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(120px, 160px);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(38, 135, 255, 0.32);
    border-radius: 8px;
    background: rgba(38, 135, 255, 0.08);
    color: #f5f7fb;
    font-weight: 900;
}

.post-create-premium input[type="number"] {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: #151823;
    color: #f5f7fb;
    padding: 7px 9px;
    font: inherit;
}

.post-create-tools span {
    flex: 1;
    min-width: 0;
    font-weight: 800;
}

.post-create-tools button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #c8d1df;
    font-size: 1.1rem;
    cursor: pointer;
}

.post-create-tools button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.post-create-submit {
    width: 100%;
}

body.post-modal-open {
    overflow: hidden;
}

.post-card,
.post-form-card,
.post-detail-main,
.post-comments-panel {
    background: #262736;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.post-card {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.post-card-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0;
    color: #f5f7fb;
}

.post-card-menu {
    position: relative;
    flex: 0 0 auto;
}

.post-card-menu summary {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    list-style: none;
    border-radius: 50%;
    color: #aeb9c9;
    cursor: pointer;
    font-weight: 900;
}

.post-card-menu summary::-webkit-details-marker {
    display: none;
}

.post-card-menu summary:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f5f7fb;
}

.post-card-menu-popover {
    position: absolute;
    right: 0;
    top: 42px;
    z-index: 6;
    min-width: 170px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #181925;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.post-card-menu-popover button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #ff6b7f;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.post-card-menu-popover button:hover {
    background: rgba(255, 72, 100, 0.12);
}

.post-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #c64d8d, #4f7ee8);
    color: white;
    font-weight: 800;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-avatar-sm {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.post-author strong,
.post-author small {
    display: block;
}

.post-author small,
.post-stats {
    color: #9eabba;
}

.post-stat-link {
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.post-stat-link:hover {
    text-decoration: underline;
}

html.post-discussion-is-open {
    overflow: hidden;
}

.post-discussion-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: grid;
    place-items: center;
    padding: 22px;
}

.post-discussion-modal[hidden] {
    display: none;
}

.post-discussion-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 12, 0.82);
    backdrop-filter: blur(7px);
}

.post-discussion-dialog {
    position: relative;
    width: min(1180px, 100%);
    height: min(820px, calc(100dvh - 44px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #f2f6fb;
    background: #1d1e2b;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
}

.post-discussion-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(18, 19, 30, 0.8);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.post-discussion-content,
.post-discussion-layout {
    height: 100%;
    min-height: 0;
}

.post-discussion-dialog:has(.post-discussion-layout.no-media) {
    width: min(720px, 100%);
    height: auto;
    max-height: calc(100dvh - 44px);
}

.post-discussion-content:has(.post-discussion-layout.no-media),
.post-discussion-layout.no-media {
    height: auto;
    max-height: calc(100dvh - 44px);
}

.post-discussion-layout.no-media {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
}

.post-discussion-layout.no-media .post-discussion-post {
    overflow: visible;
    background: #20212e;
}

.post-discussion-layout.no-media .post-discussion-thread {
    max-height: min(66dvh, 680px);
    overflow: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
}

.post-discussion-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.8fr);
}

.post-discussion-post,
.post-discussion-thread {
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.post-discussion-post {
    background: #0c0d15;
}

.post-discussion-author,
.post-discussion-copy {
    padding: 16px 20px;
    background: #20212e;
}

.post-discussion-copy:empty,
.post-discussion-media:empty {
    display: none;
}

.post-discussion-media .post-media-gallery {
    margin: 0;
    border-radius: 0;
}

.post-discussion-media .post-media-gallery--count-1 .post-media-gallery__item {
    max-height: none;
    height: auto;
    min-height: 300px;
}

.post-discussion-thread {
    padding: 0 18px 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    background: #242531;
}

.post-discussion-thread-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 -18px 18px;
    padding: 18px 62px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #242531;
}

.post-discussion-thread-head div {
    display: grid;
    gap: 3px;
}

.post-discussion-thread-head strong {
    font-size: 1.12rem;
}

.post-discussion-thread-head span,
.post-discussion-thread-head a {
    color: #aeb9ca;
    font-size: 0.82rem;
}

.post-discussion-loading,
.post-discussion-error {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    height: 100%;
    padding: 30px;
    color: #aeb9ca;
}

.post-discussion-error button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: white;
    background: #e94f37;
    cursor: pointer;
    font-weight: 800;
}

.post-card-body {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.post-card-body h2 {
    margin: 0;
    font-size: 1.15rem;
}

.post-card-body p {
    margin: 0;
    color: #c8d1df;
    line-height: 1.45;
}

.post-text {
    min-width: 0;
}

.post-text-content {
    white-space: normal;
    overflow-wrap: anywhere;
}

.post-text.is-collapsible .post-text-content.is-collapsed {
    max-height: 8.7em;
    overflow: hidden;
}

.post-text-toggle {
    margin-top: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.post-text-toggle:hover {
    text-decoration: underline;
}

.post-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 6px;
}

.post-premium-frame,
.post-media {
    position: relative;
}

.post-premium-frame.is-locked {
    margin-right: -16px;
    margin-bottom: -16px;
    margin-left: -16px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.post-media.is-locked {
    margin-right: -20px;
    margin-bottom: -20px;
    margin-left: -20px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.post-premium-frame.is-locked .post-cover,
.post-media.is-locked img,
.post-media.is-locked video {
    filter: saturate(0.98) brightness(1.03);
    transform: none;
}

.post-premium-frame.is-locked .post-cover {
    display: block;
    width: 100%;
    height: 420px;
    max-height: none;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.post-media.is-locked img,
.post-media.is-locked video {
    width: 100%;
    height: min(620px, 72vh);
    max-height: none;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.post-premium-placeholder {
    display: block;
    width: 100%;
    min-height: 360px;
    border-radius: 6px;
    background:
        radial-gradient(circle at 25% 30%, rgba(168, 63, 125, .65), transparent 36%),
        radial-gradient(circle at 72% 62%, rgba(54, 84, 151, .72), transparent 42%),
        #231d31;
}

.post-premium-lock {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 4px;
    border-radius: 0;
    background: rgba(7, 9, 20, .10);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .82);
    pointer-events: auto;
}

.post-premium-lock strong,
.post-premium-lock small {
    display: block;
}

.post-premium-lock form {
    margin-top: 10px;
}

.post-premium-lock .btn {
    min-height: 38px;
    padding: 8px 16px;
    border: 0;
    color: #fff;
    background: #e94b35;
    cursor: pointer;
}

.post-premium-lock strong {
    font-size: 1.05rem;
}

.post-premium-lock small {
    color: #bfdbfe;
    font-weight: 900;
}

.post-premium-detail-link {
    justify-self: center;
    margin-top: 5px;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
    font-size: .84rem;
    font-weight: 750;
    text-decoration: none;
}

.post-premium-detail-link:hover {
    border-bottom-color: #fff;
}

.post-stats {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.post-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-actions form {
    margin: 0;
}

.post-actions button,
.post-actions a {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c8d1df;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.post-action-icon {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    font-size: 1rem;
    line-height: 1;
}

.post-actions button:hover,
.post-actions a:hover {
    background: rgba(255, 255, 255, 0.07);
}

.post-actions .is-liked {
    color: #4f9fff;
}

.post-inline-comment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 14px;
}

.post-inline-comment[hidden] {
    display: none !important;
}

.post-inline-comment input {
    width: 100%;
    min-height: 38px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: #181925;
    color: #f5f7fb;
    font: inherit;
}

.post-inline-comment button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #e94f37;
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.post-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.post-detail-main {
    padding: 20px;
}

.post-detail-main h1 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.post-body {
    color: #d9e2ef;
    line-height: 1.62;
}

.post-media {
    margin: 18px 0 0;
}

.post-media img,
.post-media video {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 6px;
    background: #10111c;
}

.post-media figcaption {
    margin-top: 8px;
    color: #aeb9c9;
}

.post-comments-panel {
    padding: 0;
    overflow: hidden;
}

.post-comments-panel .cm-comments-thread {
    border: 0;
    background: transparent;
}

.post-form-card {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.post-form-card label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.post-form-card input,
.post-form-card textarea,
.post-form-card select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #161724;
    color: #f5f7fb;
    font: inherit;
}

.post-form-card textarea {
    resize: vertical;
}

.post-form-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.public-mode.color-mode-light .posts-head,
body.public-mode.color-mode-light .post-detail-head {
    border-color: rgba(24, 32, 50, 0.12);
}

body.public-mode.color-mode-light .posts-head p,
body.public-mode.color-mode-light .post-author small,
body.public-mode.color-mode-light .post-stats,
body.public-mode.color-mode-light .post-card-body p,
body.public-mode.color-mode-light .post-media figcaption {
    color: #627087;
}

body.public-mode.color-mode-light .post-card,
body.public-mode.color-mode-light .post-form-card,
body.public-mode.color-mode-light .post-detail-main,
body.public-mode.color-mode-light .post-comments-panel,
body.public-mode.color-mode-light .community-panel,
body.public-mode.color-mode-light .community-composer {
    background: #ffffff;
    border-color: rgba(24, 32, 50, 0.12);
}

body.public-mode.color-mode-light .community-person,
body.public-mode.color-mode-light .community-group,
body.public-mode.color-mode-light .community-news,
body.public-mode.color-mode-light .community-composer,
body.public-mode.color-mode-light .community-composer-prompt {
    color: #182032;
}

body.public-mode.color-mode-light .community-person:hover,
body.public-mode.color-mode-light .community-group:hover,
body.public-mode.color-mode-light .community-news:hover,
body.public-mode.color-mode-light .community-composer:hover {
    background: rgba(24, 32, 50, 0.05);
}

body.public-mode.color-mode-light .community-composer-prompt {
    background: #f4f6fb;
    color: #627087;
}

body.public-mode.color-mode-light .community-composer-actions {
    border-color: rgba(24, 32, 50, 0.1);
}

body.public-mode.color-mode-light .community-composer-actions button {
    color: #4a5870;
}

body.public-mode.color-mode-light .post-create-dialog,
body.public-mode.color-mode-light .post-create-header {
    background: #ffffff;
    color: #182032;
}

body.public-mode.color-mode-light .post-create-dialog {
    border-color: rgba(24, 32, 50, 0.14);
}

body.public-mode.color-mode-light .post-create-title input,
body.public-mode.color-mode-light .post-create-dialog textarea {
    background: #f4f6fb;
    color: #182032;
}

body.public-mode.color-mode-light .post-create-dialog textarea {
    background: transparent;
}

body.public-mode.color-mode-light .post-create-tools {
    border-color: rgba(24, 32, 50, 0.14);
}

body.public-mode.color-mode-light .post-card-menu summary {
    color: #627087;
}

body.public-mode.color-mode-light .post-card-menu summary:hover,
body.public-mode.color-mode-light .post-actions button:hover,
body.public-mode.color-mode-light .post-actions a:hover {
    background: rgba(24, 32, 50, 0.06);
}

body.public-mode.color-mode-light .post-card-menu-popover {
    background: #ffffff;
    border-color: rgba(24, 32, 50, 0.12);
}

body.public-mode.color-mode-light .post-actions button,
body.public-mode.color-mode-light .post-actions a {
    color: #4a5870;
}

body.public-mode.color-mode-light .post-actions .is-liked {
    color: #1976f3;
}

body.public-mode.color-mode-light .post-inline-comment input {
    background: #f4f6fb;
    color: #182032;
}

body.public-mode.color-mode-light .post-discussion-dialog {
    color: #182032;
    border-color: rgba(24, 32, 50, 0.16);
    background: #fff;
}

body.public-mode.color-mode-light .post-discussion-post {
    background: #eef1f6;
}

body.public-mode.color-mode-light .post-discussion-author,
body.public-mode.color-mode-light .post-discussion-copy,
body.public-mode.color-mode-light .post-discussion-thread,
body.public-mode.color-mode-light .post-discussion-thread-head {
    background: #fff;
}

body.public-mode.color-mode-light .post-discussion-thread,
body.public-mode.color-mode-light .post-discussion-thread-head {
    border-color: rgba(24, 32, 50, 0.12);
}

@media (max-width: 820px) {
    .post-discussion-modal { padding: 0; }
    .post-discussion-dialog { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
    .post-discussion-layout { grid-template-columns: 1fr; grid-template-rows: minmax(32dvh, auto) minmax(0, 1fr); overflow: auto; }
    .post-discussion-post { overflow: visible; }
    .post-discussion-thread { overflow: visible; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
}

body.public-mode.color-mode-light .community-item-copy small,
body.public-mode.color-mode-light .community-news small,
body.public-mode.color-mode-light .community-muted {
    color: #627087;
}

body.public-mode.color-mode-light .post-body {
    color: #253047;
}

body.public-mode.color-mode-light .post-form-card input,
body.public-mode.color-mode-light .post-form-card textarea,
body.public-mode.color-mode-light .post-form-card select {
    background: #f4f6fb;
    border-color: rgba(24, 32, 50, 0.14);
    color: #182032;
}

@media (max-width: 1080px) {
    .community-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-feed {
        order: 1;
    }

    .community-sidebar-left {
        order: 2;
    }

    .community-sidebar-right {
        order: 3;
    }

    .community-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}

@media (max-width: 860px) {
    .posts-head,
    .post-detail-head {
        align-items: stretch;
        flex-direction: column;
    }

    .posts-list,
    .post-detail-grid,
    .post-form-media {
        grid-template-columns: 1fr;
    }
}
