
.pcm-wrap,
.pblc-main-wrap {
    height: auto !important;
    overflow: visible !important;
}

.pcm-wrap {
    /* max-width: 1320px;
    margin: 0 auto;
    padding: 28px 20px 80px; */
    width:100%;
}

.pcm-page-head,
.pcm-stat-row,
.pcm-section,
.pcm-calendar-card,
.pcm-info-card,
.pcm-discussion-card,
.pcm-board-item,
.pcm-modal {
    box-sizing: border-box;
}

.pcm-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
}

.pcm-breadcrumb {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.pcm-page-title {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
}

.pcm-page-desc,
.pcm-section-sub {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.pcm-head-actions { flex-shrink: 0; }

.pcm-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.pcm-stat-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pcm-stat-box strong {
    font-size: 28px;
    color: #2563eb;
}

.pcm-stat-box span {
    color: #6b7280;
    font-size: 13px;
}

.pcm-section {
    margin-bottom: 26px;
}

.pcm-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 14px;
}

.pcm-section-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.pcm-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pcm-calendar-title {
    min-width: 110px;
    font-weight: 700;
    text-align: center;
}

.pcm-calendar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: visible;
}

/* #pblcScheduleCalendar {
    min-height: 760px;
    height: 760px;
} */

.pcm-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.pcm-btn:hover { opacity: 0.92; }
.pcm-btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.pcm-btn-ghost { background: #fff; color: #334155; }
.pcm-btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }

.pcm-card-grid {
    display: grid;
    gap: 16px;
}

.pcm-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pcm-card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.pcm-info-card,
.pcm-discussion-card,
.pcm-board-list,
.pcm-board-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pcm-info-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 238px;
}

.pcm-card-top,
.pcm-discussion-head,
.pcm-board-right,
.pcm-chip-row,
.pcm-foot-right,
.pcm-modal-head,
.pcm-modal-foot,
.pcm-form-cols,
.pcm-form-inline,
.pcm-board-filter {
    display: flex;
    align-items: center;
}

.pcm-card-top { justify-content: space-between; }
.pcm-card-title { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 800; word-break: break-word; }
.pcm-card-desc { margin: 0; color: #6b7280; line-height: 1.7; min-height: 54px; }
.pcm-card-meta { margin-top: auto; font-size: 13px; color: #64748b; }
.pcm-card-actions { margin-top: 8px; }

.pcm-badge,
.pcm-chip,
.pcm-status-chip,
.pcm-tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.pcm-badge { padding: 6px 10px; }
.pcm-badge-survey { background: #dbeafe; color: #1d4ed8; }
.pcm-badge-poll { background: #ede9fe; color: #6d28d9; }
.pcm-badge-quiz { background: #dcfce7; color: #15803d; }
.pcm-badge-edu { background: #fff7ed; color: #c2410c; }
.pcm-badge-discussion { background: #f3e8ff; color: #7e22ce; }

.pcm-status-chip { padding: 6px 12px; background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.pcm-chip-row { gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pcm-chip { padding: 5px 10px; background: #eff6ff; color: #2563eb; }

.pcm-discussion-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pcm-discussion-card {
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.25fr);
    gap: 20px;
}

.pcm-discussion-head { justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pcm-discussion-head h4 { margin: 0; font-size: 24px; font-weight: 800; }
.pcm-discussion-card .pcm-discussion-head h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcm-discussion-main p {
    margin: 0 0 12px;
    color: #6b7280;
    line-height: 1.8;

    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;

    white-space: pre-wrap;
    word-break: break-word;
}
.pcm-discussion-side { background: #f8fafc; border-radius: 16px; padding: 16px; border: 1px solid #e2e8f0; }
.pcm-side-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.pcm-topic-link { display: block; padding: 10px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.pcm-topic-link span { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.pcm-topic-link strong { font-size: 14px; line-height: 1.5; }

.pcm-board-filter { gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pcm-tag-btn { padding: 8px 14px; border: 1px solid #cbd5e1; background: #fff; color: #475569; cursor: pointer; }
.pcm-tag-btn.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }

.pcm-board-list { overflow: hidden; }
.pcm-board-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    text-decoration: none;
    color: inherit;
}
.pcm-board-item:last-child { border-bottom: 0; }
.pcm-board-left { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.pcm-board-rank { width: 26px; height: 26px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.pcm-board-title { font-weight: 800; margin-bottom: 6px; }
.pcm-board-excerpt { color: #6b7280; font-size: 14px; }
.pcm-board-right { gap: 10px; color: #64748b; font-size: 13px; flex-shrink: 0; }

.pcm-empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
}

.pcm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.45);
    padding: 36px 16px;
    overflow: auto;
}

.pcm-modal-overlay.is-open {
    display: block;
}

.pcm-modal {
    background: #fff;
    border-radius: 24px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}
.pcm-modal-md { width: 640px; max-width: 100%; }
.pcm-modal-lg { width: 900px; max-width: 100%; }
.pcm-modal-head,
.pcm-modal-foot { justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #e5e7eb; }
.pcm-modal-foot { border-bottom: 0; border-top: 1px solid #e5e7eb; }
.pcm-modal-head h4 { margin: 0; font-size: 22px; font-weight: 800; }
.pcm-modal-close { border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: #64748b; }
.pcm-modal-body { padding: 22px; }
.pcm-modal-list { display: flex; flex-direction: column; gap: 12px; }
.pcm-modal-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; color: inherit; border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px 16px; }
.pcm-modal-row strong { display: block; margin-bottom: 6px; font-size: 16px; }
.pcm-modal-row p { margin: 0; color: #6b7280; }

.pcm-form-row { margin-bottom: 16px; }
.pcm-form-row label { display: block; margin-bottom: 6px; font-weight: 800; }
.pcm-form-row input[type="text"],
.pcm-form-row input[type="datetime-local"],
.pcm-form-row textarea,
.pcm-form-row select,
.pcm-form-row input[type="color"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: 14px;
}
.pcm-form-row textarea { min-height: 90px; resize: vertical; }
.pcm-form-cols { gap: 12px; }
.pcm-form-cols > div { flex: 1; }
.pcm-form-inline { gap: 12px; margin-bottom: 16px; }
.pcm-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
/* 체크박스가 강제로 숨겨지거나 스타일이 깨지는 것을 방지 */
.pcm-checkbox input[type="checkbox"] {
    -webkit-appearance: checkbox !important; /* 크롬, 사파리 */
    -moz-appearance: checkbox !important;    /* 파이어폭스 */
    appearance: checkbox !important;         /* 표준 */
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    visibility: visible !important;
    position: static !important; /* 혹시 absolute로 날아갔을 경우 대비 */
    opacity: 1 !important;
}

@media (max-width: 1100px) {
    .pcm-card-grid-4,
    .pcm-card-grid-3,
    .pcm-stat-row,
    .pcm-discussion-card {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .pcm-wrap { padding: 20px 12px 56px; }
    .pcm-page-head,
    .pcm-section-head,
    .pcm-board-item,
    .pcm-discussion-card,
    .pcm-discussion-head {
        flex-direction: column;
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .pcm-card-grid-4,
    .pcm-card-grid-3,
    .pcm-stat-row { grid-template-columns: 1fr; }
    .pcm-board-right { flex-wrap: wrap; }
    .pcm-toolbar { justify-content: flex-start; }
    /* #pblcScheduleCalendar { height: 760px; min-height: 760px; } */
}

.pblc-card-meta + .pblc-card-meta {
    margin-top: 4px;
}

.pblc-modal-item-meta + .pblc-modal-item-meta {
    margin-top: 4px;
}


/* =========================================================
 * BD_pblcCommSchedule.jsp old-class bridge
 * 일정 include 내부가 예전 class명을 써도 pcm 톤으로 보이게 맞춤
 * ========================================================= */
.pblc-schedule-wrap {
    display: block;
    width: 100%;
}

.pblc-schedule-wrap .schedule-top-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 14px;
}

.pblc-schedule-wrap .schedule-top-area h2,
.pblc-schedule-wrap .schedule-top-area h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.pblc-schedule-wrap .schedule-desc {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.pblc-schedule-wrap .schedule-top-btns,
.pblc-schedule-wrap .schedule-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pblc-schedule-wrap .schedule-btn,
.pblc-schedule-wrap button.schedule-btn,
.pblc-schedule-wrap .schedule-top-btns button,
.pblc-schedule-wrap .schedule-toolbar button {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.pblc-schedule-wrap .schedule-btn.primary,
.pblc-schedule-wrap .schedule-btn.schedule-btn-primary,
.pblc-schedule-wrap .schedule-top-btns .primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pblc-schedule-wrap .schedule-btn.danger,
.pblc-schedule-wrap .schedule-btn.schedule-btn-danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.pblc-schedule-wrap .schedule-btn:hover {
    opacity: 0.92;
}

/* 캘린더 박스 */
/* .pblc-schedule-wrap #pblcScheduleCalendar, */
.pblc-schedule-wrap .schedule-calendar,
.pblc-schedule-wrap .calendar-wrap {
    min-height: 760px !important;
    height: 760px !important;
    width: 100%;
}

/* 일정 상세/등록 모달 old class bridge */
.pblc-schedule-wrap .schedule-modal-overlay,
.pblc-schedule-wrap .schedule-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.45);
    padding: 36px 16px;
    overflow: auto;
}

.pblc-schedule-wrap .schedule-modal-overlay.is-open,
.pblc-schedule-wrap .schedule-modal-bg.is-open,
.pblc-schedule-wrap .schedule-modal-overlay.open,
.pblc-schedule-wrap .schedule-modal-bg.open {
    display: block;
}

.pblc-schedule-wrap .schedule-modal,
.pblc-schedule-wrap .schedule-modal-box,
.pblc-schedule-wrap .schedule-popup {
    background: #fff;
    border-radius: 24px;
    margin: 0 auto;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.pblc-schedule-wrap .schedule-modal-head,
.pblc-schedule-wrap .schedule-modal-header,
.pblc-schedule-wrap .schedule-popup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.pblc-schedule-wrap .schedule-modal-head h4,
.pblc-schedule-wrap .schedule-modal-header h4,
.pblc-schedule-wrap .schedule-popup-head h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.pblc-schedule-wrap .schedule-modal-body,
.pblc-schedule-wrap .schedule-popup-body {
    padding: 22px;
}

.pblc-schedule-wrap .schedule-modal-foot,
.pblc-schedule-wrap .schedule-modal-footer,
.pblc-schedule-wrap .schedule-popup-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid #e5e7eb;
}

.pblc-schedule-wrap .schedule-modal-close,
.pblc-schedule-wrap .schedule-popup-close {
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

/* 폼 */
.pblc-schedule-wrap .schedule-form-row,
.pblc-schedule-wrap .form-row {
    margin-bottom: 16px;
}

.pblc-schedule-wrap .schedule-form-row label,
.pblc-schedule-wrap .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    color: #111827;
}

.pblc-schedule-wrap .schedule-form-row input[type="text"],
.pblc-schedule-wrap .schedule-form-row input[type="datetime-local"],
.pblc-schedule-wrap .schedule-form-row textarea,
.pblc-schedule-wrap .schedule-form-row select,
.pblc-schedule-wrap .schedule-form-row input[type="color"],
.pblc-schedule-wrap .form-row input[type="text"],
.pblc-schedule-wrap .form-row input[type="datetime-local"],
.pblc-schedule-wrap .form-row textarea,
.pblc-schedule-wrap .form-row select,
.pblc-schedule-wrap .form-row input[type="color"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: 14px;
    background: #fff;
}

.pblc-schedule-wrap textarea {
    min-height: 90px;
    resize: vertical;
}

.pblc-schedule-wrap .schedule-form-cols,
.pblc-schedule-wrap .form-cols {
    display: flex;
    gap: 12px;
}

.pblc-schedule-wrap .schedule-form-cols > div,
.pblc-schedule-wrap .form-cols > div {
    flex: 1;
}

.pblc-schedule-wrap .schedule-form-inline,
.pblc-schedule-wrap .form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pblc-schedule-wrap .schedule-checkbox,
.pblc-schedule-wrap .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* TOAST UI calendar 보정 */
.pblc-schedule-wrap .toastui-calendar-panel,
.pblc-schedule-wrap .toastui-calendar-layout,
.pblc-schedule-wrap .toastui-calendar-week-view,
.pblc-schedule-wrap .toastui-calendar-month-view {
    background: #fff;
}

.pblc-schedule-wrap .toastui-calendar-popup-container {
    z-index: 100000 !important;
}

@media (max-width: 820px) {
    .pblc-schedule-wrap .schedule-top-area,
    .pblc-schedule-wrap .schedule-form-cols,
    .pblc-schedule-wrap .form-cols,
    .pblc-schedule-wrap .schedule-modal-foot,
    .pblc-schedule-wrap .schedule-modal-footer,
    .pblc-schedule-wrap .schedule-popup-foot {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
 * Schedule modal design
 * ========================================================= */
.schedule-design-modal {
    border: 1px solid #e5e7eb;
}

.schedule-modal-head {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.schedule-modal-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #2563eb;
    margin-bottom: 6px;
}

.schedule-modal-head h4 {
    margin: 0;
}

.schedule-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-preview-card {
    border-radius: 18px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    padding: 18px 18px 16px;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
    transition: all 0.15s ease;
}

.schedule-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.schedule-preview-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-word;
}

.schedule-preview-meta {
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.7;
}

.schedule-color-section {
    margin-top: 4px;
    margin-bottom: 4px;
}

.schedule-color-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    color: #111827;
}

.schedule-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.schedule-color-chip {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.schedule-color-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.schedule-color-chip.is-active {
    border-color: #111827;
    transform: scale(1.08);
}

.schedule-color-custom {
    margin-top: 4px;
}

.schedule-modal-foot {
    background: #fcfdff;
}

#scheduleModal .pcm-form-row input[type="text"],
#scheduleModal .pcm-form-row input[type="datetime-local"],
#scheduleModal .pcm-form-row textarea,
#scheduleModal .pcm-form-row input[type="color"] {
    background: #fff;
}

#scheduleModal .pcm-form-row input:focus,
#scheduleModal .pcm-form-row textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 820px) {
    .schedule-preview-title {
        font-size: 19px;
    }

    .schedule-color-palette {
        gap: 8px;
    }

    .schedule-color-chip {
        width: 32px;
        height: 32px;
    }
}

/* TOAST UI 일정 제목 가독성 보정 */
.toastui-calendar-weekday-event,
.toastui-calendar-weekday-event-title,
.toastui-calendar-month-more-title,
.toastui-calendar-event-title {
    opacity: 1 !important;
}

.toastui-calendar-weekday-event-title {
    font-weight: 700 !important;
}

/* 일정 제목 가독성 보정 */
#pblcScheduleCalendar .toastui-calendar-event-title,
#pblcScheduleCalendar .toastui-calendar-weekday-event-title,
#pblcScheduleCalendar .toastui-calendar-weekday-event-time {
    color: inherit !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.pcm-section-head-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pcm-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pcm-empty-card {
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #fff;
    padding: 24px;
}

.pcm-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.pcm-empty-desc {
    font-size: 14px;
    color: #6b7280;
}

.pcm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.pcm-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.pcm-modal-dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    margin: 32px auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.pcm-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e5eaf3;
}

.pcm-modal-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pcm-modal-body {
    padding: 18px 20px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.pcm-modal-list {
    display: grid;
    gap: 12px;
}

.pcm-modal-list-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.pcm-modal-list-item:hover {
    background: #f8fbff;
    border-color: #bfd0ec;
}

.pcm-modal-list-main {
    min-width: 0;
}

.pcm-modal-list-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.pcm-modal-list-desc {
    font-size: 13px;
    color: #6b7280;
}

.pcm-modal-list-meta {
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
}

.schedule-top-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-top-btns .schedule-desc {
    margin: 0;
    white-space: nowrap;
    color: #6b7280;
    font-size: 14px;
}

.pcm-discussion-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pcm-empty-sm {
    padding: 16px;
    border-radius: 14px;
    font-size: 13px;
}

.pcm-topic-link-more strong {
    color: #2563eb;
}

.pcm-topic-link-more span {
    color: #64748b;
}

.pcm-discussion-side .pcm-topic-link:last-child {
    margin-bottom: 0;
}

.pcm-discussion-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pcm-discussion-main p {
    margin: 0 0 12px;
    color: #6b7280;
    line-height: 1.8;
}

.pcm-discussion-main .pcm-chip-row {
    margin-top: 2px;
    margin-bottom: 12px;
}

.pcm-discussion-actions {
    margin-top: 0;
}

.pcm-discussion-actions .pcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
}

.pcm-discussion-side {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.pcm-discussion-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pcm-discussion-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pcm-topic-link {
    display: block;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
    min-height: 92px;
}

.pcm-topic-link span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.pcm-topic-link strong {
    display: block;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 800;
    word-break: break-word;
}

.pcm-topic-link-more {
    grid-column: 1 / -1;
}

.pcm-topic-link-more strong {
    color: #2563eb;
}

.pcm-empty-sm {
    padding: 16px;
    border-radius: 14px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .pcm-discussion-card {
        grid-template-columns: 1fr;
    }

    .pcm-discussion-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .pcm-discussion-links-grid {
        grid-template-columns: 1fr;
    }
}

.pcm-discussion-main p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 상단 정렬 */
.pcm-discussion-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* 더보기 링크 */
.pcm-more-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.pcm-more-link:hover {
    text-decoration: underline;
}

/* 카드 밀도 낮추기 (핵심) */
.pcm-topic-link.compact {
    padding: 10px 12px;
    min-height: auto;
    border-radius: 12px;
}

/* 날짜 */
.pcm-topic-date {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

/* 제목 */
.pcm-topic-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

/* 기존 높이 줄이기 */
.pcm-topic-link {
    min-height: auto !important;
}