@import url('darkthread-tokens.css');

@font-face {
    font-family: "NanumSquareRound";
    src: url("https://cdn.jsdelivr.net/npm/@noonnu/nanumsquareround@0.0.1/NanumSquareRound.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html {
    font-size: 15px;
    overflow-x: hidden;
    /* 짧은 페이지에서도 세로 스크롤 트랙을 항상 두어 가로 폭 점프를 줄임 (인증 전용 페이지는 제외) */
    overflow-y: scroll;
    width: 100%;
    max-width: 100%;
}

html:has(body.darkthread-auth-page) {
    overflow-y: auto;
}

/* 배경 라디오: 일부 WebKit(iOS)에서 `new Audio()` 대비 DOM 연결 `<audio>`가 OS 미디어 카드와 더 잘 일치 */
.darkthread-radio-bg-audio {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
    overflow: hidden;
}

body[data-darkthread-mobile-no-ambient="true"] .darkthread-radio-control-root,
body[data-darkthread-mobile-no-ambient="true"] .darkthread-ghost {
    display: none !important;
}

.darkthread-settings-radio-section--unavailable {
    opacity: 0.72;
}

.darkthread-settings-radio-mobile-note {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.92);
}

.darkthread-settings-radio-section--unavailable .darkthread-mascot-enable-switch {
    cursor: not-allowed;
}

/* 테마별 분기 텍스트: 기본은 다크 모드(라이트 전용 텍스트 숨김). board-list-v2.css에서 라이트 테마 활성 시 교체. */
.darkthread-text-light-mode { display: none; }

:root {
    --darkthread-page-bg: linear-gradient(180deg, #090909 0%, #060606 38%, #030303 68%, #000 100%);
    /* sticky #darkthread-header (대략 py-3 + 행 높이) 아래 정렬 */
    --darkthread-sticky-header-offset: 4.25rem;
    /* 전역 스크롤바 (슬레이트 톤, 프로필·게시판 사이드바와 통일) */
    --dt-scrollbar-thumb: rgba(148, 163, 184, 0.32);
    --dt-scrollbar-thumb-hover: rgba(203, 213, 225, 0.44);
    --dt-scrollbar-track: transparent;
    --dt-scrollbar-width: 0.45rem;
    /* 인증 플로우 공통 토큰 */
    --dt-auth-accent: #e11d48;
    --dt-auth-accent-strong: #8f1d2c;
    --dt-auth-accent-deep: #5c1118;
    --dt-auth-accent-soft: rgba(143, 29, 44, 0.35);
    --dt-auth-surface: rgba(8, 10, 14, 0.48);
    --dt-auth-text-muted: var(--dt-fg-muted);
}

/* 전역 스크롤: 스크롤 가능한 모든 영역에 동일 테마 (Firefox scrollbar-color / WebKit) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--dt-scrollbar-thumb) var(--dt-scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--dt-scrollbar-width);
    height: var(--dt-scrollbar-width);
}

*::-webkit-scrollbar-thumb {
    background: var(--dt-scrollbar-thumb);
    border-radius: 9999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--dt-scrollbar-thumb-hover);
}

*::-webkit-scrollbar-track {
    background: var(--dt-scrollbar-track);
}

body {
    background: var(--darkthread-page-bg);
    background-color: #000;
    color: var(--dt-fg);
    font-family: "NanumSquareRound", sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
dt,
dd,
label,
small,
strong,
em,
blockquote,
th,
td,
caption,
figcaption,
button,
input,
select,
textarea {
    font-family: "NanumSquareRound", sans-serif !important;
}

body.darkthread-main-bg {
    position: relative;
    isolation: isolate;
    background: #030303;
    background-color: #030303;
}

body.darkthread-main-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--dt-main-bg-image) center / cover no-repeat, #030303;
    transform: translateZ(0);
}

body.darkthread-main-bg::before {
    content: none;
    display: none;
}

body.darkthread-main-bg > .noise {
    position: relative;
    z-index: 2;
}

/* main-bg 라이트 모드: main-bg-light.jpg (layout head --dt-main-bg-image-light) */
html.darkthread-board-list-v2-theme-light body.darkthread-main-bg,
body.darkthread-main-bg.darkthread-board-list-v2-theme-light,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked).darkthread-main-bg {
    background-color: #FFFFFF;
}

html.darkthread-board-list-v2-theme-light body.darkthread-main-bg::after,
body.darkthread-main-bg.darkthread-board-list-v2-theme-light::after,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked).darkthread-main-bg::after {
    background: var(--dt-main-bg-image-light, var(--dt-main-bg-image)) center / cover no-repeat, #FFFFFF;
}

/* main-bg 라이트: V2 표면·상세/에디터 셸 투명화(배경 이미지 노출) */
html.darkthread-board-list-v2-theme-light body.darkthread-main-bg .dt-v2-surface,
body.darkthread-main-bg.darkthread-board-list-v2-theme-light .dt-v2-surface,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked).darkthread-main-bg .dt-v2-surface,
html.darkthread-board-list-v2-theme-light body.darkthread-main-bg .dt-v2-view-surface,
body.darkthread-main-bg.darkthread-board-list-v2-theme-light .dt-v2-view-surface,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked).darkthread-main-bg .dt-v2-view-surface {
    background: transparent !important;
}

html.darkthread-board-list-v2-theme-light body.darkthread-main-bg::before,
body.darkthread-main-bg.darkthread-board-list-v2-theme-light::before,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked).darkthread-main-bg::before {
    display: none;
    animation: none;
}

html.darkthread-board-list-v2-theme-light body.darkthread-main-bg > .noise,
body.darkthread-main-bg.darkthread-board-list-v2-theme-light > .noise,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked).darkthread-main-bg > .noise {
    background: transparent;
    background-color: transparent;
}

/* v2 라이트: 블러·반투명 글라스(누리끼리한 배경) 제거 */
html.darkthread-board-list-v2-theme-light .darkthread-blood-layer,
html.darkthread-board-list-v2-theme-light .noise::before,
body.darkthread-board-list-v2-theme-light .darkthread-blood-layer,
body.darkthread-board-list-v2-theme-light .noise::before,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-blood-layer,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .noise::before {
    display: none !important;
    opacity: 0 !important;
}

html.darkthread-board-list-v2-theme-light #darkthread-chrome-sticky-stack.darkthread-site-chrome,
html.darkthread-board-list-v2-theme-light #darkthread-header.darkthread-chrome-header,
html.darkthread-board-list-v2-theme-light .darkthread-chrome-subbars,
html.darkthread-board-list-v2-theme-light .chrome-subbars,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) #darkthread-chrome-sticky-stack,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) #darkthread-header.darkthread-chrome-header,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-chrome-subbars,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light #darkthread-chrome-sticky-stack,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light #darkthread-header.darkthread-chrome-header,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light .darkthread-chrome-subbars {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
}

html.darkthread-board-list-v2-theme-light #darkthread-search-bar .darkthread-chrome-v2-search .dt-v2-toolbar,
html.darkthread-board-list-v2-theme-light .darkthread-board-list-v2 .dt-v2-toolbar,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) #darkthread-search-bar .darkthread-chrome-v2-search .dt-v2-toolbar,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-board-list-v2 .dt-v2-toolbar,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light #darkthread-search-bar .darkthread-chrome-v2-search .dt-v2-toolbar,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light .darkthread-board-list-v2 .dt-v2-toolbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
}

html.darkthread-board-list-v2-theme-light .darkthread-site-drawers .darkthread-nav-drawer-root .darkthread-nav-drawer,
html.darkthread-board-list-v2-theme-light .darkthread-site-drawers .darkthread-notification-drawer,
html.darkthread-board-list-v2-theme-light .darkthread-site-drawers .darkthread-profile-drawer,
html.darkthread-board-list-v2-theme-light .darkthread-site-drawers #darkthread-settings-drawer,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-site-drawers .darkthread-nav-drawer-root .darkthread-nav-drawer,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-site-drawers .darkthread-notification-drawer,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-site-drawers .darkthread-profile-drawer,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-site-drawers #darkthread-settings-drawer,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light .darkthread-site-drawers .darkthread-nav-drawer-root .darkthread-nav-drawer,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light .darkthread-site-drawers .darkthread-notification-drawer,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light .darkthread-site-drawers .darkthread-profile-drawer,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light .darkthread-site-drawers #darkthread-settings-drawer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
}

html.darkthread-board-list-v2-theme-light #darkthread-mobile-tab-bar.darkthread-site-mobile-tab-bar,
html.darkthread-board-list-v2-theme-light .darkthread-mobile-tab-bar,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light #darkthread-mobile-tab-bar,
body.darkthread-board-list-v2-page.darkthread-board-list-v2-theme-light .darkthread-mobile-tab-bar {
    background: #ffffff !important;
}

/* 사이트 푸터 레이어 → asset/css/footer.css (#darkthread-site-footer) */

@keyframes darkthread-main-light-flicker {
    0% {
        opacity: 0.24;
        transform: translateX(-50%) translateY(0) scale(1.04, 0.98);
    }
    6% {
        opacity: 0.48;
        transform: translateX(-50%) translateY(1.5vh) scale(1.1, 1.02);
    }
    9% {
        opacity: 0.19;
        transform: translateX(-50%) translateY(-0.5vh) scale(1.02, 0.94);
    }
    13% {
        opacity: 0.42;
        transform: translateX(-49%) translateY(0.8vh) scale(1.08, 1);
    }
    24% {
        opacity: 0.31;
        transform: translateX(-51%) translateY(0) scale(1.03, 1.02);
    }
    28% {
        opacity: 0.56;
        transform: translateX(-50%) translateY(1.8vh) scale(1.14, 1.04);
    }
    30% {
        opacity: 0.16;
        transform: translateX(-50%) translateY(-0.6vh) scale(1.01, 0.92);
    }
    37% {
        opacity: 0.38;
        transform: translateX(-49.5%) translateY(0.7vh) scale(1.07, 1);
    }
    52% {
        opacity: 0.27;
        transform: translateX(-50.5%) translateY(0) scale(1.04, 0.98);
    }
    56% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(1.2vh) scale(1.12, 1.03);
    }
    59% {
        opacity: 0.22;
        transform: translateX(-50%) translateY(-0.4vh) scale(1.02, 0.94);
    }
    71% {
        opacity: 0.36;
        transform: translateX(-51%) translateY(0.5vh) scale(1.06, 1);
    }
    83% {
        opacity: 0.46;
        transform: translateX(-49%) translateY(1vh) scale(1.11, 1.02);
    }
    86% {
        opacity: 0.18;
        transform: translateX(-50%) translateY(-0.5vh) scale(1.01, 0.93);
    }
    100% {
        opacity: 0.33;
        transform: translateX(-50%) translateY(0.4vh) scale(1.06, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.darkthread-main-bg::before {
        animation: none;
        opacity: 0.32;
    }
}

/* 카페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: linear-gradient(180deg, #111 0%, #090909 34%, #050505 64%, #000 100%);
    background-color: #000;
}

body.darkthread-login-access {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background-color: #050505;
}

body.darkthread-login-access::before,
body.darkthread-login-access::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.darkthread-login-access::before {
    z-index: 0;
    background: var(--dt-login-bg-image) center / cover no-repeat;
    opacity: 1;
    filter: brightness(1.18) contrast(1.08) saturate(1.05);
    transform: scale(1.02);
}

body.darkthread-login-access::after {
    z-index: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.22));
}

body.darkthread-login-access > main {
    position: relative;
    z-index: 1;
}

.darkthread-auth-card {
    background:
        linear-gradient(165deg, rgba(15, 15, 15, 0.96), rgba(5, 5, 5, 0.94)),
        #090909;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.darkthread-login-access .darkthread-auth-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 42%, rgba(255, 255, 255, 0.008)),
        rgba(18, 19, 21, 0.24);
    border-color: rgba(255, 255, 255, 0.13);
    border-top-color: rgba(214, 38, 65, 0.2);
    -webkit-backdrop-filter: blur(5px) saturate(1.08);
    backdrop-filter: blur(5px) saturate(1.08);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.darkthread-login-access .darkthread-auth-primary-button {
    min-height: 50px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(180deg, #df2445 0%, #c91f3c 100%);
    color: #fff;
    font-size: 0.933rem;
    font-weight: 700;
    box-shadow:
        0 10px 24px rgba(214, 38, 65, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.darkthread-login-access .darkthread-auth-primary-button:hover {
    background: linear-gradient(180deg, #ea2a4d 0%, #b91934 100%);
}

.darkthread-login-access .darkthread-auth-primary-button:active {
    transform: translateY(1px);
    box-shadow:
        0 5px 14px rgba(214, 38, 65, 0.14),
        inset 0 2px 8px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.darkthread-login-access .darkthread-auth-primary-button:disabled {
    background: #555;
    box-shadow: none;
}

.darkthread-login-access .darkthread-auth-secondary-button {
    min-height: 48px;
    border-color: rgba(214, 38, 65, 0.18);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.darkthread-login-access .darkthread-auth-secondary-button:hover {
    border-color: rgba(214, 38, 65, 0.38);
    background: rgba(214, 38, 65, 0.07);
    color: #fff;
}

.darkthread-login-access .darkthread-auth-inline-button {
    min-height: 48px;
    border-color: rgba(214, 38, 65, 0.35);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(223, 36, 69, 0.44), rgba(201, 31, 60, 0.28)),
        rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.darkthread-login-access .darkthread-auth-inline-button:hover {
    border-color: rgba(214, 38, 65, 0.55);
    background:
        linear-gradient(180deg, rgba(234, 42, 77, 0.36), rgba(185, 25, 52, 0.24)),
        rgba(255, 255, 255, 0.035);
}

.darkthread-login-access .darkthread-auth-primary-button:focus-visible,
.darkthread-login-access .darkthread-auth-secondary-button:focus-visible,
.darkthread-login-access .darkthread-auth-inline-button:focus-visible {
    outline: 2px solid rgba(214, 38, 65, 0.56);
    outline-offset: 3px;
}

body.darkthread-auth-page.dt-auth-viewport {
    min-height: 100dvh;
}

body.darkthread-auth-page.dt-auth-viewport > main.darkthread-auth-main {
    min-height: 0;
}

@media (min-width: 520px) {
    body.darkthread-auth-page.dt-auth-viewport {
        min-height: 100vh;
    }

    body.darkthread-auth-page.dt-auth-viewport > main.darkthread-auth-main {
        min-height: 100vh;
    }
}

/*
 * ========== Auth flow 통일 (로그인 / 이용약관 / 회원가입) ==========
 * body.darkthread-auth-flow — 동일 카드·타이포·입력·CTA 패턴
 */
body.darkthread-auth-flow.darkthread-login-access .dt-auth-shell {
    box-sizing: border-box;
    width: calc(100% - 32px);
    margin-inline: auto;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-shell--narrow {
    max-width: 440px;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-shell--wide {
    max-width: 520px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-auth-card {
    position: relative;
    box-sizing: border-box;
    padding: clamp(26px, 5vw, 36px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(225, 29, 72, 0.3);
    /* 배경 이미지를 명확히 인지할 수 있도록 카드를 더 투명하게 */
    background:
        linear-gradient(180deg, rgba(225, 29, 72, 0.08), transparent 48%),
        rgba(8, 10, 14, 0.06);
    -webkit-backdrop-filter: blur(8px) saturate(1.04);
    backdrop-filter: blur(8px) saturate(1.04);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-header {
    margin-bottom: 2rem;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(150, 170, 190, 0.55);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-title {
    margin: 8px 0 0;
    font-size: clamp(28px, 5.5vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-desc {
    margin: 8px 0 0;
    max-width: 28rem;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(170, 185, 195, 0.55);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-label,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-field-head {
    margin-bottom: 8px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-field-head .darkthread-login-label {
    margin-bottom: 0;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-input,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 51px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 4, 4, 0.58);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-input:hover,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-input:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-input::placeholder,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-input:focus,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-input:focus {
    border-color: #e11d48;
    box-shadow:
        inset 0 0 0 1px rgba(225, 29, 72, 0.5),
        inset 0 0 16px rgba(225, 29, 72, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login {
    margin-bottom: 14px;
    border: 0;
    margin-inline: 0;
    padding: 0;
    min-width: 0;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login--round {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login--round .darkthread-social-login-button {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button {
    display: inline-flex;
    min-height: 48px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login--round .darkthread-social-login-button:hover {
    transform: translateY(-2px) scale(1.04);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login--round .darkthread-social-login-button:focus-visible {
    outline: 2px solid rgba(248, 113, 113, 0.72);
    outline-offset: 3px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button:hover {
    transform: translateY(-1px);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-kakao {
    border-color: rgba(254, 229, 0, 0.78);
    background: #fee500;
    color: #191600;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-google {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #1f2937;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-naver {
    border-color: rgba(2, 122, 66, 0.92);
    background: #027a42;
    color: #ffffff;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-disabled {
    pointer-events: none;
    opacity: 0.42;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    font-size: 13px;
    font-weight: 900;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-mark {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-naver .darkthread-social-login-icon {
    color: #ffffff;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-kakao .darkthread-social-login-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    color: #191600;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-kakao .darkthread-social-login-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-login-button.is-google .darkthread-social-login-icon {
    color: #1f2937;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-divider::before,
body.darkthread-auth-flow.darkthread-login-access .darkthread-social-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.10);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-social-divider span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.72);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-remember {
    box-sizing: border-box;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.22);
    padding: 0 14px;
    color: rgba(220, 230, 240, 0.85);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-remember.darkthread-mascot-enable-switch {
    margin-bottom: 0;
    align-items: center;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-remember .darkthread-mascot-enable-switch-track {
    margin-top: 0;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-primary,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit,
body.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button {
    box-sizing: border-box;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #8f1d2c 0%, #5c1118 100%);
    box-shadow:
        0 12px 28px rgba(92, 17, 24, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease,
        background 0.15s ease;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-primary:hover:not(:disabled),
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit:hover:not(:disabled),
body.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button:hover:not(:disabled) {
    background: linear-gradient(180deg, #a12233 0%, #6e1520 100%);
    box-shadow:
        0 14px 34px rgba(110, 21, 32, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-primary:active:not(:disabled),
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit:active:not(:disabled),
body.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow:
        0 6px 18px rgba(40, 8, 12, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-primary:disabled,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit:disabled,
body.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button:disabled {
    background: rgba(78, 78, 86, 0.82);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    filter: none;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-secondary-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 51px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(225, 29, 72, 0.45);
    background: linear-gradient(180deg, rgba(130, 28, 45, 0.92), rgba(82, 18, 28, 0.92));
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-secondary-red:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 0 18px rgba(225, 29, 72, 0.18);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-secondary-red:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-secondary-red--compact {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    width: 100%;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(225, 29, 72, 0.18);
    background: rgba(0, 0, 0, 0.18);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-ghost:hover {
    border-color: rgba(225, 29, 72, 0.35);
    background: rgba(225, 29, 72, 0.08);
    color: #ffffff;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-inner-panel {
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(10, 10, 14, 0.14);
    -webkit-backdrop-filter: blur(12px) saturate(1.06);
    backdrop-filter: blur(12px) saturate(1.06);
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-scroll-panel {
    margin-top: 28px;
    box-sizing: border-box;
    max-height: min(22rem, 50vh);
    overflow-y: auto;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 12, 0.16);
    -webkit-backdrop-filter: blur(12px) saturate(1.06);
    backdrop-filter: blur(12px) saturate(1.06);
    font-size: 13px;
    line-height: 1.7;
    color: rgba(220, 230, 240, 0.82);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-agreement-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 12, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-agreement-box input {
    margin-top: 0;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
}

/* Auth flow — 단계 표시 · 뒤로가기 (PC·모바일 공통) */
body.darkthread-auth-flow.darkthread-login-access .dt-auth-step-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-step-dot {
    display: flex;
    align-items: center;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-step-dot__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(170, 185, 195, 0.62);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-step-dot.is-complete .dt-auth-step-dot__num {
    border-color: rgba(92, 17, 24, 0.55);
    background: rgba(92, 17, 24, 0.38);
    color: rgba(255, 255, 255, 0.92);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-step-dot.is-active .dt-auth-step-dot__num {
    border-color: rgba(143, 29, 44, 0.9);
    background: linear-gradient(180deg, var(--dt-auth-accent-strong) 0%, var(--dt-auth-accent-deep) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(92, 17, 24, 0.28);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-step-dot:not(:last-child)::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 1px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.1);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-step-dot.is-complete:not(:last-child)::after {
    background: rgba(143, 29, 44, 0.42);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 12px;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar__title {
    margin: 0;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar__trail {
    display: block;
    width: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-flow-modal-header {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-flow-modal-header__title {
    margin: 0;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-flow-modal-header__trail {
    display: block;
    width: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(226, 232, 240, 0.88);
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-back-link:hover {
    border-color: rgba(143, 29, 44, 0.35);
    background: rgba(92, 17, 24, 0.22);
    color: #ffffff;
}

button.dt-auth-back-link {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar .dt-auth-back-link:focus-visible {
    outline: 2px solid rgba(225, 29, 72, 0.55);
    outline-offset: 3px;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-home-row {
    display: none;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-back-link:focus-visible {
    outline: 2px solid rgba(225, 29, 72, 0.55);
    outline-offset: 3px;
}

a.dt-auth-brand-mark {
    text-decoration: none;
    color: inherit;
}

a.dt-auth-brand-mark:focus-visible {
    outline: 2px solid rgba(225, 29, 72, 0.55);
    outline-offset: 4px;
    border-radius: 8px;
}

.dt-auth-brand-mark {
    display: none;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-footer-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-divider-muted {
    height: 0;
    border: 0;
    margin: 18px 0 0;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-secondary-actions {
    margin-top: 16px;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-home-link {
    box-sizing: border-box;
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-home-link:hover {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(0, 0, 0, 0.3);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-home-link i {
    font-size: 1.125rem;
    line-height: 1;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-signup-link {
    border-color: rgba(225, 29, 72, 0.22);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-signup-link:hover {
    border-color: rgba(225, 29, 72, 0.4);
    background: rgba(225, 29, 72, 0.1);
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-reset-link {
    color: rgba(200, 210, 220, 0.72);
    font-size: 12px;
    font-weight: 700;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-reset-link:hover {
    color: #fff;
}

body.darkthread-auth-flow.darkthread-login-access #loginAlert:not(.hidden) {
    margin-bottom: 1rem;
}

body.darkthread-auth-flow.darkthread-login-access #loginSubmitButton:disabled {
    opacity: 1;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-input:focus-visible,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-input:focus-visible {
    outline: none;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit:focus-visible,
body.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button:focus-visible,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-reset-link:focus-visible,
body.darkthread-auth-flow.darkthread-login-access .darkthread-login-signup-link:focus-visible,
body.darkthread-auth-flow.darkthread-login-access .dt-auth-home-link:focus-visible,
body.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-ghost:focus-visible {
    outline: 2px solid rgba(225, 29, 72, 0.55);
    outline-offset: 3px;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-notice-title {
    color: rgba(220, 230, 240, 0.88);
    font-size: 13px;
    font-weight: 700;
}

body.darkthread-auth-flow.darkthread-login-access .darkthread-login-benefit-grid {
    color: rgba(200, 210, 220, 0.78);
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-link-muted {
    color: rgba(200, 210, 220, 0.65);
    font-size: 12px;
    font-weight: 600;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-link-muted:hover {
    color: #fda4af;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-submit-spaced {
    margin-top: 28px;
}

@media (max-width: 640px) {
    body.darkthread-auth-flow.darkthread-login-access .darkthread-login-benefit-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar--narrow {
    max-width: 440px;
}

body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar--wide {
    max-width: 520px;
}

@media (min-width: 520px) {
    body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar--narrow,
    body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar--wide {
        width: calc(100% - 32px);
        margin-inline: auto;
    }

    body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar {
        display: none;
    }

    body.darkthread-auth-flow.darkthread-login-access .dt-auth-topbar__title {
        visibility: hidden;
    }

    body.darkthread-auth-flow.darkthread-login-access .darkthread-login-shell {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.darkthread-auth-flow.darkthread-login-access .dt-auth-brand-mark {
        display: block;
        flex-shrink: 0;
        width: min(280px, 100%);
        height: 72px;
        margin: 0 auto 20px;
        background: var(--dt-auth-brand-logo, url("/asset/image/brand_logo.png")) center / contain no-repeat;
        opacity: 0.96;
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.48));
    }
}

/* 인증 플로우 공통 — 모바일 뷰포트 고정(페이지 스크롤 없음) */
@media (max-width: 519px) {
    html:has(body.darkthread-auth-page) {
        height: 100%;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access {
        box-sizing: border-box;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        background-color: #050505;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access::before {
        z-index: 0;
        display: block;
        opacity: 1;
        filter: brightness(1.18) contrast(1.08) saturate(1.05);
        transform: scale(1.02);
        background: var(--dt-login-bg-image) center / cover no-repeat;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access::after {
        z-index: 0;
        display: block;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28));
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access > main.darkthread-auth-main {
        box-sizing: border-box;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        padding: 0;
        gap: 0;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }

    body.darkthread-auth-page.darkthread-auth-flow .dt-auth-topbar {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        padding:
            calc(4px + env(safe-area-inset-top, 0px))
            8px
            8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(8, 10, 14, 0.28);
        -webkit-backdrop-filter: blur(10px) saturate(1.04);
        backdrop-filter: blur(10px) saturate(1.04);
    }

    body.darkthread-auth-page.darkthread-auth-flow .dt-auth-topbar__title {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    body.darkthread-auth-page.darkthread-auth-flow .dt-auth-topbar__trail {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    body.darkthread-auth-page.darkthread-auth-flow .dt-auth-flow-modal-header {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        width: 100%;
        max-width: none;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        padding:
            calc(4px + env(safe-area-inset-top, 0px))
            8px
            8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(8, 10, 14, 0.28);
        -webkit-backdrop-filter: blur(10px) saturate(1.04);
        backdrop-filter: blur(10px) saturate(1.04);
    }

    body.darkthread-auth-page.darkthread-auth-flow .dt-auth-flow-modal-header__title {
        letter-spacing: -0.01em;
    }

    body.darkthread-auth-page.darkthread-auth-flow .dt-auth-flow-modal-header__trail {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    body.darkthread-auth-page.darkthread-login {
        background: transparent;
        background-color: #050505;
    }

    body.darkthread-auth-page.darkthread-auth-flow .dt-auth-shell,
    body.darkthread-auth-page.darkthread-auth-flow .darkthread-login-shell,
    body.darkthread-auth-page .dt-auth-shell,
    body.darkthread-auth-page .darkthread-login-shell {
        display: flex;
        flex-direction: column;
        flex: 0 1 auto;
        width: calc(100% - 28px);
        max-width: 520px;
        max-height: calc(100% - 4px);
        min-height: 0;
        margin-inline: auto;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        justify-content: flex-start;
    }

    body.darkthread-auth-page .dt-auth-shell > .dt-auth-home-row,
    body.darkthread-auth-page .darkthread-login-shell > .dt-auth-home-row {
        display: none;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-auth-card,
    body.darkthread-auth-page .darkthread-auth-card {
        flex: 0 1 auto;
        width: 100%;
        min-height: 0;
        max-height: calc(100dvh - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 16px 18px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top-color: rgba(225, 29, 72, 0.3);
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(225, 29, 72, 0.08), transparent 48%),
            rgba(8, 10, 14, 0.06);
        -webkit-backdrop-filter: blur(8px) saturate(1.04);
        backdrop-filter: blur(8px) saturate(1.04);
        box-shadow:
            0 18px 44px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-auth-card::before,
    body.darkthread-auth-page .darkthread-auth-card::before {
        content: none;
        display: none;
    }

    body.darkthread-auth-page .dt-auth-header .dt-auth-title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.darkthread-auth-page .dt-auth-kicker {
        display: none;
    }

    body.darkthread-auth-page .dt-auth-step-dots {
        margin-bottom: 12px;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-primary,
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button,
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit,
    body.darkthread-auth-page .dt-auth-btn-primary,
    body.darkthread-auth-page .darkthread-auth-primary-button,
    body.darkthread-auth-page .darkthread-login-submit {
        min-height: 50px;
        border: 0;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        color: #ffffff;
        background: linear-gradient(180deg, #8f1d2c 0%, #5c1118 100%);
        box-shadow:
            0 12px 28px rgba(92, 17, 24, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-primary:hover:not(:disabled),
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button:hover:not(:disabled),
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit:hover:not(:disabled),
    body.darkthread-auth-page .dt-auth-btn-primary:hover:not(:disabled),
    body.darkthread-auth-page .darkthread-auth-primary-button:hover:not(:disabled),
    body.darkthread-auth-page .darkthread-login-submit:hover:not(:disabled) {
        background: linear-gradient(180deg, #a12233 0%, #6e1520 100%);
        box-shadow:
            0 14px 34px rgba(110, 21, 32, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-primary:disabled,
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-auth-primary-button:disabled,
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .darkthread-login-submit:disabled,
    body.darkthread-auth-page .dt-auth-btn-primary:disabled,
    body.darkthread-auth-page .darkthread-auth-primary-button:disabled,
    body.darkthread-auth-page .darkthread-login-submit:disabled {
        background: rgba(78, 78, 86, 0.82);
        color: rgba(255, 255, 255, 0.78);
        box-shadow: none;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-secondary-red,
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-reg-send-verify,
    body.darkthread-auth-page .dt-auth-btn-secondary-red,
    body.darkthread-auth-page .dt-reg-send-verify,
    body.darkthread-auth-page .dt-reg-btn-resend {
        min-height: 48px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-secondary-red,
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-reg-send-verify,
    body.darkthread-auth-page .dt-auth-btn-secondary-red,
    body.darkthread-auth-page .dt-reg-send-verify {
        border: 1px solid rgba(225, 29, 72, 0.45);
        background: linear-gradient(180deg, rgba(130, 28, 45, 0.92), rgba(82, 18, 28, 0.92));
        color: #ffffff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-secondary-red:hover:not(:disabled),
    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-reg-send-verify:hover:not(:disabled),
    body.darkthread-auth-page .dt-auth-btn-secondary-red:hover:not(:disabled),
    body.darkthread-auth-page .dt-reg-send-verify:hover:not(:disabled) {
        filter: brightness(1.06);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.09),
            0 0 18px rgba(225, 29, 72, 0.18);
    }

    body.darkthread-auth-page.darkthread-auth-flow.darkthread-login-access .dt-auth-btn-ghost,
    body.darkthread-auth-page .dt-auth-btn-ghost {
        min-height: 48px;
        border-radius: 12px;
        border: 1px solid rgba(225, 29, 72, 0.18);
        background: rgba(0, 0, 0, 0.18);
        color: rgba(255, 255, 255, 0.82);
        font-size: 14px;
        font-weight: 700;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-form {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    body.darkthread-auth-page.darkthread-register #registerNextStepButton,
    body.darkthread-auth-page.darkthread-register .dt-reg-step-actions {
        margin-top: auto;
    }

    body.darkthread-auth-page.darkthread-register #registerVerifyDialog .dt-reg-verify-code {
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: rgba(4, 4, 4, 0.52);
        font-size: 20px;
        letter-spacing: 0.35em;
        text-align: center;
    }

    /* 비밀번호 찾기 */
    body.darkthread-auth-page .dt-auth-header {
        flex-shrink: 0;
        margin-bottom: 10px;
    }

    body.darkthread-auth-page .dt-auth-desc {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.45;
    }

    body.darkthread-auth-page .dt-auth-input,
    body.darkthread-auth-page .darkthread-login-input {
        box-sizing: border-box;
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: rgba(4, 4, 4, 0.58);
        font-size: 16px;
        font-weight: 500;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    body.darkthread-auth-page .dt-auth-input:focus,
    body.darkthread-auth-page .darkthread-login-input:focus {
        border-color: #e11d48;
        box-shadow:
            inset 0 0 0 1px rgba(225, 29, 72, 0.45),
            inset 0 0 12px rgba(225, 29, 72, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    body.darkthread-auth-page .dt-auth-btn-ghost {
        min-height: 48px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
    }

    /* Auth 공통 — 모바일 바텀 시트 + 브랜드 로고 */
    body.darkthread-auth-page > main.darkthread-auth-main {
        justify-content: flex-start;
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    body.darkthread-auth-page .dt-auth-mobile-sheet {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        min-height: 0;
        margin-top: auto;
        margin-bottom: 0;
        padding: 0;
        justify-content: flex-end;
        align-items: stretch;
        overflow: visible;
        transform-origin: bottom center;
        animation: dt-auth-mobile-sheet-up 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    body.darkthread-auth-page .dt-auth-brand-mark {
        display: block;
        flex-shrink: 0;
        width: min(260px, 72vw);
        height: 80px;
        margin: 0 auto 14px;
        background: var(--dt-auth-brand-logo, url("/asset/image/brand_logo.png")) center / contain no-repeat;
        opacity: 0.96;
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.48));
    }

    body.darkthread-auth-page .dt-auth-mobile-sheet > .darkthread-auth-card {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 132px));
        margin: 0;
        padding: 14px 22px calc(22px + env(safe-area-inset-bottom, 0px));
        border: 0 !important;
        border-top: 1px solid rgba(225, 29, 72, 0.3) !important;
        border-radius: 16px 16px 0 0 !important;
        background:
            linear-gradient(180deg, rgba(225, 29, 72, 0.09) 0%, transparent 32%),
            #050505;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    body.darkthread-auth-page .dt-auth-mobile-sheet > .darkthread-auth-card::before {
        content: "";
        display: block;
        width: 2.75rem;
        height: 0.3rem;
        margin: 0 auto 1.15rem;
        border-radius: 9999px;
        background: rgba(148, 163, 184, 0.42);
        flex-shrink: 0;
    }

    @keyframes dt-auth-mobile-sheet-up {
        from {
            transform: translate3d(0, calc(100% + env(safe-area-inset-bottom, 0px)), 0);
            opacity: 0.68;
        }

        to {
            transform: translate3d(0, 0, 0);
            opacity: 1;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        body.darkthread-auth-page .dt-auth-mobile-sheet {
            animation: none;
        }
    }

    body.darkthread-auth-page .dt-auth-terms-links {
        margin: 0 0 14px;
        padding: 0;
        list-style: none;
    }

    body.darkthread-auth-page .dt-auth-terms-link-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 52px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: rgba(8, 8, 12, 0.14);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        color: rgba(248, 250, 252, 0.94);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition:
            border-color 0.15s ease,
            background-color 0.15s ease;
    }

    body.darkthread-auth-page .dt-auth-terms-link-row:hover {
        border-color: rgba(143, 29, 44, 0.35);
        background: rgba(92, 17, 24, 0.14);
    }

    body.darkthread-auth-page .dt-auth-terms-link-required {
        margin-right: 6px;
        color: #e11d48;
        font-weight: 700;
    }

    body.darkthread-auth-page .dt-auth-terms-link-icon {
        flex-shrink: 0;
        color: rgba(203, 213, 225, 0.55);
        font-size: 12px;
    }

    body.darkthread-auth-page.darkthread-auth-terms .dt-auth-form-actions {
        flex-shrink: 0;
        gap: 12px;
        margin-top: 12px;
    }

    body.darkthread-auth-page .tw-modaldialogs #termsContentDialog el-dialog-panel,
    body.darkthread-auth-page .tw-modaldialogs #registerVerifyDialog el-dialog-panel,
    body.darkthread-auth-page .tw-modaldialogs #registerMessageDialog el-dialog-panel {
        outline: none !important;
        outline-color: transparent !important;
    }

    /* 이용약관 — 모바일 전체 화면 */
    body.darkthread-auth-page #termsContentDialog::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: var(--dt-login-bg-image, url("/asset/image/bg/login-bg.jpg")) center / cover no-repeat;
        filter: brightness(1.18) contrast(1.08) saturate(1.05);
        transform: scale(1.02);
    }

    body.darkthread-auth-page #termsContentDialog::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.22));
    }

    body.darkthread-auth-page #termsContentDialog {
        padding: 0;
        overflow: hidden;
    }

    body.darkthread-auth-page #termsContentDialog > .dt-auth-flow-modal-wrap,
    body.darkthread-auth-page #termsContentDialog > div > .dt-auth-flow-modal-wrap,
    body.darkthread-auth-page #termsContentDialog > div > .flex.min-h-full {
        box-sizing: border-box;
        width: 100%;
        min-height: 100dvh;
        height: 100dvh;
        margin: 0;
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    body.darkthread-auth-page #termsContentDialog el-dialog-backdrop {
        background: rgba(0, 0, 0, 0.28);
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-flow-modal-panel,
    body.darkthread-auth-page #termsContentDialog el-dialog-panel {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        padding: 0;
        border: 0 !important;
        border-radius: 0 !important;
        outline: none !important;
        background:
            linear-gradient(180deg, rgba(10, 11, 14, 0.92), rgba(6, 7, 10, 0.96)) !important;
        -webkit-backdrop-filter: blur(14px) saturate(1.04);
        backdrop-filter: blur(14px) saturate(1.04);
        box-shadow: none !important;
        overflow: hidden;
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-flow-modal-body-wrap {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin: 0;
        padding: 0 !important;
        overflow: hidden;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-flow-modal-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        margin: 0;
        padding: 16px 22px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: 0;
        border-radius: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    body.darkthread-auth-page #termsContentDialog .tw-modaldialogs-modal-footer {
        flex-shrink: 0;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(8, 10, 14, 0.42);
        -webkit-backdrop-filter: blur(12px) saturate(1.04);
        backdrop-filter: blur(12px) saturate(1.04);
    }

    /* 알림·인증코드 — 모바일 중앙 카드 모달 */
    body.darkthread-auth-page #registerVerifyDialog,
    body.darkthread-auth-page #registerMessageDialog {
        padding: 0;
        overflow-y: auto;
    }

    body.darkthread-auth-page #registerVerifyDialog > .dt-auth-flow-modal-wrap,
    body.darkthread-auth-page #registerVerifyDialog > div > .dt-auth-flow-modal-wrap,
    body.darkthread-auth-page #registerMessageDialog > .dt-auth-flow-modal-wrap,
    body.darkthread-auth-page #registerMessageDialog > div > .dt-auth-flow-modal-wrap {
        box-sizing: border-box;
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        padding: 16px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.darkthread-auth-page #registerVerifyDialog el-dialog-backdrop,
    body.darkthread-auth-page #registerMessageDialog el-dialog-backdrop {
        background: rgba(0, 0, 0, 0.5);
    }

    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-panel,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-panel,
    body.darkthread-auth-page #registerVerifyDialog el-dialog-panel,
    body.darkthread-auth-page #registerMessageDialog el-dialog-panel {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: 100% !important;
        max-width: min(92vw, 22rem) !important;
        height: auto;
        min-height: 0;
        max-height: min(88vh, 560px);
        margin: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 1rem !important;
        outline: none !important;
        background: linear-gradient(180deg, rgba(12, 12, 12, 0.97) 0%, rgba(6, 6, 6, 0.99) 100%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(1.04);
        backdrop-filter: blur(14px) saturate(1.04);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.56) !important;
        overflow: hidden;
    }

    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-header,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-header {
        padding: 4px 8px 8px;
    }

    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-body-wrap,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-body-wrap {
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin: 0;
        padding: 0 !important;
        overflow: hidden;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-scroll,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-scroll {
        flex: 0 1 auto;
        min-height: 0;
        max-height: min(52vh, 360px);
        margin: 0;
        padding: 14px 16px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.darkthread-auth-page #registerVerifyDialog .tw-modaldialogs-modal-footer,
    body.darkthread-auth-page #registerMessageDialog .tw-modaldialogs-modal-footer {
        flex-shrink: 0;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 12px 16px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
    }

    /* auth 모달 본문 타이틀 (PC) */
    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-body-wrap > h3,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-body-wrap > h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        color: #ffffff;
        letter-spacing: -0.01em;
    }

    body.darkthread-auth-page #registerVerifyDialog .tw-modaldialogs-modal-footer .dt-auth-btn-primary,
    body.darkthread-auth-page #registerVerifyDialog .tw-modaldialogs-modal-footer .dt-reg-btn-resend,
    body.darkthread-auth-page #registerVerifyDialog .tw-modaldialogs-modal-footer .dt-auth-btn-ghost,
    body.darkthread-auth-page #registerMessageDialog .tw-modaldialogs-modal-footer .dt-auth-btn-primary {
        min-height: 50px;
        font-size: 15px;
        font-weight: 700;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-step-actions .dt-auth-btn-ghost,
    body.darkthread-auth-page.darkthread-register #registerStepEmail .dt-reg-step-actions .dt-auth-btn-ghost {
        min-height: 50px;
        font-size: 15px;
        font-weight: 700;
    }

    body.darkthread-auth-page .darkthread-login-form {
        gap: 10px;
    }

    body.darkthread-auth-page .darkthread-login-remember {
        min-height: 50px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.22);
    }

    body.darkthread-auth-page .darkthread-login-notice {
        display: none;
    }

    body.darkthread-auth-page .darkthread-login-secondary-actions {
        margin-top: 10px;
        gap: 0;
    }

    body.darkthread-auth-page .darkthread-login-signup-link {
        padding: 10px 12px;
        gap: 10px;
    }

    body.darkthread-auth-page .darkthread-login-signup-link .mt-1 {
        margin-top: 2px;
        font-size: 13px;
        line-height: 1.35;
    }

    body.darkthread-auth-page #loginAlert:not(.hidden) {
        margin-bottom: 8px;
        padding: 8px 12px;
        font-size: 12px;
        line-height: 1.4;
    }

    /* 이용약관 */
    body.darkthread-auth-page.darkthread-auth-terms .dt-auth-scroll-panel {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        margin-top: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        background: rgba(8, 8, 12, 0.16);
        -webkit-backdrop-filter: blur(12px) saturate(1.06);
        backdrop-filter: blur(12px) saturate(1.06);
        font-size: 12px;
        line-height: 1.6;
        color: rgba(220, 230, 240, 0.82);
    }

    body.darkthread-auth-page.darkthread-auth-terms .dt-auth-agreement-box {
        align-items: center;
        min-height: 52px;
        margin-top: 0;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(8, 8, 12, 0.14);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    body.darkthread-auth-page.darkthread-auth-terms .dt-auth-agreement-box input[type="checkbox"] {
        accent-color: var(--dt-auth-accent);
    }

    body.darkthread-auth-page.darkthread-auth-terms .dt-auth-footer-block .mb-4 {
        margin-bottom: 8px;
        gap: 8px;
    }

    /* 회원가입 */
    body.darkthread-auth-page.darkthread-register .dt-reg-step {
        gap: 12px;
    }

    body.darkthread-auth-page.darkthread-register #registerStepProfile {
        gap: 10px;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-form-fields {
        gap: 10px;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-gender-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-gender-option {
        min-height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(4, 4, 4, 0.42);
        color: rgba(226, 232, 240, 0.76);
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-gender-option:has(.peer:checked) {
        border-color: rgba(143, 29, 44, 0.55);
        background: rgba(92, 17, 24, 0.22);
        color: #ffffff;
    }

    body.darkthread-auth-page .dt-auth-footer-block {
        flex-shrink: 0;
        margin-top: 10px;
        padding-top: 10px;
    }

    body.darkthread-auth-page.darkthread-register .dt-auth-footer-block {
        display: none;
    }

    /* 비밀번호 찾기 */
    body.darkthread-auth-page.darkthread-auth-password-reset .darkthread-auth-card {
        justify-content: center;
    }

    body.darkthread-auth-page.darkthread-auth-password-reset .darkthread-login-form {
        gap: 10px;
    }

    body.darkthread-auth-page.darkthread-auth-password-reset #passwordResetAlert:not(.hidden) {
        margin-bottom: 8px;
        padding: 8px 12px;
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (min-width: 520px) {
    body.darkthread-auth-page #termsContentDialog::before,
    body.darkthread-auth-page #termsContentDialog::after {
        display: none;
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-flow-modal-panel,
    body.darkthread-auth-page #termsContentDialog el-dialog-panel {
        height: auto;
        min-height: 0;
        max-height: min(88vh, 720px);
        width: auto !important;
        max-width: 32rem !important;
        border-radius: 1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: linear-gradient(180deg, rgba(12, 12, 12, 0.97) 0%, rgba(6, 6, 6, 0.99) 100%) !important;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.56) !important;
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-flow-modal-header {
        display: none;
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-flow-modal-body-wrap {
        padding: 1rem 1.5rem !important;
        overflow: visible;
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-flow-modal-body-wrap > h3 {
        margin: 0;
        font-size: clamp(28px, 5.5vw, 32px);
        font-weight: 800;
        line-height: 1.15;
        color: #ffffff;
        letter-spacing: normal;
    }

    body.darkthread-auth-page #termsContentDialog .dt-auth-scroll-panel.dt-auth-flow-modal-scroll {
        max-height: min(52vh, 480px);
    }

    body.darkthread-auth-page #termsContentDialog .tw-modaldialogs-modal-footer {
        margin: 0;
        padding: 0.75rem 1.5rem 1rem;
        border-top: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-header,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-header {
        display: none;
    }

    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-body-wrap,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-body-wrap {
        padding: 1rem 1.5rem 0 !important;
    }

    body.darkthread-auth-page #registerVerifyDialog .dt-auth-flow-modal-scroll,
    body.darkthread-auth-page #registerMessageDialog .dt-auth-flow-modal-scroll {
        max-height: min(52vh, 360px);
        padding: 0;
    }

    body.darkthread-auth-page #registerVerifyDialog .tw-modaldialogs-modal-footer,
    body.darkthread-auth-page #registerMessageDialog .tw-modaldialogs-modal-footer {
        padding: 0.75rem 1.5rem 1rem;
    }
}

@media (max-width: 519px) and (max-height: 700px) {
    body.darkthread-auth-page .dt-auth-kicker {
        display: none;
    }

    body.darkthread-auth-page .dt-auth-header {
        margin-bottom: 10px;
    }

    body.darkthread-auth-page .dt-auth-desc {
        margin-top: 4px;
        font-size: 12px;
    }

    body.darkthread-auth-page .dt-auth-shell:not(.dt-auth-mobile-sheet),
    body.darkthread-auth-page .darkthread-login-shell:not(.dt-auth-mobile-sheet) {
        padding-top: 6px;
    }

    body.darkthread-auth-page:not(.darkthread-login) .darkthread-auth-card {
        padding: 14px 16px;
    }

    body.darkthread-auth-page .darkthread-login-form {
        gap: 14px;
    }

    body.darkthread-auth-page.darkthread-register > main.darkthread-auth-main {
        padding-top: 4px;
        padding-bottom: 0;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-stepper {
        margin: 14px 0 0;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-step,
    body.darkthread-auth-page.darkthread-register #registerStepProfile {
        gap: 10px;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-form-fields {
        gap: 8px;
    }

    body.darkthread-auth-page.darkthread-register .dt-reg-gender-option {
        min-height: 38px;
        font-size: 12px;
    }

    body.darkthread-auth-page.darkthread-register .dt-auth-btn-primary,
    body.darkthread-auth-page.darkthread-register .dt-auth-btn-secondary-red,
    body.darkthread-auth-page.darkthread-register .dt-reg-step-actions .dt-auth-btn-ghost,
    body.darkthread-auth-page.darkthread-register #registerVerifyDialog .tw-modaldialogs-modal-footer button {
        min-height: 44px;
    }

    body.darkthread-auth-page.darkthread-register .dt-auth-footer-block {
        margin-top: 6px;
        padding-top: 6px;
    }

    body.darkthread-auth-page.darkthread-register .dt-auth-footer-block .dt-auth-btn-ghost {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
    }

    body.darkthread-auth-page.darkthread-auth-terms .dt-auth-scroll-panel {
        padding: 12px;
        font-size: 11px;
        line-height: 1.5;
    }
}


/*
 * 회원가입 전용 상태 (register.php) — 공통 입력·버튼 토큰 확장
 */
body.darkthread-auth-flow.darkthread-register.darkthread-login-access .dt-reg-form {
    margin-top: 0;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-stepper {
    display: flex;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-stepper-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(170, 185, 195, 0.62);
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-stepper-item.is-active {
    border-color: rgba(225, 29, 72, 0.35);
    background: rgba(225, 29, 72, 0.08);
    color: #ffffff;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-stepper-item.is-complete {
    border-color: rgba(46, 166, 107, 0.35);
    color: rgba(220, 235, 225, 0.88);
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-stepper-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-stepper-item.is-active .dt-reg-stepper-index {
    background: rgba(225, 29, 72, 0.85);
    color: #fff;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-stepper-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-gender-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-gender-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: rgba(220, 230, 240, 0.82);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-gender-option:has(.peer:checked) {
    border-color: rgba(225, 29, 72, 0.45);
    background: rgba(225, 29, 72, 0.12);
    color: #ffffff;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-step-actions {
    margin-top: 4px;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-reopen-verify {
    align-self: center;
    margin-top: -4px;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access #registerVerifyDialog .dt-reg-countdown {
    display: block;
    width: 100%;
    min-height: 1.25rem;
    text-align: right;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0 0 8px;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-label-text {
    min-width: 0;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-req {
    font-size: 13px;
    font-weight: 700;
    color: #e11d48;
    line-height: 1;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input:disabled,
body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input[readonly] {
    cursor: default;
    opacity: 0.95;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input--pending {
    border-color: rgba(225, 29, 72, 0.4);
    background: rgba(8, 8, 8, 0.62);
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input--locked {
    border-color: rgba(46, 166, 107, 0.55);
    background: rgba(10, 28, 20, 0.35);
    padding-right: 2.5rem;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input--locked:focus {
    border-color: rgba(46, 166, 107, 0.7);
    box-shadow:
        inset 0 0 0 1px rgba(46, 166, 107, 0.35),
        inset 0 0 14px rgba(46, 166, 107, 0.1);
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input--error {
    border-color: #e11d48;
    box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.28);
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input--ok {
    border-color: rgba(46, 166, 107, 0.5);
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-auth-input--ok:focus {
    border-color: rgba(46, 166, 107, 0.65);
    box-shadow:
        inset 0 0 0 1px rgba(46, 166, 107, 0.32),
        inset 0 0 12px rgba(46, 166, 107, 0.08);
}

body.darkthread-register.darkthread-login-access .dt-reg-verify-code {
    text-align: center;
    font-size: 1.125rem;
    letter-spacing: 0.35em;
    font-weight: 600;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-verify-panel {
    margin-top: 0;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 12, 0.16);
    -webkit-backdrop-filter: blur(12px) saturate(1.06);
    backdrop-filter: blur(12px) saturate(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.darkthread-register.darkthread-login-access .dt-reg-verify-panel .dt-reg-label {
    margin-bottom: 10px;
}

body.darkthread-register.darkthread-login-access .dt-reg-verify-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

body.darkthread-register.darkthread-login-access .dt-reg-countdown {
    min-height: 1.25rem;
    font-size: 13px;
    font-weight: 600;
    color: #d7b26d;
}

body.darkthread-register.darkthread-login-access .dt-reg-verify-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.darkthread-register.darkthread-login-access .dt-reg-btn-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

body.darkthread-register.darkthread-login-access #registerVerifyDialog .dt-reg-btn-resend {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
}

body.darkthread-register.darkthread-login-access .dt-reg-btn-resend:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 8, 12, 0.45);
    color: #fff;
}

body.darkthread-register.darkthread-login-access .dt-reg-btn-resend:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-send-verify {
    flex-shrink: 0;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-email-change {
    font-size: 12px;
    font-weight: 600;
    color: rgba(248, 180, 180, 0.95);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

body.darkthread-register.darkthread-auth-flow.darkthread-login-access .dt-reg-email-change:hover {
    color: #ffb4b4;
}

body.darkthread-register.darkthread-login-access output.dt-reg-msg {
    display: block;
    margin: 6px 0 0;
    min-height: 1.25rem;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    color: rgba(235, 240, 245, 0.55);
}

body.darkthread-register.darkthread-login-access output.dt-reg-msg.hidden {
    display: none;
    min-height: 0;
    margin: 0;
}

body.darkthread-register.darkthread-login-access .dt-reg-msg--error {
    color: rgba(251, 165, 165, 0.95);
}

body.darkthread-register.darkthread-login-access .dt-reg-msg--success {
    color: rgba(86, 200, 140, 0.95);
}

.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;
}

/* Dev: TipTap Simple Editor 테스트 — 툴바 sticky 가 상위 overflow 에 막히지 않도록 */
body.darkthread-flat-content-frame .content-frame:has(.dt-simple-editor) {
    overflow: visible;
}

.darkthread-site-panel {
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

body.darkthread-site-page,
body.darkthread-site-page #darkthread-main,
body.darkthread-site-page #darkthread-highlights,
body.darkthread-site-page #darkthread-content {
    overflow-x: clip;
}

@media (max-width: 768px) {
    body.darkthread-site-page #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-site-page #darkthread-highlights {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    body.darkthread-site-page .darkthread-site-panel {
        border-radius: 1rem;
        padding: 1rem 0.875rem;
    }
}

@media (max-width: 520px) {
    body.darkthread-site-page #darkthread-main {
        padding-left: max(0.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.25rem, env(safe-area-inset-right, 0px));
    }
}

@supports not (overflow: clip) {
    body.darkthread-site-page,
    body.darkthread-site-page #darkthread-main,
    body.darkthread-site-page #darkthread-highlights,
    body.darkthread-site-page #darkthread-content {
        overflow-x: hidden;
    }
}



.page-card {
    background: rgba(8, 8, 8, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

body.darkthread-error-page {
    min-height: 100vh;
    margin: 0;
    color: var(--dt-fg);
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background-color: #050505;
}

body.darkthread-error-page.darkthread-login-access::before,
body.darkthread-error-page.darkthread-login-access::after {
    z-index: 0;
}

.darkthread-error-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
    box-sizing: border-box;
}

.darkthread-error-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(18px);
}

.darkthread-error-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 0.85rem clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.darkthread-error-brand {
    display: inline-flex;
    min-width: 0;
    flex-shrink: 0;
    align-items: center;
    text-decoration: none;
}

.darkthread-error-brand .darkthread-brand-logo {
    height: 2.6rem;
    max-width: min(12rem, 42vw);
}

.darkthread-error-nav {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.4vw, 2rem);
}

.darkthread-error-nav__link {
    color: var(--dt-fg-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.15s ease;
}

.darkthread-error-nav__link:hover {
    color: var(--dt-fg);
}

.darkthread-error-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.darkthread-error-header__btn {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.darkthread-error-header__btn--ghost,
.darkthread-error-action--secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #26262c;
    color: #ffffff;
}

.darkthread-error-header__btn--ghost:hover,
.darkthread-error-action--secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: #32323a;
    color: #ffffff;
}

.darkthread-error-header__btn--primary {
    border: 1px solid rgba(248, 113, 113, 0.42);
    background: #7f1d1d;
    color: #fff;
}

.darkthread-error-header__btn--primary:hover {
    border-color: rgba(252, 165, 165, 0.58);
    background: #991b1b;
}

.darkthread-error-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.darkthread-error-card {
    display: flex;
    width: min(100%, 32rem);
    flex-direction: column;
    align-items: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(225, 29, 72, 0.3);
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(225, 29, 72, 0.08), transparent 48%),
        rgba(8, 10, 14, 0.06);
    -webkit-backdrop-filter: blur(8px) saturate(1.04);
    backdrop-filter: blur(8px) saturate(1.04);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
}

.darkthread-error-card__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.35rem;
}

.darkthread-error-icon {
    display: inline-flex;
    width: clamp(4.5rem, 12vw, 5.5rem);
    height: clamp(4.5rem, 12vw, 5.5rem);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 58%),
        rgba(127, 29, 29, 0.24);
    color: #fecaca;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.darkthread-error-page[data-error-tone="warning"] .darkthread-error-icon {
    border-color: rgba(251, 191, 36, 0.32);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), transparent 58%),
        rgba(120, 53, 15, 0.28);
    color: #fde68a;
}

body.darkthread-error-page[data-error-tone="danger"] .darkthread-error-icon {
    border-color: rgba(244, 63, 94, 0.34);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), transparent 58%),
        rgba(136, 19, 55, 0.28);
    color: #fecdd3;
}

.darkthread-error-code {
    margin: 0 0 0.55rem;
    color: rgba(148, 163, 184, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.darkthread-error-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.darkthread-error-copy {
    width: 100%;
    margin-top: 0.9rem;
}

.darkthread-error-message {
    margin: 0;
    color: var(--dt-fg-muted);
    font-size: clamp(0.95rem, 1.8vw, 1.02rem);
    line-height: 1.7;
}

.darkthread-error-detail {
    margin: 0.65rem 0 0;
    color: var(--dt-fg-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.darkthread-error-next {
    width: 100%;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.darkthread-error-next__title {
    margin: 0 0 0.65rem;
    color: var(--dt-fg);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
}

.darkthread-error-next__list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    color: var(--dt-fg-muted);
    font-size: 0.84rem;
    line-height: 1.58;
    list-style: none;
}

.darkthread-error-next__list li {
    position: relative;
    padding-left: 0.95rem;
}

.darkthread-error-next__list li::before {
    content: '';
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.74);
}

body.darkthread-error-page[data-error-tone="warning"] .darkthread-error-next__list li::before {
    background: rgba(251, 191, 36, 0.76);
}

.darkthread-error-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

.darkthread-error-action {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.78rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.darkthread-error-action:hover {
    transform: translateY(-1px);
}

.darkthread-error-action:focus-visible {
    outline: 2px solid rgba(248, 113, 113, 0.72);
    outline-offset: 3px;
}

.darkthread-error-action--primary {
    border: 1px solid rgba(248, 113, 113, 0.42);
    background: #7f1d1d;
    color: #fff;
}

.darkthread-error-action--primary:hover {
    border-color: rgba(252, 165, 165, 0.58);
    background: #991b1b;
}

.darkthread-error-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 3, 3, 0.72);
    backdrop-filter: blur(12px);
}

.darkthread-error-footer__inner {
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 1.25rem clamp(1rem, 4vw, 2rem) 1.5rem;
    box-sizing: border-box;
}

.darkthread-error-footer__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.darkthread-error-footer__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.darkthread-error-footer__logo-image {
    display: block;
    height: 1.9rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    opacity: 0.92;
}

.darkthread-error-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.darkthread-error-footer__links a {
    color: var(--dt-fg-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.darkthread-error-footer__links a:hover {
    color: #fecaca;
}

.darkthread-error-footer__copy {
    margin: 1rem 0 0;
    color: var(--dt-fg-soft);
    font-size: 0.74rem;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 760px) {
    .darkthread-error-nav {
        display: flex;
    }

    .darkthread-error-brand .darkthread-brand-logo {
        height: 3rem;
        max-width: 14rem;
    }

    .darkthread-error-actions {
        flex-direction: row;
        justify-content: center;
    }

    .darkthread-error-action {
        min-width: 11rem;
    }
}

@media (max-width: 520px) {
    .darkthread-error-header__inner,
    .darkthread-error-main,
    .darkthread-error-footer__inner {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .darkthread-error-header__btn {
        min-height: 2.35rem;
        padding-inline: 0.8rem;
        font-size: 0.78rem;
    }

    .darkthread-error-card {
        border-radius: 1.15rem;
        padding: 1.65rem 1.2rem 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .darkthread-error-action {
        transition: none;
    }

    .darkthread-error-action:hover {
        transform: none;
    }
}

.darkthread-hero-rail {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.9), rgba(3, 3, 3, 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-search-input {
    background: rgba(9, 9, 9, 0.9);
    color: var(--dt-fg);
    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(248, 113, 113, 0.35);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14);
}

.darkthread-search-field .darkthread-search-input {
    flex: 1 1 0%;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: var(--dt-fg);
    outline: none;
}

.darkthread-search-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--dt-fg-soft);
    pointer-events: none;
}

.darkthread-search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.darkthread-search-input::placeholder {
    color: var(--dt-fg-soft);
}

.darkthread-search-input option {
    background: #090909;
    color: var(--dt-fg);
}

.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(9, 9, 9, 0.86);
    color: #f1f5f9;
    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(24, 24, 24, 0.95);
    color: #fff;
}

.darkthread-pagination-button.is-active {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.78);
    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: var(--dt-fg-muted);
    text-align: center;
}

.darkthread-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--dt-fg-soft);
    text-align: center;
}

.darkthread-section-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    overflow-y: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.75rem;
    background: rgba(5, 5, 5, 0.96);
}

.darkthread-section-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    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-toolbar--end {
    justify-content: flex-end;
}

.darkthread-list-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.darkthread-list-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    padding: 0;
}

.darkthread-list-header .darkthread-list-toolbar {
    margin-bottom: 0;
}

.darkthread-list-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    background: transparent;
    border: none;
    padding: 0;
}

.darkthread-list-search-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.darkthread-list-search-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    max-width: min(100%, calc(28rem + 6.5rem));
    margin-inline: auto;
    box-sizing: border-box;
}

.darkthread-list-search-row .darkthread-search-field {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}

.darkthread-category-filter-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 9, 9, 0.86);
    color: var(--dt-fg);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.darkthread-category-filter-toggle:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(24, 24, 24, 0.95);
    color: #fff;
}

.darkthread-category-filter-toggle:focus-visible {
    outline: 2px solid rgba(248, 113, 113, 0.45);
    outline-offset: 2px;
}

.darkthread-category-filter-toggle[aria-expanded="true"] {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.78);
    color: #fff;
}

.darkthread-category-filter-modal-host {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.darkthread-category-filter-modal-backdrop {
    display: none;
}

.darkthread-category-filter-modal-dialog {
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.darkthread-list-categories--modal-body {
    width: 100%;
}

.darkthread-list-header--category-wraps-3:not(.is-category-panel-open) .darkthread-category-filter-modal-host {
    display: none;
}

.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-category-filter-modal-host {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-category-filter-modal-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 카드 상자 없이 백드롭 위에 pill만 펼침; 빈 영역 탭은 백드롭으로 전달 */
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-category-filter-modal-dialog {
    position: relative;
    z-index: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 40rem);
    max-width: 100%;
    max-height: min(90vh, 100%);
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

@keyframes darkthread-category-pill-pop-in {
    from {
        opacity: 0;
        transform: translateY(0.65rem) scale(0.9);
    }

    52% {
        opacity: 1;
        transform: translateY(-2px) scale(1.04);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill {
    opacity: 0;
    animation: darkthread-category-pill-pop-in 0.28s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}

.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(1) { animation-delay: 0ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(2) { animation-delay: 18ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(3) { animation-delay: 36ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(4) { animation-delay: 54ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(5) { animation-delay: 72ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(6) { animation-delay: 90ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(7) { animation-delay: 108ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(8) { animation-delay: 126ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(9) { animation-delay: 144ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(10) { animation-delay: 162ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(11) { animation-delay: 180ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(12) { animation-delay: 198ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(13) { animation-delay: 216ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(14) { animation-delay: 234ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(15) { animation-delay: 252ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(16) { animation-delay: 270ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(17) { animation-delay: 288ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(18) { animation-delay: 306ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(19) { animation-delay: 324ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(20) { animation-delay: 342ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(21) { animation-delay: 360ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(22) { animation-delay: 378ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(23) { animation-delay: 396ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(24) { animation-delay: 414ms; }
.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill:nth-child(n+25) { animation-delay: 432ms; }

@media (prefers-reduced-motion: reduce) {
    .darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body > .darkthread-category-pill {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

.darkthread-list-header--category-wraps-3.is-category-panel-open .darkthread-list-categories--modal-body {
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    max-height: min(85vh, calc(100vh - 2rem));
    margin: 0;
    padding: 1.15rem 0.75rem 1rem;
    justify-content: center;
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.darkthread-list-write-button {
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.darkthread-list-search-row .darkthread-list-write-icon {
    flex-shrink: 0;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    gap: 0;
}

.darkthread-list-write-button svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.darkthread-list-write-button i {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.darkthread-list-write-text {
    line-height: 1;
}

@media (min-width: 1300px) {
    .darkthread-list-write-button:not(.darkthread-list-write-icon) {
        width: auto;
    }
}

.darkthread-list-label {
    font-size: 0.875rem;
    color: var(--dt-fg-muted);
    white-space: nowrap;
}

.darkthread-list-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.darkthread-table {
    width: 100%;
    min-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: var(--dt-fg-muted);
    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;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: var(--dt-fg);
}

.darkthread-table-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.darkthread-list-author {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    gap: 0.32rem;
    vertical-align: middle;
}

.darkthread-list-admin-crown {
    flex: 0 0 auto;
    font-size: 0.82em;
    line-height: 1;
    transform: translateY(-0.04rem) rotate(-7deg);
}

.darkthread-list-author-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.darkthread-author-profile-link,
.darkthread-comment-author-link {
    color: inherit;
    text-decoration: none;
}

.darkthread-author-profile-link:hover,
.darkthread-author-profile-link:focus-visible,
.darkthread-comment-author-link:hover,
.darkthread-comment-author-link:focus-visible {
    color: var(--dt-fg);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

html.darkthread-board-list-v2-theme-light .darkthread-author-profile-link:hover,
html.darkthread-board-list-v2-theme-light .darkthread-author-profile-link:focus-visible,
html.darkthread-board-list-v2-theme-light .darkthread-comment-author-link:hover,
html.darkthread-board-list-v2-theme-light .darkthread-comment-author-link:focus-visible,
body.darkthread-board-list-v2-theme-light .darkthread-author-profile-link:hover,
body.darkthread-board-list-v2-theme-light .darkthread-author-profile-link:focus-visible,
body.darkthread-board-list-v2-theme-light .darkthread-comment-author-link:hover,
body.darkthread-board-list-v2-theme-light .darkthread-comment-author-link:focus-visible {
    color: #0f172a;
}

.darkthread-author-profile-name .darkthread-author-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

#noticeTable .darkthread-table-title-cell,
#boardTable .darkthread-table-title-cell {
    max-width: 0;
}

.darkthread-table-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(74, 222, 128, 0.45);
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.88), rgba(12, 74, 34, 0.92));
    padding: 0.22rem 0.56rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #dcfce7;
    line-height: 1.1;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 8px rgba(0, 0, 0, 0.28);
}

.darkthread-table-new-badge--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0;
    line-height: 0;
    width: auto;
    height: auto;
}

.darkthread-table-new-badge-image {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    transform: scale(2);
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
}

.darkthread-table-image-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(148 163 184 / 0.7);
    flex: 0 0 auto;
    vertical-align: middle;
}

.darkthread-table-comment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(248 113 113 / 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
    vertical-align: middle;
}

.darkthread-table-read-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0;
    line-height: 0;
    flex: 0 0 auto;
    vertical-align: middle;
}

.darkthread-table-read-badge.is-read {
    border: 0;
    background: transparent;
    color: inherit;
}

.darkthread-table-read-badge.is-unread {
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.darkthread-table-read-icon {
    display: block;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.darkthread-table-read-badge.is-unread .darkthread-table-read-icon {
    font-size: 0.72rem;
    color: #d3c08a;
}

.darkthread-table-read-badge.is-read .darkthread-table-read-icon {
    font-size: 0.72rem;
    color: #6b7280;
    opacity: 0.88;
}

/* board/list: 메인 줄(제목+배지) 아래 분리 태그 칩 */
#boardTable .darkthread-table-title-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: auto;
    max-width: 100%;
    vertical-align: middle;
}

#boardTable .darkthread-table-title-grid {
    display: inline-flex;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
}

#boardTable .darkthread-table-title-side {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 1.7rem;
}

#boardTable .darkthread-table-title-desktop-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

#boardTable .darkthread-table-title {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 0.34rem;
    min-width: 0;
    max-width: 100%;
}

#boardTable .darkthread-table-title-wrap > .darkthread-mobile-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    overflow: visible;
    color: #b8a36a;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

#boardTable .darkthread-table-title-wrap .darkthread-mobile-post-tag-more {
    color: #d3c08a;
}

.darkthread-table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: linear-gradient(180deg, rgba(20, 24, 33, 0.88), rgba(11, 14, 20, 0.92));
    padding: 0.22rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #f4d8d8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 7px rgba(0, 0, 0, 0.24);
}

.darkthread-table-badge--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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;
}

.darkthread-table-badge--icon i {
    line-height: 1;
}

.darkthread-table-badge-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin-left: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

.darkthread-table-badge--category[data-category-key="free"] {
    border-color: rgba(248, 113, 113, 0.48);
    background: rgba(127, 29, 29, 0.5);
    color: var(--dt-fg);
}

.darkthread-table-badge--category[data-category-key="question"] {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(107, 33, 168, 0.48);
    color: var(--dt-fg);
}

.darkthread-table-badge--category[data-category-key="recommend"] {
    border-color: rgba(185, 28, 28, 0.55);
    background: rgba(127, 29, 29, 0.54);
    color: var(--dt-fg);
}

.darkthread-table-badge--category[data-category-key="real"] {
    border-color: rgba(248, 113, 113, 0.48);
    background: rgba(127, 29, 29, 0.56);
    color: #fef2f2;
}

.darkthread-table-badge--category[data-category-key="incident"] {
    border-color: rgba(251, 146, 60, 0.52);
    background: rgba(124, 45, 18, 0.58);
    color: #fff7ed;
}

.darkthread-table-badge--category[data-category-key="unverified"] {
    border-color: rgba(244, 114, 182, 0.5);
    background: rgba(131, 24, 67, 0.54);
    color: #fdf2f8;
}

.darkthread-table-badge--category[data-category-key="horror-short"] {
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(49, 46, 129, 0.58);
    color: #eef2ff;
}

.darkthread-table-badge--category[data-category-key="horror-serial"] {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(49, 46, 129, 0.58);
    color: #eef2ff;
}

.darkthread-table-badge--category[data-category-key="horror-translate"] {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(88, 28, 135, 0.56);
    color: #f5f3ff;
}

.darkthread-table-badge--category[data-category-key="intro-movie"] {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(20, 83, 45, 0.58);
    color: #f0fdf4;
}

.darkthread-table-badge--category[data-category-key="intro-novel"] {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(6, 78, 59, 0.58);
    color: #f0fdfa;
}

.darkthread-table-badge--category[data-category-key="intro-game"] {
    border-color: rgba(185, 28, 28, 0.52);
    background: rgba(127, 29, 29, 0.52);
    color: #fef2f2;
}

.darkthread-table-badge--category[data-category-key="intro-youtube"] {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(127, 29, 29, 0.56);
    color: #fef2f2;
}

.darkthread-table-badge--category[data-category-key="archive-legend"] {
    border-color: rgba(250, 204, 21, 0.55);
    background: rgba(113, 63, 18, 0.58);
    color: #fffbeb;
}

.darkthread-table-badge--category[data-category-key="archive-pick"] {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(120, 53, 15, 0.58);
    color: #fffbeb;
}

.darkthread-table-badge--category[data-category-key="archive-complete"] {
    border-color: rgba(217, 119, 6, 0.55);
    background: rgba(124, 45, 18, 0.58);
    color: #fffbeb;
}

.darkthread-table-badge--category[data-category-key="popular-today"] {
    border-color: rgba(236, 72, 153, 0.5);
    background: rgba(131, 24, 67, 0.56);
    color: #fdf2f8;
}

.darkthread-table-badge--category[data-category-key="popular-week"] {
    border-color: rgba(185, 28, 28, 0.55);
    background: rgba(127, 29, 29, 0.54);
    color: #fef2f2;
}


.darkthread-ghost {
    position: fixed;
    right: auto;
    bottom: max(0rem, env(safe-area-inset-bottom));
    left: auto;
    z-index: 70;
    width: clamp(12rem, 18vw, 22rem);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(var(--ghost-sink, 18%) + 1.25rem)) scale(var(--ghost-scale, 1));
    transform-origin: bottom center;
    transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
    filter:
        brightness(var(--ghost-brightness, 0.78))
        contrast(1.08)
        blur(var(--ghost-blur, 0px))
        drop-shadow(0 1.4rem 2.2rem rgba(0, 0, 0, 0.72));
}

.darkthread-ghost.darkthread-ghost--left {
    left: max(var(--ghost-side-offset, 1rem), env(safe-area-inset-left));
}

.darkthread-ghost.darkthread-ghost--right {
    right: max(var(--ghost-side-offset, 1rem), env(safe-area-inset-right));
}

.darkthread-ghost.darkthread-ghost--visible {
    opacity: 0.9;
    transform: translateY(var(--ghost-sink, 18%)) scale(var(--ghost-scale, 1));
}

.darkthread-ghost.darkthread-ghost--disappearing {
    animation: darkthread-ghost-glitch-out 0.72s steps(1, end) forwards;
}

.darkthread-ghost-image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

.darkthread-radio-control-root {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 72;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    pointer-events: none;
}

.darkthread-radio-control-status {
    display: inline-block;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fecaca;
    background: rgba(8, 8, 10, 0.88);
    border: 1px solid rgba(248, 113, 113, 0.55);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.35) inset;
    user-select: none;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
}

.darkthread-radio-control-status--on {
    color: #fff1f2;
    border-color: rgba(252, 165, 165, 0.72);
    background: rgba(127, 29, 29, 0.82);
}

.darkthread-radio-control-status--off {
    color: var(--dt-fg-muted);
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.78);
}

.darkthread-radio-control-status--awaiting-gesture {
    animation: darkthread-radio-status-pulse 1.35s ease-in-out infinite;
}

@keyframes darkthread-radio-status-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.72;
    }
}

body.darkthread-board-list-v2-theme-light .darkthread-radio-control-status,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-radio-control-status {
    color: #334155;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(100, 116, 139, 0.38);
    box-shadow:
        0 2px 14px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

body.darkthread-board-list-v2-theme-light .darkthread-radio-control-status--on,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-radio-control-status--on {
    color: #7c2d12;
    background: rgba(255, 251, 235, 0.98);
    border-color: rgba(180, 83, 9, 0.42);
}

body.darkthread-board-list-v2-theme-light .darkthread-radio-control-status--off,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-radio-control-status--off {
    color: #475569;
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(148, 163, 184, 0.42);
}

body.darkthread-board-list-v2-theme-light .darkthread-radio-control-status--awaiting-gesture,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-radio-control-status--awaiting-gesture {
    color: #9a3412;
    border-color: rgba(234, 88, 12, 0.5);
}

.darkthread-radio-control {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    display: block;
    width: 120px;
    pointer-events: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.78));
    opacity: 0.92;
    padding: 0;
    transform-origin: 52% 74%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.darkthread-radio-control-image {
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
    transform: translate(0, 0);
    transform-origin: 52% 74%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* iOS WebKit: avoid stacking filter + opacity + transform on the same layer as the child image. */
.darkthread-radio-control--active .darkthread-radio-control-image {
    animation: darkthread-radio-rattle-img 0.105s steps(2, end) infinite;
    filter:
        brightness(1.12)
        contrast(1.08)
        drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 0.65rem rgba(248, 113, 113, 0.16));
}

.darkthread-radio-control--active.darkthread-radio-control--intense .darkthread-radio-control-image {
    animation: darkthread-radio-rattle-img-intense 0.066s steps(2, end) infinite;
    filter:
        brightness(1.28)
        contrast(1.18)
        drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.82))
        drop-shadow(0 0 1rem rgba(248, 113, 113, 0.24));
}

.darkthread-radio-control--off .darkthread-radio-control-image {
    animation: none;
    opacity: 0.5;
    filter: grayscale(0.92) brightness(0.62);
}

.darkthread-radio-control:focus-visible {
    outline: 2px solid rgba(248, 113, 113, 0.72);
    outline-offset: 0.35rem;
}

body.darkthread-profile-open .darkthread-ghost,
body.darkthread-settings-open .darkthread-ghost,
body.darkthread-notification-open .darkthread-ghost,
body.darkthread-nav-drawer-open .darkthread-ghost {
    opacity: 0 !important;
}

body.darkthread-profile-open .darkthread-radio-control-root,
body.darkthread-settings-open .darkthread-radio-control-root,
body.darkthread-notification-open .darkthread-radio-control-root,
body.darkthread-nav-drawer-open .darkthread-radio-control-root {
    display: none !important;
}

@keyframes darkthread-radio-rattle-img {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-1px, 1px) rotate(-0.45deg);
    }
    50% {
        transform: translate(1px, -1px) rotate(0.38deg);
    }
    75% {
        transform: translate(-1px, -1px) rotate(-0.28deg);
    }
    100% {
        transform: translate(1px, 1px) rotate(0.32deg);
    }
}

@keyframes darkthread-radio-rattle-img-intense {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(-2px, 1px) rotate(-1.1deg);
    }
    40% {
        transform: translate(2px, -1px) rotate(0.95deg);
    }
    60% {
        transform: translate(-2px, -1px) rotate(-0.75deg);
    }
    80% {
        transform: translate(2px, 1px) rotate(0.85deg);
    }
    100% {
        transform: translate(-1px, 1px) rotate(-0.4deg);
    }
}

/* 라이트 모드 종 이미지: 진자 스윙 애니메이션 */
@keyframes darkthread-bell-swing {
    0%   { transform: rotate(0deg); }
    14%  { transform: rotate(13deg); }
    30%  { transform: rotate(-11deg); }
    46%  { transform: rotate(8deg); }
    60%  { transform: rotate(-5deg); }
    73%  { transform: rotate(3deg); }
    85%  { transform: rotate(-1.5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes darkthread-bell-swing-intense {
    0%   { transform: rotate(0deg); }
    12%  { transform: rotate(20deg); }
    26%  { transform: rotate(-17deg); }
    40%  { transform: rotate(13deg); }
    53%  { transform: rotate(-9deg); }
    65%  { transform: rotate(5.5deg); }
    76%  { transform: rotate(-2.5deg); }
    87%  { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

/* 라이트 모드 활성 시: transform-origin 상단 고정 + 진자 스윙 적용 */
body.darkthread-board-list-v2-theme-light .darkthread-radio-control--active .darkthread-radio-control-image,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-radio-control--active .darkthread-radio-control-image {
    transform-origin: 50% 0%;
    animation: darkthread-bell-swing 0.72s ease-in-out infinite;
    filter:
        brightness(1.08)
        contrast(1.06)
        drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 0.5rem rgba(250, 204, 21, 0.18));
}

body.darkthread-board-list-v2-theme-light .darkthread-radio-control--active.darkthread-radio-control--intense .darkthread-radio-control-image,
body.darkthread-board-list-v2-page:has(#dtV2ThemeLight:checked) .darkthread-radio-control--active.darkthread-radio-control--intense .darkthread-radio-control-image {
    transform-origin: 50% 0%;
    animation: darkthread-bell-swing-intense 0.44s ease-in-out infinite;
    filter:
        brightness(1.18)
        contrast(1.14)
        drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 0.85rem rgba(250, 204, 21, 0.3));
}

@keyframes darkthread-ghost-glitch-out {
    0% {
        opacity: 0.9;
        filter:
            brightness(var(--ghost-brightness, 0.78))
            contrast(1.08)
            blur(var(--ghost-blur, 0px))
            drop-shadow(0 1.4rem 2.2rem rgba(0, 0, 0, 0.72));
    }
    16% {
        opacity: 0.18;
        filter: brightness(1.35) contrast(1.35) blur(0.06rem);
    }
    28% {
        opacity: 0.74;
        filter: brightness(0.7) contrast(1.5) blur(0.02rem);
    }
    43% {
        opacity: 0.08;
        filter: brightness(1.55) contrast(1.75) blur(0.12rem);
    }
    57% {
        opacity: 0.46;
        filter: brightness(0.58) contrast(1.3) blur(0.05rem);
    }
    72% {
        opacity: 0.12;
        filter: brightness(1.2) contrast(1.8) blur(0.18rem);
    }
    100% {
        opacity: 0;
        filter: brightness(0.38) contrast(1.1) blur(0.35rem);
    }
}

body:has(.darkthread-profile-root.darkthread-profile-root--open) .darkthread-ghost,
body:has(.darkthread-notification-root.darkthread-notification-root--open) .darkthread-ghost,
body:has(.darkthread-nav-drawer-root.darkthread-nav-drawer-root--open) .darkthread-ghost,
body:has(#darkthread-profile-drawer[aria-hidden="false"]) .darkthread-ghost,
body:has(#darkthread-settings-drawer[aria-hidden="false"]) .darkthread-ghost,
body:has(#darkthread-notification-drawer[aria-hidden="false"]) .darkthread-ghost {
    opacity: 0 !important;
}

body:has(.darkthread-profile-root.darkthread-profile-root--open) .darkthread-radio-control-root,
body:has(.darkthread-notification-root.darkthread-notification-root--open) .darkthread-radio-control-root,
body:has(.darkthread-nav-drawer-root.darkthread-nav-drawer-root--open) .darkthread-radio-control-root,
body:has(#darkthread-profile-drawer[aria-hidden="false"]) .darkthread-radio-control-root,
body:has(#darkthread-settings-drawer[aria-hidden="false"]) .darkthread-radio-control-root,
body:has(#darkthread-notification-drawer[aria-hidden="false"]) .darkthread-radio-control-root {
    display: none !important;
}

/* chrome-sticky-stack, #darkthread-header, .chrome-subbars → asset/css/header.css */

#darkthread-header {
    /* z-index for flyout layering — base chrome in header.css */
    position: relative;
    z-index: 2;
}

/* 어둑시니 배회 메시지 → asset/css/chrome-presence.css (#darkthread-status-bar.status-bar--chrome-presence) */

.status-bar__daily-promo {
    position: relative;
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.55rem 3.25rem;
    color: rgb(226 232 240 / 0.94);
    background: transparent;
    border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.status-bar__daily-promo[hidden] {
    display: none !important;
}

.status-bar__daily-promo-text {
    margin: 0;
    width: min(100%, calc(100vw - 6.5rem));
    text-align: center;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.45;
}

.status-bar__daily-promo-link {
    color: #fecaca;
    font-weight: 850;
    text-decoration: none;
}

.status-bar__daily-promo-link:hover,
.status-bar__daily-promo-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.status-bar__daily-promo-inline-icon {
    display: inline-block;
    margin: 0 0.08rem;
    color: #fecaca;
    font-size: 1.02em;
    vertical-align: -0.06em;
}

.status-bar__daily-promo-close {
    position: absolute;
    right: max(0.7rem, env(safe-area-inset-right, 0px));
    top: 50%;
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: rgb(203 213 225 / 0.92);
    transform: translateY(-50%);
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.status-bar__daily-promo-close:hover,
.status-bar__daily-promo-close:focus-visible {
    background: transparent;
    color: #fff;
    outline: none;
}

.search-bar__presence-text [data-darkthread-presence-count] {
    color: rgb(248 113 113 / 0.95);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.search-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-top: none;
    border-bottom: 1px solid rgb(255 255 255 / 0.07);
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.search-bar__inner {
    width: min(100%, 1600px);
    max-width: calc(100% - 48px);
    margin: 0 auto;
    padding: 8px clamp(12px, 3vw, 28px);
    box-sizing: border-box;
    min-width: 0;
}

.search-bar__tools {
    border-top: none;
    padding: 0.65rem 1rem 0.75rem;
    box-sizing: border-box;
}

.search-bar__tools:only-child {
    border-top: none;
}

.search-bar__presence[hidden] + .search-bar__tools {
    border-top: none;
}

@media (max-width: 640px) {
    .darkthread-ghost {
        width: clamp(8rem, 38vw, 12rem);
    }

    .darkthread-radio-control-root {
        right: auto;
        left: max(1rem, env(safe-area-inset-left));
    }

    .darkthread-radio-control {
        width: clamp(3.8rem, 17vw, 5.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .darkthread-ghost,
    .darkthread-radio-control--active .darkthread-radio-control-image {
        transition: none;
        animation: none;
    }

    .darkthread-ghost.darkthread-ghost--disappearing {
        animation: none;
        opacity: 0;
    }
}

/* 카카오 애드핏: asset/css/kakao-adfit.css (headStyles 다음 로드) */

/* 모바일 공통: iOS 포커스 자동 확대 방지 — 텍스트성 input/select/textarea 최소 16px */
@media (max-width: 1079px) {
    body :is(
        input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not(.dt-reg-verify-code),
        select,
        textarea
    ) {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
}
