.board-shell {
    display: grid;
    gap: 22px;
}

.board-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-table-wrap {
    overflow: hidden;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.board-table tbody tr {
    border-bottom: 1px solid #eef2f6;
    background-color: white;
    transition: background-color 0.2s ease;
}

.board-table tbody tr:hover {
    background-color: #f7fbff;
}

.board-search {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-best-flex {
    display: flex;
    gap: 20px;
}

.daily-best-card {
    flex: 1;
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.mobile-tabs-header {
    display: none;
}

.tab-content {
    display: block;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

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

.dashboard-card {
    padding: 24px;
}

.dashboard-meta {
    margin: 0 0 8px;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.dashboard-lead {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
}

.post-detail-shell {
    display: grid;
    gap: 20px;
}

.post-detail-card {
    padding: 28px;
}

.post-detail-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-color);
}

.post-category-label {
    margin-bottom: 10px;
    color: var(--yaguya-mid);
    font-weight: 700;
}

.post-title {
    margin: 0 0 16px;
    color: var(--text-color);
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.post-secret-label {
    color: #ff4c4c;
    font-size: 0.8em;
}

.post-topic-label {
    color: var(--yaguya-dark);
}

.post-source-wrap {
    margin-bottom: 15px;
}

.post-source-link {
    border-color: #bfe1ca;
    background: #f4fff7;
    color: #1f7a42;
}

.post-author-name {
    font-weight: 700;
    color: var(--yaguya-dark);
}

.post-author-team {
    color: var(--muted-text);
    font-size: 0.88rem;
}

.post-meta-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.post-image-wrap {
    margin-bottom: 24px;
    text-align: center;
}

.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.post-like-box {
    margin: 38px 0 26px;
    text-align: center;
}

.post-like-button {
    font-size: 1.05rem;
}

.post-like-button.is-outline {
    border: 2px solid var(--yaguya-dark);
    background: white;
    color: var(--yaguya-dark);
    box-shadow: none;
}

.post-like-count {
    padding: 2px 10px;
    border-radius: 999px;
}

.post-like-count.is-filled {
    background: white;
    color: var(--yaguya-light);
}

.post-like-count.is-outline {
    background: var(--bg-color);
    color: var(--text-color);
}

.post-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-delete-button {
    background-color: #e85d5d;
}

.comment-section-card {
    padding: 24px;
}

.comment-section-title {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--yaguya-dark);
}

.post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--muted-text);
    font-size: 0.95rem;
}

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

.post-author img,
.comment-avatar {
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #d8e1ea;
    background: #fff;
}

.post-body {
    padding: 8px 0 2px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-color);
}

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

.comment-thread {
    display: grid;
    gap: 14px;
}

.comment-card {
    padding: 16px 0;
    border-bottom: 1px solid #e8eef5;
}

.comment-anchor-target {
    scroll-margin-top: 24px;
}

.comment-row {
    display: flex;
    gap: 12px;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.comment-author {
    color: var(--yaguya-dark);
    font-weight: 700;
}

.comment-date {
    color: #999;
    font-size: 0.85rem;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.65;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.comment-action-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--muted-text);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.comment-delete-button {
    color: #d9534f;
}

.reply-list {
    margin-left: 44px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fbfe;
    border: 1px solid #e3edf7;
}

.reply-form {
    display: none;
    margin-left: 44px;
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fbfe;
    border: 1px solid #d9e6f2;
}

.reply-form-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-form-label {
    color: var(--yaguya-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.reply-cancel-button {
    cursor: pointer;
}

.reply-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.reply-row + .reply-row {
    border-top: 1px dashed #d7e1ea;
}

.reply-arrow {
    padding-top: 3px;
    color: #9fb0c0;
    font-size: 1.1rem;
}

.reply-body {
    flex: 1;
}

.reply-meta {
    margin-bottom: 3px;
    font-size: 0.85rem;
}

.reply-author {
    color: #444;
    font-weight: 700;
}

.reply-date {
    margin-left: 8px;
    color: #999;
}

.reply-content {
    color: #333;
    font-size: 0.92rem;
    line-height: 1.5;
}

.reply-actions {
    margin-top: 6px;
}

.reply-action-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--yaguya-light);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.reply-delete-button {
    color: #d9534f;
    text-decoration: underline;
}

.comment-empty {
    padding: 30px 0;
    color: #888;
    text-align: center;
}

.comment-create-box {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #dfeaf5;
    border-radius: 16px;
    background-color: #f8fbfe;
}

.comment-create-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-create-title {
    color: var(--yaguya-dark);
    font-weight: 700;
}

.comment-create-actions {
    text-align: right;
}

.comment-login-placeholder {
    cursor: not-allowed;
    background-color: #eef3f8;
}

.editor-shell {
    max-width: 860px;
    margin: 0 auto;
}

.editor-card {
    padding: 30px;
}

.editor-field-inset {
    width: 100%;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.locker-shell {
    min-height: 500px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.locker-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--yaguya-dark);
}

.locker-avatar {
    width: 70px;
    height: 70px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #eee;
    border-radius: 50%;
}

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

.locker-title {
    margin: 0 0 5px;
    color: var(--yaguya-dark);
}

.locker-meta {
    color: #666;
    font-size: 0.95em;
}

.locker-meta-divider {
    margin: 0 10px;
    color: #ccc;
}

.locker-profile-link {
    color: var(--yaguya-light);
    text-decoration: none;
    font-size: 0.9em;
}

.locker-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.locker-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 15px 12px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: #888;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.locker-tab-btn.active {
    color: var(--yaguya-dark);
    border-bottom-color: var(--yaguya-dark);
}

.locker-tab-label {
    line-height: 1.2;
    white-space: nowrap;
}

.locker-tab-icon {
    display: inline-block;
    margin-right: 4px;
}

.locker-tab-text-mobile {
    display: none;
}

.locker-tab-count {
    color: #888;
    font-size: 0.8em;
}

.locker-tab-content {
    display: none;
}

.locker-tab-content.active {
    display: block;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
}

.file-dropzone {
    padding: 18px;
    background: linear-gradient(180deg, #f8fbfe, #ffffff);
    border: 1px dashed #bfd0e0;
    border-radius: 16px;
}

.file-dropzone-label {
    color: var(--yaguya-dark);
}

.file-dropzone-note {
    margin-top: 8px;
    color: var(--muted-text);
    font-size: 0.88rem;
}

.secret-post-box {
    padding: 16px;
    border: 1px solid #f0df9f;
    border-radius: 14px;
    background-color: #fff8dd;
}

.secret-post-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .board-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .board-search {
        align-items: stretch;
    }

    .mobile-tabs-header {
        display: flex;
        justify-content: space-around;
        background: white;
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .daily-best-flex {
        display: block;
    }

    .tab-content {
        display: none !important;
    }

    .tab-content.active-tab {
        display: block !important;
    }

    .dashboard-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .locker-shell {
        padding: 20px 16px;
    }

    .editor-card {
        padding: 22px 16px;
    }

    .editor-field-inset {
        padding-inline: 6px;
    }

    .editor-actions {
        justify-content: stretch;
    }

    .editor-actions .pill-link,
    .editor-actions .btn-primary {
        flex: 1 1 0;
    }

    .editor-field-inset .django-summernote,
    .editor-field-inset .note-editor {
        width: 100% !important;
    }

    .locker-profile {
        gap: 14px;
        align-items: flex-start;
    }

    .locker-avatar {
        width: 58px;
        height: 58px;
    }

    .locker-tabs {
        gap: 8px;
        border-bottom: 0;
    }

    .locker-tab-btn {
        min-width: 0;
        flex-direction: column;
        gap: 4px;
        padding: 11px 4px 10px;
        border: 1px solid #d7e3ef;
        border-bottom-width: 1px;
        border-radius: 14px;
        background: #f8fbfe;
        font-size: 0.9rem;
    }

    .locker-tab-btn.active {
        border-color: rgba(11, 79, 135, 0.22);
        background: rgba(23, 135, 214, 0.08);
        box-shadow: inset 0 0 0 1px rgba(11, 79, 135, 0.12);
    }

    .locker-tab-label {
        white-space: nowrap;
        word-break: keep-all;
        text-align: center;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .locker-tab-icon {
        display: none;
    }

    .locker-tab-text-desktop {
        display: none;
    }

    .locker-tab-text-mobile {
        display: inline;
    }

    .locker-tab-count {
        display: block;
        font-size: 0.75rem;
    }

    .post-meta-row,
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-detail-card,
    .comment-section-card {
        padding: 20px;
    }

    .reply-list,
    .reply-form {
        margin-left: 0;
    }
}
