.board-page {
    min-height:100vh;
    padding:16px 12px;
    background: var(--sc-page-bg);
}

.board-menu {
    position: relative;
    display:grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items:center;
    gap: 12px;
    margin-bottom:14px;
}

.board-menu .board-home-area {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: auto;
    justify-content: flex-start;
}

.board-page .board-menu .board-home-area {
    display:flex;
    align-items: center;
    flex-wrap: wrap;
    gap:8px;
    min-width: 0;
}

.board-page .board-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 42px;
    border:none;
    background: var(--sc-card-bg);
    border-radius: var(--sc-radius-sm);
    padding: 0 14px;
    font-size:15px;
    font-weight:700;
    white-space: nowrap;
    cursor:pointer;
}

.blue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border:none;
    border-radius:999px;
    background: var(--sc-purple);
    color:white;
    font-weight:700;
    padding:0 18px;
    font-size:14px;
    justify-self: end;
    white-space: nowrap;
    cursor:pointer;
}

.blue-btn:hover {
    background:#7c3aed;
    transition:.2s;
}

.post-list-card {
    min-height: calc(100vh - 220px);
    background: var(--sc-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    padding: 20px 24px;
    box-shadow: var(--sc-shadow);
}

.post-list-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.post-list-top h2 {
    margin: 0;
    color: var(--sc-text);
    font-size: 22px;
    font-weight: var(--sc-font-heavy);
}

.board-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items:center;
    gap: 8px;
    margin-bottom: 12px;
}

.board-date-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.board-search,
.board-date {
    height: 36px;
    border: 1px solid #d2d8e2;
    border-radius: var(--sc-radius-sm);
    background: rgba(255,255,255,.92);
    color: var(--sc-accent-strong);
    font-size: 15px;
    font-weight: 800;
    padding: 0 8px;
}

.board-search {
    width: min(340px, 100%);
}

.board-date {
    width: 142px;
}

.board-filter-btn {
    height: 36px;
    border: 0;
    border-radius: var(--sc-radius-sm);
    background: var(--sc-accent-strong);
    color: white;
    font-size: 14px;
    font-weight: var(--sc-font-heavy);
    padding: 0 18px;
    cursor: pointer;
}

.post-list {
    min-height: calc(100vh - 330px);
    border-top: 1px solid #d8dee9;
}

.post-row {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: stretch;
    border: 0;
    border-bottom: 1px solid #d8dee9;
    border-radius: 0;
    background: transparent;
    padding: 8px 0 7px;
    margin: 0;
    cursor: pointer;
    text-align: left;
    transition: background-color .15s ease;
}

.post-row:hover {
    background: rgba(255, 255, 255, .42);
}

.post-main {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 5px;
}

.post-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.post-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 29px;
    border: 1px solid #a7e3c5;
    border-radius: 999px;
    background: #dff7eb;
    color: #12995c;
    font-size: 13px;
    font-weight: var(--sc-font-heavy);
}

.post-secret {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.post-title-private {
    color: #64748b;
    opacity: .78;
}

.post-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #344054;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-comment-count {
    flex: 0 0 auto;
    color: #475569;
    font-size: 16px;
    font-weight: var(--sc-font-heavy);
    white-space: nowrap;
}

.post-comment-icon {
    position: relative;
    flex: 0 0 auto;
    width: 15px;
    height: 11px;
    margin-left: 2px;
    border: 1px solid #c9b7ed;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 20%, #eadffc 100%);
}

.post-comment-icon::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    width: 5px;
    height: 5px;
    border-right: 1px solid #c9b7ed;
    transform: rotate(28deg);
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-writer,
.post-created-at {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.post-created-at {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.post-row.empty {
    color: var(--sc-accent);
    font-weight: var(--sc-font-heavy);
    cursor: default;
    padding-inline: 4px;
}

.write-modal-backdrop {
    z-index: 1000;
    overflow-y: auto;
    background: rgba(15,23,42,.34);
    padding: 22px;
}

.write-modal {
    width: min(920px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    background: var(--sc-page-bg);
    color: var(--sc-text);
    padding: 24px;
    box-shadow: var(--sc-shadow-strong);
}

.write-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.write-modal-header h2 {
    margin: 0;
    color: var(--sc-text);
    font-size: 20px;
    font-weight: var(--sc-font-heavy);
}

.write-modal-header button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    color: var(--sc-muted);
    font-size: 24px;
    cursor: pointer;
}

.write-title-card,
.write-editor-card,
.write-options-card {
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    background: var(--sc-card-bg);
    backdrop-filter: blur(20px);
    padding: 18px 22px;
    margin-bottom: 12px;
    box-shadow: var(--sc-shadow);
}

.write-title-card {
    margin-bottom: 0;
    border-bottom: 0;
    border-radius: var(--sc-radius) var(--sc-radius) 0 0;
    padding: 20px 28px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.03);
}

.write-editor-card {
    border-top: 0;
    border-radius: 0 0 var(--sc-radius) var(--sc-radius);
    padding: 0 28px 18px;
}

.write-board-row {
    display: block;
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: var(--sc-font-heavy);
    margin-bottom: 20px;
}

.write-board-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 999px;
    background: rgba(37,99,235,.07);
    color: var(--sc-accent);
    padding: 0 10px;
}

.option-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 800;
}

.write-title-input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--sc-text);
    background: transparent;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--sc-line);
}

.write-title-input::placeholder,
.write-content-input::placeholder {
    color: #9ca3af;
}

.write-secret-option {
    display: grid;
    gap: 10px;
    padding: 14px 0 18px;
}

.write-secret-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.write-secret-option small {
    color: #64748b;
    font-size: 12px;
}

.media-tools {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.media-tools {
    justify-content: flex-end;
    min-height: 58px;
    margin-bottom: 0;
}

.media-tools label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--sc-muted);
    font-size: 12px;
    font-weight: 800;
    padding: 0 8px;
    cursor: pointer;
}

.media-tools label:hover {
    border-color: rgba(37,99,235,.18);
    background: rgba(255,255,255,.66);
    color: var(--sc-accent);
}

.media-tools svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.media-tools small {
    color: #94a3b8;
    font-size: 11px;
}

.media-tools input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.media-tools label.disabled {
    opacity: .5;
    cursor: not-allowed;
}

.upload-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: var(--sc-font-heavy);
}

.upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(37,99,235,.25);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: upload-spin .7s linear infinite;
}

@keyframes upload-spin {
    to { transform: rotate(360deg); }
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    gap: 10px;
    margin: 4px 0 14px;
}

.image-preview-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--sc-line);
    border-radius: 10px;
    background: #f8fafc;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-preview-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0f172a;
}

.image-preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(15,23,42,.78);
    color: white;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.preview-images {
    max-width: 620px;
}

.write-content-input {
    width: 100%;
    min-height: 310px;
    border: 0;
    outline: 0;
    resize: vertical;
    color: var(--sc-text);
    font-family: inherit;
    background: transparent;
    font-size: 16px;
    line-height: 1.8;
    padding: 20px 0 24px;
}

.write-count-row {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--sc-line);
    color: var(--sc-muted);
    font-size: 13px;
    padding-top: 12px;
}

.write-count-row strong {
    color: var(--sc-accent);
}

.option-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 36px;
    color: var(--sc-muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.option-row strong {
    min-width: 78px;
    color: var(--sc-text);
    font-weight: var(--sc-font-heavy);
}

.option-row input[type="text"],
.option-row > input {
    flex: 1;
    min-width: 240px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sc-text);
}

.radio-row {
    border-top: 1px solid var(--sc-line);
    padding-top: 8px;
    margin-top: 8px;
}

.write-notice {
    color: var(--sc-muted);
    font-size: 12px;
    line-height: 1.6;
    margin: 18px 4px;
}

.write-notice p {
    margin: 0 0 4px;
}

.write-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.write-modal-footer > div {
    display: flex;
    gap: 8px;
}

.preview-btn,
.draft-btn,
.submit-btn {
    height: 38px;
    border-radius: 10px;
    font-weight: var(--sc-font-heavy);
    padding: 0 16px;
    cursor: pointer;
}

.submit-btn:disabled {
    opacity: .55;
    cursor: wait;
}

@media (max-width: 640px) {
    .image-preview-grid {
        grid-template-columns: repeat(3, minmax(72px, 1fr));
    }
}

.preview-btn,
.draft-btn {
    border: 1px solid #d1d5db;
    background: rgba(255,255,255,.8);
    color: var(--sc-muted);
}

.submit-btn {
    border: 0;
    background: var(--sc-accent-strong);
    color: white;
}

.write-message {
    margin-top: 12px;
    color: var(--sc-accent);
    font-size: 13px;
    font-weight: var(--sc-font-heavy);
    text-align: right;
}

.confirm-backdrop,
.preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.34);
    padding: 20px;
}

.confirm-box,
.preview-modal {
    width: min(560px, 100%);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--sc-radius);
    background: var(--sc-card-bg-strong);
    box-shadow: var(--sc-shadow-strong);
    padding: 22px;
}

.confirm-box p {
    margin: 0 0 18px;
    color: var(--sc-text);
    font-size: 18px;
    font-weight: var(--sc-font-heavy);
}

.confirm-box > div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.confirm-box button,
.preview-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--sc-accent-strong);
    color: white;
    font-weight: var(--sc-font-heavy);
    padding: 0 16px;
    cursor: pointer;
}

.preview-modal {
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--sc-radius);
    background: var(--sc-card-bg-strong);
    box-shadow: var(--sc-shadow);
    padding: 16px 22px;
}

.preview-header h2 {
    margin: 0;
    color: var(--sc-text);
    font-size: 20px;
    font-weight: var(--sc-font-black);
}

.preview-header button {
    width: 44px;
    padding: 0;
}

.preview-article {
    border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--sc-radius);
    background: var(--sc-card-bg-strong);
    box-shadow: var(--sc-shadow);
    padding: 28px;
}

.preview-article h1 {
    margin: 0 0 20px;
    color: var(--sc-accent-strong);
    font-size: 38px;
    font-weight: var(--sc-font-black);
    line-height: 1.15;
}

.preview-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.preview-author-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.preview-avatar {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #c4b5fd);
    color: var(--sc-accent-strong);
    font-size: 20px;
    font-weight: var(--sc-font-black);
}

.preview-author-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sc-text);
    font-size: 18px;
    font-weight: var(--sc-font-black);
}

.preview-author-name span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    border-radius: 999px;
    background: var(--sc-purple);
    color: white;
    font-size: 12px;
    font-weight: var(--sc-font-heavy);
    padding: 0 7px;
}

.preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sc-muted);
    font-size: 14px;
    font-weight: 800;
    margin-top: 6px;
}

.preview-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.preview-actions-row button {
    min-width: 80px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: rgba(255,255,255,.72);
    color: var(--sc-text);
    font-size: 15px;
    font-weight: var(--sc-font-heavy);
    cursor: default;
}

.preview-actions-row .preview-delete-btn {
    border-color: rgba(239,68,68,.32);
    color: var(--sc-danger);
}

.preview-article hr {
    border: 0;
    border-top: 1px solid var(--sc-line);
    margin: 0 0 28px;
}

.preview-content {
    min-height: 84px;
    color: var(--sc-text);
    font-size: 17px;
    line-height: 1.9;
    font-weight: 700;
}

.preview-content p {
    margin: 0 0 12px;
}

.preview-attachment-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.preview-attachment-note span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: #475569;
    font-size: 13px;
    font-weight: var(--sc-font-heavy);
    padding: 0 14px;
}

.preview-attachment-note span:first-child {
    color: var(--sc-text);
}

@media (max-width: 820px) {
    .board-menu {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 5px;
        min-height: 34px;
    }

    .board-page .board-menu .board-home-area {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .board-page .board-home-button {
        min-width: 82px;
        height: 42px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 12px;
    }

    .board-menu .board-home-area {
        width: auto;
        justify-content: flex-start;
    }

    .blue-btn {
        min-height: 34px;
        padding: 0 10px;
        font-size: 11px;
    }

    .post-list-card {
        min-height: calc(100vh - 210px);
        padding: 16px;
    }

    .board-filter {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .board-search {
        width: 100%;
    }

    .post-title {
        font-size:16px;
    }

    .post-writer,
    .post-created-at {
        font-size:12px;
    }

    .post-comment-count {
        font-size: 17px;
    }

    .post-status {
        min-width: 48px;
        height: 26px;
        font-size: 12px;
    }

    .post-row {
        min-height: 58px;
        padding: 7px 0 6px;
    }

    .post-main {
        gap: 4px;
    }

    .preview-article {
        padding: 20px;
    }

    .preview-article h1 {
        font-size: 30px;
    }

    .preview-info-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .preview-actions-row {
        width: 100%;
        gap: 8px;
    }

    .preview-actions-row button {
        flex: 1;
        min-width: 0;
    }

    .write-modal-backdrop {
        padding: 12px;
    }

    .write-modal {
        padding: 16px;
    }

    .write-title-card,
    .write-editor-card {
        padding-inline: 18px;
    }

    .write-title-input {
        font-size: 26px;
    }

    .media-tools {
        justify-content: flex-start;
        padding-block: 8px;
    }

    .write-board-row,
    .write-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .write-content-input {
        min-height: 240px;
    }
}

.post-comment-view {
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.post-comment-view svg {
    width: 17px;
    height: 17px;
}

.post-comment-chevron {
    font-size: 17px;
}

/* Use a drawn chevron so its position does not depend on the system font glyph. */
.post-comment-view .post-comment-chevron {
    position: relative;
    display: inline-flex;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin: 0;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: none;
    transform-origin: center;
}

.post-comment-view .post-comment-chevron::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.post-accordion-item.expanded .post-comment-view .post-comment-chevron {
    transform: rotate(180deg);
}

/* Compact filters and a light liquid-glass finish for feed cards. */
.post-list-card {
    padding-top: 9px;
    padding-bottom: 12px;
}

.board-filter {
    margin-bottom: 6px;
}

.post-list {
    background:
        radial-gradient(circle at 8% 0%, rgba(99, 102, 241, .075), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(56, 189, 248, .065), transparent 28%),
        linear-gradient(145deg, #f7f9fd 0%, #f4f7fb 100%);
}

.post-accordion-item,
.post-accordion-item.notice {
    isolation: isolate;
    border-color: rgba(255, 255, 255, .88);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62)),
        linear-gradient(120deg, rgba(99, 102, 241, .08), rgba(56, 189, 248, .04));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -1px 0 rgba(148, 163, 184, .1),
        0 5px 14px rgba(51, 65, 85, .07),
        0 1px 3px rgba(51, 65, 85, .05);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.post-accordion-item::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, .48), transparent 38%, rgba(129, 140, 248, .035) 76%, rgba(255, 255, 255, .18));
    pointer-events: none;
}

.post-accordion-item:hover {
    border-color: rgba(165, 180, 252, .52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 9px 22px rgba(51, 65, 85, .1),
        0 2px 5px rgba(79, 70, 229, .06);
    transform: translateY(-1px);
}

.post-accordion-item.expanded,
.post-accordion-item.closing {
    border-color: rgba(129, 140, 248, .42);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .91), rgba(241, 245, 255, .72)),
        linear-gradient(120deg, rgba(99, 102, 241, .1), rgba(56, 189, 248, .055));
}

.post-accordion-item.notice {
    border-color: rgba(251, 191, 36, .3);
    background:
        linear-gradient(135deg, rgba(255, 253, 246, .93), rgba(255, 248, 230, .72)),
        linear-gradient(120deg, rgba(251, 191, 36, .1), rgba(255, 255, 255, .38));
}

@media (max-width: 820px) {
    .post-list-card {
        padding-top: 6px;
        padding-bottom: 9px;
    }

    .board-filter {
        margin-bottom: 4px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .post-accordion-item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-accordion-item {
        transition: none;
    }
}

/* High-gloss liquid glass treatment. */
.post-list-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(circle at 4% 2%, rgba(129, 140, 248, .16), transparent 27%),
        radial-gradient(circle at 96% 8%, rgba(56, 189, 248, .13), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, .64), rgba(241, 245, 249, .44));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -1px 0 rgba(148, 163, 184, .12),
        0 18px 44px rgba(71, 85, 105, .11),
        0 3px 10px rgba(79, 70, 229, .045);
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    backdrop-filter: blur(28px) saturate(155%);
}

.post-list-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    width: 58%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 1), transparent);
    pointer-events: none;
}

.board-search,
.board-date {
    border-color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .94),
        0 3px 9px rgba(71, 85, 105, .055);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.post-list {
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 11px;
    background:
        radial-gradient(circle at 0 8%, rgba(99, 102, 241, .13), transparent 26%),
        radial-gradient(circle at 100% 30%, rgba(14, 165, 233, .1), transparent 25%),
        linear-gradient(145deg, rgba(241, 245, 249, .52), rgba(226, 232, 240, .31));
    box-shadow: inset 0 1px 4px rgba(71, 85, 105, .055);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.post-accordion-item,
.post-accordion-item.notice {
    overflow: visible;
    background:
        radial-gradient(ellipse 38% 100% at -4% 0%, rgba(99, 102, 241, .2), transparent 72%),
        radial-gradient(ellipse 34% 90% at 102% 100%, rgba(56, 189, 248, .17), transparent 70%),
        linear-gradient(125deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .5) 48%, rgba(238, 242, 255, .56));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 1px 0 0 rgba(255, 255, 255, .66),
        inset -1px -1px 0 rgba(129, 140, 248, .09),
        0 8px 20px rgba(51, 65, 85, .1),
        0 2px 5px rgba(79, 70, 229, .07);
}

.post-accordion-item::before {
    z-index: 0;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, .7) 0%, transparent 22%, transparent 72%, rgba(165, 180, 252, .1) 100%);
}

.post-accordion-item::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 1px;
    right: 9%;
    left: 9%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
    pointer-events: none;
}

.post-accordion-item > * {
    position: relative;
    z-index: 1;
}

.post-accordion-item:hover {
    background:
        radial-gradient(ellipse 42% 110% at -2% 0%, rgba(99, 102, 241, .27), transparent 70%),
        radial-gradient(ellipse 38% 100% at 102% 100%, rgba(56, 189, 248, .23), transparent 68%),
        linear-gradient(125deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .55) 48%, rgba(238, 242, 255, .62));
}

.post-accordion-item.notice {
    background:
        radial-gradient(ellipse 38% 100% at -4% 0%, rgba(251, 191, 36, .2), transparent 72%),
        radial-gradient(ellipse 32% 90% at 102% 100%, rgba(249, 115, 22, .11), transparent 70%),
        linear-gradient(125deg, rgba(255, 255, 255, .86), rgba(255, 251, 235, .58) 50%, rgba(255, 247, 237, .62));
}

/* Five-line preview and subtle card hover. */
.post-body-preview {
    max-height: 7.5em;
}

.post-accordion-item .post-row:hover {
    background: #e9eff9;
}

.post-accordion-item.notice .post-row:hover {
    background: #ffedc7;
}

/* Minimal community composer */
.write-modal-backdrop {
    padding: 24px;
    background: rgba(15, 23, 42, .42);
}

.write-modal {
    width: min(760px, 100%);
    max-height: calc(100dvh - 48px);
    border: 0;
    border-radius: 18px;
    background: #fff;
    padding: 0 34px 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
}

.write-modal-header {
    min-height: 72px;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
}

.write-modal-header .write-back-button,
.write-modal-header .write-submit-top {
    width: auto;
    height: 42px;
    border-radius: 10px;
    background: transparent;
}

.write-modal-header .write-back-button {
    color: #172033;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    padding: 0 8px 5px 0;
}

.write-modal-header .write-submit-top {
    color: #4f6ef7;
    font-size: 15px;
    font-weight: 850;
    padding: 0 4px 0 14px;
}

.write-modal-header .write-submit-top:disabled {
    color: #cbd1dc;
    cursor: wait;
}

.write-title-card,
.write-editor-card {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 0;
    box-shadow: none;
}

.write-board-row {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
}

.write-board-row .write-board-mark {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #7c3aed, #2563eb);
    color: #fff;
    padding: 0;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
}

.write-board-select {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #454b57;
    font: inherit;
    font-size: 20px;
    font-weight: 850;
    cursor: pointer;
}

.write-title-input {
    min-height: 74px;
    border-bottom: 1px solid #edf0f4;
    color: #172033;
    font-size: 22px;
    font-weight: 750;
    padding: 18px 0;
}

.write-title-input::placeholder,
.write-content-input::placeholder {
    color: #bcc3cf;
}

.write-secret-option {
    border-bottom: 1px solid #edf0f4;
    padding: 14px 0;
}

.write-content-input {
    min-height: 280px;
    resize: vertical;
    color: #172033;
    font-size: 17px;
    line-height: 1.7;
    padding: 26px 0 18px;
}

.media-tools {
    justify-content: flex-start;
    min-height: 48px;
    border-bottom: 1px solid #edf0f4;
}

.write-count-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.write-notice {
    margin: 14px 0 0;
    color: #8a94a5;
}

@media (max-width: 820px) {
    .write-modal-backdrop {
        align-items: stretch;
        padding: 0;
    }

    .write-modal {
        max-height: 100dvh;
        min-height: 100dvh;
        border-radius: 0;
        padding: 0 20px max(20px, env(safe-area-inset-bottom));
    }

    .write-modal-header {
        min-height: 64px;
    }

    .write-board-row {
        min-height: 70px;
    }

    .write-board-select {
        width: calc(100% - 55px);
        font-size: 18px;
    }

    .write-title-input {
        min-height: 68px;
        font-size: 19px;
    }

    .write-content-input {
        min-height: 42dvh;
        font-size: 16px;
    }

    .media-tools small,
    .write-count-row {
        display: none;
    }
}
.post-accordion-item {
    border-bottom: 1px solid #c5cfdd;
}

.post-accordion-item .post-row {
    border-bottom: 0;
}

.post-accordion-item .post-main {
    width: auto;
    flex: 1;
}

.post-accordion-item.expanded {
    background: #f3f4f6;
    box-shadow: none;
}

.post-accordion-item .post-row:focus {
    outline: none;
}

.post-accordion-item .post-row:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: -2px;
}

.post-expand-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    margin: 0 4px 0 12px;
    border-right: 2px solid var(--sc-muted);
    border-bottom: 2px solid var(--sc-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.post-accordion-item.expanded .post-expand-icon {
    transform: rotate(225deg) translate(-2px, -2px);
}

.post-accordion-detail {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
    transition: grid-template-rows 320ms ease, opacity 260ms ease, transform 320ms ease;
}

.post-accordion-detail-inner {
    min-height: 0;
    overflow: hidden;
}

.post-accordion-detail.opening {
    animation: board-detail-open 320ms ease-out;
}

.post-accordion-item.closing .post-accordion-detail {
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-8px);
}

@keyframes board-detail-open {
    from { grid-template-rows: 0fr; opacity: 0; transform: translateY(-8px); }
    to { grid-template-rows: 1fr; opacity: 1; transform: translateY(0); }
}

.post-list {
    border-bottom: 1px solid #c5cfdd;
}

.post-row:hover {
    background: #f1f3f5;
}

/* Unified board theme */
.board-page {
    padding: 12px;
    background: #f5f7fb;
    color: #172033;
}

.board-menu {
    margin-bottom: 10px;
}

.board-page .board-home-button {
    min-width: 78px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
    color: #172033;
    box-shadow: none;
    font-size: 13px;
}

.blue-btn {
    min-height: 36px;
    border-radius: 9px;
    background: #4f6ef7;
    padding: 0 14px;
    font-size: 13px;
    gap: 4px;
}

.blue-btn:hover {
    background: #3f5ee8;
}

.board-title-header {
    margin-bottom: 10px;
    padding: 13px 18px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
}

.board-title-header::before {
    display: none;
}

.board-title-header h1 {
    color: #172033;
    font-size: 29px;
    line-height: 1.1;
}

.board-title-header p {
    margin-top: 4px;
    color: #718096;
    font-size: 13px;
    font-weight: 650;
}

/* Community feed layout */
.post-list-card {
    overflow: hidden;
    padding: 0;
}

.board-filter {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--sc-border);
}

.post-list {
    border: 0;
}

.post-accordion-item {
    border-bottom: 1px solid var(--sc-border);
}

.post-accordion-item.expanded,
.post-accordion-item.closing {
    margin-bottom: 0;
}

.post-accordion-item .post-row {
    min-height: 145px;
    align-items: flex-start;
    padding: 14px 28px 13px;
}

.post-accordion-item .post-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-author-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 2px solid rgba(255,255,255,.86);
    border-radius: 50%;
    background: linear-gradient(145deg, #7c3aed, #2563eb);
    box-shadow: 0 3px 10px rgba(37,99,235,.2);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.post-author-meta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.post-author-meta .post-writer {
    overflow: hidden;
    color: var(--sc-text);
    font-size: 15px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-author-meta .post-created-at {
    margin: 0;
    color: var(--sc-muted);
    font-size: 12px;
    text-align: left;
}

.post-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 11px 0 9px 55px;
}

.post-copy .post-title {
    display: block;
    overflow: visible;
    color: var(--sc-text);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.4;
    text-overflow: clip;
    white-space: normal;
}

.post-body-preview {
    display: -webkit-box;
    overflow: hidden;
    color: var(--sc-text);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.45;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 55px;
    color: var(--sc-muted);
}

.post-actions .post-comment-icon {
    width: 18px;
    height: 14px;
    margin: 0;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.post-actions .post-comment-icon::after {
    right: 0;
    bottom: -4px;
    border-color: currentColor;
}

.post-comment-label {
    font-size: 13px;
    font-weight: 750;
}

.post-accordion-item .post-expand-icon {
    align-self: center;
}

.post-notice {
    min-height: 24px;
    margin-left: auto;
    border: 1px solid rgba(245,158,11,.35);
    border-radius: 999px;
    background: rgba(255,251,235,.88);
    color: #b45309;
    padding: 2px 9px;
    font-size: 11px;
}

.post-notice-toggle {
    flex: 0 0 auto;
    min-height: 28px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79,110,247,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #4f6ef7;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.post-notice-toggle:hover {
    border-color: #4f6ef7;
    background: #4f6ef7;
    color: #fff;
}

.write-modal-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.52);
}

.write-modal {
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
}

.write-title-input {
    font-size: 25px;
}

.write-modal-footer .submit-btn {
    min-width: 110px;
    border-radius: 999px;
}

@media (min-width: 1024px) {
    .board-page {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .post-list-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 820px) {
    .board-page {
        padding-inline: 0;
    }

    .board-menu,
    .board-title-header {
        margin-right: 10px;
        margin-left: 10px;
    }

    .post-list-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .board-filter {
        padding: 10px 14px;
    }

    .board-date-group {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
    }

    .board-date {
        width: 100%;
        min-width: 0;
    }

    .post-accordion-item .post-row {
        min-height: 140px;
        padding: 14px 16px 12px;
    }

    .post-avatar {
        width: 42px;
        height: 42px;
    }

    .post-copy {
        padding: 11px 0 9px 53px;
    }

    .post-copy .post-title {
        font-size: 18px;
    }

    .post-body-preview {
        font-size: 15px;
        -webkit-line-clamp: 4;
    }

    .post-actions {
        padding-left: 53px;
    }

    .write-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .write-modal {
        width: 100%;
        max-height: 94dvh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 18px 14px max(18px, env(safe-area-inset-bottom));
    }

    .write-title-card,
    .write-editor-card {
        padding-inline: 16px;
    }

    .write-title-input {
        font-size: 22px;
    }

    .write-content-input {
        min-height: 210px;
    }

    .write-modal-footer > div,
    .write-modal-footer .submit-btn {
        width: 100%;
    }
}

.post-list-card {
    min-height: calc(100vh - 180px);
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
}

.board-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0 2px;
}

.board-pager button {
    min-width: 36px;
    height: 36px;
    border: 1px solid #d7deea;
    border-radius: 9px;
    background: #fff;
    color: #42526b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.board-pager button.active {
    border-color: #4f6ef7;
    background: #4f6ef7;
    color: #fff;
}

.board-pager button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.board-filter {
    margin-bottom: 10px;
}

.board-search,
.board-date {
    height: 34px;
    border-color: #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
    font-weight: 650;
}

.board-filter-btn {
    height: 34px;
    border-radius: 8px;
    background: #172033;
    font-size: 13px;
}

.post-list {
    min-height: calc(100vh - 290px);
    border-color: #e2e8f0;
}

.post-accordion-item {
    border-bottom-color: #e2e8f0;
}

.post-accordion-item.expanded {
    background: #f2f6fc;
}

.post-row {
    min-height: 54px;
    padding: 7px 4px 6px;
}

.post-row:hover {
    background: #f8fafd;
}

.post-main {
    gap: 3px;
}

.post-title-row {
    gap: 6px;
}

.post-title {
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.post-created-at {
    margin-left: auto;
    color: #718096;
    font-size: 12px;
    font-weight: 600;
}

.post-footer {
    justify-content: flex-start;
    gap: 5px;
}

.post-writer,
.post-comment-summary {
    color: #718096;
    font-size: 12px;
    font-weight: 600;
}

.post-comment-summary {
    color: #4f6ef7;
}

.post-expand-icon {
    border-color: #718096;
}

@media (max-width: 820px) {
    .board-page {
        padding: 8px;
    }

    .board-title-header {
        padding: 11px 13px 12px;
    }

    .board-title-header h1 {
        font-size: 24px;
    }

    .board-title-header p {
        font-size: 12px;
    }

    .post-list-card {
        padding: 10px;
    }

    .post-row {
        min-height: 52px;
        padding-inline: 2px;
    }
}

.post-accordion-item.expanded,
.post-accordion-item.closing {
    margin-bottom: 10px;
}
.post-notice {
    flex: 0 0 auto;
    margin-left: auto;
    color: #b45309;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.post-notice + .post-created-at {
    margin-left: 8px;
}

.post-row {
    min-height: 44px;
    padding: 4px 4px 3px;
}

.post-main {
    gap: 1px;
}

.post-title-row {
    gap: 5px;
}

.post-title {
    font-size: 14px;
    line-height: 1.18;
}

.post-footer {
    min-height: 16px;
}

.post-writer,
.post-comment-summary,
.post-created-at {
    font-size: 11px;
    line-height: 1.2;
}

.post-notice {
    min-height: 24px;
    font-size: 12px;
}

.post-accordion-item.notice .post-row {
    position: relative;
    border-left: 3px solid #f59e0b;
    padding-left: 8px;
    background: linear-gradient(90deg, rgba(255, 251, 235, .72), transparent 42%);
}

.post-accordion-item.notice .post-title {
    color: #1f2937;
    font-weight: 900;
}

.post-accordion-item.notice .post-notice {
    min-height: 22px;
    border: 1px solid rgba(245, 158, 11, .38);
    border-radius: 999px;
    background: rgba(255, 251, 235, .9);
    color: #b45309;
    padding: 0 8px;
}

.board-title-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 22px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 16px 42px rgba(37, 99, 235, .1);
    backdrop-filter: blur(24px);
    text-align: left;
}

.board-title-header::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}

.board-title-header h1 {
    margin: 0 0 6px;
    color: #14213d;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: var(--sc-font-black);
    line-height: 1.1;
}

.board-title-header p {
    margin: 0;
    color: #52627d;
    font-size: 15px;
    font-weight: 750;
}

@media (max-width: 820px) {
    .board-title-header {
        padding: 12px 14px;
    }

    .board-title-header h1 {
        font-size: 28px;
    }

    .board-title-header p {
        font-size: 13px;
    }
}

/* Keep feed edge-to-edge on compact screens after legacy board overrides. */
@media (max-width: 820px) {
    .board-page {
        padding-right: 0;
        padding-left: 0;
    }

    .post-list-card {
        padding: 0;
    }

    .post-accordion-item.expanded,
    .post-accordion-item.closing {
        margin-bottom: 0;
    }
}

/* Composer overrides must remain after the legacy board theme. */
.write-modal-backdrop {
    align-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .42);
}

.write-modal {
    width: min(760px, 100%);
    max-height: calc(100dvh - 48px);
    border-radius: 18px;
    padding: 0 34px 26px;
}

.write-title-card,
.write-editor-card {
    padding: 0;
}

.write-title-input {
    font-size: 22px;
}

.write-content-input {
    min-height: 280px;
}

@media (max-width: 820px) {
    .write-modal-backdrop {
        align-items: stretch;
        padding: 0;
    }

    .write-modal {
        width: 100%;
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 0 20px max(20px, env(safe-area-inset-bottom));
    }

    .write-title-card,
    .write-editor-card {
        padding: 0;
    }

    .write-title-input {
        font-size: 19px;
    }

    .write-content-input {
        min-height: 42dvh;
    }
}

/* Compact social-feed board cards */
.board-title-header {
    padding: 17px 24px;
}

.board-title-header h1 {
    margin-bottom: 4px;
    font-size: clamp(27px, 2.4vw, 34px);
}

.board-title-header p {
    font-size: 13px;
}

.board-filter,
.board-search,
.board-date,
.board-filter-btn {
    font-size: 12px;
}

.post-accordion-item .post-row {
    min-height: 0;
    padding: 13px 18px 11px;
}

.post-author-row {
    gap: 8px;
}

.post-avatar {
    width: 34px;
    height: 34px;
    border-width: 1px;
    font-size: 13px;
}

.post-author-meta {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
}

.post-author-meta .post-writer {
    flex: 0 1 auto;
    font-size: 13px;
    font-weight: 800;
}

.post-author-meta .post-created-at {
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 500;
}

.post-copy {
    gap: 4px;
    padding: 8px 44px 7px 42px;
}

.post-copy .post-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.post-body-preview {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    -webkit-line-clamp: 2;
}

.post-actions {
    gap: 5px;
    padding-left: 42px;
}

.post-actions .post-comment-icon {
    width: 14px;
    height: 11px;
    border-width: 1.5px;
}

.post-comment-label {
    font-size: 11px;
    font-weight: 600;
}

.post-accordion-item .post-expand-icon {
    margin-right: 2px;
    transform: scale(.8) rotate(45deg);
}

.post-accordion-item.expanded .post-expand-icon {
    transform: scale(.8) rotate(225deg);
}

.post-notice-toggle {
    min-height: 24px;
    font-size: 10px;
    padding: 0 8px;
}

.post-accordion-item.notice {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, #fff7dd 0%, #fffdf7 62%, #fff 100%);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .12);
}

.post-accordion-item.notice .post-row {
    border-left: 0;
    background: transparent;
    padding-left: 16px;
}

.post-accordion-item.notice .post-notice {
    min-height: 24px;
    border: 1px solid #f59e0b;
    background: #f59e0b;
    color: #fff;
    padding: 0 9px;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(245, 158, 11, .24);
}

.post-accordion-item.notice .post-title {
    color: #92400e;
}

@media (max-width: 820px) {
    .board-title-header {
        padding: 11px 14px;
    }

    .board-title-header h1 {
        font-size: 24px;
    }

    .board-title-header p {
        font-size: 12px;
    }

    .post-accordion-item .post-row {
        min-height: 0;
        padding: 12px 13px 10px;
    }

    .post-avatar {
        width: 32px;
        height: 32px;
    }

    .post-copy {
        padding: 7px 36px 6px 40px;
    }

    .post-copy .post-title {
        font-size: 14px;
    }

    .post-body-preview {
        font-size: 13px;
    }

    .post-actions {
        padding-left: 40px;
    }
}

/* Extra-compact metadata row */
.post-accordion-item .post-row {
    padding-top: 9px;
    padding-bottom: 8px;
}

.post-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.post-author-meta {
    gap: 6px;
}

.post-author-meta .post-writer {
    font-size: 12px;
}

.post-author-meta .post-created-at {
    font-size: 10px;
}

.post-author-meta .post-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    color: #98a2b3;
    padding: 0;
}

.post-author-meta .post-comment-icon {
    width: 13px;
    height: 10px;
}

.post-author-meta .post-comment-label {
    font-size: 10px;
    font-weight: 500;
}

.post-copy {
    gap: 2px;
    padding: 5px 42px 1px 38px;
}

.post-copy .post-title {
    font-size: 14px;
    line-height: 1.22;
}

.post-body-preview {
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 820px) {
    .post-accordion-item .post-row {
        padding-top: 8px;
        padding-bottom: 7px;
    }

    .post-avatar {
        width: 29px;
        height: 29px;
    }

    .post-copy {
        padding: 4px 36px 1px 37px;
    }
}

/* Clear comment icon, expandable preview and single-row filters */
.post-author-meta .post-comment-icon {
    width: 14px;
    height: 14px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    fill: none;
    stroke: #64748b;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-author-meta .post-comment-icon::after {
    content: none;
}

.post-body-preview {
    display: block;
    max-height: none;
    overflow: hidden;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.post-body-preview.show-all {
    max-height: none;
    overflow: visible;
    display: block;
    -webkit-line-clamp: initial;
}

.post-more-toggle {
    align-self: flex-start;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

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

.board-filter {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.board-search {
    width: 100%;
    min-width: 0;
}

.board-date-group {
    display: grid;
    grid-template-columns: 142px 142px auto;
    align-items: center;
    gap: 8px;
}

@media (max-width: 820px) {
    .board-filter {
        grid-template-columns: minmax(88px, 1fr) auto;
        gap: 5px;
        padding: 10px 12px;
    }

    .board-date-group {
        grid-template-columns: 96px 96px 40px;
        gap: 4px;
    }

    .board-search,
    .board-date,
    .board-filter-btn {
        height: 32px;
        min-width: 0;
        font-size: 10px;
        padding-right: 4px;
        padding-left: 6px;
    }

    .board-filter-btn {
        padding: 0;
    }
}

@media (max-width: 430px) {
    .board-date-group {
        grid-template-columns: 87px 87px 38px;
    }

    .board-filter {
        padding-inline: 8px;
    }
}

/* Refined feed hierarchy and actions */
.post-list {
    padding: 5px 7px;
    background: #f7f9fc;
}

.post-accordion-item,
.post-accordion-item.notice {
    position: relative;
    margin: 6px 0;
    border: 1px solid rgba(203, 213, 225, .5);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .025);
}

.post-accordion-item .post-row {
    border: 0;
    border-radius: 10px;
    padding: 11px 14px 10px;
}

.post-author-row {
    min-height: 30px;
}

.post-copy {
    gap: 4px;
    padding: 10px 40px 5px 40px;
}

.post-copy .post-title {
    color: #111827;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
}

.post-body-preview {
    color: #667085;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
}

.post-admin-menu {
    position: relative;
    flex: 0 0 auto;
    margin-left: 2px;
}

.post-admin-menu-trigger {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #a0a9b8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.post-admin-menu-trigger:hover {
    background: #f1f5f9;
    color: #64748b;
}

.post-admin-menu-popover {
    position: absolute;
    z-index: 5;
    top: 27px;
    right: 0;
    width: max-content;
    min-width: 76px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
    color: #64748b;
    padding: 5px;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.post-admin-menu-popover .post-menu-action {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 6px 9px;
    color: #64748b;
    font: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.post-admin-menu-popover .post-menu-action:hover {
    background: #f1f5f9;
}

.post-admin-menu-popover .post-menu-action.danger {
    color: #dc2626;
}

.post-accordion-item:has(.post-admin-menu-popover) {
    z-index: 20;
    overflow: visible;
}

.post-admin-menu-popover {
    z-index: 50;
}

.post-accordion-item:has(.post-admin-menu-popover) > .post-row {
    position: relative;
    z-index: 30;
    overflow: visible;
}

.post-accordion-item:has(.post-admin-menu-popover) .post-main,
.post-accordion-item:has(.post-admin-menu-popover) .post-author-row,
.post-accordion-item:has(.post-admin-menu-popover) .post-admin-menu {
    overflow: visible;
}

.post-accordion-item > .post-accordion-detail {
    position: relative;
    z-index: 1;
}

.board-delete-backdrop {
    z-index: 1200;
}

.board-delete-modal {
    width: min(420px, calc(100vw - 32px));
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
    color: #17233d;
}

.board-delete-modal h2 { margin: 0 0 10px; }
.board-delete-modal p { margin: 0 0 22px; color: #64748b; }
.board-delete-modal > div { display: flex; justify-content: flex-end; gap: 8px; }
.board-delete-modal button { border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 800; cursor: pointer; }
.board-delete-modal button.danger { background: #dc2626; color: #fff; }

.post-comment-view {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-left: 40px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.post-comment-view svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-comment-chevron {
    margin-top: -3px;
    color: #94a3b8;
    font-size: 15px;
    transition: transform .2s ease;
}

.post-accordion-item.expanded .post-comment-chevron {
    transform: rotate(180deg);
}

/* Notices use only a soft background and a badge. */
.post-accordion-item.notice {
    border-color: rgba(245, 158, 11, .22);
    background: #fffaf0;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .025);
}

.post-accordion-item.notice .post-row {
    border-left: 0;
    background: transparent;
    padding-left: 14px;
}

.post-accordion-item.notice .post-notice {
    min-height: 22px;
    border: 0;
    background: #f59e0b;
    color: #fff;
    padding: 0 8px;
    font-size: 10px;
    box-shadow: none;
}

.post-accordion-item.notice .post-title {
    color: #111827;
    font-weight: 850;
}

@media (max-width: 820px) {
    .post-list {
        padding: 4px 6px;
    }

    .post-accordion-item,
    .post-accordion-item.notice {
        margin: 5px 0;
        border-color: rgba(203, 213, 225, .42);
    }

    .post-accordion-item.notice {
        border-color: rgba(245, 158, 11, .2);
    }

    .post-accordion-item .post-row,
    .post-accordion-item.notice .post-row {
        padding: 10px 11px 9px;
    }

    .post-copy {
        padding: 9px 34px 5px 38px;
    }

    .post-comment-view {
        margin-left: 38px;
    }
}

/* Stronger comment disclosure label. */
.post-comment-view {
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.post-comment-view svg {
    width: 17px;
    height: 17px;
}

.post-comment-chevron {
    font-size: 17px;
}

/* Keep the feed open, with definition focused on each post card. */
.post-list-card {
    min-height: calc(100vh - 180px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 8px 0 12px;
}

.post-list-card::before,
.post-list-card::after {
    content: none;
}

.post-accordion-item {
    border-color: rgba(148, 163, 184, .72);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .045), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.post-accordion-item:hover,
.post-accordion-item.expanded,
.post-accordion-item.closing {
    border-color: rgba(99, 102, 241, .56);
}

.post-accordion-item.notice {
    border-color: rgba(245, 158, 11, .52);
}

@media (max-width: 820px) {
    .board-page .board-search,
    .board-page .board-date,
    .board-page .board-filter-btn {
        box-sizing: border-box;
        height: 32px;
        min-height: 32px;
        margin: 0;
    }

    .board-page .board-date-group {
        align-self: stretch;
        margin-top: 0;
    }

    .post-list-card {
        padding-top: 5px;
        padding-bottom: 9px;
    }
}

/* Denser board spacing and stronger notice treatment. */
.board-title-header {
    margin-bottom: 7px;
}

.board-filter {
    margin-bottom: 4px;
    padding: 3px 10px;
}

.post-accordion-item,
.post-accordion-item.notice {
    margin-top: 4px;
    margin-bottom: 4px;
}

.post-accordion-item .post-row,
.post-accordion-item.notice .post-row {
    padding: 8px 12px 7px;
}

.post-author-row {
    min-height: 28px;
}

.post-avatar {
    width: 30px;
    height: 30px;
}

.post-copy {
    padding: 5px 36px 3px 36px;
}

.post-comment-view {
    margin-left: 36px;
}

.post-accordion-item.notice {
    border-color: rgba(245, 158, 11, .78);
    background: linear-gradient(105deg, #ffedbd 0%, #fff4d8 45%, #fff9ec 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .78),
        0 3px 10px rgba(217, 119, 6, .13);
}

.post-accordion-item.notice .post-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-height: 22px;
    border: 0;
    background: #ea8a00;
    color: #fff;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 820px) {
    .board-title-header {
        margin-bottom: 7px;
    }

    .post-list-card {
        padding-top: 2px;
        padding-bottom: 6px;
    }

    .board-filter {
        margin-bottom: 3px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .post-accordion-item .post-row,
    .post-accordion-item.notice .post-row {
        padding: 7px 10px 6px;
    }

    .post-copy {
        padding: 4px 34px 2px 35px;
    }

    .post-comment-view {
        margin-left: 35px;
    }
}

@media (min-width: 769px) {
    .post-list-card {
        padding-top: 2px;
        padding-bottom: 7px;
    }

    .board-filter {
        margin-bottom: 3px;
        padding-top: 3px;
        padding-bottom: 3px;
    }
}

/* Subtle alternating card surfaces. */
.post-accordion-item {
    margin-top: 6px;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #ffffff, #fafcff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.post-accordion-item::before,
.post-accordion-item::after {
    content: none;
}

.post-list .post-accordion-item:nth-child(4n + 1) {
    background: linear-gradient(180deg, #fbfcff 0%, #f1f4fa 100%);
}

.post-list .post-accordion-item:nth-child(4n + 2) {
    background: linear-gradient(180deg, #fafcff 0%, #eef4f8 100%);
}

.post-list .post-accordion-item:nth-child(4n + 3) {
    background: linear-gradient(180deg, #fbfcfe 0%, #f2f3f7 100%);
}

.post-list .post-accordion-item:nth-child(4n) {
    background: linear-gradient(180deg, #fafcfd 0%, #edf2f6 100%);
}

.post-accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* Preserve the stronger notice state over the alternating tint. */
.post-list .post-accordion-item.notice {
    background: linear-gradient(105deg, #ffedbd 0%, #fff4d8 45%, #fff9ec 100%);
}

/* Readability: larger author identity and post typography across all boards. */
.post-author-row {
    min-height: 42px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

.post-author-meta .post-writer {
    font-size: 16px;
    font-weight: 800;
}

.post-author-meta .post-created-at {
    font-size: 12px;
}

.post-copy {
    padding-top: 10px;
    padding-left: 48px;
    padding-right: 48px;
}

.post-copy .post-title {
    font-size: 20px;
    line-height: 1.4;
}

.post-body-preview {
    font-size: 16px;
    line-height: 1.65;
}

.post-comment-view {
    margin-top: 5px;
    margin-left: 48px;
    font-size: 15px;
}

@media (max-width: 820px) {
    .post-avatar {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .post-author-meta .post-writer {
        font-size: 15px;
    }

    .post-author-meta .post-created-at {
        font-size: 11px;
    }

    .post-copy {
        padding-left: 46px;
        padding-right: 34px;
    }

    .post-copy .post-title {
        font-size: 19px;
    }

    .post-body-preview {
        font-size: 16px;
    }

    .post-comment-view {
        margin-left: 46px;
        font-size: 15px;
    }
}
.post-blind-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 850;
}

.post-accordion-item:has(.post-blind-badge) .post-copy {
    border-radius: 10px;
    background: rgba(226, 232, 240, .72);
    padding-top: 8px;
    padding-bottom: 8px;
}
