/* board-mobile.css: mobile and narrow viewport overrides for board/notice/account pages */

.darkthread-board-row-sr-summary {
    display: none;
}

@media (max-width: 1299px) {
    .darkthread-list-controls .darkthread-list-meta {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .darkthread-list-controls .darkthread-list-pagination {
        justify-content: center;
        justify-self: stretch;
        width: 100%;
    }

    .darkthread-list-toolbar {
        flex-direction: column;
    }

    .darkthread-list-filter {
        width: 100%;
    }

    .darkthread-list-filter .darkthread-search-field {
        width: 100%;
        max-width: none;
    }

    .darkthread-list-controls {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

}

/* 계정 게시 목록: 760px 이하에서 카드형 */
@media (max-width: 760px) {
    .darkthread-list-toolbar {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .darkthread-list-write-button:not(.darkthread-list-write-icon) {
        min-height: 44px;
        padding-block: 0.65rem;
        gap: 0.32rem;
        font-size: 0.95rem;
    }

    .darkthread-account-post-table {
        display: block;
                width: 100%;
                min-width: 0;
                border-collapse: separate;
    }
    .darkthread-account-post-table colgroup,
    .darkthread-account-post-table thead {
        display: none;
    }
    .darkthread-account-post-table tbody {
        display: grid;
                grid-template-columns: minmax(0, 1fr);
                width: 100%;
                min-width: 0;
                gap: 0.7rem;
    }
    .darkthread-account-post-table tbody tr {
        display: block;
                min-width: 0;
                overflow: hidden;
                border: 1px solid #222;
                border-radius: 16px;
                background: linear-gradient(180deg, rgba(13, 13, 13, 0.96), rgba(8, 8, 8, 0.96));
    }
    .darkthread-account-post-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.045);
    }
    .darkthread-account-post-table tbody tr > td {
        display: none;
    }
    .darkthread-account-post-table tbody tr > td[colspan] {
        display: flex;
                justify-content: center;
                align-items: center;
                min-height: 4rem;
                padding: 0.95rem !important;
                color: var(--dt-fg-muted);
    }
    .darkthread-account-post-table .darkthread-table-title-cell {
        display: flex;
                flex-direction: column;
                gap: 0.5rem;
                max-width: none;
                width: 100%;
                min-width: 0;
                padding: 0.85rem 0.95rem 0.8rem !important;
                box-sizing: border-box;
    }
    .darkthread-account-post-table .darkthread-table-title-wrap {
        display: none;
    }
    .darkthread-account-post-table .darkthread-mobile-post-head {
        display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 0.6rem;
                min-width: 0;
    }
    .darkthread-account-post-table .darkthread-mobile-post-category,
    .darkthread-account-post-table .darkthread-mobile-post-pin {
        display: inline-flex;
                align-items: center;
                justify-content: center;
                max-width: 70%;
                min-width: 0;
                overflow: hidden;
                border: 1px solid rgba(184, 163, 106, 0.45);
                border-radius: 999px;
                background: rgba(72, 48, 18, 0.72);
                padding: 0.18rem 0.55rem;
                color: #f3e6bd;
                font-size: 0.72rem;
                font-weight: 700;
                line-height: 1.1;
                text-overflow: ellipsis;
                white-space: nowrap;
    }
    .darkthread-account-post-table .darkthread-mobile-post-pin {
        width: 1.45rem;
                height: 1.45rem;
                max-width: none;
                padding: 0;
                border-color: rgba(251, 191, 36, 0.42);
                background: rgba(113, 63, 18, 0.55);
                color: #fcd34d;
                font-size: 0.72rem;
                flex: 0 0 auto;
    }
    .darkthread-account-post-table .darkthread-mobile-post-category:empty {
        display: none;
    }
    .darkthread-account-post-table .darkthread-mobile-post-category--notice {
        border-color: rgba(248, 113, 113, 0.42);
                background: rgba(127, 29, 29, 0.48);
                color: #fee2e2;
    }
    .darkthread-account-post-table .darkthread-mobile-post-badges {
        display: inline-flex;
                flex: 0 0 auto;
                align-items: center;
                justify-content: flex-end;
                min-width: 2.4rem;
    }
    .darkthread-account-post-table .darkthread-mobile-post-badges:empty {
        display: none;
    }
    .darkthread-account-post-table .darkthread-mobile-post-badges .darkthread-table-new-badge {
        padding: 0.13rem 0.42rem;
                font-size: 0.65rem;
                letter-spacing: 0.035em;
    }
    .darkthread-account-post-table .darkthread-mobile-post-title {
        display: block;
                overflow: hidden;
                color: #f5f5f5;
                font-size: 1rem;
                font-weight: 700;
                line-height: 1.42;
                white-space: nowrap;
    }
    .darkthread-account-post-table .darkthread-mobile-post-title-track {
        display: inline-flex;
                gap: 2rem;
                max-width: none;
                min-width: 100%;
                width: max-content;
                will-change: transform;
    }
    .darkthread-account-post-table .darkthread-mobile-post-title.is-marquee .darkthread-mobile-post-title-track {
        min-width: max-content;
                animation: darkthread-mobile-title-marquee var(--darkthread-mobile-title-duration, 12s) linear infinite;
    }
    .darkthread-account-post-table .darkthread-mobile-post-title:not(.is-marquee) .darkthread-mobile-post-title-item[aria-hidden="true"] {
        display: none;
    }
    .darkthread-account-post-table .darkthread-mobile-post-title-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    @media (prefers-reduced-motion: reduce) {
        .darkthread-account-post-table .darkthread-mobile-post-title.is-marquee .darkthread-mobile-post-title-track {
            animation: none;
        }
    }

    .darkthread-account-post-table .darkthread-mobile-post-tags {
        display: flex;
                flex-wrap: wrap;
                gap: 0.25rem 0.45rem;
                overflow: hidden;
                color: #b8a36a;
                font-size: 0.78rem;
                font-weight: 600;
                line-height: 1.25;
    }
    .darkthread-account-mobile-post-excerpt {
        display: -webkit-box;
                overflow: hidden;
                color: var(--dt-fg-muted);
                font-size: 0.82rem;
                line-height: 1.35;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                line-clamp: 2;
    }
    .darkthread-account-post-table .darkthread-mobile-post-tag-more {
        color: #d3c08a;
    }
    .darkthread-account-post-table .darkthread-mobile-post-meta {
        display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 0.22rem 0.34rem;
                min-width: 0;
                color: #9ca3af;
                font-size: 0.75rem;
                line-height: 1.3;
    }
    .darkthread-account-post-table .darkthread-mobile-post-meta > span {
        display: inline-flex;
                min-width: 0;
                align-items: center;
    }
    .darkthread-account-post-table .darkthread-mobile-post-meta > span + span::before {
        content: "·";
                margin-right: 0.34rem;
                color: #5f6673;
    }
    .darkthread-account-post-table .darkthread-mobile-post-author {
        max-width: 5.5rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
    }
    .darkthread-account-post-table .darkthread-mobile-post-author .darkthread-list-author {
        max-width: 100%;
    }
}

/* 공지 목록: 뷰포트 1000px 미만에서 카드형 */
@media (max-width: 999px) {
    /*
     * 단일 열 그리드의 암시적 열은 minmax(auto, 1fr)라 자식 max-content/nowrap 폭이
     * 트랙 최소 폭으로 들어가면 문서 전체 가로 스크롤이 생길 수 있음 → minmax(0, 1fr)로 상한.
     */
    #darkthreadNoticeListPage .darkthread-list-toolbar {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    #darkthreadNoticeListPage .darkthread-list-write-button:not(.darkthread-list-write-icon) {
        min-height: 44px;
        padding-block: 0.65rem;
        gap: 0.32rem;
        font-size: 0.95rem;
    }

    #darkthreadNoticeListPage .darkthread-list-body {
        overflow-x: clip;
    }

    #noticeTable {
        display: block;
                width: 100%;
                min-width: 0;
                border-collapse: separate;
    }
    #noticeTable colgroup,
    #noticeTable thead {
        display: none;
    }
    #noticeTable tbody {
        display: grid;
                grid-template-columns: minmax(0, 1fr);
                width: 100%;
                min-width: 0;
                gap: 0.7rem;
    }
    #noticeTable tbody tr {
        display: block;
                min-width: 0;
                overflow: hidden;
                border: 1px solid #222;
                border-radius: 16px;
                background: linear-gradient(180deg, rgba(13, 13, 13, 0.96), rgba(8, 8, 8, 0.96));
    }
    #noticeTable tbody tr:hover {
        background: rgba(255, 255, 255, 0.045);
    }
    #noticeTable tbody tr > td {
        display: none;
    }
    #noticeTable tbody tr > td[colspan] {
        display: flex;
                justify-content: center;
                align-items: center;
                min-height: 4rem;
                padding: 0.95rem !important;
                color: var(--dt-fg-muted);
    }
    #noticeTable .darkthread-table-title-cell {
        display: flex;
                flex-direction: column;
                gap: 0.5rem;
        position: relative;
                max-width: none;
                width: 100%;
                min-width: 0;
                padding: 0.95rem 0.95rem 0.8rem !important;
                box-sizing: border-box;
                contain: paint;
    }
    #noticeTable .darkthread-table-title-wrap {
        display: none;
    }
    #noticeTable .darkthread-mobile-post-head {
        display: flex;
                align-items: center;
        justify-content: flex-start;
                gap: 0.6rem;
                min-width: 0;
        padding-right: 2rem;
    }
    #noticeTable .darkthread-mobile-post-category,
    #noticeTable .darkthread-mobile-post-pin {
        display: inline-flex;
                align-items: center;
                justify-content: center;
                max-width: 70%;
                min-width: 0;
                overflow: hidden;
        border: 1px solid rgba(184, 163, 106, 0.5);
                border-radius: 999px;
        background: linear-gradient(180deg, rgba(79, 54, 22, 0.78), rgba(58, 38, 14, 0.84));
        padding: 0.22rem 0.56rem;
                color: #f3e6bd;
        font-size: 0.68rem;
                font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1.1;
                text-overflow: ellipsis;
                white-space: nowrap;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 8px rgba(0, 0, 0, 0.28);
    }
    #noticeTable .darkthread-mobile-post-pin {
        width: 1.45rem;
                height: 1.45rem;
                max-width: none;
                padding: 0;
                border-color: rgba(251, 191, 36, 0.42);
                background: rgba(113, 63, 18, 0.55);
                color: #fcd34d;
                font-size: 0.72rem;
                flex: 0 0 auto;
    }
            #noticeTable .darkthread-mobile-post-pin--floating {
                position: absolute;
                top: 0.7rem;
                right: 0.72rem;
                z-index: 1;
            }
    #noticeTable .darkthread-mobile-post-category:empty {
        display: none;
    }
            #noticeTable .darkthread-mobile-post-category.darkthread-mobile-post-category--icon {
                width: 1.45rem;
                height: 1.45rem;
                max-width: none;
                padding: 0;
                border-color: rgba(248, 113, 113, 0.45);
                background: linear-gradient(180deg, rgba(146, 45, 45, 0.72), rgba(117, 31, 31, 0.82));
                color: #fee2e2;
                font-size: 0.72rem;
            }
    #noticeTable .darkthread-mobile-post-category--notice {
        border-color: rgba(248, 113, 113, 0.42);
                background: rgba(127, 29, 29, 0.48);
                color: #fee2e2;
    }
    #noticeTable .darkthread-mobile-post-badges {
        display: inline-flex;
                flex: 0 0 auto;
                align-items: center;
                justify-content: flex-end;
                min-width: 2.4rem;
    }
    #noticeTable .darkthread-mobile-post-badges:empty {
        display: none;
    }
    #noticeTable .darkthread-mobile-post-badges .darkthread-table-new-badge {
        padding: 0.22rem 0.56rem;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }
    #noticeTable .darkthread-mobile-post-title {
        display: block;
                overflow: hidden;
                color: #f5f5f5;
                font-size: 1rem;
                font-weight: 700;
                line-height: 1.42;
                white-space: nowrap;
    }
    #noticeTable .darkthread-mobile-post-title-track {
        display: inline-flex;
                gap: 2rem;
                max-width: none;
                min-width: 100%;
                width: max-content;
                will-change: transform;
    }
    #noticeTable .darkthread-mobile-post-title.is-marquee .darkthread-mobile-post-title-track {
        min-width: max-content;
                animation: darkthread-mobile-title-marquee var(--darkthread-mobile-title-duration, 12s) linear infinite;
    }
    #noticeTable .darkthread-mobile-post-title:not(.is-marquee) .darkthread-mobile-post-title-item[aria-hidden="true"] {
        display: none;
    }
    #noticeTable .darkthread-mobile-post-title-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    @media (prefers-reduced-motion: reduce) {
        #noticeTable .darkthread-mobile-post-title.is-marquee .darkthread-mobile-post-title-track {
            animation: none;
        }
    }

    #noticeTable .darkthread-mobile-post-tags {
        display: flex;
                flex-wrap: wrap;
                gap: 0.25rem 0.45rem;
                overflow: hidden;
                color: #b8a36a;
                font-size: 0.78rem;
                font-weight: 600;
                line-height: 1.25;
    }
    #noticeTable .darkthread-mobile-post-tag-more {
        color: #d3c08a;
    }
    #noticeTable .darkthread-mobile-post-meta.darkthread-mobile-post-meta--stacked {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        width: 100%;
        min-width: 0;
        color: #9ca3af;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    #noticeTable .darkthread-mobile-post-meta-primary {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        min-width: 0;
    }

    #noticeTable .darkthread-mobile-post-meta-primary .darkthread-mobile-post-date {
        flex-shrink: 0;
        text-align: right;
        white-space: nowrap;
    }

    #noticeTable .darkthread-mobile-post-meta-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem 0.55rem;
    }

    #noticeTable .darkthread-mobile-post-meta-stats > span {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    #noticeTable .darkthread-mobile-post-meta-stats > span + span::before {
        content: "·";
        margin-right: 0.55rem;
        color: #5f6673;
    }

    #noticeTable .darkthread-mobile-post-author {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    #noticeTable .darkthread-mobile-post-author .darkthread-list-author,
    #noticeTable .darkthread-mobile-post-author .darkthread-list-author-name {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
}

/* 게시판 목록: 뷰포트 너비 1000px 미만에서 카드형 */
@media (max-width: 999px) {
    #darkthreadBoardListPage .darkthread-section-panel.darkthread-section-shell,
    #darkthreadNoticeListPage .darkthread-section-panel.darkthread-section-shell {
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
        overflow: visible;
        box-shadow: none;
    }

    body.darkthread-has-mobile-tab-bar #darkthreadBoardListPage .darkthread-list-search-row .darkthread-list-write-icon,
    body.darkthread-has-mobile-tab-bar #darkthreadNoticeListPage .darkthread-list-search-row .darkthread-list-write-icon {
        display: none !important;
    }

    body.darkthread-has-mobile-tab-bar #darkthreadBoardListPage .darkthread-list-header--category-wraps-3 .darkthread-list-search-row > .darkthread-category-filter-toggle:not(.darkthread-category-filter-toggle--scroll-fab):not([hidden]),
    body.darkthread-has-mobile-tab-bar #darkthreadNoticeListPage .darkthread-list-header--category-wraps-3 .darkthread-list-search-row > .darkthread-category-filter-toggle:not(.darkthread-category-filter-toggle--scroll-fab):not([hidden]) {
        display: none !important;
    }

    body.darkthread-has-mobile-tab-bar .darkthread-mobile-scroll-nav__stack > .darkthread-category-filter-toggle.darkthread-category-filter-toggle--scroll-fab:not([hidden]) {
        margin: 0;
    }

    body.darkthread-has-mobile-tab-bar .darkthread-mobile-scroll-nav__stack > .darkthread-category-filter-toggle.darkthread-category-filter-toggle--scroll-fab:not([hidden])[aria-expanded="true"] {
        border-color: rgba(248, 113, 113, 0.42);
        background: rgba(127, 29, 29, 0.82);
        color: #fff;
    }

    #darkthreadBoardListPage .darkthread-list-toolbar {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    #darkthreadBoardListPage .darkthread-list-write-button:not(.darkthread-list-write-icon) {
        min-height: 44px;
        padding-block: 0.65rem;
        gap: 0.32rem;
        font-size: 0.95rem;
    }

    /* 카드형일 때만: 테이블 본문 밖으로 삐져 나온 폭이 body 가로 스크롤을 만들지 않도록 */
    #darkthreadBoardListPage .darkthread-list-body {
        overflow-x: clip;
    }

    #boardTable {
        display: block;
        width: 100%;
        min-width: 0;
        border-collapse: separate;
    }

    #boardTable colgroup,
    #boardTable thead {
        display: none;
    }

    #boardTable tbody {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        gap: 0.7rem;
    }

    #boardTable tbody tr {
        display: block;
        min-width: 0;
        overflow: hidden;
        border: 1px solid #222;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(13, 13, 13, 0.96), rgba(8, 8, 8, 0.96));
    }

    #boardTable tbody tr:hover {
        background: rgba(255, 255, 255, 0.045);
    }

    #boardTable tbody tr > td {
        display: none;
    }

    #boardTable tbody tr > td[colspan] {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 4rem;
        padding: 0.95rem !important;
        color: var(--dt-fg-muted);
    }

    #boardTable .darkthread-table-title-cell {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        max-width: none;
        width: 100%;
        min-width: 0;
        padding: 0.85rem 0.95rem 0.8rem !important;
        box-sizing: border-box;
        contain: paint;
    }

    #boardTable .darkthread-board-row-sr-summary {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: normal;
        word-break: break-all;
        border: 0;
    }

    #boardTable .darkthread-table-title-wrap {
        display: none;
    }

    #boardTable .darkthread-table-title-grid {
        display: none;
    }

    #boardTable .darkthread-mobile-post-head {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.35rem 0.35rem;
        min-width: 0;
    }

    #boardTable .darkthread-mobile-post-category,
    #boardTable .darkthread-mobile-post-pin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 70%;
        min-width: 0;
        overflow: hidden;
        border: 1px solid rgba(184, 163, 106, 0.5);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(79, 54, 22, 0.78), rgba(58, 38, 14, 0.84));
        padding: 0.22rem 0.56rem;
        color: #f3e6bd;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 8px rgba(0, 0, 0, 0.28);
    }

    #boardTable .darkthread-mobile-post-category--icon {
        max-width: none;
        width: 1.45rem;
        height: 1.45rem;
        padding: 0;
        border-color: rgba(248, 113, 113, 0.35);
        background: linear-gradient(180deg, rgba(110, 30, 30, 0.86), rgba(75, 18, 18, 0.92));
        color: #fecaca;
        font-size: 0.68rem;
        flex: 0 0 auto;
    }

    #boardTable .darkthread-mobile-post-category--icon i {
        line-height: 1;
    }

    #boardTable .darkthread-mobile-post-category--icon .darkthread-table-new-badge-image {
        width: 1.35rem;
        height: 1.35rem;
        transform: scale(2);
        transform-origin: center center;
    }

    #boardTable .darkthread-mobile-post-title-row > .darkthread-table-new-badge {
        margin-left: 0.35rem;
        flex: 0 0 auto;
    }

    #boardTable .darkthread-mobile-post-category + .darkthread-table-badge-label {
        margin-left: 0.10rem;
        margin-right: 0.55rem;
    }

    #boardTable .darkthread-mobile-post-pin {
        width: 1.45rem;
        height: 1.45rem;
        max-width: none;
        padding: 0;
        border-color: rgba(251, 191, 36, 0.42);
        background: rgba(113, 63, 18, 0.55);
        color: #fcd34d;
        font-size: 0.72rem;
        flex: 0 0 auto;
    }

    #boardTable .darkthread-mobile-post-category:empty {
        display: none;
    }

    #boardTable .darkthread-mobile-post-category--notice {
        border-color: rgba(248, 113, 113, 0.42);
        background: rgba(127, 29, 29, 0.48);
        color: #fee2e2;
    }

    #boardTable .darkthread-mobile-post-badges {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-start;
        gap: 0.35rem;
        min-width: 0;
    }

    #boardTable .darkthread-mobile-post-badges:empty {
        display: none;
    }

    #boardTable .darkthread-mobile-post-badges .darkthread-table-new-badge {
        padding: 0.22rem 0.56rem;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }

    #boardTable .darkthread-mobile-post-title-row {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
        min-width: 0;
    }

    #boardTable .darkthread-mobile-post-title-row > .darkthread-mobile-post-title {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    #boardTable .darkthread-mobile-post-meta-read {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #boardTable .darkthread-mobile-post-meta-read .darkthread-table-read-badge {
        width: auto;
        height: auto;
        font-size: inherit;
        line-height: 1;
    }

    #boardTable .darkthread-mobile-post-title {
        display: block;
        overflow: hidden;
        color: #f5f5f5;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.42;
        white-space: nowrap;
    }

    #boardTable .darkthread-mobile-post-title-track {
        display: inline-flex;
        gap: 2rem;
        max-width: none;
        min-width: 100%;
        width: max-content;
        will-change: transform;
    }

    #boardTable .darkthread-mobile-post-title.is-marquee .darkthread-mobile-post-title-track {
        min-width: max-content;
        animation: darkthread-mobile-title-marquee var(--darkthread-mobile-title-duration, 12s) linear infinite;
    }

    #boardTable .darkthread-mobile-post-title:not(.is-marquee) .darkthread-mobile-post-title-item[aria-hidden="true"] {
        display: none;
    }

    #boardTable .darkthread-mobile-post-title-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    @media (prefers-reduced-motion: reduce) {
        #boardTable .darkthread-mobile-post-title.is-marquee .darkthread-mobile-post-title-track {
            animation: none;
        }
    }

    #boardTable .darkthread-mobile-post-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 0.45rem;
        overflow: hidden;
        color: #b8a36a;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.25;
    }

    #boardTable .darkthread-mobile-post-tag-more {
        color: #d3c08a;
    }

    #boardTable .darkthread-mobile-post-meta.darkthread-mobile-post-meta--stacked {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        width: 100%;
        min-width: 0;
        color: #9ca3af;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    #boardTable .darkthread-mobile-post-meta-primary {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        min-width: 0;
    }

    #boardTable .darkthread-mobile-post-meta-primary .darkthread-mobile-post-date {
        flex-shrink: 0;
        text-align: right;
        white-space: nowrap;
    }

    #boardTable .darkthread-mobile-post-meta-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem 0.55rem;
    }

    #boardTable .darkthread-mobile-post-meta-stats > span {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    #boardTable .darkthread-mobile-post-meta-stats > span + span::before {
        content: "·";
        margin-right: 0.55rem;
        color: #5f6673;
    }

    #boardTable .darkthread-mobile-post-author {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    #boardTable .darkthread-mobile-post-author .darkthread-list-author,
    #boardTable .darkthread-mobile-post-author .darkthread-list-author-name {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
}

@keyframes darkthread-mobile-title-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--darkthread-mobile-title-travel, -2rem));
    }
}

@media (max-width: 640px) {
    .darkthread-image-gallery__panel {
        width: 100vw;
        padding-left: max(0.65rem, env(safe-area-inset-left));
        padding-right: max(0.65rem, env(safe-area-inset-right));
    }

    .darkthread-image-gallery__stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
    }

    .darkthread-image-gallery__figure {
        grid-column: 1;
    }

    .darkthread-image-gallery__nav {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 2.35rem;
        height: 2.35rem;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.58);
    }

    .darkthread-image-gallery__nav--prev {
        left: 0.25rem;
    }

    .darkthread-image-gallery__nav--next {
        right: 0.25rem;
    }

    .darkthread-image-gallery__image {
        max-height: calc(100dvh - 11.5rem);
    }

    .darkthread-image-gallery__thumb {
        width: 3.9rem;
        height: 3.9rem;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .darkthread-image-gallery__panel {
        grid-template-columns: minmax(0, 1fr) clamp(4rem, 13vw, 6rem);
        grid-template-rows: auto minmax(0, 1fr);
        column-gap: 0.65rem;
        padding-top: max(0.45rem, env(safe-area-inset-top));
        padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
    }

    .darkthread-image-gallery__topbar {
        grid-column: 1 / -1;
        padding-bottom: 0.4rem;
    }

    .darkthread-image-gallery__stage {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
    }

    .darkthread-image-gallery__image {
        max-height: calc(100dvh - 4.75rem);
    }

    .darkthread-image-gallery__caption {
        display: none;
    }

    .darkthread-image-gallery__thumbs {
        grid-column: 2;
        grid-row: 2;
        flex-direction: column;
        max-height: calc(100dvh - 4.75rem);
        margin-top: 0;
        padding: 0.05rem 0.2rem;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y proximity;
    }

    .darkthread-image-gallery__thumb {
        width: 100%;
        height: clamp(3rem, 18vh, 4.2rem);
        scroll-snap-align: center;
    }
}

@media (max-width: 1299px) {
    .darkthread-mobile-image-row-scroll {
        clear: both;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        margin: calc(var(--darkthread-reading-paragraph-gap) * 0.95) 0 0.75rem;
        padding-bottom: 0.2rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .darkthread-richtext-image-row-shell .darkthread-mobile-image-row-scroll {
        clear: none;
        margin: 0;
    }

    .darkthread-mobile-image-row-track {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .darkthread-mobile-image-row-track > img {
        float: none !important;
        clear: none !important;
        flex: 0 0 auto;
        max-width: none;
        margin: 0 !important;
    }

    .darkthread-page-shell--mobile-fab .darkthread-page-sidebar-stats,
    .darkthread-page-shell--mobile-fab .darkthread-page-sidebar-quick {
        display: none !important;
    }

    .darkthread-page-shell--mobile-fab .notice-admin-actions.notice-admin-actions-back,
    .darkthread-page-shell--mobile-fab .notice-admin-actions.notice-admin-actions-scroll-top {
        display: none !important;
    }

    /* 작성·수정: 취소/저장은 FAB pinned 액션으로 */
    .darkthread-page-shell--mobile-fab form .notice-admin-actions.notice-admin-actions-split,
    .darkthread-page-shell--mobile-fab .notice-view-post-actions > .notice-admin-actions.notice-admin-actions-split {
        display: none !important;
    }

    .darkthread-page-sidebar-quick-heading,
    .darkthread-page-sidebar-latest-heading,
    .darkthread-page-sidebar-related-heading {
        font-size: 1rem;
    }

    .darkthread-page-shell {
        display: block;
        grid-template-columns: auto;
        border-radius: 1rem;
    }

    .darkthread-page-shell--mobile-fab > .darkthread-page-sidebar:first-child {
        display: none;
    }

    .darkthread-page-sidebar {
        border-right: 0 !important;
        border-left: 0 !important;
    }

    .darkthread-page-sidebar-sticky {
        position: static;
        top: auto;
        z-index: auto;
        box-shadow: none;
    }

    .darkthread-page-sidebar-header {
        padding: 1.15rem 1rem 0.85rem;
        text-align: center;
    }

    .darkthread-page-sidebar-right {
        display: block !important;
        width: 100%;
        border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
        background: transparent;
    }

    .darkthread-page-sidebar-right .darkthread-page-sidebar-sticky {
        display: block !important;
    }

    .darkthread-page-sidebar-right .darkthread-page-sidebar-related,
    .darkthread-page-sidebar-right .darkthread-page-sidebar-latest {
        display: block !important;
        padding: 1rem;
    }

    .darkthread-account-profile-shell .darkthread-page-sidebar-quick,
    .darkthread-admin-user-detail-shell .darkthread-page-sidebar-quick {
        border-top: 0;
    }

    .darkthread-page-sidebar-quick-toggle {
        justify-content: space-between;
        gap: 0.45rem;
        text-align: left;
        cursor: pointer;
        min-height: 2.6rem;
        border-radius: 0.55rem;
        padding: 0.5rem 0.75rem;
    }

    .darkthread-page-sidebar-quick-list {
        gap: 0.5rem;
    }

    .darkthread-page-sidebar-quick-toggle-icon {
        display: inline-block;
    }

    .darkthread-page-sidebar-quick-toggle[aria-expanded='true'] .darkthread-page-sidebar-quick-toggle-icon {
        transform: rotate(180deg);
    }

    .darkthread-page-sidebar-quick-toggle[aria-expanded='true'] + .darkthread-page-sidebar-quick-list {
        margin-top: 0.3rem;
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 0.65rem;
        background: rgba(9, 9, 9, 0.35);
        padding: 0.2rem 0;
        gap: 0;
    }

    .darkthread-page-sidebar-stats-toggle[aria-expanded='true'] + .darkthread-page-sidebar-stats-list {
        margin-top: 0.3rem;
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 0.65rem;
        background: rgba(9, 9, 9, 0.35);
        padding: 0.25rem 0.75rem;
    }

    .darkthread-page-sidebar-quick-toggle[aria-expanded='false'] + .darkthread-page-sidebar-quick-list {
        display: none;
    }

    .darkthread-page-sidebar-stats-toggle[aria-expanded='false'] + .darkthread-page-sidebar-stats-list {
        display: none;
    }

    .darkthread-page-sidebar-quick-item {
        text-align: left;
    }

    .darkthread-page-sidebar-quick-item + .darkthread-page-sidebar-quick-item {
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }

    .darkthread-page-sidebar-quick-link {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        min-height: 2.75rem;
        padding: 0.65rem 0.85rem;
        margin: 0;
        border-radius: 0;
    }

    .darkthread-page-sidebar-quick-title {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .darkthread-page-header {
        padding: 1.2rem 1rem 0.85rem;
        border-top: 1px dashed rgba(148, 163, 184, 0.18);
    }

    .darkthread-page-header-title {
        font-size: clamp(1.1rem, 4.2vw, 1.35rem);
    }

    .darkthread-page-header-main {
        gap: 0.6rem;
    }

    .darkthread-page-header-main.has-actions {
        width: 100%;
    }

    .darkthread-page-header-actions {
        margin-top: 0;
        justify-content: center;
    }

    .darkthread-post-bookmark-form {
        justify-content: center;
    }

    .darkthread-view-post-head-inner,
    .darkthread-view-post-byline-inner {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .darkthread-view-post-actionbar {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .darkthread-view-post-title {
        font-size: clamp(1.38rem, 5.8vw + 0.42rem, 1.82rem);
        line-height: 1.3;
    }

    .darkthread-view-post-actionbar-right {
        flex-basis: auto;
        justify-content: flex-end;
    }

    .darkthread-page-body {
        padding: 1rem 0.85rem;
    }

    /* 게시판 작성·수정(관련 글 필드 포함): 세로 flex 가 그룹을 불필요하게 늘리지 않도록 */
    .darkthread-page-body > form > .notice-admin-group:has(.board-related-field) {
        flex: 0 1 auto;
    }

    .notice-admin-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .notice-admin-actions.notice-admin-actions-left {
        justify-content: flex-start;
    }

    .notice-admin-actions.notice-admin-actions-split {
        justify-content: stretch;
        align-items: stretch;
    }

    .notice-admin-actions.notice-admin-actions-split .notice-admin-actions-group {
        width: 100%;
    }

    .notice-admin-actions.notice-admin-actions-split .notice-admin-actions-group.is-right {
        margin-left: 0;
        justify-content: flex-end;
    }

    /* board·notice 상세 수정/삭제: 동일 50% 열 (DOM도 형제 버튼으로 통일) */
    .notice-admin-actions.notice-admin-actions-split .notice-admin-actions-group.notice-admin-actions-group--post-manage {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 0.75rem;
    }

    .notice-admin-actions.notice-admin-actions-split .notice-admin-actions-group.notice-admin-actions-group--post-manage > .notice-admin-button {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .notice-admin-actions.notice-admin-actions-back {
        display: flex;
        justify-content: stretch;
    }

    .notice-admin-actions.notice-admin-actions-back .notice-admin-button {
        width: 100%;
    }

    .notice-admin-actions.notice-admin-actions-scroll-top {
        display: flex;
        justify-content: stretch;
    }

    .notice-admin-actions.notice-admin-actions-scroll-top .notice-admin-button {
        width: 100%;
        flex: none;
    }

    .notice-admin-button {
        flex: 1 1 0;
    }

    .darkthread-comment-entry {
        flex-direction: column;
    }

    .darkthread-comment-submit {
        min-height: 2.9rem;
    }

    .darkthread-comment-item-actions {
        margin-top: 0.45rem;
    }

    .darkthread-comment-actions-row {
        justify-content: flex-end;
        gap: 0.35rem 0.45rem;
    }

    .darkthread-comment-actions-row > .darkthread-comment-reply-trigger {
        flex: 0 0 auto;
        min-width: 0;
        width: auto;
        margin-left: 0;
    }

    .darkthread-comment-actions-row > .darkthread-comment-report-form,
    .darkthread-comment-actions-row > .darkthread-comment-delete-form {
        flex: 0 0 auto;
        min-width: 0;
    }

    /* 전폭 칩보다 가볍게: 내용 쪽 시선이 먼저 가도록 높이·채도만 살짝 올림 */
    .darkthread-comment-actions-row .darkthread-comment-reply-trigger,
    .darkthread-comment-actions-row .darkthread-comment-report-button,
    .darkthread-comment-actions-row .darkthread-comment-delete-button {
        min-height: 2.5rem;
        padding: 0.35rem 0.72rem;
        font-size: 0.78rem;
        white-space: nowrap;
        border-radius: 0.45rem;
    }

    .darkthread-comment-actions-row .darkthread-comment-reply-trigger {
        border-color: rgba(248, 113, 113, 0.26);
        background: rgba(127, 29, 29, 0.12);
    }

    .darkthread-comment-actions-row .darkthread-comment-report-button {
        border-color: rgba(148, 163, 184, 0.22);
        background: rgba(148, 163, 184, 0.05);
    }

    .darkthread-comment-actions-row .darkthread-comment-delete-button {
        border-color: rgba(248, 113, 113, 0.26);
        background: rgba(248, 113, 113, 0.05);
    }

    .darkthread-comment-actions-row .darkthread-comment-report-button.is-active,
    .darkthread-comment-actions-row .darkthread-comment-report-button:disabled {
        border-color: rgba(100, 116, 139, 0.32);
        background: rgba(51, 65, 85, 0.22);
    }

    .darkthread-comment-item.is-reply {
        margin-left: 0 !important;
    }

    .darkthread-comment-children .darkthread-comment-item.is-reply {
        margin-left: 0.5rem;
        padding-left: 0.65rem;
    }

}

@media (max-width: 900px) {
    .darkthread-page-content {
        --darkthread-reading-max-width: 100%;
        --darkthread-reading-title-width: 100%;
        --darkthread-reading-inline-gutter: clamp(0.9rem, 3vw, 1.25rem);
        --darkthread-reading-line-height: 1.78;
    }

    .darkthread-post-title-input {
        font-size: clamp(1.32rem, 1.1rem + 0.8vw, 1.66rem);
    }
}

@media (max-width: 640px) {
    .darkthread-page-header-title {
        text-align: center;
    }

    .darkthread-post-title-input {
        text-align: left;
    }
}

/* 게시판·공지 목록: 글쓰기는 검색 행 우측 아이콘으로 표시 (FAB 제거) */

/* 게시판·공지: 모바일에서 히어로 대신 status-bar 아래 카테고리 띠 */
.category-context-strip {
    display: none;
}

@media (max-width: 999px) {
    body.darkthread-has-mobile-category-strip #darkthread-hero {
        display: none !important;
    }

    body.darkthread-has-mobile-category-strip #darkthread-main {
        padding-top: 1rem;
    }

    /* presence 숨김·카테고리 띠 간격 → chrome-presence.css */

    body.darkthread-has-mobile-category-strip .category-context-strip {
        display: none !important;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-top: none;
        border-bottom: 1px solid rgb(255 255 255 / 0.07);
        background: rgb(3 3 3 / 0.85);
    }

    body.darkthread-has-mobile-category-strip .category-context-strip__label {
        margin: 0;
        padding: 0.5rem 1rem;
        text-align: center;
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        line-height: 1.35;
        color: rgb(241 245 249 / 0.95);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ------------------------------------------------------------------------- */
/* 내 계정 프로필: 모바일 부채꼴 메뉴 (우측 반월 손잡이)                        */
/* ------------------------------------------------------------------------- */

body.darkthread-account-fan-open {
    overflow: hidden;
}

@media (min-width: 1300px) {
    .darkthread-account-profile-fan {
        display: none !important;
    }
}

@media (max-width: 1299px) {
    .darkthread-account-profile-shell .darkthread-page-sidebar-quick,
    .darkthread-admin-user-detail-shell .darkthread-page-sidebar-quick {
        display: none !important;
    }

    .darkthread-account-profile-fan {
        --fan-handle-w: 1.65rem;
        /* 손잡이와 메뉴 패널 사이 여백 */
        --fan-handle-gap: 0.4rem;
        display: block;
        position: fixed;
        inset: 0;
        z-index: 95;
        pointer-events: none;
    }

    .darkthread-account-profile-fan-handle,
    .darkthread-account-profile-fan-backdrop {
        pointer-events: auto;
    }

    .darkthread-account-profile-fan:not(.is-open) .darkthread-account-profile-fan-backdrop {
        pointer-events: none;
    }

    .darkthread-account-profile-fan-handle {
        position: fixed;
        right: max(0px, env(safe-area-inset-right));
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        width: var(--fan-handle-w);
        min-width: var(--fan-handle-w);
        height: 4.6rem;
        padding: 0;
        margin: 0;
        border: 1px solid rgba(148, 163, 184, 0.35);
        border-right: none;
        border-radius: 999px 0 0 999px;
        background: rgba(15, 15, 18, 0.96);
        box-shadow: -8px 0 20px rgba(0, 0, 0, 0.4);
        color: #f1f5f9;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .darkthread-account-profile-fan-handle:focus-visible {
        outline: 2px solid rgba(248, 250, 252, 0.7);
        outline-offset: 3px;
    }

    .darkthread-account-profile-fan-handle-icon {
        display: inline-flex;
        font-size: 0.82rem;
        opacity: 1;
        margin-left: 3px;
    }

    .darkthread-account-profile-fan-backdrop {
        position: fixed;
        inset: 0;
        z-index: 0;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.52);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.2s ease,
            visibility 0.2s linear;
    }

    .darkthread-account-profile-fan.is-open .darkthread-account-profile-fan-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .darkthread-account-profile-fan-panel {
        position: fixed;
        z-index: 2;
        /* 손잡이 왼쪽 + 작은 간격 */
        right: calc(max(0px, env(safe-area-inset-right)) + var(--fan-handle-w) + var(--fan-handle-gap));
        top: 50%;
        transform: translateY(-50%);
        width: min(
            calc(100vw - var(--fan-handle-w) - var(--fan-handle-gap) - max(0.75rem, env(safe-area-inset-right))),
            15.5rem
        );
        height: auto;
        min-height: calc(var(--fan-n) * var(--fan-step) + 0.5rem);
        max-height: min(88vh, calc(var(--fan-n) * var(--fan-step) + 1.25rem));
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.22s ease,
            visibility 0.22s linear;
    }

    .darkthread-account-profile-fan.is-open .darkthread-account-profile-fan-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .darkthread-account-profile-fan-list {
        position: relative;
        z-index: 1;
        width: 100%;
        min-height: calc(var(--fan-n) * var(--fan-step));
        margin: 0;
        padding: 0.35rem 0.2rem 0.35rem 0.45rem;
        list-style: none;
        /* PC 사이드바와 동일: 배열 인덱스 0 = 맨 위 (--fan-n, --fan-step 은 패널에서 상속) */
    }

    .darkthread-account-profile-fan-item {
        position: absolute;
        right: 0;
        left: 0;
        top: calc(
            50% + (var(--fan-i) - (var(--fan-n) - 1) / 2) * var(--fan-step)
        );
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        transform-origin: 50% 50%;
        transform: translateY(-50%) scale(0.96);
        opacity: 0;
        transition:
            transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.22s ease;
        transition-delay: 0ms;
    }

    .darkthread-account-profile-fan.is-open .darkthread-account-profile-fan-item {
        transform: translateY(-50%) scale(1);
        opacity: 1;
        transition-delay: calc(var(--fan-i) * 32ms);
    }

    .darkthread-account-profile-fan-list.is-single > .darkthread-account-profile-fan-item {
        transform: translateY(-50%) scale(0.96);
    }

    .darkthread-account-profile-fan.is-open .darkthread-account-profile-fan-list.is-single > .darkthread-account-profile-fan-item {
        transform: translateY(-50%) scale(1);
    }

    .darkthread-account-profile-fan-link {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 2.4rem;
        column-gap: 0.55rem;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-height: 2.5rem;
        padding: 0.3rem 0;
        border: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        color: var(--dt-fg);
        font-size: 0.82rem;
        font-weight: 650;
        line-height: 1.25;
        text-decoration: none;
    }

    .darkthread-account-profile-fan-link-icon {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        box-sizing: border-box;
        width: 2.4rem;
        height: 2.4rem;
        align-items: center;
        justify-content: center;
        justify-self: center;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.38);
        background: rgba(8, 12, 20, 0.88);
        font-size: 0.95rem;
        line-height: 1;
        color: inherit;
    }

    .darkthread-account-profile-fan-link-icon i {
        pointer-events: none;
    }

    .darkthread-account-profile-fan-link-label {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        text-align: right;
        font-weight: 650;
        color: var(--dt-fg);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .darkthread-account-profile-fan-link[aria-current='page'] .darkthread-account-profile-fan-link-icon {
        border-color: rgba(248, 113, 113, 0.52);
        background: rgba(30, 10, 14, 0.88);
        color: #fecaca;
    }

    .darkthread-account-profile-fan-link[aria-current='page'] .darkthread-account-profile-fan-link-label {
        color: #fecaca;
    }

    .darkthread-account-profile-fan-link:focus-visible {
        outline: 2px solid rgba(248, 250, 252, 0.75);
        outline-offset: 3px;
        border-radius: 0.35rem;
    }
}

@media (max-width: 1299px) and (prefers-reduced-motion: reduce) {
    .darkthread-account-profile-fan-backdrop,
    .darkthread-account-profile-fan-panel,
    .darkthread-account-profile-fan-item {
        transition: none !important;
    }

    .darkthread-account-profile-fan.is-open .darkthread-account-profile-fan-item {
        transition-delay: 0ms !important;
    }
}

/* 게시판 작성·수정: 분류 pill 수평 스크롤 (통계 탭과 동일한 좌·우 힌트) */
@media (max-width: 1079px) {
    .darkthread-editor-category-scroll {
        position: relative;
        min-width: 0;
        overflow-x: clip;
        overflow-y: visible;
        padding-bottom: 0.15rem;
    }

    .darkthread-editor-category-scroll .darkthread-editor-category-tags {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        padding: 0.2rem 0.25rem 0.55rem;
        margin-inline: -0.25rem;
    }

    .darkthread-editor-category-scroll .darkthread-editor-category-tags::-webkit-scrollbar {
        display: none;
    }

    .darkthread-editor-category-scroll .darkthread-category-pill {
        flex: 0 0 auto;
        margin-block: 0.1rem;
    }

    .darkthread-editor-category-scroll .darkthread-category-pill:hover,
    .darkthread-editor-category-scroll .darkthread-category-pill:focus-visible {
        transform: none;
    }

    .darkthread-editor-category-scroll.is-category-scrollable .darkthread-editor-category-scroll-hint {
        position: absolute;
        top: 0.15rem;
        bottom: 0.45rem;
        z-index: 2;
        display: flex;
        align-items: center;
        width: 1.85rem;
        pointer-events: none;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1;
        color: rgba(148, 163, 184, 0.42);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .darkthread-editor-category-scroll-hint i {
        font-size: 0.7rem;
    }

    .darkthread-editor-category-scroll-hint--left {
        left: 0;
        justify-content: flex-start;
        padding-left: 0.4rem;
        background: linear-gradient(to right, rgba(9, 9, 9, 0.96) 35%, rgba(9, 9, 9, 0));
    }

    .darkthread-editor-category-scroll-hint--right {
        right: 0;
        justify-content: flex-end;
        padding-right: 0.4rem;
        background: linear-gradient(to left, rgba(9, 9, 9, 0.96) 35%, rgba(9, 9, 9, 0));
    }

    .darkthread-editor-category-scroll.is-category-scrollable.can-scroll-left .darkthread-editor-category-scroll-hint--left,
    .darkthread-editor-category-scroll.is-category-scrollable.can-scroll-right .darkthread-editor-category-scroll-hint--right {
        opacity: 1;
    }
}
