@charset "utf-8";

/* ==========================================================================
   [코라이브] 토론광장 (Debate/Discussion) 전용 Pure Vanilla CSS (목록 & 뷰 통합)
   ========================================================================== */

/* --- 목록 전용 스타일 --- */
.ds-wrap {
    max-width: var(--container-width, 71.25rem);
    margin: 0 auto;
    padding: 1.88rem 0.94rem 4.38rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

/* 헤더/탭/검색창 공통 스타일은 design_system.css (.kol-header-unified, .ds-header-box, .kol-nav-item, .ds-tab-item 등)로 완전 통합 */
/*
.ds-header-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem 2.25rem;
    margin-bottom: 1.56rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ds-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.38rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.38rem;
    flex-wrap: wrap;
    gap: 0.94rem;
}

.discussion-header .header-title-area,
.ds-header-top .header-title-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    flex: 1 1 20rem;
    min-width: 16rem;
}

.ds-badge-top {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.31rem 0.88rem;
    border-radius: 1.25rem;
    margin-bottom: 0.63rem;
}

.ds-title {
    font-size: 1.63rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.38rem 0;
    line-height: 1.3;
    letter-spacing: -0.02rem;
}

.ds-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.ds-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ds-tab-item {
    display: inline-block;
    padding: 0.56rem 1.13rem;
    border-radius: 1.25rem;
    font-size: 0.81rem;
    font-weight: 700;
    text-decoration: none;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}

.ds-tab-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ds-tab-item.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
*/

.ds-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.56rem;
}

@media (max-width: 1024px) {
    .ds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ds-grid {
        grid-template-columns: 1fr;
    }
}

.ds-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.ds-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ds-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ds-cat-tag {
    font-size: 0.69rem;
    font-weight: 800;
    background: #0f172a;
    color: #ffffff;
    padding: 0.19rem 0.63rem;
    border-radius: 0.75rem;
}

.ds-main-tab-nav {
    margin-bottom: 0.88rem;
}

.ds-sub-tab-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.38rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
    clear: both;
}

.ds-sub-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 0.25rem;
}

.ds-sub-item {
    font-size: 0.75rem;
    padding: 0.25rem 0.63rem;
}

.ds-tag-hash {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
}

.ds-card-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 0.88rem 0;
}

.ds-status-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #059669;
    background: #d1fae5;
    padding: 0.19rem 0.5rem;
    border-radius: 0.38rem;
    margin-left: auto;
}

.ds-card-subject {
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 0.63rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ds-card-subject a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.ds-card-subject a:hover {
    color: #0284c7;
}

.ds-consensus-box {
    margin: 0.88rem 0 0.75rem 0;
}

.ds-consensus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.38rem;
}

.ds-card-vote-box {
    margin: 0.88rem 0 0.75rem 0;
}

.ds-card-vote-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.38rem;
}

.ds-label-agree {
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ds-label-disagree {
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ds-card-vote-labels .vote-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
}

.ds-card-vote-bar {
    width: 100%;
    background: #e2e8f0;
    height: 0.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    display: flex;
}

.ds-bar-agree {
    height: 100%;
    background: #22c55e;
    transition: width 0.3s ease;
}

.ds-bar-disagree {
    height: 100%;
    background: #ef4444;
    transition: width 0.3s ease;
}

.ds-progress-bg {
    width: 100%;
    background: #f1f5f9;
    height: 0.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    display: flex;
}

.ds-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 0.25rem;
}

.ds-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
    padding-top: 0.75rem;
    border-top: 1px solid #f8fafc;
}

.ds-card-author-box {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    white-space: nowrap;
}

.ds-card-author-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.ds-card-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.ds-card-author-name .sv_member .profile_img {
    display: none;
}

.ds-card-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}


/* --- 상세 뷰 전용 스타일 --- */
.debate-view-container {
    /* max-width: var(--container-width, 67.5rem); */
    /* margin: 0 auto; */
    /* padding: 1.88rem 0.94rem 4.38rem; */
}

.debate-breadcrumb {
    font-size: 0.81rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debate-breadcrumb a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}

.debate-breadcrumb a:hover {
    color: #0284c7;
}

.debate-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.13rem;
    padding: 2.19rem 2rem 1.75rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    margin-bottom: 1.56rem;
}

.debate-header-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.63rem;
    margin-bottom: 1rem;
}

.debate-badge-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.debate-cat-badge {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.31rem 0.75rem;
    border-radius: 0.88rem;
}

.debate-subcat-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.31rem 0.75rem;
    border-radius: 0.88rem;
    border: 1px solid #cbd5e1;
}

.debate-kw-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.31rem 0.75rem;
    border-radius: 0.88rem;
}

.debate-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.31rem 0.75rem;
    border-radius: 0.88rem;
}

.debate-view-title {
    font-size: 1.63rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.0.31rem;
    margin: 0 0 1rem 0;
}

.debate-view-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.87rem;
    color: #64748b;
    /* padding-bottom: 1.38rem; */
    /* border-bottom: 1px solid #f1f5f9; */
}

.debate-persona-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.13rem 1.38rem;
    margin: 1.38rem 0 0.63rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.debate-persona-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #0284c7;
    background: #f8fafc;
}

.debate-persona-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.debate-battle-station {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.13rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.88rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.debate-battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.88rem;
    flex-wrap: wrap;
    gap: 0.63rem;
}

.battle-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.battle-rates {
    font-size: 1.13rem;
    font-weight: 900;
}

.battle-rates .rate-pro { color: #0284c7; }
.battle-rates .rate-con { color: #e11d48; }

.debate-battle-gauge-wrap {
    height: 1rem;
    background: #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.battle-gauge-pro {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    height: 100%;
    transition: width 0.5s ease;
}

.battle-gauge-con {
    background: linear-gradient(90deg, #f43f5e, #e11d48);
    height: 100%;
    transition: width 0.5s ease;
}

.battle-stat-nums {
    display: flex;
    justify-content: space-between;
    font-size: 0.81rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.debate-vote-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.94rem;
    margin-top: 1.38rem;
}

.btn-vote-action-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.63rem;
    padding: 0.88rem 1.25rem;
    background: #0284c7;
    color: #ffffff;
    border-radius: 0.75rem;
    font-size: 0.94rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-vote-action-pro:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-vote-action-con {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.63rem;
    padding: 0.88rem 1.25rem;
    background: #e11d48;
    color: #ffffff;
    border-radius: 0.75rem;
    font-size: 0.94rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-vote-action-con:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.debate-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.13rem;
    padding: 2.19rem 2rem;
    /* margin-bottom: 1.88rem; */
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.debate-sec-heading {
    font-size: 1.06rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debate-intro-box {
    background: #f8fafc;
    border-left: 0.25rem solid #0284c7;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.13rem 1.38rem;
    margin-bottom: 1.75rem;
    font-size: 0.91rem;
    line-height: 1.8;
    color: #334155;
}

.debate-body-text {
    font-size: 0.94rem;
    line-height: 1.9;
    color: #1e293b;
    word-break: break-all;
}

.debate-body-text p {
    margin-bottom: 1.5em;
}

.debate-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    margin-top: 2.19rem;
}

.btn-debate-back-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.63rem 1.25rem;
    background: #0f172a;
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.81rem;
    transition: background 0.2s;
}

.btn-debate-back-list:hover {
    background: #0284c7;
}

.debate-share-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-share-round {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-share-round:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- 토론 댓글 배틀존 모던 스타일 --- */
.debate-cmt-section {
    margin-top: 1.88rem;
}

.debate-cmt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    /* padding-bottom: 1rem; */
    /* border-bottom: 2px solid #0f172a; */
    margin-bottom: 1.5rem;
}

.debate-cmt-title {
    font-size: 1.19rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debate-opinion-filter {
    display: flex;
    gap: 0.38rem;
}

.btn-filter-op {
    padding: 0.38rem 0.88rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter-op.active, .btn-filter-op:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.debate-cmt-item, .debate-cmt-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.94rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: border-color 0.2s;
}

.debate-cmt-card.is-agree {
    border-left: 0.25rem solid #0284c7;
}

.debate-cmt-card.is-disagree {
    border-left: 0.25rem solid #e11d48;
}

.debate-author-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.debate-badge-agree {
    font-size: 0.69rem;
    font-weight: 800;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
    background: #e0f2fe;
    color: #0284c7;
}

.debate-badge-disagree {
    font-size: 0.69rem;
    font-weight: 800;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
    background: #ffe4e6;
    color: #e11d48;
}

.debate-badge-neutral {
    font-size: 0.69rem;
    font-weight: 800;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
    background: #f1f5f9;
    color: #475569;
}

.btn-like-clean {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-like-clean:hover {
    color: #0284c7;
}

.link-del-clean {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
}

.link-del-clean:hover {
    color: #e11d48;
}

.debate-cmt-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.debate-cmt-empty i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.debate-guest-inputs {
    display: flex;
    gap: 0.63rem;
    align-items: center;
}

.debate-cmt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.63rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.debate-cmt-author-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debate-cmt-author {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.debate-stance-badge {
    font-size: 0.69rem;
    font-weight: 800;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
}

.debate-stance-badge.agree {
    background: #e0f2fe;
    color: #0284c7;
}

.debate-stance-badge.disagree {
    background: #ffe4e6;
    color: #e11d48;
}

.debate-stance-badge.neutral {
    background: #f1f5f9;
    color: #475569;
}

.debate-cmt-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.debate-cmt-body {
    font-size: 0.91rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 0.88rem;
    word-break: break-word;
}

.debate-cmt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 0.63rem;
    border-top: 1px solid #f8fafc;
}

.debate-write-box {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.88rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.debate-write-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.88rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debate-stance-picker {
    display: flex;
    gap: 0.63rem;
    margin-bottom: 0.88rem;
    flex-wrap: wrap;
}

.btn-stance-choice {
    padding: 0.5rem 1.13rem;
    border-radius: 1.25rem;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.81rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-stance-choice.stance-pro { color: #0284c7; border-color: #bae6fd; background: #f0f9ff; }
.btn-stance-choice.stance-con { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
.btn-stance-choice.stance-neu { color: #475569; border-color: #cbd5e1; background: #f8fafc; }

.btn-stance-choice:hover, .btn-stance-choice.active {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-stance-choice.stance-pro.active { background: #0284c7; color: #ffffff; border-color: #0284c7; }
.btn-stance-choice.stance-con.active { background: #e11d48; color: #ffffff; border-color: #e11d48; }
.btn-stance-choice.stance-neu.active { background: #0f172a; color: #ffffff; border-color: #0f172a; }

.debate-textarea {
    width: 100%;
    min-height: 6.25rem;
    padding: 0.88rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.63rem;
    font-size: 0.88rem;
    line-height: 1.7;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.debate-textarea:focus {
    border-color: #0284c7;
}

.debate-write-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.btn-debate-submit {
    padding: 0.63rem 1.5rem;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-debate-submit:hover {
    background: #0284c7;
}

/* ==========================================================================
   [토론방 개설 신청 전용 양식 폼 스타일]
   ========================================================================== */
.debate-open-container {
    max-width: var(--container-width, 60rem);
    margin: 0 auto;
    padding: 1.88rem 0.94rem 4.38rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.debate-open-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.88rem;
    margin-bottom: 1.56rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.debate-open-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debate-open-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.debate-open-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2.19rem 1.88rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.debate-form-group {
    margin-bottom: 1.5rem;
}

.debate-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.debate-form-label span.req {
    color: #e11d48;
    margin-left: 0.19rem;
}

.debate-form-label span.sub-guide {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 0.38rem;
}

.debate-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.63rem;
    font-size: 0.91rem;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
}

.debate-form-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.debate-form-textarea {
    width: 100%;
    min-height: 6.25rem;
    padding: 0.88rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.63rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    transition: all 0.2s;
}

.debate-form-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.debate-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .debate-form-grid-2 { grid-template-columns: 1fr; }
}

.debate-box-pro {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1.13rem 1.25rem;
}

.debate-box-con {
    background: #fff1f2;
    border: 1.5px solid #fecdd3;
    border-radius: 0.75rem;
    padding: 1.13rem 1.25rem;
}

.debate-box-title {
    font-size: 0.91rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.38rem;
}
.debate-box-pro .debate-box-title { color: #166534; }
.debate-box-con .debate-box-title { color: #991b1b; }

.debate-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.88rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.btn-debate-cancel {
    padding: 0.75rem 1.5rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-debate-open-submit {
    padding: 0.75rem 2rem;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 0.94rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-debate-open-submit:hover { background: #0369a1; }

/* 뷰 페이지 전용 클래스 */
.debate-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.63rem;
}
.debate-breadcrumb-nav {
    margin-bottom: 0;
}
.btn-debate-open-link {
    padding: 0.5rem 1rem;
    background: #0284c7;
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 0.81rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.31rem;
}
.debate-persona-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #0f172a;
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15,23,42,0.15);
}
.debate-persona-body {
    flex: 1;
    min-width: 16.25rem;
}
.debate-persona-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.31rem;
}
.debate-persona-name {
    font-size: 0.91rem;
    font-weight: 800;
    color: #0f172a;
}
.badge-persona-certified {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
}
.badge-persona-role {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
}
.badge-persona-region {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 0.72rem;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
}
.badge-persona-stance {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 0.5rem;
    border-radius: 0.63rem;
}
.debate-persona-quote {
    font-size: 0.81rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.quote-icon-sm {
    color: #cbd5e1;
    font-size: 0.63rem;
}
.debate-vs-divider {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0 0.25rem;
}
.debate-reason-title {
    color: #0f172a;
    display: block;
    margin-bottom: 0.38rem;
}
.debate-share-label {
    font-size: 0.81rem;
    color: #64748b;
    font-weight: 700;
    margin-right: 0.38rem;
}


/* ==========================================================================
   토론광장 피드 및 찬/반/대안 버블 디자인 시스템 (view_comment 전용)
   ========================================================================== */
.debate-cmt-section {
    margin-top: 2.5rem;
    padding-top: 1.88rem;
    /* border-top: 2px solid #0f172a; */
}

/* .debate-cmt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.94rem;
    margin-bottom: 1.38rem;
} */

.debate-cmt-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.debate-cmt-title-icon {
    color: #0284c7;
}

/* 필터 버튼 바 */
.debate-opinion-filter {
    display: flex;
    gap: 0.38rem;
    flex-wrap: wrap;
}

.btn-filter-op {
    padding: 0.44rem 0.88rem;
    border-radius: 1.25rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.81rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    transition: all 0.15s ease-in-out;
}
.btn-filter-op:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.btn-filter-op.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.btn-filter-op.filter-agree.active {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}
.btn-filter-op.filter-disagree.active {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}
.btn-filter-op.filter-neutral.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
.filter-badge {
    display: inline-block;
    padding: 1px 0.44rem;
    border-radius: 0.75rem;
    font-size: 0.69rem;
    background: rgba(0,0,0,0.06);
}
.btn-filter-op.active .filter-badge {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* 메신저 채팅형 피드 컨테이너 */
.debate-chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.13rem;
    padding: 1.5rem;
    margin-bottom: 2.19rem;
}

.debate-msg-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.debate-msg-row.msg-other {
    align-items: flex-start;
}
.debate-msg-row.msg-other .debate-msg-bubble {
    margin-right: auto;
    border-top-left-radius: 2px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.debate-msg-row.msg-me {
    align-items: flex-end;
}
.debate-msg-row.msg-me .debate-msg-bubble {
    margin-left: auto;
    border-top-right-radius: 2px;
    background: #f8fafc;
    box-shadow: 0 2px 10px rgba(2,132,199,0.06);
}

.debate-msg-bubble {
    max-width: 86%;
    min-width: 18.13rem;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    border: 1.5px solid #e2e8f0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.debate-msg-bubble:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .debate-msg-bubble { max-width: 98%; min-width: auto; width: 100%; }
}

.debate-msg-bubble.is-agree {
    border-left: 0.31rem solid #10b981;
    border-color: #d1fae5;
}
.debate-msg-bubble.is-disagree {
    border-left: 0.31rem solid #f43f5e;
    border-color: #ffe4e6;
}
.debate-msg-bubble.is-neutral {
    border-left: 0.31rem solid #3b82f6;
    border-color: #dbeafe;
}

.debate-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.63rem;
    gap: 0.63rem;
}

.debate-msg-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.debate-msg-nick {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}
.debate-my-badge {
    font-size: 0.69rem;
    font-weight: 800;
    background: #0284c7;
    color: #fff;
    padding: 2px 0.38rem;
    border-radius: 0.25rem;
}

.debate-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.19rem 0.56rem;
    border-radius: 0.38rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: -0.0.19rem;
}
.debate-badge.stance-agree {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.debate-badge.stance-disagree {
    background: #ffe4e6;
    color: #9f1239;
    border: 1px solid #fda4af;
}
.debate-badge.stance-neutral {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.debate-msg-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.debate-msg-body {
    font-size: 0.91rem;
    line-height: 1.7;
    color: #334155;
    word-break: break-word;
    margin-bottom: 0.63rem;
}

.debate-msg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.btn-msg-like {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 0.25rem 0.69rem;
    border-radius: 0.38rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.31rem;
    transition: all 0.15s;
}
.btn-msg-like:hover {
    background: #f1f5f9;
    color: #0284c7;
    border-color: #0284c7;
}

.reply-depth-1 { margin-left: 1.5rem; width: calc(100% - 1.5rem); }
.reply-depth-2 { margin-left: 3rem; width: calc(100% - 3rem); }
.reply-depth-3 { margin-left: 4.5rem; width: calc(100% - 4.5rem); }
.msg-me.reply-depth-1 { margin-right: 1.5rem; margin-left: auto; }
.msg-me.reply-depth-2 { margin-right: 3rem; margin-left: auto; }

.reply-icon {
    color: #94a3b8;
    margin-right: 0.25rem;
    font-size: 0.81rem;
}

/* 댓글 쓰기 폼 */
.debate-write-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.debate-write-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.88rem 0;
}

.debate-stance-choice-group {
    display: flex;
    gap: 0.63rem;
    margin-bottom: 0.75rem;
}

.btn-stance-choice {
    flex: 1;
    padding: 0.63rem 0;
    border-radius: 0.5rem;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-stance-choice.stance-pro.active,
.btn-stance-choice.stance-pro:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}
.btn-stance-choice.stance-con.active,
.btn-stance-choice.stance-con:hover {
    border-color: #f43f5e;
    background: #fff1f2;
    color: #9f1239;
}
.btn-stance-choice.stance-neu.active,
.btn-stance-choice.stance-neu:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.debate-write-textarea {
    width: 100%;
    min-height: 5.63rem;
    padding: 0.88rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.63rem;
    font-size: 0.88rem;
    line-height: 1.6;
    outline: none;
    box-sizing: border-box;
}

.debate-write-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 0.63rem;
}

.debate-guest-input-item {
    padding: 0.38rem 0.63rem;
    border-radius: 0.38rem;
    border: 1px solid #cbd5e1;
}

.btn-debate-cmt-submit {
    padding: 0.63rem 1.5rem;
    background: #0284c7;
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-debate-cmt-submit:hover {
    background: #0369a1;
}

.debate-empty-notice {
    text-align: center;
    padding: 3.13rem 1.25rem;
    color: #94a3b8;
}
.debate-empty-notice-icon {
    font-size: 2.25rem;
    margin-bottom: 0.63rem;
    display: block;
}

.debate-cmt-del-link {
    font-size: 0.75rem;
    color: #ef4444;
    text-decoration: none;
}

/* ==========================================================================
   📱 토론광장 모바일 반응형 전용 스타일 (768px 이하)
   ========================================================================== */
@media (max-width: 768px) {
    .ds-wrap {
        padding: 1.25rem 0.63rem 3rem;
    }
    .ds-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .ds-card {
        padding: 1.13rem;
    }
    .debate-view-title {
        font-size: 1.31rem;
        line-height: 1.35;
    }
    .debate-battle-hero {
        padding: 1.25rem 1rem;
    }
    .debate-vote-btn-grid {
        grid-template-columns: 1fr;
        gap: 0.63rem;
    }
    .btn-vote-action-pro,
    .btn-vote-action-con {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }
    .debate-sub-tab-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .debate-sub-tab-nav::-webkit-scrollbar {
        display: none;
    }
}



