html {
    font-size: 15px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    --darkthread-page-bg:
        radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.18), transparent 22%),
        /* radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.14), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(148, 163, 184, 0.08), transparent 24%), */
        linear-gradient(280deg, #0b1324 0%, #08101d 38%, #050a14 68%, #020409 100%);
    /* sticky #darkthread-header (대략 py-3 + 행 높이) 아래 정렬 */
    --darkthread-sticky-header-offset: 4.25rem;
}

body {
    background: var(--darkthread-page-bg);
    background-color: #020409;
}

/* 카페24 등 상위 래퍼·flex 조합에서 가로 폭이 수축되는 경우 방지 */
body.min-h-screen {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.min-h-screen.noise {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#darkthread-main {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#darkthread-highlights {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}

#darkthread-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.darkthread-login {
    background:
        radial-gradient(ellipse at 50% -4%, rgba(110, 196, 255, 0.2) 0%, rgba(110, 196, 255, 0.12) 18%, rgba(110, 196, 255, 0.05) 34%, transparent 58%),
        linear-gradient(180deg, #152b41 0%, #0b1628 34%, #060d18 64%, #020409 100%);
    background-color: #020409;
}

.noise {
    background-image: none;
}

/* 본문 래퍼: 카드/프레임 느낌 없이 페이지 배경만 보이게 */
.content-frame {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* 공지/게시판 셀(.notice-page-shell) 사이드바 sticky — 상위 overflow 가 sticky 를 막는 경우 */
body.darkthread-flat-content-frame .content-frame:has(.notice-page-shell) {
    overflow: visible;
}

body.darkthread-flat-content-frame .notice-page-shell {
    overflow: visible;
}

/* 관리자 회원 화면: flat 프레임이 셸 overflow 를 visible 로 두어 모서리가 어색해지는 문제 보정 */
body.darkthread-admin-user-shell.darkthread-flat-content-frame .notice-page-shell {
    overflow: hidden;
    border-radius: 1rem;
    border-color: rgba(148, 163, 184, 0.12);
}

/* 관리자 회원 상세 — 활동 이력 */
.darkthread-admin-user-activity {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.darkthread-admin-user-activity-block {
    min-width: 0;
}

.darkthread-admin-user-activity-heading {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.darkthread-admin-user-activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.6rem;
}

.darkthread-admin-user-activity-stat {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(0, 0, 0, 0.22);
    padding: 0.65rem 0.75rem;
    min-width: 0;
}

.darkthread-admin-user-activity-stat--wide {
    grid-column: 1 / -1;
}

.darkthread-admin-user-activity-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.25;
}

.darkthread-admin-user-activity-stat-value {
    margin-top: 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    word-break: break-word;
}

.darkthread-admin-user-activity-stat-value--sm {
    font-size: 0.82rem;
    font-weight: 500;
    color: #cbd5e1;
}

/* 회원 수정 폼: 라벨–입력 간격 */
body.darkthread-admin-user-shell .darkthread-admin-user-modify-form .notice-admin-group {
    gap: 0.95rem;
}

body.darkthread-admin-user-shell .darkthread-admin-user-modify-form .notice-admin-field > .notice-admin-label + * {
    margin-top: 0.5rem;
}

body.darkthread-admin-user-shell .darkthread-admin-user-modify-form .notice-admin-field > label.notice-admin-label + .notice-admin-input {
    margin-top: 0.5rem;
}

body.darkthread-admin-user-shell .darkthread-admin-user-modify-form .notice-admin-group .notice-admin-field + .notice-admin-field {
    padding-top: 1.1rem;
}

/* 내 계정 프로필 폼: 라벨–표시값/입력 필드 간격 */
body.darkthread-admin-user-shell .darkthread-account-profile-form .notice-admin-group {
    gap: 0;
}

body.darkthread-admin-user-shell .darkthread-account-profile-form .notice-admin-field > .notice-admin-label + .account-profile-locked-input-wrap,
body.darkthread-admin-user-shell .darkthread-account-profile-form .notice-admin-field > label.notice-admin-label + .account-profile-locked-input-wrap {
    margin-top: 0.75rem;
}

body.darkthread-admin-user-shell .darkthread-account-profile-form .notice-admin-field > label.notice-admin-label + .notice-admin-input {
    margin-top: 0.75rem;
}

/* 읽기 전용 필드: 잠금 아이콘 영역(회원가입 이메일 인증 잠금과 동일 배치) */
body.darkthread-admin-user-shell .darkthread-account-profile-form .account-profile-locked-input-wrap .account-profile-readonly-input {
    padding-right: 2.65rem;
    cursor: default;
}

body.darkthread-admin-user-shell .darkthread-account-profile-form .account-profile-locked-input-wrap .notice-admin-input[readonly] {
    opacity: 0.96;
}

body.darkthread-admin-user-shell .darkthread-account-profile-form .notice-admin-group .notice-admin-field + .notice-admin-field {
    padding-top: 1.35rem;
}

/* 읽기 전용(이메일·닉네임)과 비밀번호 입력 블록 사이 여백 */
body.darkthread-admin-user-shell .darkthread-account-profile-form .notice-admin-field.account-profile-password-fields-start {
    margin-top: 0.65rem;
}

.darkthread-admin-user-comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.darkthread-admin-user-comment-item {
    min-width: 0;
}

/* ——— 홈(아카이브형) 전용 ——— */
body.darkthread-home {
    --dt-home-bg: #05070b;
    --dt-home-card: #0a0f18;
    --dt-home-card-strong: #0e1420;
    --dt-home-text: #c5cad4;
    --dt-home-muted: #7b8494;
    --dt-home-line: rgba(148, 163, 184, 0.12);
    --dt-home-accent: #5f7d96;
    --dt-home-accent-hover: #7a93a8;
    /* 셸 내 세션 간 세로 리듬(히어로 ↔ 공지/인기 ↔ 게시판 ↔ 최근) */
    --darkthread-home-shell-section-gap: clamp(18px, 4vw, 28px);
    /* 카드·게시판·최근 기록: 제목(헤더) 아래 본문까지 간격 통일 */
    --darkthread-home-section-head-gap: 16px;
}

/* 홈: 기본 레이아웃(main·highlights) 패딩이 셸 패딩과 겹쳐 모바일에서 과도하게 좁아지는 것 방지 */
@media (max-width: 768px) {
    body.darkthread-home {
        --darkthread-home-shell-section-gap: clamp(16px, 3.2vw, 22px);
    }

    body.darkthread-home #darkthread-main {
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
    }

    body.darkthread-home #darkthread-highlights {
        padding-left: 0;
        padding-right: 0;
    }

    body.darkthread-home #darkthread-content {
        min-width: 0;
    }

    .darkthread-home-shell {
        padding: 12px 8px;
    }

    .darkthread-home-skipnav {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .darkthread-home-skipnav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
        font-size: 0.78rem;
    }

    .darkthread-home-skipnav li {
        min-width: 0;
    }

    .darkthread-home-skipnav a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 6px;
        border-radius: 10px;
        text-align: center;
        line-height: 1.25;
        background: rgba(0, 0, 0, 0.22);
    }

    .darkthread-home-hero {
        min-height: 0;
        border-radius: 16px;
    }

    .darkthread-home-hero-grid {
        padding: 14px 12px;
        gap: 18px;
    }

    .darkthread-home-hero-title {
        font-size: clamp(1.32rem, 5.2vw, 1.85rem);
    }

    .darkthread-home-hero-sub {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .darkthread-home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .darkthread-home-btn {
        width: 100%;
        justify-content: center;
    }
}

.darkthread-home-shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: var(--darkthread-home-shell-section-gap, 28px);
    color: var(--dt-home-text);
}

@media (max-width: 520px) {
    body.darkthread-home {
        --darkthread-home-shell-section-gap: 16px;
    }

    body.darkthread-home #darkthread-main {
        padding-left: max(0.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.25rem, env(safe-area-inset-right, 0px));
    }

    .darkthread-home-shell {
        padding: 10px 6px;
    }

    .darkthread-home-card {
        padding: 16px 12px;
    }

    .darkthread-home-hero-grid {
        padding: 12px 10px;
        gap: 14px;
    }
}

.darkthread-home-shell::before {
    content: '';
    position: absolute;
    inset: -6px -8px;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

.darkthread-home-skipnav {
    border-radius: 20px;
    border: 1px solid var(--dt-home-line);
    background: rgba(10, 15, 24, 0.55);
    padding: 12px 18px;
}

.darkthread-home-skipnav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 0.82rem;
}

.darkthread-home-skipnav a {
    color: var(--dt-home-muted);
    text-decoration: none;
    transition: color 0.14s ease;
}

.darkthread-home-skipnav a:hover {
    color: var(--dt-home-accent-hover);
}

.darkthread-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--dt-home-line);
    min-height: 360px;
    background:
        linear-gradient(165deg, rgba(14, 20, 32, 0.55) 0%, rgba(5, 8, 14, 0.92) 52%, rgba(4, 6, 11, 0.98) 100%),
        linear-gradient(120deg, #0a1220 0%, #05070b 48%, #060910 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.darkthread-home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

.darkthread-home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    padding: 24px;
    align-items: stretch;
}

@media (min-width: 960px) {
    .darkthread-home-hero-grid {
        grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
        gap: 28px;
    }
}

.darkthread-home-hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 280px;
}

.darkthread-home-hero-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dt-home-muted);
}

.darkthread-home-hero-title {
    margin: 0;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: #eef1f6;
}

.darkthread-home-hero-sub {
    margin: 0;
    max-width: 38rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--dt-home-muted);
}

.darkthread-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.darkthread-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        color 0.14s ease,
        transform 0.14s ease;
}

.darkthread-home-btn--primary {
    background: rgba(95, 125, 150, 0.35);
    border-color: rgba(120, 150, 175, 0.35);
    color: #e8edf3;
}

.darkthread-home-btn--primary:hover {
    background: rgba(110, 140, 165, 0.45);
    border-color: rgba(140, 168, 190, 0.45);
    transform: translateY(-1px);
}

.darkthread-home-btn--secondary {
    background: rgba(10, 15, 24, 0.55);
    border-color: var(--dt-home-line);
    color: var(--dt-home-text);
}

.darkthread-home-btn--secondary:hover {
    background: rgba(18, 24, 36, 0.75);
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateY(-1px);
}

.darkthread-home-hero-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.darkthread-home-status-card {
    border-radius: 20px;
    border: 1px solid var(--dt-home-line);
    background: var(--dt-home-card-strong);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        transform 0.14s ease;
}

.darkthread-home-status-card:hover {
    background: #121a28;
    border-color: rgba(148, 163, 184, 0.18);
    transform: translateY(-1px);
}

.darkthread-home-status-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 650;
    color: #dce1e8;
}

.darkthread-home-status-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--dt-home-muted);
}

.darkthread-home-status-link {
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dt-home-accent);
    text-decoration: none;
    width: fit-content;
    transition: color 0.12s ease;
}

.darkthread-home-status-link:hover {
    color: var(--dt-home-accent-hover);
}

.darkthread-home-row {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

@media (min-width: 900px) {
    .darkthread-home-row--notice {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

.darkthread-home-card {
    border-radius: 20px;
    border: 1px solid var(--dt-home-line);
    background: var(--dt-home-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.darkthread-home-card--stretch {
    min-height: 100%;
}

.darkthread-home-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: var(--darkthread-home-section-head-gap, 16px);
}

@media (max-width: 560px) {
    .darkthread-home-card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .darkthread-home-tabs {
        flex-wrap: wrap;
    }
}

/* 공지사항·인기글: 타이틀·전체 보기 / 탭을 중앙 정렬 (게시판·최근 기록과 통일) */
.darkthread-home-notice .darkthread-home-card-head,
.darkthread-home-popular .darkthread-home-card-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.darkthread-home-notice .darkthread-home-card-head .darkthread-home-section-title,
.darkthread-home-popular .darkthread-home-card-head .darkthread-home-section-title {
    width: 100%;
    text-align: center;
}

.darkthread-home-notice .darkthread-home-card-head .darkthread-home-textlink {
    white-space: normal;
}

.darkthread-home-popular .darkthread-home-tabs {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

body.darkthread-home .darkthread-home-shell .darkthread-home-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #e6e9ef;
}

.darkthread-home-textlink {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dt-home-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.12s ease;
}

.darkthread-home-textlink:hover {
    color: var(--dt-home-accent-hover);
}

.darkthread-home-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.darkthread-home-notice-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease;
}

.darkthread-home-notice-item:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(148, 163, 184, 0.12);
}

.darkthread-home-notice-pill {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(123, 132, 148, 0.35);
    color: var(--dt-home-muted);
    background: rgba(5, 8, 14, 0.65);
}

.darkthread-home-notice-title {
    grid-row: 1;
    grid-column: 2;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e6ed;
}

.darkthread-home-notice-date {
    grid-row: 1;
    grid-column: 3;
    font-size: 0.72rem;
    color: var(--dt-home-muted);
    white-space: nowrap;
}

.darkthread-home-notice-line {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--dt-home-muted);
}

@media (max-width: 520px) {
    .darkthread-home-notice-item {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 8px;
    }

    .darkthread-home-notice-pill {
        grid-row: 1;
        grid-column: 1;
        width: fit-content;
    }

    .darkthread-home-notice-title {
        grid-row: 2;
        grid-column: 1;
    }

    .darkthread-home-notice-date {
        grid-row: 3;
        grid-column: 1;
        white-space: normal;
    }

    .darkthread-home-notice-line {
        grid-row: 4;
        grid-column: 1;
    }
}

.darkthread-home-tabs {
    display: flex;
    gap: 6px;
}

.darkthread-home-tab {
    cursor: pointer;
    border: 1px solid var(--dt-home-line);
    background: rgba(5, 8, 14, 0.45);
    color: var(--dt-home-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 10px;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        color 0.14s ease;
}

.darkthread-home-tab:hover {
    color: var(--dt-home-text);
    border-color: rgba(148, 163, 184, 0.18);
}

.darkthread-home-tab.is-active {
    color: #e8ecf1;
    border-color: rgba(120, 150, 175, 0.35);
    background: rgba(95, 125, 150, 0.18);
}

.darkthread-home-popular-stack {
    display: grid;
    flex: 1;
    min-height: 120px;
}

.darkthread-home-popular-stack > .darkthread-home-popular-panel {
    grid-area: 1 / 1;
    transition: opacity 0.16s ease;
}

.darkthread-home-popular-panel:not(.is-active) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.darkthread-home-popular-panel.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.darkthread-home-feature {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--dt-home-line);
    background: var(--dt-home-card-strong);
    text-decoration: none;
    color: inherit;
    margin-bottom: 14px;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        transform 0.14s ease;
}

.darkthread-home-feature:hover {
    background: #121a28;
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateY(-1px);
}

.darkthread-home-feature-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dt-home-muted);
}

.darkthread-home-feature-title {
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.35;
    color: #eef1f6;
}

.darkthread-home-feature-preview {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--dt-home-text);
}

.darkthread-home-feature-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.35rem;
    font-size: 0.75rem;
    color: var(--dt-home-muted);
}

.darkthread-home-meta-dot {
    margin: 0 0.2em;
}

.darkthread-home-ranklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 제목 1줄 + 메타(분류·조회·댓글·추천·날짜) 한 덩어리 — 상단 피처 카드와 동일한 정보 밀도 */
.darkthread-home-rankrow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        transform 0.14s ease;
}

.darkthread-home-rankrow:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(148, 163, 184, 0.12);
    transform: translateY(-1px);
}

.darkthread-home-ranktitle {
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    color: #e2e6ed;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.darkthread-home-rankmeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.25rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--dt-home-muted);
}

.darkthread-home-rankmeta .darkthread-home-meta-dot {
    margin: 0 0.12em;
    color: rgba(148, 163, 184, 0.45);
}

.darkthread-home-rankmeta .darkthread-home-rankcat {
    font-size: inherit;
    font-weight: 600;
    color: var(--dt-home-muted);
    white-space: nowrap;
}

/* PC: 제목(좌) · 분류·조회·댓글·추천·날짜(우) 한 행 — 모바일은 위 세로 스택 유지 */
@media (min-width: 768px) {
    .darkthread-home-rankrow {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px 18px;
    }

    .darkthread-home-ranktitle {
        flex: 1 1 0;
        min-width: 0;
        text-align: left;
        -webkit-line-clamp: 2;
    }

    .darkthread-home-rankmeta {
        flex: 0 1 auto;
        max-width: min(22rem, 48%);
        justify-content: flex-end;
        text-align: right;
        row-gap: 4px;
    }
}

.darkthread-home-popular-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.25rem 0.35rem;
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: var(--dt-home-muted);
    text-align: center;
}

.darkthread-home-boards {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.darkthread-home-boards-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--darkthread-home-section-head-gap, 16px);
}

.darkthread-home-boards-head .darkthread-home-section-title {
    width: 100%;
    text-align: center;
}

/* 게시판 둘러보기: 내용 높이 기반 카드 + 가변 열(모바일 2·넓은 화면 3) */
.darkthread-home-board-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    align-items: start;
    gap: clamp(10px, 2vw, 14px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
    .darkthread-home-board-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* PC: 카드가 뷰포트 전체 너비만큼 커지지 않도록 그리드 폭 제한 */
@media (min-width: 900px) {
    .darkthread-home-board-grid {
        max-width: min(960px, 100%);
        margin-left: auto;
        margin-right: auto;
        gap: 14px;
    }
}

.darkthread-home-board-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--dt-home-line);
    background: var(--dt-home-card);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        transform 0.14s ease;
}

@media (min-width: 640px) {
    .darkthread-home-board-card {
        gap: 5px;
        padding: 12px 14px;
        border-radius: 16px;
    }
}

@media (min-width: 900px) {
    .darkthread-home-board-card {
        padding: 12px 14px;
    }
}

.darkthread-home-board-card:hover {
    background: #0c121c;
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateY(-1px);
}

.darkthread-home-board-name {
    flex-shrink: 0;
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    font-weight: 650;
    line-height: 1.25;
    color: #e8ecf1;
}

.darkthread-home-board-desc {
    flex-shrink: 0;
    font-size: clamp(0.68rem, 1.9vw, 0.78rem);
    line-height: 1.38;
    color: var(--dt-home-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.darkthread-home-board-latest {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: clamp(0.68rem, 1.9vw, 0.78rem);
    line-height: 1.4;
    color: var(--dt-home-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.darkthread-home-board-latest--muted {
    color: var(--dt-home-muted);
}

.darkthread-home-board-stat {
    flex-shrink: 0;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: clamp(0.65rem, 1.7vw, 0.72rem);
    color: var(--dt-home-muted);
}

.darkthread-home-recent {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.darkthread-home-recent-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin-bottom: var(--darkthread-home-section-head-gap, 16px);
}

.darkthread-home-recent-head .darkthread-home-section-title {
    width: 100%;
    text-align: center;
}

.darkthread-home-recent-head .darkthread-home-textlink {
    white-space: normal;
}

.darkthread-home-recent-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .darkthread-home-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .darkthread-home-recent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.darkthread-home-recent-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--dt-home-line);
    background: var(--dt-home-card);
    text-decoration: none;
    color: inherit;
    min-height: 158px;
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        transform 0.14s ease;
}

.darkthread-home-recent-card:hover {
    background: #0c121c;
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateY(-1px);
}

.darkthread-home-recent-cat {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    color: var(--dt-home-muted);
}

.darkthread-home-recent-title {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
    color: #eef1f6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
}

.darkthread-home-recent-preview {
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--dt-home-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.darkthread-home-recent-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    color: var(--dt-home-muted);
}

.darkthread-home-empty {
    margin: 0;
    padding: 16px;
    font-size: 0.86rem;
    color: var(--dt-home-muted);
}

.darkthread-home-empty--wide {
    grid-column: 1 / -1;
}

body.darkthread-home a.darkthread-home-feature:focus-visible,
body.darkthread-home a.darkthread-home-rankrow:focus-visible,
body.darkthread-home a.darkthread-home-board-card:focus-visible,
body.darkthread-home a.darkthread-home-recent-card:focus-visible,
body.darkthread-home a.darkthread-home-notice-item:focus-visible,
body.darkthread-home .darkthread-home-tab:focus-visible {
    outline: 2px solid rgba(120, 150, 175, 0.55);
    outline-offset: 2px;
}

.darkthread-skip-link {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 50;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #0ea5e9;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
}

.darkthread-skip-link:focus {
    left: 1rem;
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
}

body.darkthread-home a.darkthread-home-story:focus-visible,
body.darkthread-home a.darkthread-home-pill:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.55);
    outline-offset: 2px;
}

body.darkthread-home #home-recent a:focus-visible {
    outline: 2px solid rgba(120, 150, 175, 0.55);
    outline-offset: 2px;
}

.page-card {
    background: rgba(9, 13, 28, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.darkthread-hero-rail {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(7, 11, 20, 0.88), rgba(12, 16, 28, 0.96));
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
}

@media (max-width: 640px) {
    .darkthread-hero-rail {
        padding: 1rem;
        border-radius: 1.15rem;
    }
}

.darkthread-home-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #64748b;
}

.darkthread-home-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.darkthread-home-title {
    max-width: 48rem;
    text-wrap: balance;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: #fff;
}

.darkthread-home-description {
    max-width: 46rem;
    font-size: 1rem;
    line-height: 1.85;
    color: #94a3b8;
}

.darkthread-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.45rem 0.8rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1;
}

.darkthread-home-stat {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1rem 0.95rem;
}

.darkthread-home-stat-value {
    margin-top: 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
}

.darkthread-home-stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
}

.darkthread-home-stat-note {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #94a3b8;
}

.darkthread-home-story {
    display: grid;
    gap: 0.75rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.035);
    padding: 1rem 1.05rem;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.darkthread-home-story:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.26);
    background: rgba(255, 255, 255, 0.055);
}

.darkthread-home-story-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.55;
    color: #f8fafc;
}

.darkthread-home-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.darkthread-home-story-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.darkthread-home-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.darkthread-home-section-kicker {
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #64748b;
}

.darkthread-home-section-header .darkthread-home-section-title {
    margin-top: 0.35rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
}

.darkthread-home-section-copy {
    max-width: 36rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #94a3b8;
}

.darkthread-table {
    color: #e5e7eb;
}

.darkthread-search-input {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
}

.darkthread-search-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.55rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.darkthread-search-field:focus-within {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.darkthread-search-field .darkthread-search-input {
    flex: 1 1 0%;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    outline: none;
}

.darkthread-search-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: #64748b;
    pointer-events: none;
}

.darkthread-search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.darkthread-search-input::placeholder {
    color: #64748b;
}

/* 관리자 통계 기간: YYYY-MM-DD 텍스트 + 필드 전체 클릭 시 네이티브 달력 + 우측 아이콘 */
.darkthread-search-input.stats-filter-date {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
}

.stats-date-field {
    position: relative;
    flex: 1 1 0%;
    min-width: 10.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stats-date-field:focus-within {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.darkthread-search-input.stats-date-field-input {
    display: block;
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    padding-right: 2.65rem;
    cursor: pointer;
    box-sizing: border-box;
}

.darkthread-search-input.stats-date-field-input[readonly] {
    color: #e5e7eb;
    opacity: 1;
    cursor: pointer;
}

.stats-date-field-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.75rem;
    opacity: 0;
    cursor: pointer;
    background: transparent;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.stats-date-field-overlay::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.stats-date-field-icon {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.95rem;
    line-height: 1;
}

.darkthread-pagination-button {
    display: inline-flex;
    min-width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.darkthread-pagination-button:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.darkthread-pagination-button.is-active {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.15);
    color: #fff;
}

.darkthread-pagination-button.is-disabled {
    pointer-events: none;
    opacity: 0.4;
}

.darkthread-hero-title {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #fff;
    text-align: center;
}

.darkthread-hero-description {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #94a3b8;
    text-align: center;
}

.darkthread-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
}

.darkthread-brand-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}

.darkthread-section-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.75rem;
    background: rgba(7, 11, 20, 0.96);
}

.darkthread-section-shell {
    padding: 1.25rem;
}

@media (max-width: 640px) {
    .darkthread-section-shell {
        padding: 0.85rem 0.75rem;
    }

    .darkthread-section-panel {
        border-radius: 1.25rem;
    }

    .darkthread-table th,
    .darkthread-table td {
        padding: 0.65rem 0.5rem;
    }

    .darkthread-table thead th {
        letter-spacing: 0.12em;
        font-size: 0.68rem;
    }
}

.darkthread-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.darkthread-list-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.darkthread-list-label {
    font-size: 0.875rem;
    color: #94a3b8;
    white-space: nowrap;
}

.darkthread-list-body {
    overflow-x: auto;
}

.darkthread-table {
    width: 100%;
    border-collapse: collapse;
    color: #e5e7eb;
}

.darkthread-table th,
.darkthread-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.darkthread-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.darkthread-table thead th {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
}

.darkthread-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease;
}

.darkthread-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.darkthread-table-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #f8fafc;
}

.darkthread-table-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    min-width: 0;
}

.darkthread-table-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.18);
    padding: 0.15rem 0.42rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #a7f3d0;
    line-height: 1;
    flex: 0 0 auto;
}

.darkthread-table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bae6fd;
}

.darkthread-table-badge--category[data-category-key="free"] {
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
}

.darkthread-table-badge--category[data-category-key="question"] {
    border-color: rgba(168, 85, 247, 0.32);
    background: rgba(168, 85, 247, 0.14);
    color: #e9d5ff;
}

.darkthread-table-badge--category[data-category-key="recommend"] {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.14);
    color: #bae6fd;
}

.darkthread-table-badge--category[data-category-key="real"] {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
}

.darkthread-table-badge--category[data-category-key="incident"] {
    border-color: rgba(251, 146, 60, 0.32);
    background: rgba(251, 146, 60, 0.14);
    color: #fed7aa;
}

.darkthread-table-badge--category[data-category-key="unverified"] {
    border-color: rgba(244, 114, 182, 0.32);
    background: rgba(244, 114, 182, 0.14);
    color: #fbcfe8;
}

.darkthread-table-badge--category[data-category-key="horror-short"] {
    border-color: rgba(129, 140, 248, 0.34);
    background: rgba(129, 140, 248, 0.15);
    color: #c7d2fe;
}

.darkthread-table-badge--category[data-category-key="horror-serial"] {
    border-color: rgba(99, 102, 241, 0.34);
    background: rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
}

.darkthread-table-badge--category[data-category-key="horror-translate"] {
    border-color: rgba(167, 139, 250, 0.34);
    background: rgba(167, 139, 250, 0.16);
    color: #ddd6fe;
}

.darkthread-table-badge--category[data-category-key="intro-movie"] {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
}

.darkthread-table-badge--category[data-category-key="intro-novel"] {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}

.darkthread-table-badge--category[data-category-key="intro-game"] {
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(96, 165, 250, 0.14);
    color: #bfdbfe;
}

.darkthread-table-badge--category[data-category-key="intro-youtuber"] {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.darkthread-table-badge--category[data-category-key="archive-legend"] {
    border-color: rgba(250, 204, 21, 0.34);
    background: rgba(250, 204, 21, 0.14);
    color: #fde68a;
}

.darkthread-table-badge--category[data-category-key="archive-pick"] {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.darkthread-table-badge--category[data-category-key="archive-complete"] {
    border-color: rgba(217, 119, 6, 0.36);
    background: rgba(217, 119, 6, 0.15);
    color: #fcd34d;
}

.darkthread-table-badge--category[data-category-key="popular-today"] {
    border-color: rgba(236, 72, 153, 0.34);
    background: rgba(236, 72, 153, 0.15);
    color: #fbcfe8;
}

.darkthread-table-badge--category[data-category-key="popular-week"] {
    border-color: rgba(14, 165, 233, 0.34);
    background: rgba(14, 165, 233, 0.15);
    color: #bae6fd;
}

.darkthread-table-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.darkthread-list-meta {
    font-size: 0.875rem;
    color: #94a3b8;
}

.darkthread-list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1023px) {
    .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;
        width: 100%;
    }
}

.darkthread-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.darkthread-category-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.darkthread-category-pill.is-active {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.15);
    color: #fff;
}

.darkthread-status-hot {
    background: rgba(249, 115, 22, 0.15);
    color: #fed7aa;
}

.darkthread-status-new {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}

.darkthread-status-notice {
    background: rgba(14, 165, 233, 0.15);
    color: #bae6fd;
}

.darkthread-status-read {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.darkthread-status-update {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
}

.darkthread-status-event {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}

.darkthread-notice-pin-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
}

.darkthread-notice-row-pinned {
    background: rgba(251, 191, 36, 0.04);
}

.darkthread-notice-status-tag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 9999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.darkthread-notice-status-tag--NOTICE {
    background: rgba(14, 165, 233, 0.18);
    color: #bae6fd;
}

.darkthread-notice-status-tag--RULES {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.darkthread-notice-status-tag--UPDATE {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
}

.darkthread-notice-status-tag--EVENT {
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
}

.notice-page-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.25rem;
    background: rgba(7, 11, 20, 0.96);
    color: #e2e8f0;
    /* box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28); */
}

.notice-page-sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    /* background: rgba(7, 11, 20, 0.92); */
}

.notice-page-sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.notice-page-sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.notice-page-sidebar-kicker {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.notice-page-sidebar-sticky {
    position: sticky;
    top: var(--darkthread-sticky-header-offset);
    z-index: 8;
    background: rgba(7, 11, 20, 0.98);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
}

/* 사이드바 맨 위 «바로가기» — sticky 블록 내에서도 항상 첫 구역으로 노출 */
.notice-page-sidebar-quick {
    padding-top: 0.75rem;
}

.notice-page-sidebar-quick + .notice-page-sidebar-stats,
.notice-page-sidebar-quick + .notice-page-sidebar-latest,
.notice-page-sidebar-quick + .notice-page-sidebar-related {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.notice-page-sidebar-stats {
    padding: 0.9rem 1rem 0.25rem;
}

.notice-page-sidebar-stats + .notice-page-sidebar-latest,
.notice-page-sidebar-stats + .notice-page-sidebar-related,
.notice-page-sidebar-latest + .notice-page-sidebar-related {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

/* 사이드바 «최신 글» (같은 분류 최신) */
.notice-page-sidebar-latest {
    padding: 0.75rem 1rem 0.85rem;
}

.notice-page-sidebar-latest-heading {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #94a3b8;
}

.notice-page-sidebar-latest-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.notice-page-sidebar-latest-link {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    border-radius: 0.5rem;
    padding: 0.4rem 0.35rem;
    margin: 0 -0.35rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.notice-page-sidebar-latest-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.notice-page-sidebar-latest-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
}

.notice-page-sidebar-latest-meta {
    font-size: 0.72rem;
    color: #64748b;
}

/* 사이드바 «관련 글» (작성자 연결·연결 요소) */
.notice-page-sidebar-related {
    padding: 0.75rem 1rem 0.85rem;
}

.notice-page-sidebar-related-heading {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #94a3b8;
}

.notice-page-sidebar-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.notice-page-sidebar-related-link {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    border-radius: 0.5rem;
    padding: 0.4rem 0.35rem;
    margin: 0 -0.35rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.notice-page-sidebar-related-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.notice-page-sidebar-related-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
}

.notice-page-sidebar-related-meta {
    font-size: 0.72rem;
    color: #64748b;
}

.notice-page-sidebar-related-empty {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
}

/* 글 작성·수정: 관련 글 선택 */
.board-related-field {
    padding: 1rem 0 1.1rem;
}

.board-related-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.board-related-field-count {
    font-size: 0.78rem;
    color: #94a3b8;
}

.board-related-field-count strong {
    color: #e2e8f0;
    font-weight: 700;
}

.board-related-field-hint {
    margin: 0.4rem 0 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}

.board-related-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    min-height: 0;
}

.board-related-chip {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    font-size: 0.78rem;
    color: #e2e8f0;
}

.board-related-chip-title {
    min-width: 0;
    max-width: min(220px, 72vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-related-chip-remove {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 0.15rem;
    font-size: 1rem;
    line-height: 1;
}

.board-related-chip-remove:hover {
    color: #fecaca;
}

.board-related-open-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.15rem;
}

.board-related-open-icon {
    margin-right: 0.4rem;
}

.board-related-list-error {
    margin: 0;
    font-size: 0.85rem;
    color: #fca5a5;
}

.board-related-list-empty {
    margin: 0;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.board-related-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.55rem 0.65rem;
}

.board-related-row-main {
    min-width: 0;
    flex: 1;
}

.board-related-row-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #f1f5f9;
}

.board-related-row-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: #64748b;
}

.board-related-add {
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7dd3fc;
    cursor: pointer;
}

.board-related-add:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.22);
}

.board-related-add.is-disabled,
.board-related-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.notice-page-sidebar-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
}

.notice-page-sidebar-stat-label {
    font-size: 0.82rem;
    color: #94a3b8;
}

.notice-page-sidebar-stat-value {
    font-size: 0.82rem;
    color: #e2e8f0;
    text-align: right;
}

.notice-page-sidebar-divider {
    margin: 0.9rem 1rem 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.notice-page-sidebar-section {
    padding: 0 1rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

.notice-page-menu {
    padding: 0 1rem 1rem;
    display: grid;
    gap: 0.45rem;
}

.notice-page-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.65rem;
    padding: 0.8rem 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.notice-page-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.notice-page-menu-item.is-active {
    background: rgba(59, 130, 246, 0.16);
    color: #fff;
}

.notice-page-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    flex-shrink: 0;
}

.notice-page-notes {
    margin: 0 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 1rem 0 0;
}

/* 사이드바 sticky 블록 안 가이드: 통계·최신글 등과 함께 상단 고정 */
.notice-page-sidebar-sticky > .notice-page-notes:first-child {
    border-top: 0;
    padding-top: 0.85rem;
}

.notice-page-sidebar-sticky > .notice-page-notes:last-child {
    margin-bottom: 0.85rem;
}

.notice-page-notes-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}

.notice-page-notes-list {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.notice-page-notes-list li {
    position: relative;
    padding-left: 0.9rem;
}

.notice-page-notes-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 9999px;
    background: #3b82f6;
}

.notice-page-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* background: rgba(7, 11, 20, 0.82); */
}

.notice-page-header {
    padding: 1.6rem 1.6rem 1.1rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}

.notice-page-header-kicker {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.28em;
}

.notice-page-header-title {
    margin-top: 0.45rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.notice-page-header-meta {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.notice-page-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1.5rem;
}

.notice-page-body > form,
.notice-page-body > .notice-page-flow {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.notice-page-body > form > .notice-admin-group {
    flex: 1;
}

.notice-page-body > .notice-page-flow > .notice-view-panel {
    flex: 1;
    padding-bottom: 1.75rem;
}

.notice-admin-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.notice-admin-group {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 0 1.1rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
}

.notice-admin-group:last-child {
    border-bottom: 0;
}

.notice-admin-group .notice-admin-field + .notice-admin-field {
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.16);
}

.notice-admin-field {
    width: 100%;
}

.notice-admin-input,
.notice-admin-textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.85rem 0.95rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.notice-admin-input:focus,
.notice-admin-textarea:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.notice-page-body .tw-combobox-shell {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.notice-page-body .tw-combobox-shell:focus-within {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.notice-page-body .tw-combobox-input {
    color: #e2e8f0;
}

.notice-page-body .tw-combobox-input::placeholder {
    color: #64748b;
}

.notice-page-body .tw-combobox-button {
    color: #94a3b8;
}

.notice-page-body .tw-combobox-button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.notice-page-body .tw-combobox-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(7, 11, 20, 0.98);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.notice-page-body .tw-combobox-option {
    color: #cbd5e1;
}

.notice-page-body .tw-combobox-option:hover,
.notice-page-body .tw-combobox-option.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.notice-page-body .tw-combobox-option.is-selected {
    background: rgba(59, 130, 246, 0.16);
    color: #e2e8f0;
}

.notice-admin-textarea {
    min-height: 14rem;
    resize: vertical;
}

.notice-admin-guide {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 1rem;
}

.notice-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

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

.notice-admin-actions.notice-admin-actions-split {
    justify-content: space-between;
    align-items: center;
}

.notice-admin-actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notice-admin-actions-group.is-right {
    margin-left: auto;
}

.notice-page-body .darkthread-comment-panel ~ .notice-admin-actions,
.notice-page-body > .notice-page-flow > .notice-view-panel + .notice-admin-actions {
    border-top: 1px dashed rgba(148, 163, 184, 0.16);
}

.notice-admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.notice-admin-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.34);
}

.notice-admin-button.is-primary {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.16);
    color: #fff;
}

.notice-admin-button.is-primary:hover {
    background: rgba(59, 130, 246, 0.22);
}

.notice-admin-status {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.notice-admin-status.notice {
    background: rgba(14, 165, 233, 0.16);
    color: #7dd3fc;
}

.notice-admin-status.update {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

.notice-admin-status.event {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.notice-admin-content-box {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1.05rem;
    color: #e2e8f0;
    line-height: 1.85;
    white-space: normal;
}

.notice-view-panel {
    display: grid;
    gap: 1rem;
    padding-top: 0.15rem;
}

.notice-view-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.notice-view-meta-dot {
    color: rgba(148, 163, 184, 0.45);
}

.notice-view-article {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: clamp(1rem, 4.2vw, 5rem) clamp(1rem, 5vw, 5rem);
    color: #e2e8f0;
    line-height: 1.2;
}

.notice-view-article > :first-child {
    margin-top: 0;
}

.notice-view-article > :last-child {
    margin-bottom: 0;
}

.notice-view-article p {
    margin: 0;
}

.notice-view-article p + p,
.notice-view-article h1 + p,
.notice-view-article h2 + p,
.notice-view-article h3 + p,
.notice-view-article blockquote + p,
.notice-view-article ul + p,
.notice-view-article ol + p,
.notice-view-article pre + p {
    margin-top: 0.55rem;
}

.notice-view-article p:empty::before {
    content: '\00a0';
}

.darkthread-richtext p {
    margin: 0;
}

.darkthread-richtext p + p,
.darkthread-richtext h1 + p,
.darkthread-richtext h2 + p,
.darkthread-richtext h3 + p,
.darkthread-richtext blockquote + p,
.darkthread-richtext ul + p,
.darkthread-richtext ol + p,
.darkthread-richtext pre + p {
    margin-top: 0.55rem;
}

.darkthread-richtext p:empty::before {
    content: '\00a0';
}

.darkthread-richtext h1,
.darkthread-richtext h2,
.darkthread-richtext h3,
.darkthread-richtext h4,
.darkthread-richtext h5,
.darkthread-richtext h6 {
    margin: 0;
    line-height: 1.25;
    color: #f8fafc;
}

.darkthread-richtext h1 {
    font-size: 1.9rem;
}

.darkthread-richtext h2 {
    font-size: 1.45rem;
}

.darkthread-richtext h3 {
    font-size: 1.2rem;
}

.darkthread-richtext ul,
.darkthread-richtext ol {
    margin: 0;
    padding-left: 1.35rem;
}

/* Tailwind Preflight 가 ul/ol 에 list-style:none 을 걸어 글머리·번호가 안 보임 — 본문 영역에서만 복구 */
.darkthread-richtext ul {
    list-style-type: disc;
    list-style-position: outside;
}

.darkthread-richtext ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.darkthread-richtext ul ul {
    list-style-type: circle;
}

.darkthread-richtext ul ul ul {
    list-style-type: square;
}

.darkthread-richtext li {
    display: list-item;
}

.darkthread-richtext li > p {
    margin: 0;
}

.darkthread-richtext li::marker {
    color: #94a3b8;
}

.darkthread-richtext blockquote {
    margin: 0;
    border-left: 3px solid rgba(59, 130, 246, 0.45);
    padding-left: 1rem;
    color: #cbd5e1;
}

.darkthread-richtext hr {
    margin: 0.95rem 0;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.32);
}

.darkthread-richtext pre {
    overflow-x: auto;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    padding: 1rem;
    color: #e2e8f0;
}

.darkthread-richtext code {
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.35rem;
    color: #f8fafc;
}

.darkthread-richtext img {
    display: block;
    max-width: 100%;
    margin: 0.65rem 0;
    border-radius: 0.65rem;
}

.darkthread-richtext img:not([height]) {
    height: auto;
}

.darkthread-richtext {
    overflow-wrap: break-word;
}

.darkthread-richtext table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.darkthread-richtext th,
.darkthread-richtext td {
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.darkthread-richtext img[data-align="center"] {
    margin-left: auto;
    margin-right: auto;
}

.darkthread-richtext img[data-align="right"] {
    margin-left: auto;
    margin-right: 0;
}

.darkthread-post-recommend {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.4rem 0 0.4rem;
    padding: 0.1rem 0;
}

.darkthread-post-recommend-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.darkthread-post-recommend-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    padding: 0.65rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.darkthread-post-recommend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #facc15;
    flex: 0 0 auto;
}

.darkthread-post-recommend-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.darkthread-post-recommend-icon i {
    font-size: 0.95rem;
    line-height: 1;
}

.darkthread-post-recommend-button:hover {
    border-color: rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.08);
    color: #f8fafc;
    transform: translateY(-1px);
}

.darkthread-post-recommend-button.is-active,
.darkthread-post-recommend-button:disabled {
    border-color: rgba(250, 204, 21, 0.22);
    background: rgba(250, 204, 21, 0.1);
    color: #f8fafc;
    cursor: default;
    transform: none;
}

.darkthread-post-recommend-count {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
}

.darkthread-comment-panel {
    display: grid;
    gap: 0.7rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.25rem 0 0;
    margin-top: 0.25rem;
}

.darkthread-comment-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.9rem 0 0.6rem;
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
}

.darkthread-comment-divider::before,
.darkthread-comment-divider::after {
    content: '';
    flex: 1 1 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.darkthread-comment-divider span {
    padding: 0 0.75rem;
    white-space: nowrap;
}

.darkthread-comment-form-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.darkthread-comment-form {
    display: grid;
    gap: 0.65rem;
    border: 0;
    padding: 0.1rem 0 0.35rem;
    margin-top: 0.15rem;
}

.darkthread-comment-entry {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

.darkthread-comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.darkthread-comment-hint {
    font-size: 0.75rem;
    color: #64748b;
}

.darkthread-comment-textarea {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 5.75rem;
    resize: vertical;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 0.8rem;
    background: rgba(2, 6, 23, 0.22);
    padding: 0.8rem 0.9rem;
    color: #e2e8f0;
    line-height: 1.65;
    outline: none;
}

.darkthread-comment-textarea::placeholder {
    color: #64748b;
}

.darkthread-comment-textarea:focus {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.darkthread-report-textarea {
    display: block;
    width: 100%;
}

#commentReportDialog .tw-combobox-shell {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

#commentReportDialog .tw-combobox-shell:focus-within {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

#commentReportDialog .tw-combobox-input {
    color: #e2e8f0;
}

#commentReportDialog .tw-combobox-input::placeholder {
    color: #64748b;
}

#commentReportDialog .tw-combobox-button {
    color: #94a3b8;
}

#commentReportDialog .tw-combobox-button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

#commentReportDialog .tw-combobox-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(7, 11, 20, 0.98);
}

#commentReportDialog .tw-combobox-option {
    color: #cbd5e1;
}

#commentReportDialog .tw-combobox-option:hover,
#commentReportDialog .tw-combobox-option.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

#commentReportDialog .tw-combobox-option.is-selected {
    background: rgba(56, 189, 248, 0.12);
    color: #e2e8f0;
}

.darkthread-comment-error {
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 0.85rem;
    background: rgba(239, 68, 68, 0.08);
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
    color: #fecaca;
    line-height: 1.6;
}

.darkthread-comment-actions {
    display: flex;
    justify-content: flex-end;
}

.darkthread-comment-submit {
    flex: 0 0 auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    color: #cbd5e1;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.darkthread-comment-submit:hover {
    border-color: rgba(59, 130, 246, 0.34);
    background: rgba(59, 130, 246, 0.14);
    color: #fff;
}

.darkthread-comment-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.darkthread-comment-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.4rem 0;
}

.darkthread-comment-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.darkthread-comment-item.is-reply {
    margin-left: 1.05rem;
    padding-left: 0.8rem;
}

.darkthread-comment-date {
    font-size: 0.75rem;
    color: #64748b;
}

.darkthread-comment-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #b8c2d3;
    white-space: normal;
    word-break: break-word;
}

.darkthread-comment-mention {
    color: #7dd3fc;
    font-weight: 600;
}

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

.darkthread-comment-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.darkthread-comment-report-form {
    display: flex;
    align-items: center;
}

.darkthread-comment-delete-form {
    display: flex;
    align-items: center;
}

.darkthread-comment-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.15s ease;
}

.darkthread-comment-report-button:hover {
    color: #cbd5e1;
}

.darkthread-comment-report-button.is-active,
.darkthread-comment-report-button:disabled {
    color: #64748b;
    cursor: not-allowed;
}

.darkthread-comment-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f87171;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.15s ease;
}

.darkthread-comment-delete-button:hover {
    color: #fca5a5;
}

.darkthread-comment-reply-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    cursor: pointer;
    font-size: 0.78rem;
    color: #7dd3fc;
    user-select: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.darkthread-comment-reply-wrap {
    width: 100%;
    margin-top: 0.65rem;
}

.darkthread-comment-reply-form {
    display: grid;
    gap: 0.6rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding: 0;
}

.darkthread-comment-reply .darkthread-comment-form-meta {
    gap: 0.4rem 0.6rem;
}

.darkthread-comment-reply .darkthread-comment-author {
    font-size: 0.8rem;
}

.darkthread-comment-reply .darkthread-comment-hint {
    font-size: 0.72rem;
}

.darkthread-comment-reply .darkthread-comment-textarea {
    min-height: 4.7rem;
}

.darkthread-comment-reply .darkthread-comment-entry {
    min-width: 0;
}

.darkthread-comment-children {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

.darkthread-comment-children .darkthread-comment-item {
    margin-top: 0;
}

.darkthread-comment-children .darkthread-comment-item.is-reply {
    margin-left: 1.4rem;
    padding-left: 0.9rem;
    border-left: 1px solid rgba(125, 211, 252, 0.12);
}

.darkthread-comment-empty {
    border: 0;
    border-radius: 0;
    background: transparent;
    margin: 0;
    padding: 1.25rem 0.75rem 2.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .notice-page-shell {
        grid-template-columns: 1fr;
        overflow: visible;
        border-radius: 1rem;
    }

    .notice-page-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .notice-page-sidebar-sticky {
        position: static;
        top: auto;
        z-index: auto;
        box-shadow: none;
        background: rgba(7, 11, 20, 0.92);
    }

    .notice-page-sidebar-header {
        padding: 1.15rem 1rem 0.85rem;
    }

    .notice-page-header {
        padding: 1.2rem 1rem 0.85rem;
    }

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

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

    .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;
    }

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

    .darkthread-comment-item-header {
        align-items: start;
        flex-direction: column;
    }

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

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

    .darkthread-comment-reply-trigger {
        margin-left: 0;
    }

    .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;
    }

}

/* ——— 기본 레이아웃: xl 미만에서 헤더 대신 좌측 드로어 메뉴 ——— */
.darkthread-nav-drawer-root .darkthread-nav-drawer {
    transform: translateX(-100%);
    will-change: transform;
}

.darkthread-nav-drawer-root--open .darkthread-nav-drawer {
    transform: translateX(0);
}

.darkthread-nav-drawer-root--open .darkthread-nav-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.darkthread-nav-drawer-open {
    overflow: hidden;
}

@media (min-width: 1280px) {
    body.darkthread-nav-drawer-open {
        overflow: unset;
    }
}

.darkthread-nav-drawer-link {
    display: block;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.darkthread-nav-drawer-link:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.darkthread-nav-drawer-summary {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    list-style: none;
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.darkthread-nav-drawer-summary::-webkit-details-marker {
    display: none;
}

.darkthread-nav-drawer-details[open] > .darkthread-nav-drawer-summary {
    color: #fff;
}

.darkthread-nav-drawer-details[open] .darkthread-nav-drawer-chevron {
    transform: rotate(180deg);
}

.darkthread-nav-drawer-sublink {
    display: block;
    border-radius: 0.65rem;
    padding: 0.5rem 0.65rem 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.darkthread-nav-drawer-sublink:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

/* ——— 데스크톱 헤더(xl~): 중앙 nav 클러스터 — 조상 #darkthread-navigation 에 transform 금지 (fixed 패널 기준) ——— */
.darkthread-header-nav-cluster {
    max-width: min(100vw - 2rem, 72rem);
}

/* ——— 데스크톱 헤더: details + summary 네이티브 토글 (플러그인 JS 불필요) ——— */
.darkthread-header-flyout {
    position: relative;
}

.darkthread-header-flyout > summary {
    list-style: none;
}

.darkthread-header-flyout > summary::-webkit-details-marker {
    display: none;
}

.darkthread-header-flyout-panel {
    /* 인라인 스크립트가 fixed + top/left 설정; 미적용 시 아래값으로 summary 아래 표시 */
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    min-width: 16rem;
    width: 16rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.darkthread-header-flyout-surface {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.95);
    background: rgba(15, 23, 42, 0.98);
    color: #f8fafc;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.darkthread-header-flyout-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 36%);
    pointer-events: none;
}

.darkthread-header-flyout[open] .darkthread-header-flyout-chevron {
    transform: rotate(180deg);
}
