.comments-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comments-container {
    display: flex;
    gap: 32px;
}

/* 댓글 위젯 영역: 타이틀 제외하고 댓글 리스트만 스크롤 */
.comment-widget-shell {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    position: relative;
    overflow: visible;
}

#comment-widget-GqNGPfSQeSXK1j4s3EqK {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px; /* 스크롤바 생겨도 내용이 붙지 않도록 여유 */
    box-sizing: border-box;
}

#comment-widget-GqNGPfSQeSXK1j4s3EqK::-webkit-scrollbar {
    width: 8px;
}

#comment-widget-GqNGPfSQeSXK1j4s3EqK::-webkit-scrollbar-track {
    background: transparent;
}

#comment-widget-GqNGPfSQeSXK1j4s3EqK::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

#comment-widget-GqNGPfSQeSXK1j4s3EqK::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Section header confetti effect for comment section only */
.comment-widget-shell .section-header {
    position: relative;
    padding: 10px 14px;
    isolation: isolate;
}

.comment-widget-shell .section-header > div {
    position: relative;
    z-index: 1;
}

.comment-widget-shell .section-header::after {
    content: "";
    position: absolute;
    inset: -6px 0 -4px 0;
    background-image:
        radial-gradient(circle at 20% 30%, #ff8ba7 0 4px, transparent 5px),
        radial-gradient(circle at 70% 40%, #7dd3fc 0 3px, transparent 5px),
        radial-gradient(circle at 45% 70%, #fcd34d 0 3px, transparent 5px),
        radial-gradient(circle at 80% 65%, #a5b4fc 0 4px, transparent 5px),
        radial-gradient(circle at 30% 80%, #34d399 0 3px, transparent 5px);
    background-repeat: repeat;
    background-size: 90px 140px;
    opacity: 0.35;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
    animation:
        comment-confetti-fall 10s linear infinite,
        comment-confetti-sway 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.comment-widget-shell .section-title,
.comment-widget-shell .section-subtitle {
    position: relative;
    z-index: 2;
}

@keyframes comment-confetti-fall {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 160px;
    }
}

@keyframes comment-confetti-sway {
    0% {
        transform: translate3d(0, -2px, 0) rotate(-0.5deg);
    }
    50% {
        transform: translate3d(-10px, 4px, 0) rotate(1deg);
    }
    100% {
        transform: translate3d(0, -2px, 0) rotate(-0.5deg);
    }
}

.comments {
    flex: 1;
    min-width: 500px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    margin-bottom: 20px;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.today-btn {
    padding: 4px 8px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.today-btn:hover {
    background: #1e40af;
}

.comments-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.comments-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.comments-day-header {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 12px 0;
    background: #f8fafc;
    box-sizing: border-box;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;

}

.comments-day-header:nth-child(7n) {
    border-right: none;
}

.comments-day-header.sunday {
    color: #ef4444;
}

.comments-day-header.saturday {
    color: #3b82f6;
}

.comments-day {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    font-size: 14px;
    cursor: default;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    overflow: hidden;
    min-height: 80px;
    height: auto;
    box-sizing: border-box;
}

.comments-day:nth-child(7n) {
    border-right: none;
}

.comments-day:nth-last-child(-n+7) {
    border-bottom: none;
}

#commentsDays {
    display: contents;
}

.comments-day:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.comments-day.has-event {
    background: #f1f5ff;
    box-shadow: rgba(37, 99, 235, 0.2);
    font-weight: 600;
    border-color: #e2e8f0;
}

.comments-day.today {
    background: #103585;
    color: white;
    font-weight: 700;
    box-shadow: #93c5fd;
}

.comments-day.other-month {
    color: #cbd5e1;
}

.comments-grid> :nth-child(7n) {
    border-right: none;
}

 #ganttChart .gantt-inner {
     position: relative;
 }
 
 #ganttChart .gantt-inner::before {
     content: '★ 06/18 창립기념일';
     position: absolute;
     top: 6px;
     left: calc(160px + 873px);
     transform: translateX(10px);
     background: rgba(255, 255, 255, 0.98);
     color: #ef4444;
     border: 1px solid rgba(239, 68, 68, 0.5);
     border-radius: 8px;
     padding: 4px 8px;
     font-size: 12px;
     font-weight: 700;
     line-height: 1.2;
     white-space: nowrap;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     pointer-events: none;
     z-index: 6;
 }
 
 #ganttChart .gantt-inner::after {
     content: '';
     position: absolute;
     top: 0;
     bottom: 0;
     left: calc(160px + 873px);
     border-left: 2px dashed #ef4444;
     opacity: 0.9;
     pointer-events: none;
     z-index: 5;
 }
