/* TR_LOG 게시판 스타일 */

/* 목록 영역 */
.log20_list_area {
    width: 100%;
    height: 100%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.log20_list_item {
    flex: 0 1 auto;
    height: 300px; 
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.2s;
    box-sizing: border-box;
}

.log20_order_badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    height: 15px;
    font-size: 12px;
    padding: 0 4px;
    border-radius: 2px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding-bottom: 2px;
}

.log20_item_link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.log20_item_image {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
    border-top: none;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.log20_item_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, transparent 0%, var(--bg-color, transparent) 100%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
}

.log20_list_item:hover .log20_item_image::before {
    opacity: 1;
}

/* pclist 전용 스타일 */
.log20_list_pclist_area {
    width: 100%;
    height: 100%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

/* 게시판 하단 타래 선택 버튼 */
.log20_list_pclist_item {
    width: calc((100% - 60px) / 4); 
    min-width: 200px;
    max-width: 300px; 
    height: 300px; 
    position: relative;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.2s;
    flex: 0 0 calc((100% - 60px) / 4); 
}

.log20_list_pclist_link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.log20_list_pclist_image {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
    border-top: none;
}

.log20_list_pclist_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--bg-color, transparent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
}

.log20_list_pclist_item:hover .log20_list_pclist_image::before {
    opacity: 1 !important;
    background: linear-gradient(to bottom, var(--bg-color, transparent) 0%, transparent 100%) !important;
}

.log20_list_pclist_subtitle {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    z-index: 4;
    pointer-events: none;
    text-align: center;
    width: 70%;
    max-width: 70%;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.log20_list_pclist_item:hover .log20_list_pclist_subtitle {
    opacity: 1 !important;
    color: var(--pclist-title-color, #000000) !important;
}

.log20_list_pclist_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.log20_list_pclist_image i {
    font-size: 120px;
    position: relative;
    z-index: 1;
}

.log20_list_pclist_title {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: var(--white);
    border-bottom: none;
    transition: color 0.2s;
}

.log20_list_pclist_item:hover .log20_list_pclist_title {
    color: var(--pclist-title-color, #000000) !important;
}

/* pclist 동적 뷰 컨테이너 */
.log20_pclist_view_container {
    position: relative;
    width: 100%;
    flex-basis: 100%;
    min-height: 100px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* 동적 뷰 박스 */
.log20_pclist_view_item {
    position: relative;
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: fadeIn 0.3s ease-in;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.log20_pclist_view_item.log20_pclist_view_left {
    width: 48% !important;
    margin-right: auto;
    margin-left: 0;
}

.log20_pclist_view_item.log20_pclist_view_right {
    width: 48% !important;
    margin-left: auto;
    margin-right: 0;
}

.log20_pclist_view_actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    z-index: 11;
}

.log20_pclist_view_action_text {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.log20_pclist_view_action_text:hover {
    opacity: 0.7;
}

.log20_pclist_view_loading,
.log20_pclist_view_error {
    padding: 40px;
    text-align: center;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log20_item_subtitle {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 4;
    pointer-events: none;
    text-align: center;
    width: 70%;
    max-width: 70%;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.log20_list_item:hover .log20_item_subtitle {
    opacity: 1;
}

.log20_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    vertical-align: top;
}

.log20_item_image i {
    font-size: 120px;
    position: relative;
    z-index: 1;
}

.log20_item_title {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: var(--white);
    border-bottom: none;
}


.log20_empty {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

.log20_top_buttons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.log20_list_tarae_area {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

.log20_tarae_footer {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
    margin-left: 8px;
}

.log20_tarae_footer_btn {
    min-width: 88px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.log20_tarae_footer_btn--icon {
    width: 36px;
    min-width: 36px;
    padding: 0;
}

.log20_tarae_toggle_btn {
    font-size: 14px;
    margin-bottom: 5px;
}

.log20_tarae_footer_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply {
    margin: 10px 0 10px 10px;
}

.log20_tarae_thread {
    margin: 10px 0 0 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.log20_tarae_thread_toggle_top {
    margin: 0 0 3px 0;
}

/* 타래 댓글 항목 */
.log20_tarae_thread_item {
    padding: 10px;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.log20_tarae_thread_item:last-child {
    margin-bottom: 0;
}

.log20_tarae_thread_meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.log20_tarae_thread_profile {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

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

.log20_tarae_thread_profile_fallback {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

.log20_tarae_thread_name {
    font-weight: 600;
    color: #333;
}

.log20_tarae_thread_title {
    font-weight: 600;
    color: #ffffff;
    margin-left: 6px;
    font-size: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log20_tarae_thread_date {
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.log20_tarae_thread_share,
.log20_tarae_thread_edit,
.log20_tarae_thread_delete {
    font-size: 11px;
    color: #999;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 2px;
}

.log20_tarae_thread_share:hover,
.log20_tarae_thread_edit:hover,
.log20_tarae_thread_delete:hover {
    color: #333;
}


.log20_tarae_thread_content {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.log20_tarae_thread_body {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 16px;
    align-items: flex-start;
}

.log20_tarae_thread_body.has-images {
    padding: 15px 15px;
    padding-left: 0;
}

.log20_tarae_thread_body.no-images {
    display: block;
}

.log20_tarae_thread_text {
    grid-column: 1;
    grid-row: 1;
    word-wrap: break-word;
    padding: 15px 10px 15px 30px;
}

/* interact(멘션/관심별) 버튼 */
.interact_btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-left: 30px !important;
}
.interact_btn_interest {
    width: 18px;
    height: 18px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.interact_btn_interest i {
    font-size: 20px;
    line-height: 18px;
    width: 18px;
    height: 18px;
}
.interact_btn_interest:disabled {
    cursor: default;
    opacity: 0.8;
}
.interact_btn[data-voted="1"] .interact_btn_interest {
    color: #f5b301;
}
.interact_btn_count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 18px;
    color: #f5b301;
    min-width: 12px;
    height: 18px;
}

.log20_tarae_thread_body .log20_tarae_images_rows {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
}

.log20_tarae_thread_body .log20_tarae_images_row {
    max-width: 100%;
}

.log20_tarae_thread_body .log20_tarae_image_item img {
    max-width: 100%;
    height: auto;
    max-height: var(--tarae-image-max-height, 200px);
    object-fit: contain;
}

.log20_tarae_embed {
    margin: 2px 0;
    max-width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.log20_tarae_embed_card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    overflow: hidden;
}

.log20_tarae_embed_image {
    width: 100%;
    max-width: none;
    height: 160px;
    flex: 0 0 160px;
    background: #f5f5f5;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.log20_tarae_embed_meta {
    padding: 8px 10px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.log20_tarae_embed_title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_tarae_embed_desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
}

.log20_tarae_embed_url {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}


.log20_tarae_thread_empty {
    font-size: 12px;
    color: #999;
}

.log20_tarae_reply_textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.5;
}

.log20_tarae_reply_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.log20_tarae_reply_preview_item {
    position: relative;
    width: calc(12.5% - 6px);
    max-width: 60px;
    aspect-ratio: 1 / 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
    cursor: grab;
}

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

.log20_tarae_reply_preview_item.is-dragging {
    opacity: 0.6;
}

.log20_tarae_reply_preview_item.is-drop-target {
    outline: 2px dashed var(--action-color, #333);
    outline-offset: 2px;
}

.log20_tarae_reply_preview_remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.log20_tarae_reply_guest {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.log20_tarae_reply_input {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.log20_tarae_reply_actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.log20_tarae_reply_actions--secondary {
    margin-top: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .log20_tarae_reply_actions--secondary {
        flex-direction: column;
        align-items: stretch;
    }

    .log20_tarae_reply_actions--secondary .log20_tarae_reply_url,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_paste,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_youtube {
        display: block;
        width: 100%;
        flex: 0 0 100%;
    }

    .log20_tarae_reply_actions--secondary .log20_tarae_reply_url_input,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_paste_input,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_youtube_input {
        width: 100%;
        max-width: 100%;
    }
}

.log20_tarae_reply_uploading {
    display: none;
    font-size: 12px;
    color: #666;
    margin-left: 6px;
}

.log20_tarae_reply_uploading.is-visible {
    display: inline-block;
}

.log20_tarae_reply_actions_spacer {
    flex: 1 1 auto;
}

.log20_tarae_reply_cancel {
    margin-left: 0;
}

.log20_tarae_reply_attach {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.log20_tarae_reply_attach:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply_file_count {
    font-size: 12px;
    color: #666;
}

.log20_tarae_reply_url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_url_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_url_done,
.log20_tarae_reply_url_cancel {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_reply_url_cancel {
    border-color: #ccc;
    color: #666;
}

.log20_tarae_reply_url_done:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply_url_cancel:hover {
    border-color: #999;
    color: #333;
}

.log20_tarae_reply_paste {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_youtube {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_paste_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_youtube_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_paste_cancel {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_reply_youtube_cancel {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_youtube {
    position: relative;
    width: min(100%, 450px);
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
}

.log20_tarae_youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
}

@media (max-width: 768px) {
    .log20_tarae_youtube {
        width: 100%;
        max-width: 100%;
    }
}

/* 아마도 모바일 대응 */
/* 모바일에서 이미지 없이 유튜브만 첨부: 100% */
@media (max-width: 768px) {
    .log20_tarae_body.no-images .log20_tarae_youtube {
        max-width: 100%;
    }
}

/* 이미지와 함께 유튜브 첨부: thread text 100% */
.log20_tarae_thread_body.has-images .log20_tarae_thread_text .log20_tarae_youtube {
    max-width: 100%;
}

/* 모바일/작은 화면: 이미지를 무조건 텍스트 아래에 배치, 높이 유동적 */
@media (max-width: 768px) {
    .log20_tarae_thread_body.has-images {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-left: 15px;
        height: auto;
        min-height: 0;
        align-items: stretch;
    }
    .log20_tarae_thread_body.has-images .log20_tarae_thread_text {
        order: 1;
        min-width: 0;
        flex: 0 0 auto;
        max-height: none;
    }
    .log20_tarae_thread_text {
        padding-left: 30px;
        padding-right: 5px;
    }
    .log20_tarae_thread_body.has-images .log20_tarae_images_rows {
        order: 2;
        min-width: 0;
        flex: 0 0 auto;
        margin-top: 0;
    }

    .log20_tarae_images_row .log20_tarae_image_item {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.log20_tarae_reply_paste_cancel:hover {
    border-color: #999;
    color: #333;
}
.log20_tarae_reply_file {
    display: none;
}

.tarae_attach_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    margin-bottom: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_attach_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_attach_count {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.tarae_uploading {
    display: none;
    font-size: 12px;
    color: #333;
    background: #fff;
    border-radius: 8px;
    margin-left: 8px;
}

.tarae_uploading.is-visible {
    display: inline-block;
}

.tarae_uploading--submit {
    vertical-align: middle;
    margin-left: 8px;
}


.tarae_attach_input {
    display: none;
}

.tarae_attach_controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.tarae_url_controls {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.tarae_url_add_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_url_add_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_url_inputs {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarae_url_inputs--inline {
    margin-top: 0;
    flex: 1 1 auto;
}

.tarae_url_row {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    width: 100%;
}

.tarae_url_input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    height: 32px;
    line-height: 1.4;
}

.tarae_url_done_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 32px;
}

.tarae_url_done_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_url_cancel_btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 32px;
}

.tarae_url_cancel_btn:hover {
    border-color: #999;
    color: #333;
}

.tarae_paste_controls {
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.tarae_paste_add_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_paste_add_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_paste_inputs {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarae_paste_inputs--inline {
    margin-top: 0;
    flex: 1 1 auto;
}

.tarae_paste_row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
}

.tarae_paste_input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    resize: none;
    height: 32px;
    line-height: 1.4;
}

.tarae_paste_cancel_btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    height: 32px;
}

.tarae_paste_cancel_btn:hover {
    border-color: #999;
    color: #333;
}

.log20_tarae_item {
    padding: 10px;
    border-bottom: 1px solid var(--action-color, #333);
}

.log20_tarae_item:hover {
    background-color: transparent;
}

.log20_tarae_item:last-child {
    border-bottom: none;
}

/* =========================================================
   부모타래 상단 메타
   작성자 │ 날짜 │ 복사 │ 공유 │ 수정 │ 삭제
========================================================= */
.log20_tarae_header {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 6px;

    width: 100%;
    margin-bottom: 6px;
    padding-bottom: 5px;

    font-size: 13px;

    border-bottom: 1px solid
        color-mix(
            in srgb,
            var(--action-color, #333) 45%,
            transparent
        );
}

.log20_tarae_header_left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.log20_tarae_profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.log20_tarae_profile_img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

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

.log20_tarae_profile_fallback {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.log20_tarae_profile_name {
    font-size: 14px; /* 부모타래 닉네임 폰트 크기 */
    color: inherit;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log20_tarae_title {
    font-weight: 600;
    font-size: 0px;
    color: #ffffff;
}

.log20_tarae_date {
    color: #999;
    font-size: 13px; /* 부모타래 닉네임│(작성 날짜)< 폰트 크기 */
    display: flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_content {
    margin-top: 8px;
}

.log20_tarae_body {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 16px;
    align-items: flex-start;
}

.log20_tarae_body.no-images {
    display: block;
}

.log20_tarae_images {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.log20_tarae_images_rows {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log20_tarae_images_row {
    display: grid;
    gap: 8px;
}

.log20_tarae_images_row .log20_tarae_image_item {
    overflow: hidden;
    border-radius: 4px;
}

.log20_tarae_images--1 .log20_tarae_image_item {
    width: 100%;
}

.log20_tarae_images--2 .log20_tarae_image_item {
    width: calc(50% - 4px);
}

.log20_tarae_images--3 .log20_tarae_image_item,
.log20_tarae_images--4 .log20_tarae_image_item {
    width: calc(50% - 4px);
}

.log20_tarae_image_item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--tarae-image-max-height, 200px);
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.tarae_image_modal_content {
    position: relative;
}

.tarae_image_modal_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.tarae_image_modal_prev {
    left: 10px;
}

.tarae_image_modal_next {
    right: 10px;
}

.tarae_image_modal_nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.log20_tarae_image_item img:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.log20_tarae_text {
    grid-column: 1;
    grid-row: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.log20_tarae_body.has-images {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 16px;
}

/* tarae 이미지 모달 */
.tarae_image_modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* 모달이 뒤쪽 레이아웃에 영향을 주지 않도록 */
    pointer-events: none;
}

.tarae_image_modal[style*="flex"] {
    pointer-events: auto;
}

.tarae_image_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* 배경 클릭 시에만 pointer-events 활성화 */
    pointer-events: auto;
}

.tarae_image_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1;
    /* 모달 콘텐츠는 항상 클릭 가능 */
    pointer-events: auto;
}

.tarae_image_modal_inner {
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px 10px;
    box-sizing: border-box;
}

.tarae_image_modal_inner img {
    max-width: 100%;
    max-height: calc(90vh - 50px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.tarae_image_modal_close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tarae_image_modal_close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 핸드아웃 이미지 모달 스타일 (tarae 모달과 동일) */
.scena_handout_image_modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
}

.scena_handout_image_modal[style*="flex"] {
    pointer-events: auto;
}

.scena_handout_image_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.scena_handout_image_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1;
    pointer-events: auto;
}

.scena_handout_image_modal_inner {
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px 10px;
    box-sizing: border-box;
}

.scena_handout_image_modal_inner img {
    max-width: 100%;
    max-height: calc(90vh - 50px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.scena_handout_image_modal_close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.scena_handout_image_clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.scena_handout_image_clickable:hover {
    opacity: 0.8;
}

/* 모달이 열려있을 때 body 스크롤만 막기 (레이아웃 영향 없음) */
body.tarae_modal_open {
    overflow: hidden;
    /* position, width, left, top은 JavaScript에서 동적으로 설정 */
}

html.tarae_modal_open {
    overflow: hidden;
    height: 100%;
}

.log20_tarae_subtitle {
    margin-bottom: 6px;
    color: inherit;
    font-size: 13px;
}

/* tarae 검색창 */
.log20_tarae_search_wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 7px;

    margin: 0 14px;
    padding: 8px 0 10px;

    border-bottom: 2px solid var(--action-color, #333);
}

.log20_tarae_search_input_row {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.log20_tarae_search_button_row {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.log20_tarae_search_input_row .log20_tarae_search_input {
    width: 100%;
}

@media (min-width: 769px) {
    .log20_tarae_search_wrap {
        flex-direction: row;
        align-items: stretch;
    }

    .log20_tarae_search_input_row {
        flex: 1 1 auto;
    }

    .log20_tarae_search_button_row {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .log20_tarae_search_button_row {
        width: 100%;
        align-self: flex-end;
        justify-content: flex-end;
        height: 40px;
    }
}


.log20_tarae_search_input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.log20_tarae_search_input:focus {
    outline: none;
    border-color: var(--action-color, #333);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.log20_tarae_search_btn,
.log20_tarae_search_reset {
    width: 45px;
    padding: 0;
    border: 1px solid var(--action-color, #333);
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    color: var(--action-color, #333);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.log20_tarae_search_btn:hover,
.log20_tarae_search_reset:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_toggle {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.log20_tarae_btn {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    text-decoration: none;
    color: #999;
    border: none;
    background: transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.log20_tarae_share_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.log20_tarae_share_toast {
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-bottom: 4px;
    transform: translate(-50%, -6px);
    padding: 2px 6px;
    font-size: 11px;
    color: #fff;
    background: #333;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.log20_tarae_share_toast--bottom {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 4px;
    transform: translate(-50%, 6px);
}

.log20_tarae_share_toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -10px);
}

.log20_tarae_share_toast--bottom.is-visible {
    transform: translate(-50%, 10px);
}

.log20_tarae_btn_edit:hover,
.log20_tarae_btn_delete:hover {
    color: #333;
    border-color: transparent;
    background-color: transparent;
}

/* =========================================================
   글쓰기 폼 전체 외곽 박스
   - width : 글쓰기 박스 전체 가로폭
   - max-width : 너무 넓어지는 것을 제한
   - padding : 외곽선과 내용 사이의 내부 여백
========================================================= */
.log20_write_form {
    width: calc(100% - 24px);
    max-width: none;

    margin: 8px auto;

    text-align: left;
    background: var(--card-bg-color);

    padding: 9px;
    border-radius: var(--card-border-radius);

    box-sizing: border-box;
}

/* =========================================================
   글쓰기 폼의 각 항목 한 줄
   - 제목 / 도움 / 본문 / 이미지 / 외부링크 / Youtube / 스포일러
   - 내용 위치는 그대로 유지
   - 흰색 가로 구분선만 좌우에서 일정 거리 안쪽으로 들어오게 함
========================================================= */
.log20_write_form dl {
    margin: 1px 0 0 0;
/*      ↑
        각 항목 블록이 시작되기 전 바깥 위쪽 간격 */

    padding: 2px 0;
/*       ↑
         각 항목 블록 안쪽의 위/아래 간격 */

    border-bottom: none;

    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;

    position: relative;
}

/* 실제 흰색 가로 구분선 */
.log20_write_form dl::after {
    content: "";
    position: absolute;

    left: 1px;
    right: 1px;
    bottom: 0;

    height: 1px;
    background: var(--gray-200);

    pointer-events: none;
}

/* =========================================================
   제목 / 도움 / 본문 등 왼쪽 항목명
   - min-width : 항목명이 차지하는 가로 공간
   - align-items : 세로 중앙
   - justify-content : 가로 중앙
========================================================= */
.log20_write_form dt {
    font-weight: bold;
    margin: 0;
    color: var(--text-primary);

    min-width: 100px;       /* ← 왼쪽 제목칸 폭 */
    display: flex;

    align-items: center;    /* ↕ 세로 중앙 */
    justify-content: center;/* ↔ 가로 중앙 */
    text-align: center;     /* 글자 자체도 중앙 정렬 */
}


/* =========================================================
   왼쪽 항목명 내부의 라벨 정렬
   - 항목명과 그 옆 요소 사이 간격을 담당
========================================================= */
.log20_write_form dt label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* =========================================================
   각 항목 오른쪽 실제 입력 영역
   - 제목 입력창 / 버튼 / URL 입력창 / 체크박스 등이 들어가는 자리
   - flex< 배분된 녀석의 자리 전부 다쓸씨 1 %로 되어있는 모양.
========================================================= */
.log20_write_form dd {
    margin: 0;
    flex: 1;
}


/* =========================================================
   글쓰기 폼의 일반 입력창
   - 텍스트 / URL / 색상 입력창의 기본 크기와 테두리 설정
========================================================= */
.log20_write_form input[type="text"],
.log20_write_form input[type="url"],
.log20_write_form input[type="color"] {
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 14px;
}


/* =========================================================
   색상 선택 입력창 전용
   - 컬러피커의 가로/세로 크기와 주변 간격
========================================================= */
.log20_write_form input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}


/* =========================================================
   한 줄 전체를 사용하는 입력창
   - 제목이나 URL처럼 오른쪽 공간을 끝까지 사용하는 입력창
========================================================= */
.log20_write_form input[type="text"].full_input,
.log20_write_form input[type="url"].full_input {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   입력창 아래의 작은 도움말
   - 외부링크 설명 등 작은 안내문구의 간격과 글자 크기
========================================================= */
.log20_write_form small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}


/* =========================================================
   여러 입력 항목을 한 줄에 배치하는 묶음
   - 화면 공간이 부족하면 다음 줄로 넘어감
   - gap으로 항목끼리의 좌우 간격 조절
========================================================= */
.log20_field_row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* =========================================================
   묶음 내부의 개별 입력 블록
   - 외부 이미지 URL 등의 개별 칸 배치에 사용
   - gap은 블록 내부의 세로 간격
========================================================= */
.log20_field_block {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* =========================================================
   버튼/입력 요소를 가로로 나란히 배치하는 영역
   - 이미지 관련 버튼처럼 한 행에 여러 요소가 있을 때 사용
========================================================= */
.log20_field_inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}


/* =========================================================
   글쓰기 옵션 목록
   - 공지 / 스포일러 등 체크 옵션들의 가로 배치와 간격
========================================================= */
#bo_w .bo_v_option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0;
    list-style: none;
}


/* =========================================================
   글쓰기 옵션 각각의 항목
========================================================= */
#bo_w .bo_v_option li {
    margin: 0;
}


/* =========================================================
   공지 / 스포일러 등의 체크박스와 글자 사이 간격
========================================================= */
#bo_w .bo_v_option .chk_box {
    display: flex;
    align-items: center;
    gap: 3px;
}


/* =========================================================
   글쓰기 옵션 안의 선택 메뉴
   - 선택창이 너무 좁아지는 것을 방지하는 최소 너비
========================================================= */
#bo_w .bo_v_option select {
    min-width: 160px;
}

/* 게시물 보기 */
#bo_v_top.view_buttons_inline {
    width: 90%;
    margin: 0 auto 5px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.log20_content {
    width: 90%;
    height: 100%;
    padding-bottom: 20px;
    margin: 0 auto;
}


#bo_list {
    margin: 0 auto;
}

.log20_content_title {
    display: flex;
    gap: 20px;
    margin: 20px 0 0 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.log20_thumbnail {
    width: 20%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.log20_thumbnail img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

.log20_thumbnail i {
    font-size: 80px;
    color: var(--text-muted);
}

.log20_info {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    min-height: 100%;
    position: relative;
    height: 300px;
}

.log20_info_row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.log20_info_bottom {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
}

.log20_info_item {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.log20_info_item_subtitle {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_info_item_title {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 0.4em;
}

.log20_info_item_rule {
    text-align: left;
}

.log20_info_item_gm {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_info_item_pl {
    text-align: right;
    margin-left: auto;
}

.log20_content_menu {
    margin-top: 0;
    height: 60px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_content_menu_pclist {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-right: 1px solid var(--action-color, #333);
    height: 100%;
}

.log20_content_menu_pclist .log_content_menu_btn {
    flex: 0 0 auto;
}

.log20_content_menu_memo {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-right: 1px solid var(--action-color, #333);
    height: 100%;
}

.log20_content_menu_memo .log_content_menu_btn {
    flex: 0 0 auto;
}

.log20_content_menu_scena {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
}

.log20_content_menu_scena .log_content_menu_btn {
    flex: 0 0 auto;
}

.log_content_menu_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex: 1;
    max-width: 80%;
}

/* FontAwesome 브이자/화살표 아이콘 */
.log_content_menu_icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.log_content_menu_icon i {
    font-size: 15px; /* 기존 크기 */
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 0;
}og_content_menu_text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .log20_content_menu {
        height: auto;
        padding-top: 5px;
        padding-bottom: 5px;
        align-items: flex-start;
    }
    
    .log20_content_menu_pclist,
    .log20_content_menu_memo,
    .log20_content_menu_scena {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .log_content_menu_btn {
        width: auto;
        max-width: 100%;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
    
    .log_content_menu_text {
        text-align: center;
        font-size: 11px;
    }
    
    .log20_info_bottom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .log20_info_bottom .log20_info_item_rule,
    .log20_info_bottom .log20_info_item_gm,
    .log20_info_bottom .log20_info_item_pl {
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* 모바일에서 핸드아웃 숨김 및 본문 100% */
    .log20_scena_view_body {
        flex-direction: column;
    }

    .log20_scena_view_body_logpart {
        width: 100% !important;
        max-width: 100% !important;
    }

    .log20_scena_view_body_handout {
        display: none !important;
    }
}
_title,
.log20_content_sublist_title,
.log_content_sublist_scena_title {
    width: 100%;
    height: 60px;
    padding: 0;
    background: var(--card-bg-color);
    margin-top: 20px;
    border: 1px solid var(--card-border-color);
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_content_sublist_title_text,
.log_content_sublist_scena_title_text {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.log20_scena_view {
    width: 80%;
    margin: 0 auto 40px auto;
    background: #fff;
    border: 1px solid var(--card-border-color, #e5e5e5);
    border-radius: var(--card-border-radius, 12px);
    padding: 30px;
    box-sizing: border-box;
    position: relative;
}

.log20_scena_view_back_btn_wrap {
    width: 80%;
    margin: 40px auto 10px auto;
    position: relative;
}

.log20_scena_view_back_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.log20_scena_view_back_btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.log20_scena_view_back_btn i {
    font-size: 18px;
}

.log20_scena_view_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    word-break: keep-all;
    line-height: 1.3;
    padding-bottom: 15px;
}

.log20_scena_view_body {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    word-break: break-word;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.log20_scena_view_body img,
.log20_scena_view_body video,
.log20_scena_view_body iframe,
.log20_scena_view_body table {
    max-width: 100%;
}

.log20_scena_view_body img {
    height: auto;
    display: block;
    margin: 15px auto;
}

.log20_scena_view_body table {
    width: 100%;
    border-collapse: collapse;
}

.log20_scena_view_body pre,
.log20_scena_view_body code {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f6f6f6;
    padding: 8px 10px;
    border-radius: 4px;
    display: block;
}

/* 시나리오 보기 - 본문/핸드아웃 80:20 분할 */
.log20_scena_view_body_logpart {
    width: 80%;
    max-width: 80%;
}

.log20_scena_view_body_handout {
    width: 20%;
    max-width: 20%;
    box-sizing: border-box;
    padding-left: 10px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    align-self: flex-start;
}

.log20_scena_view_handout_header_box {
    width: 90%;
    height: 40px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-weight: 600;
    box-sizing: border-box;
}

.log20_scena_view_handout_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_scena_view_handout_item {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-light);
    padding: 4px 0;
}

.log20_scena_view_handout_header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    cursor: pointer;
}

.log20_scena_view_handout_thumb {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_scena_view_handout_thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.log20_scena_view_handout_title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_scena_view_handout_toggle {
    flex: 0 0 auto;
    font-size: 11px;
    color: #999;
}

.log20_scena_view_handout_detail {
    display: none;
    padding: 6px 0 8px 0;
}

.log20_scena_view_handout_detail_inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_scena_view_handout_detail_image {
    width: 100%;
}

.log20_scena_view_handout_detail_image img {
    width: 80%;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.log20_scena_view_handout_detail_body {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
}

.log20_scena_view_handout_item.is-open .log20_scena_view_handout_detail {
    display: block;
}

.log20_content_sublist {
    width: 100%;
    padding: 5px 20px 20px 20px;
    background: #ffffff;
    border: 1px solid var(--card-border-color);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    min-height: 400px;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.log20_content_sublist_scena {
    width: 100%;
    padding: 5px 20px 20px 20px;
    background: #ffffff;
    border: 1px solid var(--card-border-color);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    min-height: 60vh;
    height: 60vh;
    max-height: 60vh;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 시나리오 리스트 래퍼 */
.log20_content_sublist_scena_wrapper {
    width: 100%;
    flex: 1;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

/* 최신 시나리오 영역 (header 제외한 모든 sublist) */
.log20_content_sublist_newscena {
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: block;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 썸네일 이미지 영역 (상단 좌측: 가로 60%, 세로 60%) */
.log20_scena_newscena_thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 20%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    padding-bottom: 1px;
    box-sizing: border-box;
}

.log20_scena_newscena_thumbnail::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
    pointer-events: none;
}

.log20_scena_newscena_thumbnail:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}

.log20_scena_newscena_thumbnail img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.log20_scena_newscena_thumbnail:hover img {
    transform: scale(1.1);
}

@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.log20_scena_newscena_thumbnail i {
    font-size: 120px;
    color: inherit;
}


/* PC 포트폴리오 영역 (상단 우측: 가로 40%, 세로 60%) */
.log20_content_sublist_newscena_pcport {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 60%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.log20_pc_port_grid {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: grid;
    gap: 8px;
    align-content: start;
    overflow: hidden;
    grid-auto-rows: minmax(0, 1fr);
}

/* PC 이미지 그리드 - 2개일 때 */
.log20_pc_port_grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 3개일 때 */
.log20_pc_port_grid[data-count="3"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 4개일 때 */
.log20_pc_port_grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 5개일 때 */
.log20_pc_port_grid[data-count="5"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 6개일 때 */
.log20_pc_port_grid[data-count="6"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

.log20_pc_port_item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.log20_pc_port_item_inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.log20_pc_port_item_inner img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    cursor: pointer;
}

.log20_pc_port_item_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.log20_pc_port_item:hover .log20_pc_port_item_overlay {
    opacity: 1;
}

.log20_pc_port_item_name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.log20_pc_port_empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #bbb;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* PC 이미지 팝업 */
.log20_pc_image_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.log20_pc_image_modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.log20_pc_image_modal_inner {
    max-width: 90%;
    max-height: 90%;
}

.log20_pc_image_modal_inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* 정보 영역 (하단 좌측: 가로 40%, 세로 40%) */
.log20_scena_newscena_info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0 10px 10px;
    box-sizing: border-box;
}


.log20_scena_item_subtitle {
    font-size: 11px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 60%;
}

/* 부제 영역 (하단 우측: 가로 60%, 세로 40%) */
.log20_scena_newscena_subt {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 40%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 10px;
}

.log20_scena_newscena_subt .log20_item_subtitle {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    padding: 0;
    font-size: 13px;
    font-weight: normal;
    color: #333;
    opacity: 1;
    width: 100%;
    max-width: 100%;
    text-align: left;
    pointer-events: auto;
}

.log20_scena_item_title_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    border-top: 1px solid var(--action-color, #333);
    border-bottom: 1px solid var(--action-color, #333);
    padding: 0px 12px;
    margin: 0;
    height: 45px;
    box-sizing: border-box;
    overflow: hidden;
    transition: color 0.3s ease;
    width: 100%;
}

.log20_scena_newscena_info .log20_scena_item_title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
    word-break: break-word;
    display: flex;
    align-items: center;
}

.log20_scena_item_writer {
    font-size: 10px;
    color: #777;
    margin: 0;
    align-self: flex-end;
}

.log20_scena_newscena_info .log20_scena_item_trailer {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.log20_scena_item_meta .log20_scena_item_rule,
.log20_scena_item_meta .log20_scena_item_gm,
.log20_scena_item_meta .log20_scena_item_pc {
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_item_meta .log20_scena_item_pc {
    flex-basis: 100%;
    width: 100%;
}

.log20_scena_item_title_row::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--action-color, #333);
    transform: var(--hover-transform, scaleY(0));
    transform-origin: var(--hover-origin, top center);
    transition: transform 0.4s ease;
    z-index: 0;
}

.log20_scena_item_title_row:hover::before {
    transform: var(--hover-transform-hover, scaleY(1));
}

.log20_scena_item_title_row .log20_scena_item_title,
.log20_scena_item_title_row .log20_scena_item_writer {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.log20_scena_item_title_row:hover .log20_scena_item_title,
.log20_scena_item_title_row:hover .log20_scena_item_writer {
    transform: translateX(2px);
}

.log20_scena_item_title_row .log20_scena_item_writer strong {
    transition: color 0.3s ease;
}

.log20_scena_item_title_row:hover .log20_scena_item_title,
.log20_scena_item_title_row:hover .log20_scena_item_writer,
.log20_scena_item_title_row:hover .log20_scena_item_writer strong {
    color: var(--accent-color, #666);
}

.log20_scena_newscena_info .log20_scena_list_item_startdate,
.log20_scena_newscena_info .log20_scena_item_enddate {
    font-size: 12px;
    color: #333;
}

.log20_scena_list_item_dates {
    margin: 0;
    padding-top: 0;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    height: 32px;
    box-sizing: border-box;
}

.log20_scena_newscena_info .log20_scena_list_item_dates {
    align-self: flex-start;
    margin-top: auto; /* info 영역 내에서 하단 정렬 */
}

.log20_scena_list_item_dates span {
    display: inline-flex;
    align-items: center;
}

.log20_scena_list_item_date_label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.log20_scena_list_item_startdate,
.log20_scena_item_enddate {
    font-weight: 500;
    color: #333;
}

.log20_scena_list_item_range_sep {
    color: #666;
    font-weight: 500;
}

.log20_scena_rule_row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 32px;
    box-sizing: border-box;
}

.log20_scena_action_cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

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

.log20_scena_action_cell .log20_subitem_btn {
    color: var(--action-color, #333);
    border-color: var(--action-color, #ccc);
    background: #fff;
}

.log20_scena_action_cell .log20_subitem_btn:hover {
    background: var(--action-color, #333);
    border-color: var(--accent-color, #666);
    color: var(--accent-color, #666);
}

.log20_scena_item_subtitle {
    font-size: 14px;
    color: #666;
}
.log20_scena_action_row {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 0;
}

/* 시나리오 리스트 영역 (별도 영역, 화면 하단) */
.log20_content_scenalist {
    width: 90%;
    margin: 25px auto 10px auto;
    background: #ffffff;
    border: 1px solid var(--action-color, var(--card-border-color));
    border-radius: var(--card-border-radius);
    padding: 10px 15px;
    box-sizing: border-box;
    position: relative;
    height: 15vh;
    display: flex;
    align-items: center;
}

.log20_scenalist_thumbnails_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.log20_scenalist_thumbnails {
    flex: 1;
    height: 100%;
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.log20_scenalist_thumb_item {
    flex: 0 0 calc(25% - 7.5px);
    min-width: calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
    width: calc(25% - 7.5px);
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}


.log20_scenalist_thumb_item_image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.log20_scenalist_thumb_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.log20_scenalist_thumb_item:hover img {
    transform: scale(1.1);
}

.log20_scenalist_thumb_item_name {
    background: transparent;
    font-size: 11px;
    color: #333;
    text-align: center;
    padding: 8px 4px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scenalist_thumbnails img {
    display: block;
    height: 100%;
    object-fit: cover;
    margin: auto 0;
}

.log20_scenalist_thumb_item i {
    font-size: 32px;
    color: #999;
}

.log20_scenalist_arrow {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    flex-shrink: 0;
}

.log20_scenalist_arrow:hover {
    background: var(--accent-color, #666);
}

.log20_scenalist_arrow i {
    font-size: 14px;
}

.log20_scenalist_arrow img {
    display: block;
    max-width: 70%;
    max-height: 70%;
    margin: 0 auto;
    object-fit: contain;
}

.log20_sublist_area {
    width: 100%;
}

.log20_sublist_scena_area {
    width: 90%;
    margin: 0 auto;
}

/* =========================================================
   타래 시작하기 ↔ 검색창 사이 간격 축소
========================================================= */
.log20_sublist_header {
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
}

.log20_tarae_search_wrap {
    margin: 0;
    padding: 8px 14px 10px;

    border-bottom: 1px solid var(--action-color, #333);
}

.log20_content_sublist_scena .log20_sublist_header {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.log20_sublist_write_btn {
    position: relative;
    width: 100%;
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0px !important;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    color: var(--accent-color, #666);
    background: #fff;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.log20_sublist_write_btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--action-color, #333);
    transition: height 0.45s ease;
    z-index: -1;
}

/* =========================================================
   타래 작성 버튼
   평상시 : 파일 아이콘만 표시
   hover  : 지정색이 차오르며 "타래 작성하기 + 아이콘" 표시
========================================================= */

.log20_sublist_write_btn_idle,
.log20_sublist_write_btn_hover {
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: flex-end;
}

/* 평소에는 아이콘 하나만 */
.log20_sublist_write_btn_idle {
    display: inline-flex;
    color: var(--action-color, #333);
    font-size: 16px;
}

/* 글자는 평소 숨김 */
.log20_sublist_write_btn_hover {
    display: none;
    gap: 7px;

    color: var(--accent-color, #fff);
    font-weight: 700;
    white-space: nowrap;
}

/* 마우스를 올리면 기본 아이콘은 숨김 */
.log20_sublist_write_btn:hover .log20_sublist_write_btn_idle,
.log20_sublist_write_btn:focus-visible .log20_sublist_write_btn_idle {
    display: none;
}

/* 차오른 상태에서는 텍스트 + 아이콘 */
.log20_sublist_write_btn:hover .log20_sublist_write_btn_hover,
.log20_sublist_write_btn:focus-visible .log20_sublist_write_btn_hover {
    display: inline-flex;
    color: #fff !important;
}

.log20_sublist_write_btn:hover::before {
    height: 100%;
}

.log20_sublist_write_btn:hover .log20_sublist_write_btn_text {
    font-weight: 700;
    transform: translateX(-3px);
    color: var(--accent-color, #fff);
}

.log20_loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* 반응형 디자인 - 너비 제한 제거, 게시물이 필요한 만큼만 공간을 차지하도록 함 */

@media (max-width: 768px) {
    .log20_list_area {
        width: 100%;
        gap: 15px;
    }

    .log20_list_item {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 400px;
    }

    .log20_content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .log20_content_title {
        flex-direction: column;
    }

    .log20_thumbnail {
        width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .log20_thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: none;
    }

    .log20_info {
        width: 100%;
        overflow: visible;
        align-items: center;
        height: auto;
        min-height: auto;
        position: relative;
        gap: 25px;
        padding-bottom: 25px;
    }
    
    .log20_info_item {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .log20_info_item_subtitle {
        width: 100% !important;
        display: block !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    .log20_info_item_title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        display: block !important;
        margin: 20px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        font-size: 28px !important;
    }
    
    .log20_content_title {
        overflow: visible;
        padding-bottom: 20px;
    }

    .log20_content_sublist {
        padding-left: 0;
        padding-right: 0;
    }

    .log20_tarae_thread_item {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* 버튼 스타일 */
.log20_top_buttons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

#bo_btn_top .log20_category_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    grid-column: 2;
    justify-self: center;
}

@media (max-width: 768px) {
    .log20_top_buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    #bo_btn_top .log20_category_buttons {
        width: 100%;
        justify-content: center;
        justify-self: auto;
    }

    .btn_bo_user {
        justify-content: center;
        width: 100%;
    }
}

#bo_btn_top a.log20_category_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 4px 10px !important;
    line-height: 1 !important;
    margin: 0 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid var(--btn-secondary-bg) !important;
    background: var(--btn-secondary-bg) !important;
    color: var(--btn-secondary-text) !important;
    border-radius: var(--btn-secondary-radius) !important;
}

#bo_btn_top a.log20_category_btn.is-active {
    background: var(--btn-accent-bg) !important;
    color: var(--btn-accent-text) !important;
    border-color: var(--btn-accent-bg) !important;
}

#bo_btn_top {
    min-height: 30px;
}

.btn_bo_user {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: end;
    grid-column: 3;
}

.btn_bo_user li {
    margin: 0;
}

.btn_bo_user.bo_v_com {
    justify-content: flex-end;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01,
.btn_bo_user.bo_v_com .btn,
.btn_bo_user.bo_v_com .btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn:hover,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01:hover,
.btn_bo_user.bo_v_com .btn:hover,
.btn_bo_user.bo_v_com .btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--btn-primary-radius);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    font: inherit;
    line-height: 1.5;
    appearance: none;
    vertical-align: middle;
}

.btn:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

.btn_admin {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn_admin:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}


.btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

/* 검색 영역 */
.bo_sch_wrap {
    display: none;
    position: relative;
    margin-top: 20px;
}

.bo_sch {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.bo_sch_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sch_bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sch_input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.sch_btn {
    padding: 8px 15px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 페이지네이션 */
.paginate_wrap {
    margin: 20px 0;
    text-align: center;
}

/* 버튼 확인 영역 */
.btn_confirm {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

/* 작성완료 버튼 */
.btn_submit,
#btn_submit {
    font-weight: bold;
}

/* 시나리오 목록 영역 */
.log20_scena_list_area {
    flex-direction: column;
    gap: 0;
}

/* 시나리오 목록 아이템 스타일 */
.log20_scena_list_item {
    width: 100%;
    height: 245px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 0;
    display: flex;
    align-items: center;
}


.log20_scena_item_link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.log20_subitem_actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid var(--border-light);
    background: #fafafa;
}

.log20_subitem_btn:hover {
    background: #f0f0f0;
}

.log20_subitem_btn--delete {
    border-color: #c0392b;
    color: #c0392b;
}

/* 왼쪽 20% - 부제목 정보 영역 */
.log20_scena_list_item_subdetail {
    width: 20%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
}

/* 시작 날짜 - 최상단 좌측 */
.log20_scena_list_item_startdate {
    font-size: 10px;
    line-height: 1.2;
}

/* 룰과 트레일러 영역 - width 우측 정렬, height 중앙정렬부터 시작 */
.log_scena_list_item_explain {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 1;
    text-align: right;
}

.log_scena_list_item_explain > div {
    width: 100%;
    border-bottom: 1px solid var(--action-color, #333);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.log_scena_list_item_explain > div:last-child {
    margin-bottom: 0;
}

.log20_scena_item_rule {
    font-size: 12px;
    margin-bottom: 0px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_item_trailer {
    font-size: 10px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_list_item_subdetail .log20_scena_item_gm,
.log20_scena_list_item_subdetail .log20_scena_item_pc {
    font-size: 12px;
    margin-bottom: 3px;
    text-align: right;
    line-height: 1.3;
}

/* 가운데 40% - 썸네일 이미지 영역 */
.log20_scena_list_item_thumbnail {
    width: 40%;
    height: 240px;
    padding-bottom:15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    margin: 10px 0;
}

.log20_scena_list_item_thumbnail img {
    max-height: 240px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.log20_scena_list_item_thumbnail i {
    font-size: 48px;
}

/* 오른쪽 40% - 주요정보 영역 */
.log20_scena_list_item_maindetail {
    width: 40%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
    padding-top: 55px;
}

.log20_scena_list_item_maindetail .log20_scena_item_title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    line-height: 1.4;
    word-break: break-word;
    border-top: 1px solid var(--action-color, #333);
    border-bottom: 1px solid var(--action-color, #333);
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.log20_scena_item_trailer_main {
    font-size: 12px;
    margin: 5px 0 10px;
    line-height: 1.4;
    word-break: break-word;
}

.log20_scena_item_meta {
    font-size: 12px;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    grid-row: auto;
    min-height: 32px;
    height: auto;
    box-sizing: border-box;
}

.log20_scena_item_meta span {
    display: inline-flex;
    gap: 4px;
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: inherit;
    align-items: center;
    line-height: 1.3;
}

.log20_scena_item_enddate {
    font-size: 10px;
    text-align: right;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.log20_subitem_actions--overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    margin: 0;
    background: transparent;
    border-top: none;
    gap: 10px;
    z-index: 2;
}

.log20_subitem_actions--overlay .log20_subitem_btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--action-color, #333);
    color: var(--action-color, #333);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_subitem_actions--overlay .log20_subitem_btn i {
    font-size: 15px;
    line-height: 1;
}

.log20_subitem_actions--overlay .log20_subitem_btn:hover {
    background: var(--action-color, #333);
    color: #fff;
}

.log20_subitem_btn--icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_subitem_btn--icon i {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

/* pclist view 스타일 */
.pclist_view_content {
    max-width: 100%;
    margin: 15px 0 0 0;
    margin: 0 auto;
    padding: 20px;
}

.pclist_view_oneline {
    font-size: 18px;
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
    padding-top: 15px;
    padding-bottom: 10px;
    text-align: center;
}

.pclist_view_header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.pclist_view_main_image {
    flex: 0 0 50%;
    width: 50%;
}

.pclist_view_main_image_wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.pclist_view_main_image_img {
    width: 100%;
    height: auto;
    display: block;
}

.pclist_view_main_image_empty {
    color: #999;
    font-size: 14px;
    padding: 40px;
    text-align: center;
}

.pclist_view_title_area {
    flex: 1;
}

.pclist_view_subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.pclist_view_title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #333;
   border-top: 1px solid #333;
}

.pclist_view_keywords {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pclist_view_keyword {
    padding: 5px 12px;
    background: transparent;
    border-radius: 15px;
    font-size: 14px;
}

.pclist_view_color_boxes {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.pclist_view_color_box {
    width: 30px;
    height: 30px;
    border-radius: 0;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 30px;
    max-width: 30px;
}

.pclist_view_etc {
    margin-bottom: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pclist_view_etc_row_pair {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pclist_view_etc_row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: calc(50% - 5px);
    padding-bottom: 0;
    border: none;
}

.pclist_view_etc_subject {
    flex: 0 0 60px;
    color: #333;
    background: #e8e8e8;
    border-radius: 15px;
    padding: 5px 12px;
    text-align: center;
}

.pclist_view_etc_content {
    flex: 1;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pclist_view_content_body {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pclist_view_content_body .view_content {
    line-height: 1.6;
    color: #333;
}

/* write.pclist.skin.php 스타일 */
#fwrite {
    width: 90%;
    margin: 0 auto;
}

#secret_password_area {
    display: none;
}

.log20_field_block.flex-1 {
    flex: 1;
}

.log20_keyword_container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.log20_keyword_block {
    flex: 1;
    min-width: 150px;
}

.log20_etc_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.log20_etc_row_pair {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.log20_etc_row {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: calc(50% - 7.5px);
    padding: 10px;
    flex-direction: column;
}

.log20_etc_inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.log20_etc_subject_block {
    flex: 1;
    min-width: 120px;
}

.log20_etc_content_block {
    flex: 2;
    min-width: 150px;
}

.log20_existing_image {
    margin-bottom: 15px;
}

.log20_existing_image_preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.log20_existing_image img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.log20_existing_image_link {
    display: block;
    margin-bottom: 5px;
}

.log20_existing_image_label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.log20_existing_image_label input[type="checkbox"] {
    margin: 0;
}

.log20_field_small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* list.scena.skin.php 목록 버튼 컨테이너 */
.log20_scenalist_back_btn_wrap {
    width: 90%;
    margin: 0 auto 10px auto;
    padding: 0 20px;
}

/* list.scena.skin.php 목록 버튼 */
.log20_scenalist_back_btn_wrap .btn_b01.btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--btn-primary-radius);
}

/* list.scena.skin.php 목록 버튼 아이콘 */
.log20_scenalist_back_btn_wrap .btn_b01.btn i {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* =========================================================
   [백만님 기능 이식] 본문 토글 + 인라인 스포일러
   문법:
   토글[토글제목]
   [접힐 내용]

   ||블러 처리할 내용||
   ========================================================= */
.log20_tarae_text .tarae-text-toggle,
.log20_tarae_thread_text .tarae-text-toggle {
    display: block;
    width: 100%;
    margin: 0.45em 0;
}

.log20_tarae_text .tarae-text-toggle > summary,
.log20_tarae_thread_text .tarae-text-toggle > summary {
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}

.log20_tarae_text .tarae-text-toggle .tarae-toggle-close,
.log20_tarae_thread_text .tarae-text-toggle .tarae-toggle-close {
    display: none;
}

.log20_tarae_text .tarae-text-toggle[open] > summary .tarae-toggle-title,
.log20_tarae_thread_text .tarae-text-toggle[open] > summary .tarae-toggle-title {
    display: none;
}

.log20_tarae_text .tarae-text-toggle[open] > summary .tarae-toggle-close,
.log20_tarae_thread_text .tarae-text-toggle[open] > summary .tarae-toggle-close {
    display: inline;
}

.log20_tarae_text .tarae-toggle-body,
.log20_tarae_thread_text .tarae-toggle-body {
    margin-top: 0.35em;
}

.log20_tarae_text .tarae-blur-txt,
.log20_tarae_thread_text .tarae-blur-txt {
    filter: blur(5px);
    color: currentColor;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.log20_tarae_text .tarae-blur-txt.none-blur,
.log20_tarae_thread_text .tarae-blur-txt.none-blur {
    filter: blur(0);
}


/* ============================================================
   부모/자식 전체 스포일러 - 단일 규칙
============================================================ */

.log20_tarae_content,
.log20_tarae_thread_spoiler_scope {
    position: relative;
}

/* 실제 작성 본문만 흐림 */
.log20_tarae_content.is-whole-spoiler > .log20_tarae_body,
.log20_tarae_thread_spoiler_scope.is-whole-spoiler > .log20_tarae_thread_body {
    filter: blur(9px);
    opacity: .68;
    pointer-events: none;
    user-select: none;
}

/* 부모 스포일러 안내문은 크기를 만들지 않고 가운데에만 표시 */
.tarae_parent_whole_spoiler_notice {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;
    padding: 9px 13px;

    border-radius: 10px;
    background: rgba(35,35,35,.82);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);

    pointer-events: none;
    white-space: nowrap;
}

/* 자식타래용 전체 클릭 오버레이 */
.tarae_whole_spoiler_cover {
    position: absolute;
    inset: 0;
    z-index: 30;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 0;
    background: transparent;
    cursor: pointer;
}

/* 자식타래 안내 카드 */
.tarae_whole_spoiler_notice {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    width: auto;
    height: auto;
    padding: 9px 13px;

    border-radius: 10px;
    background: rgba(35,35,35,.82);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.tarae_whole_spoiler_notice strong {
    font-size: 14px;
    line-height: 1.3;
}

.tarae_whole_spoiler_open {
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 999px;
    padding: 4px 12px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.tarae_spoiler_checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.tarae_spoiler_checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
}

.tarae_spoiler_checkbox--reply {
    margin: 8px 0 2px;
    font-size: 13px;
}


/* ============================================================
   [백만님 추가기능] 스레드별 일반 덧글
============================================================ */
.tarae_plain_comment_toggle {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.tarae_plain_comment_panel {
    margin: 0 14px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.025);
}

.tarae_plain_comment_panel--thread {
    margin: 8px 0 12px 42px;
}

.tarae_plain_comment_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tarae_plain_comment_item {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.55);
}

.tarae_plain_comment_head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    font-size: 12px;
}

.tarae_plain_comment_name {
    font-weight: 700;
}

.tarae_plain_comment_date,
.tarae_plain_comment_hint,
.tarae_plain_comment_empty {
    opacity: .62;
}

.tarae_plain_comment_delete {
    margin-left: auto;
    font-size: 11px;
    opacity: .62;
}

.tarae_plain_comment_body {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.6;
}

.tarae_plain_comment_form {
    margin-top: 10px;
}

.tarae_plain_comment_form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 76px;
    resize: vertical;
    padding: 10px 11px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.72);
    color: inherit;
    font: inherit;
    line-height: 1.55;
}

.tarae_plain_comment_guest {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}

.tarae_plain_comment_guest input {
    min-width: 0;
    flex: 1;
    padding: 7px 9px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    color: inherit;
}

.tarae_plain_comment_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.tarae_plain_comment_actions button {
    margin-left: auto;
    padding: 6px 11px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.tarae_plain_comment_hint {
    font-size: 11px;
}

.tarae_thread_comment_bar {
    display: flex;
    justify-content: flex-end;
    margin: 3px 0 0;
}

.tarae_thread_comment_bar .tarae_plain_comment_toggle {
    padding: 3px 6px;
    font-size: 12px;
    opacity: .7;
}

@media (max-width: 700px) {
    .tarae_plain_comment_panel--thread {
        margin-left: 0;
    }
    .tarae_plain_comment_hint {
        display: none;
    }
}


/* ============================================================
   [백만님 조정] thread_lt_comment_ra0 느낌의 접이식 덧글 UI
============================================================ */

.log20_tarae_title:not(:empty),
.log20_tarae_thread_title:not(:empty) {
    font-weight: 700 !important;
    font-size: 1.08em !important;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.log20_tarae_thread_title:not(:empty) {
    display: inline-block;
    margin-left: 6px;
}

.tarae_plain_comment_toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 28px;
    min-height: 28px;
    padding: 4px 7px !important;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    color: inherit;
    opacity: .72;
    cursor: pointer;
    transition: opacity .15s ease, background .15s ease, transform .15s ease;
}

.tarae_plain_comment_toggle:hover,
.tarae_plain_comment_toggle.is-open {
    opacity: 1;
    background: rgba(0,0,0,.06) !important;
}

.tarae_plain_comment_toggle:active {
    transform: translateY(1px);
}

.tarae_plain_comment_toggle i {
    font-size: 13px;
}

.tarae_plain_comment_count {
    font-size: 11px;
    line-height: 1;
}

.tarae_plain_comment_toggle--root {
    min-height: 32px;
}

.tarae_thread_comment_bar {
    display: flex;
    justify-content: flex-end;
    margin: 2px 0 3px;
}

.tarae_plain_comment_panel {
    margin: 8px 14px 14px;
    padding: 10px 12px 12px;
    border: 1px solid rgba(0,0,0,.11);
    border-radius: 10px;
    background: rgba(255,255,255,.18);
}

.tarae_plain_comment_panel--thread {
    margin: 7px 0 12px 42px;
}

.tarae_plain_comment_panel_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -1px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 12px;
    font-weight: 700;
}

.tarae_plain_comment_close {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .55;
    cursor: pointer;
    padding: 2px 5px;
}

.tarae_plain_comment_item {
    padding: 7px 4px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
    background: transparent;
}

.tarae_plain_comment_item:last-child {
    border-bottom: 0;
}

.tarae_plain_comment_head {
    margin-bottom: 3px;
}

.tarae_plain_comment_body {
    padding-left: 2px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.6;
}

.tarae_plain_comment_form {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed rgba(0,0,0,.11);
}

.tarae_plain_comment_form textarea {
    min-height: 72px;
    background: rgba(255,255,255,.26);
}

.tarae_plain_comment_actions button {
    font-weight: 700;
}

.log20_tarae_title:empty,
.log20_tarae_thread_title:empty {
    display: none !important;
}

@media (max-width: 700px) {
    .tarae_plain_comment_panel--thread {
        margin-left: 0;
    }
}


/* ============================================================
   [백만님 통합] thread_lt 스타일 작성 기능 복원
============================================================ */
.tarae_subject_row input,
.log20_tarae_reply_subject {
    width: 100%;
    box-sizing: border-box;
}

.tarae_helper_buttons,
.log20_tarae_reply_helper_row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tarae_helper_btn,
.log20_tarae_reply_helper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 7px;
    background: rgba(255,255,255,.28);
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.log20_tarae_reply_full_options {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 7px;
}

.log20_tarae_reply_subject {
    padding: 8px 10px;
    border: 1px solid rgba(0,0,0,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.26);
    color: inherit;
    font: inherit;
    font-weight: 700;
}

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

.tarae_external_link_grid input,
.log20_tarae_reply_external_grid input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid rgba(0,0,0,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.25);
    color: inherit;
}

.log20_tarae_reply_external_links {
    width: 100%;
    margin: 6px 0;
}

.log20_tarae_reply_external_label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: .72;
}

@media (max-width: 600px) {
    .tarae_external_link_grid,
    .log20_tarae_reply_external_grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   [백만님 수정] 작성한 타래 제목 실제 표시
   - 비어 있으면 미표시
   - 값이 있으면 본문보다 조금 크고 굵게 표시
============================================================ */
.log20_tarae_root_subject_display,
.log20_tarae_thread_subject_display {
    margin: 6px 0 8px;
    font-size: 1.08em;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: inherit;
}

.log20_tarae_thread_subject_display {
    margin-left: 0;
}

/* 메타 영역의 기존 작은 제목 표시는 중복 방지를 위해 숨김 */
.log20_tarae_thread_meta .log20_tarae_thread_title {
    display: none !important;
}


/* ============================================================
   제목 표시 보강
   - 비어 있으면 미표시
   - 입력했으면 본문 위에 굵고 약간 크게 표시
============================================================ */
.log20_tarae_root_subject_display,
.log20_tarae_thread_subject_display {
    display: block;
    margin: 6px 0 8px;
    font-size: 1.1em;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: inherit;
}

.log20_tarae_root_subject_display:empty,
.log20_tarae_thread_subject_display:empty {
    display: none;
}

/* 메타 영역의 작은 중복 제목은 숨김 */
.log20_tarae_thread_meta .log20_tarae_thread_title {
    display: none !important;
}


/* ============================================================
   0804 요구사항 정리 수정
   - 상하 여백 축소
   - 반응/덧글 카드 내부 하단 정렬
   - 전체 스포일러는 내용이 사라지지 않고 흐려진 채 남음
============================================================ */
.log20_tarae_thread {
    margin: 5px 0 0 0 !important;
}
.log20_tarae_thread_item {
    margin: 3px 0 !important;
    padding: 9px 12px 8px !important;
    min-height: 0 !important;
}
.log20_tarae_thread_meta {
    margin-bottom: 3px !important;
}
.log20_tarae_thread_subject_display {
    margin: 3px 0 3px !important;
    font-size: 1.08em !important;
    font-weight: 700 !important;
}
.log20_tarae_thread_text {
    margin: 0 !important;
    padding: 2px 0 !important;
    line-height: 1.55 !important;
}
.log20_tarae_thread_body {
    min-height: 0 !important;
}
.tarae_card_bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding-top: 4px;
}
.tarae_card_bottom .interact_btn,
.tarae_card_bottom .tarae_thread_comment_bar {
    margin: 0 !important;
    padding: 0 !important;
}
.tarae_card_bottom .tarae_plain_comment_panel--thread {
    flex-basis: 100%;
}
.tarae_plain_comment_panel--thread {
    margin: 6px 0 0 !important;
    padding: 8px 10px !important;
}

/* 빈/실패 이미지가 레이아웃에 액박 아이콘을 남기지 않도록 */
.log20_tarae_images img[src=""],
.log20_tarae_thread_images img[src=""],
img.tarae-broken-image {
    display: none !important;
}


/* 덧글 수정 */
.tarae_plain_comment_edit_toggle {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    opacity: .7;
}
.tarae_plain_comment_edit_form {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px dashed rgba(0,0,0,.12);
}
.tarae_plain_comment_edit_form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid rgba(0,0,0,.13);
    border-radius: 7px;
    background: rgba(255,255,255,.35);
    color: inherit;
    resize: vertical;
}
.tarae_plain_comment_edit_actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 5px;
}


/* ===== 이미지 없는 카드 처리 =====
   실제 이미지가 없으면 액박/no_image를 만들지 않고 흰색 카드로 유지합니다.
   hover 시에는 기존 카드와 동일하게 오버레이/부제가 나타납니다.
*/
.log20_item_image.is-no-image {
    background: #fff !important;
}

.log20_item_image.is-no-image img {
    display: none !important;
}

.log20_list_item:hover .log20_item_image.is-no-image::before {
    opacity: 1 !important;
}

/* 배경 이미지가 없어도 부제는 기존 hover 규칙 그대로 표시 */
.log20_list_item:hover .log20_item_image.is-no-image .log20_item_subtitle {
    opacity: 1 !important;
}


/* 이미지 없는 부모 카드: hover 시 타래 제목 표시 */
.log20_item_noimage_title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 82%;
    max-width: 82%;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.log20_list_item:hover .log20_item_image.is-no-image .log20_item_noimage_title {
    opacity: 1 !important;
}


/* 덧글 수정/삭제 버튼: 우측에 나란히 */
.tarae_plain_comment_meta {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.tarae_plain_comment_meta .tarae_plain_comment_actions {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.tarae_plain_comment_edit_toggle,
.tarae_plain_comment_delete {
    display: inline-block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: .72;
}

.tarae_plain_comment_edit_toggle:hover,
.tarae_plain_comment_delete:hover {
    opacity: 1;
    text-decoration: underline !important;
}


/* ===== 카드 hover 텍스트: 그냥사람님 원본 위치로 통일 ===== */
.log20_item_subtitle {
    position: absolute !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 16px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    opacity: 0;
    transition: opacity .2s;
    z-index: 4;
    pointer-events: none;
    text-align: center !important;
    width: 70% !important;
    max-width: 70% !important;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4 !important;
}

.log20_list_item:hover .log20_item_subtitle {
    opacity: 1 !important;
}

/* 이미지 없음/있음 모두 동일한 hover 오버레이 규칙 */
.log20_list_item:hover .log20_item_image::before {
    opacity: 1 !important;
}


/* RA0 이모티콘 버튼 - 덧글은 텍꾸 없이 이모티콘만 사용 */
.tarae_plain_comment_emo_btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 9px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
}
.tarae_plain_comment_emo_btn:hover {
    opacity: .75;
}

/* 배포 치환자 기본 스타일 */
a.blur-txt,
.tarae-blur-txt {
    filter: blur(5px);
    color: currentColor;
    cursor: pointer;
}
a.none-blur,
.tarae-blur-txt.none-blur {
    filter: blur(0px);
}
.italictext {
    font-style: italic;
    font-family: inherit;
}
.txt-box {
    color: var(--css1_color_default, inherit);
    background-color: var(--css1_color_point, rgba(0,0,0,.08));
    padding: 0 2px;
}


/* 부모 타래 실제 제목: 자식 타래와 동일한 표시 규칙 */
.log20_tarae_root_subject_display {
    display: block;
    margin: 3px 0 4px !important;
    font-size: 1.08em !important;
    line-height: 1.4;
    font-weight: 700 !important;
    color: inherit;
}

/* 새 덧글 이모티콘 버튼 */
.tarae_plain_comment_emo_btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 7px;
    background: rgba(255,255,255,.55);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ============================================================
   부모타래 전체 스포일러 - 자식타래처럼 확인 버튼으로 해제
   ||부분 블러||와는 별개입니다.
============================================================ */
.log20_tarae_content.is-whole-spoiler {
    position: relative;
}

.tarae_parent_whole_spoiler_notice {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(35,35,35,.88);
    color: #fff;
    pointer-events: auto !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.tarae_parent_whole_spoiler_open {
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    padding: 5px 13px;
    background: #111;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

/* ============================================================
   덧글 액션: 수정│공유는 붙여두고 삭제는 오른쪽 끝
============================================================ */
.tarae_plain_comment_share {
    display: inline-block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    cursor: pointer !important;
    opacity: .72;
}

.tarae_plain_comment_share:hover {
    opacity: 1;
    text-decoration: underline !important;
}

.tarae_plain_comment_action_sep {
    opacity: .28;
    margin: 0 -2px;
}

.tarae_plain_comment_delete {
    margin-left: auto !important;
}


/* ============================================================
   ROUND 5 FIXES
   - 자식 전체 스포일러 오버레이는 본문 범위 안에만 존재
   - 덧글 패널은 스포일러 오버레이에 밀리거나 덮이지 않음
   - 토글 표기 안정화
============================================================ */
.log20_tarae_thread_spoiler_scope {
    position: relative !important;
}

.log20_tarae_thread_spoiler_scope > .tarae_whole_spoiler_cover {
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
    min-height: 0 !important;
}

.tarae_card_bottom {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.tarae_card_bottom > .tarae_plain_comment_panel--thread {
    flex: 0 0 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

/* native details 삼각형을 유지하고, 열리면 제목 대신 '토글 접기'가 보입니다. */
.tarae-text-toggle > summary {
    list-style-position: outside;
}
.tarae-text-toggle > summary::marker {
    font-size: .9em;
}

/* 자식 수정 링크도 기존 텍스트 버튼과 똑같이 보이게 */
.log20_tarae_thread_edit_link {
    text-decoration: none !important;
}


/* ============================================================
   ROUND6 고정 규칙
============================================================ */

/* 토글은 부모/자식 타래 본문 박스 안에서만 폭을 차지합니다. */
.log20_tarae_text,
.log20_tarae_thread_text {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.log20_tarae_text .tarae-text-toggle,
.log20_tarae_thread_text .tarae-text-toggle {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: .45em 0 !important;
    padding: 0 !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.log20_tarae_text .tarae-text-toggle > summary,
.log20_tarae_thread_text .tarae-text-toggle > summary,
.log20_tarae_text .tarae-toggle-body,
.log20_tarae_thread_text .tarae-toggle-body {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* 덧글 한 줄만 독립적으로 블러 */
.tarae_plain_comment_body.is-comment-spoiler {
    filter: blur(6px) !important;
    opacity: .72;
    cursor: pointer;
    user-select: none;
}
.tarae_plain_comment_body.is-comment-spoiler * {
    pointer-events: none !important;
}

.tarae_comment_spoiler_checkbox {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 0 8px;
    font-size: 12px;
    opacity: .78;
}
.tarae_comment_spoiler_checkbox input {
    margin: 0;
}

/* 댓글 좌표 진입 시 시각적으로 잠깐 확인하기 쉽도록 */
.tarae_plain_comment_item:target {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}


/* 선택모드에서는 카드 링크가 선택용임을 시각적으로도 표시 */
.tarae-bulk-mode .log20_item_link {
    cursor: pointer !important;
}

/* 하단 '타래 선택' 버튼을 눌러 .tarae-bulk-mode 활성화 시에만 체크박스 노출 */
.tarae-bulk-mode .tarae_bulk_check {
    display: block !important;
}

/* ==========================================
   1. 타래 선택 관리자 바 & 체크박스 기본 레이아웃
   ========================================== */

/* 카드 내 체크박스 절대 위치 잡기 */
.log20_list_item {
    position: relative;
}

/* 체크박스 바깥의 얇은 흰색 받침 */
.tarae_bulk_check {
    position: absolute;
    z-index: 20;
    left: 7px;
    top: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    background: transparent;
    border: 0;
    outline: 4px;
    box-shadow: none;
    line-height: 1;
}

/* 실제 체크박스 */
.tarae_bulk_check input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    aspect-ratio: 1 / 1;

    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;

    background-color: #fff !important;
}

/* 하단 타래 선택 관리자 바 레이아웃 */
.tarae_bulk_admin_bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 7px 0 4px;
}

/* =========================================================
   하단 타래 선택 관리자 버튼 공통 디자인
   - 평상시 타래선택 버튼
   - 선택 수정
   - 전체 선택
   - 선택 해제
   - 선택 삭제
   전부 동일한 크기와 형태로 통일
========================================================= */

.tarae_bulk_mode_actions:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tarae_bulk_action_btn {
    position: relative;

    width: 42px;
    min-width: 42px;
    height: 42px;

    padding: 0 !important;
    margin: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-sizing: border-box;
}

.tarae_bulk_action_btn i {
    margin: 0;
    padding: 0;

    font-size: 15px;
    line-height: 1;

    pointer-events: none;
}


/* =========================================================
   마우스 오버 설명 카드
========================================================= */

.tarae_bulk_action_btn::after {
    content: attr(data-tooltip);

    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);

    transform: translateX(-50%) translateY(3px);

    padding: 5px 8px;
    border-radius: 7px;

    background: rgba(45, 45, 45, .92);
    color: #fff;

    font-size: 11px;
    line-height: 1.3;
    font-weight: normal;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;
    z-index: 999;

    transition:
        opacity .15s ease,
        transform .15s ease;
}

.tarae_bulk_action_btn:hover::after {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   2. 커스텀 체크박스 통합 커스텀 커넥터
   ========================================== */

/* 회색 테두리/그림자 차단 */
.log20_chk {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 체크박스 본체 커스텀 (상자 형태) */
.log20_chk input[type="checkbox"],
.tarae_bulk_check input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    background-color: transparent !important;
    border: 1px solid #ffffff !important; /* 흰색 테두리 */
    border-radius: 2px !important;
    position: relative !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* 체크 선택 시 녹색 배경 + 흰 외곽선 */
.log20_chk input[type="checkbox"]:checked,
.tarae_bulk_check input[type="checkbox"]:checked {
    background-color: #2ea44f !important;
    border-color: #2ea44f !important;
    overflow: visible !important;

    box-shadow: 0 0 0 2px #fff !important;
}

/* 체크 표시(✓) 돌출 디자인 */
.log20_chk input[type="checkbox"]:checked::after,
.tarae_bulk_check input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: -5px !important; /* 위에서 아래로내리기 */
    left: 4px !important; /* 좌측에서부터 밀기 */
    width: 6px !important; /* 박스로부터 얼마나 밀것인가 */
    height: 19px !important; /* 세로크기 */
    border: solid #ffffff !important;
    border-width: 0 3px 3px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
    box-shadow: none !important;
}

============================================================
   ROUND7 토글 안정화
   1) 토글은 부모/자식 본문 열 안에서만 렌더링
   2) 전체 스포일러는 레이아웃/미디어 크기를 절대 바꾸지 않음
   3) 목차 체크박스는 선택 모드에서만 표시
============================================================ */

/* 토글: details/summary가 글 박스 바깥쪽으로 밀려나지 않도록 */
.log20_tarae_text,
.log20_tarae_thread_text {
    position: relative !important;
    box-sizing: border-box !important;
}
.log20_tarae_text .tarae-text-toggle,
.log20_tarae_thread_text .tarae-text-toggle {
    width: 100% !important;
    max-width: 100% !important;
    margin: .45em 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.log20_tarae_text .tarae-text-toggle > summary,
.log20_tarae_thread_text .tarae-text-toggle > summary {
    display: list-item !important;
    list-style-position: inside !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.log20_tarae_text .tarae-toggle-body,
.log20_tarae_thread_text .tarae-toggle-body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: .35em 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ============================================================
   덧글 치환자 레이아웃 보정
   부모/자식과 동일하게 토글과 단어블러를 덧글 안에서 처리
============================================================ */

.tarae_plain_comment_body .tarae-text-toggle {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    margin: .45em 0 !important;
    padding: 0 !important;

    inset: auto !important;
    transform: none !important;

    overflow: hidden !important;
}

.tarae_plain_comment_body .tarae-text-toggle > summary {
    display: list-item !important;
    list-style-position: inside !important;

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 !important;

    cursor: pointer;
    font-weight: 700;
    user-select: none;
}

.tarae_plain_comment_body .tarae-text-toggle .tarae-toggle-close {
    display: none;
}

.tarae_plain_comment_body .tarae-text-toggle[open] > summary .tarae-toggle-title {
    display: none;
}

.tarae_plain_comment_body .tarae-text-toggle[open] > summary .tarae-toggle-close {
    display: inline;
}

.tarae_plain_comment_body .tarae-toggle-body {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    margin: .35em 0 0 !important;
    padding: 0 !important;

    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.tarae_plain_comment_body .tarae-blur-txt {
    display: inline;
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    filter: blur(5px);
    color: currentColor;
    cursor: pointer;
    transition: filter .15s ease;
}

.tarae_plain_comment_body .tarae-blur-txt.none-blur {
    filter: blur(0);
}

/* ===========================================================
   공용 토글과 블러버튼 추가
============================================================ */
.tarae-syntax-btn,
.tarae-editor-syntax-btn {
    position: relative;
}

.tarae-syntax-btn::after,
.tarae-editor-syntax-btn::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    transform: translateX(-50%) translateY(3px);

    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(45,45,45,.92);
    color: #fff;

    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;

    transition: opacity .15s ease, transform .15s ease;
}

.tarae-syntax-btn:hover::after,
.tarae-editor-syntax-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.tarae-syntax-blur::after {
    content: "단어 블러 · || 앞뒤 사용";
}

/* =========================================================
   부모타래 헤더 : 수정/삭제를 우측 관리영역으로 분리
   ========================================================= */

.log20_tarae_date {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 7px;
    white-space: nowrap;
}

.log20_tarae_share_wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.log20_tarae_manage_wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    white-space: nowrap;
}

.log20_tarae_manage_sep,
.log20_tarae_share_sep {
    color: #ccc;
    user-select: none;
}

/* =========================================================
   자식타래 메타정보 한 줄 정렬
   ========================================================= */

.log20_tarae_thread_meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.log20_tarae_thread_name,
.log20_tarae_thread_date,
.log20_tarae_thread_edit,
.log20_tarae_thread_delete,
.log20_tarae_thread_meta .log20_tarae_share_wrap {
    flex-shrink: 0;
    white-space: nowrap;
}

.log20_tarae_thread_sep {
    color: #ccc;
    flex: 0 0 auto;
    user-select: none;
}

/* 삭제만 살짝 떨어뜨리고 싶다면 */
.log20_tarae_thread_delete {
    margin-left: 5px;
}


/* ============================================================
   자식타래 메타 최종 정렬 보정
   - 이름 │ 날짜 │ 복사 │ 수정                      삭제
   - 삭제만 오른쪽 끝으로 밀고 나머지는 한 줄 유지
============================================================ */
.log20_tarae_thread_meta {
    display: flex !important;
    align-items: center !important;

    gap: 4px !important;

    flex-wrap: nowrap !important;
    white-space: nowrap !important;

    width: 100% !important;

    font-size: 13px;
}

.log20_tarae_thread_meta > * {
    flex-shrink: 0;
}

.log20_tarae_thread_date {
    margin-left: 0 !important;
}

.log20_tarae_thread_delete {
    margin-left: auto !important;
    white-space: nowrap !important;
}

.log20_tarae_thread_sep {
    color: #ccc;
    flex: 0 0 auto;
    user-select: none;
}

/* =========================================================
   목차 하단 검색
   ========================================================= */

.tarae-bottom-search {
    width: 100%;
    box-sizing: border-box;
    margin: 28px auto 12px;
    padding: 0 42px;
}

.tarae-search-form {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.tarae-search-select {
    flex: 0 0 110px;
    width: 110px;
}

.tarae-search-input {
    flex: 1 1 auto;
    min-width: 0;
}

.tarae-search-select,
.tarae-search-input {
    height: 38px;
    box-sizing: border-box;

    padding: 0 13px;

    border: 1px solid rgba(255,255,255,.78);
    border-radius: 18px;

    background: rgba(45,55,50,.78);
    color: #fff;

    outline: none;
}

.tarae-search-input::placeholder {
    color: rgba(255,255,255,.55);
}

.tarae-search-select:focus,
.tarae-search-input:focus {
    border-color: var(--accent-color, #1fa77a);
    box-shadow: 0 0 0 1px var(--accent-color, #1fa77a);
}

.tarae-search-submit,
.tarae-search-reset {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 0;

    border: 1px solid rgba(255,255,255,.78);
    border-radius: 50%;

    background: rgba(45,55,50,.78);
    color: #fff;

    text-decoration: none;
    cursor: pointer;
}

.tarae-search-submit:hover,
.tarae-search-reset:hover {
    border-color: var(--accent-color, #1fa77a);
}

@media (max-width: 700px) {
    .tarae-bottom-search {
        padding: 0 16px;
    }

    .tarae-search-form {
        flex-wrap: wrap;
    }

    .tarae-search-select {
        flex: 0 0 105px;
    }

    .tarae-search-input {
        flex: 1 1 calc(100% - 115px);
    }
}

/* 검색 결과 강조 */
.tarae-search-hit {
    display: inline;
    padding: 1px 4px;
    border-radius: 5px;

    background: var(
        --btn-accent-bg,
        var(--accent-color, #b91c1c)
    );

    color: var(
        --btn-accent-text,
        #fff
    );

    font: inherit;
}

/* 검색 input 안의 브라우저 기본 X */
.tarae-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;

    width: 16px;
    height: 16px;

    cursor: pointer;

    background-color:
        var(--btn-accent-bg, #ffffff);

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6L18 18M18 6L6 18' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6L18 18M18 6L6 18' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;

    opacity: .95;
}

/* =========================================================
   목차 인라인 타래 작성
   ========================================================= */

.tarae-inline-write-panel {
    width: 100%;
    box-sizing: border-box;

    overflow: hidden;

    max-height: 0;
    opacity: 0;

    margin: 0 auto;

    transition:
        max-height .38s ease,
        opacity .22s ease,
        margin .38s ease;
}

.tarae-inline-write-panel.is-open {
    max-height: 2200px;
    opacity: 1;

    margin: 18px auto 24px;
}

.tarae-inline-write-inner {
    width: 100%;
    box-sizing: border-box;
}

.tarae-inline-write-inner #tarae_write_wrap {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;

    margin: 0 !important;
}

/* =========================================================
   슬라이드형 목차 작성창에서는
   마지막 스포일러 행 아래 구분선 제거
========================================================= */
.tarae-inline-write-panel .log20_write_form dl:last-of-type::after {
    display: none;
}

/* =========================================================
   부모/자식 타래 하단 아이콘 툴팁
========================================================= */
.tarae-ui-tip {
    position: relative;
}

.tarae-ui-tip::after {
    content: attr(data-tooltip);

    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);

    transform: translateX(-50%) translateY(3px);

    padding: 5px 8px;
    border-radius: 7px;

    background: rgba(45,45,45,.92);
    color: #fff;

    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 999;

    transition:
        opacity .15s ease,
        transform .15s ease;
}

.tarae-ui-tip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* 부모타래 관심별은 footer 안에서 기존 자식별보다 들여쓰기 제거 */
.log20_tarae_footer .interact_btn--root {
    margin: 0 !important;
    padding-left: 0 !important;
}


/* footer 아이콘 크기 정리 */
.log20_tarae_footer_btn--icon i {
    margin: 0;
    line-height: 1;
}

/* =========================================================
   260807 최종 보정 : 부모 반응줄 / 자식 메타 반응 / 연결선
========================================================= */

.tarae_root_action_bar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 4px 6px;
}
.tarae_root_action_bar .interact_btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 !important;
    padding: 0 !important;
}
.tarae_root_action_bar .tarae_plain_comment_toggle {
    width: auto !important;
    min-width: 0 !important;
    height: 20px !important;
    padding: 0 5px !important;
    border: 0 !important;
    background: transparent !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tarae_root_action_bar .tarae_plain_comment_toggle i {
    font-size: 13px;
}

.log20_tarae_thread_meta .interact_btn--thread-meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}
.log20_tarae_thread_meta .interact_btn--thread-meta .interact_btn_interest {
    width: 16px;
    height: 16px;
}
.log20_tarae_thread_meta .interact_btn--thread-meta .interact_btn_interest i {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}
.log20_tarae_thread_meta .interact_btn--thread-meta .interact_btn_count {
    height: 16px;
    line-height: 16px;
    font-size: 11px;
}
.tarae_plain_comment_toggle--thread-meta {
    width: auto !important;
    min-width: 0 !important;
    height: 20px !important;
    padding: 0 3px !important;
    border: 0 !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.tarae_plain_comment_toggle--thread-meta i {
    font-size: 13px;
}

.log20_tarae_thread {
    position: relative;

    /* 부모에서 자식영역으로 들어가는 들여쓰기 */
    margin: 4px 0 0 10px !important;

    /* 세로선과 실제 자식글 사이 거리 */
    padding: 0 0 0 10px !important;

    /* 자식타래 연결선 */
    border-left: 2px solid var(--action-color, #8e1b1b) !important;
}

.log20_tarae_thread_item {
    position: relative;

    margin: 0 !important;

    /* 자식 하나의 위/아래 호흡 */
    padding: 4px 0 4px 4px !important;

    border-radius: 0 !important;
    background: transparent !important;

    overflow: visible !important;
}

.log20_tarae_thread_item + .log20_tarae_thread_item {
    margin-top: 0 !important;
    padding-top: 4px !important;
}

.tarae_card_bottom {
    width: 100%;
    margin: 0;
    padding: 0;
}
.tarae_plain_comment_panel--thread {
    margin-top: 8px;
}

/* =========================================================
   펼쳐진 타래 최상단의 빠른 접기 버튼
========================================================= */

.log20_tarae_thread_toggle_top {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    margin: 0 0 2px 0 !important;
    padding: 0 !important;

    height: 12px;
}

.log20_tarae_thread_collapse_top {
    position: relative;

    width: 26px;
    height: 22px;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--action-color, #333);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.log20_tarae_thread_collapse_top i {
    font-size: 13px;
    line-height: 1;
}

/* ============================================================
   덧글 작성자 프로필
   부모/자식 타래와 동일한 회원 프로필 처리
============================================================ */

.tarae_plain_comment_profile {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    overflow: hidden;

    background: #f0f0f0;
}

.tarae_plain_comment_profile img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 50%;
}

.tarae_plain_comment_profile_fallback {
    width: 100%;
    height: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
