/* ══════════════════════════════════════════
   Simple Pick — 올인원 리사이저블 레이아웃
   ══════════════════════════════════════════ */

/* ═══ 셸 ═══ */
.spk-shell {
    display: flex;
    height: calc(100vh - 52px - 36px);
    overflow: hidden;
}
.spk-shell.dragging-active {
    user-select: none;
    -webkit-user-select: none;
}
.spk-shell.dragging-active iframe,
.spk-shell.dragging-active .spk-center,
.spk-shell.dragging-active .spk-right {
    pointer-events: none;
}

/* ═══ 좌측 패널 ═══ */
.spk-left {
    flex-shrink: 0;
    background: #eef0f4;
    border-right: 1px solid #dde0e6;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 360px;
}
.spk-panel-enter { animation: spk-slide-in .2s ease-out; }
.spk-panel-leave { animation: spk-slide-out .15s ease-in; }
@keyframes spk-slide-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spk-slide-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-20px); } }

.spk-left-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 12px;
    gap: 10px;
}
.spk-left-inner::-webkit-scrollbar { width: 8px; }
.spk-left-inner::-webkit-scrollbar-track { background: transparent; }
.spk-left-inner::-webkit-scrollbar-thumb { background: #c1c8d0; border: 2px solid transparent; background-clip: padding-box; border-radius: 4px; }
.spk-left-inner::-webkit-scrollbar-thumb:hover { background: #94a3b8; border-color: transparent; background-clip: padding-box; }

/* 접힌 상태 세로 탭 */
.spk-left-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    width: 32px;
    background: #f9fafb;
    border: none;
    border-right: 1px solid #e5e7eb;
    color: #94a3b8;
    cursor: pointer;
    transition: all .12s;
}
.spk-left-tab:hover { background: #f3f4f6; color: #374151; }
.spk-left-tab-label {
    writing-mode: vertical-rl;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
}

/* ── 업로드 카드 ── */
.spk-upload-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    flex-shrink: 0;
}
.spk-dropzone {
    border: 1.5px dashed #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all .15s;
    background: #fafbfc;
    margin-bottom: 0;
}
.spk-dropzone:hover { border-color: #e6007e; background: #fdf2f8; }
.spk-dropzone.dragover { border-color: #e6007e; background: rgba(230,0,126,.06); }
.spk-dz-row { display: flex; align-items: center; gap: 10px; }
.spk-dz-row svg { color: #c4c8cf; flex-shrink: 0; transition: color .15s; }
.spk-dropzone:hover .spk-dz-row svg { color: #e6007e; }
.spk-dz-title { font-size: 12px; font-weight: 700; color: #374151; line-height: 1.3; }
.spk-dz-sub { font-size: 10px; color: #9ca3af; }
.spk-dropzone input[type="file"] { display: none; }

/* 인라인 통계 행 */
.spk-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.spk-status-text {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.spk-status-done { color: #059669; font-weight: 700; }
.spk-status-sep { color: #cbd5e1; margin: 0 2px; }
.spk-status-fail { color: #ef4444; font-weight: 700; }

/* 소형 분석 버튼 */
.spk-analyze-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: #e6007e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background .12s, transform .08s;
    white-space: nowrap;
    flex-shrink: 0;
}
.spk-analyze-mini:hover { background: #d1006f; }
.spk-analyze-mini:active { transform: scale(.97); }
.spk-analyze-mini:disabled { opacity: .5; cursor: not-allowed; }

/* 슬림 진행 바 */
.spk-slim-bar {
    height: 3px;
    background: #f0f1f3;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}
.spk-slim-fill {
    height: 100%;
    background: linear-gradient(90deg, #e6007e, #ff6b9d);
    border-radius: 2px;
    transition: width .3s;
}

/* ── 필터 영역 ── */
.spk-filter-zone {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.spk-filter-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f1f3;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
    box-sizing: border-box;
}
.spk-filter-head svg { color: #94a3b8; flex-shrink: 0; }
.spk-filter-reset {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 22px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: #94a3b8;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s;
}
.spk-filter-reset:hover { color: #e6007e; border-color: #e6007e; }
/* display:none(x-show) 대신 공간 유지 — 레이아웃 덜컹 방지 */
.spk-filter-reset--idle {
    visibility: hidden;
    pointer-events: none;
}
.spk-filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
.spk-filter-body::-webkit-scrollbar { width: 3px; }
.spk-filter-body::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

/* 필터 섹션 공통 */
.spk-f-section { margin-bottom: 14px; }
.spk-f-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.spk-f-select {
    width: 100%;
    padding: 6px 26px 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .12s;
}
.spk-f-select:focus { border-color: #e6007e; box-shadow: 0 0 0 2px rgba(230,0,126,.08); }

/* 세그먼트 컨트롤 (기간) */
.spk-segment {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
}
.spk-seg-btn {
    flex: 1;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all .12s;
    text-align: center;
}
.spk-seg-btn:last-child { border-right: none; }
.spk-seg-btn:hover { background: #f1f5f9; color: #374151; }
.spk-seg-btn.active { background: #e6007e; color: #fff; font-weight: 700; }
/* 날짜 범위 */
.spk-date-range {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.spk-date-input {
    flex: 1;
    min-width: 0;
    max-width: 110px;
    padding: 4px 4px;
    font-size: 10.5px;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.spk-date-input:focus { border-color: #e6007e; box-shadow: 0 0 0 2px rgba(230,0,126,.08); }
.spk-date-sep { font-size: 10px; color: #94a3b8; font-weight: 500; flex-shrink: 0; }
/* 입력 요소 border-radius 통일 */
.spk-f-select, .spk-date-input, .spk-segment { border-radius: 8px; }

/* 등급 칩 */
.spk-grade-chips { display: flex; gap: 4px; }
.spk-grade-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 5px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    transition: all .12s;
}
.spk-grade-chip:hover { border-color: #cbd5e1; }
.spk-gc-s.active { background: #fdf2f8; border-color: #e6007e; color: #e6007e; }
.spk-gc-a.active { background: #eff6ff; border-color: #2563eb; color: #2563eb; }
.spk-gc-b.active { background: #ecfdf5; border-color: #059669; color: #059669; }
.spk-gc-c.active { background: #fff7ed; border-color: #c2410c; color: #c2410c; }
.spk-gc-d.active { background: #f3f4f6; border-color: #6b7280; color: #6b7280; }

/* pill 그룹 (U+ 서비스 등) */
.spk-pill-group { display: flex; flex-wrap: wrap; gap: 4px; }
.spk-pill {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}
.spk-pill:hover { border-color: #cbd5e1; color: #374151; }
.spk-pill.active { background: #fdf2f8; border-color: #e6007e; color: #e6007e; }

/* 더미 제외 체크박스 */
.spk-f-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.45;
}
.spk-f-check input {
    margin-top: 3px;
    accent-color: #e6007e;
    cursor: pointer;
    flex-shrink: 0;
}
.spk-f-check-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.spk-f-check-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.spk-f-check-hint {
    font-weight: 500;
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.35;
}

/* ═══ 좌우 리사이즈 핸들 ═══ */
.spk-resize {
    width: 5px;
    flex-shrink: 0;
    cursor: col-resize;
    position: relative;
    z-index: 10;
    background: transparent;
    transition: background .15s;
}
.spk-resize::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -6px;
    right: -6px;
    z-index: -1;
    pointer-events: none;
}
.spk-resize::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
    transition: all .15s;
}
.spk-resize:hover::after,
.spk-resize.dragging::after {
    width: 3px;
    left: 1px;
    background: #e6007e;
    border-radius: 2px;
}
.spk-resize:hover,
.spk-resize.dragging { background: rgba(230,0,126,.03); }

/* 리사이즈 핸들 내 접기 버튼 */
.spk-resize-collapse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #b0b7c3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .18s;
    z-index: 11;
    padding: 0;
}
.spk-resize:hover .spk-resize-collapse { opacity: 1; }
.spk-resize-collapse:hover {
    border-color: #e6007e;
    color: #e6007e;
    background: #fdf2f8;
}

/* ═══ 중앙 (제안 목록 + 상세) ═══ */
.spk-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: #f8fafc;
}

/* 검색 바 */
.spk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f1f3;
    flex-shrink: 0;
}
.spk-search {
    flex: 1;
    max-width: 320px;
    padding: 7px 10px 7px 32px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3E%3C/svg%3E") no-repeat 9px center;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    outline: none;
    transition: border-color .12s;
}
.spk-search:focus { border-color: #e6007e; box-shadow: 0 0 0 2px rgba(230,0,126,.08); }
.spk-result-count {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}
.spk-sort-select {
    padding: 6px 26px 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* 픽 필터 버튼 */
.spk-pick-filter-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #e6007e;
    background: #fdf2f8;
    border: 1px solid #fce7f3;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.spk-pick-filter-btn:hover {
    background: #fce7f3;
    border-color: #e6007e;
}
.spk-pick-filter-btn.active {
    background: #e6007e;
    border-color: #e6007e;
    color: #fff;
}
.spk-pick-filter-btn:active { transform: scale(.97); }
.spk-pick-filter-btn svg { flex-shrink: 0; }

/* 테이블 */
.spk-table-wrap {
    flex: 1;
    overflow: auto;
    min-height: 0;
}
.spk-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.spk-table-wrap::-webkit-scrollbar-track { background: transparent; }
.spk-table-wrap::-webkit-scrollbar-thumb { background: #b8c0cc; border: 2px solid transparent; background-clip: padding-box; border-radius: 5px; }
.spk-table-wrap::-webkit-scrollbar-thumb:hover { background: #8b95a5; border-color: transparent; background-clip: padding-box; }
.spk-table-wrap::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    height: 28px;
    background: linear-gradient(transparent, rgba(255,255,255,.9));
    pointer-events: none;
}

table.spk-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.spk-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #fafbfc;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}
table.spk-table td {
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #eef0f2;
    white-space: nowrap;
    line-height: 1.45;
}
table.spk-table tbody tr:nth-child(even) { background: #fafbfc; }
table.spk-table tbody tr { cursor: pointer; transition: background .08s; }
table.spk-table tbody tr:hover { background: #fdf2f8; }
table.spk-table tbody tr.spk-row-selected {
    background: rgba(37, 99, 235, .06);
    box-shadow: inset 3px 0 0 #2563eb;
}
table.spk-table tbody tr.spk-row-selected:hover { background: rgba(37, 99, 235, .10); }
table.spk-table tbody tr.spk-row-picked {
    background: rgba(230, 0, 126, .04);
    box-shadow: inset 3px 0 0 #e6007e;
}
table.spk-table tbody tr.spk-row-picked:hover { background: rgba(230, 0, 126, .08); }
table.spk-table tbody tr.spk-row-picked.spk-row-selected {
    background: rgba(37, 99, 235, .06);
    box-shadow: inset 3px 0 0 #2563eb, inset 6px 0 0 #e6007e;
}
table.spk-table tbody tr.spk-row-picked.spk-row-selected:hover { background: rgba(37, 99, 235, .10); }

.spk-td-id { font-weight: 700; color: #64748b; font-variant-numeric: tabular-nums; font-size: 12px; }
.spk-td-score { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; }
.spk-td-topic { padding-top: 7px; padding-bottom: 7px; }
.spk-topic-pill {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #be185d;
    background: #fdf2f8;
    border-radius: 10px;
    white-space: nowrap;
    border: 1px solid rgba(190, 24, 93, 0.14);
    box-shadow: 0 1px 2px rgba(190, 24, 93, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.spk-td-uplus { text-align: center; }
.spk-uplus-pill {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.spk-uplus-pill.existing {
    background: #fdf2f8;
    color: #be185d;
    border-color: rgba(190, 24, 93, 0.16);
    box-shadow: 0 1px 2px rgba(190, 24, 93, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.spk-uplus-pill.new {
    background: #eff6ff;
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.09), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.spk-td-muted { color: #d1d5db; font-size: 11px; }
.spk-td-summary { color: #1e293b; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.spk-td-type {
    font-size: 12px;
    color: #6b7280;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spk-td-date { font-size: 11.5px; color: #9ca3af; font-variant-numeric: tabular-nums; }

/* 등급 도트 */
.spk-grade-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.spk-gd-s { background: #e6007e; }
.spk-gd-a { background: #2563eb; }
.spk-gd-b { background: #059669; }
.spk-gd-c { background: #f59e0b; }
.spk-gd-d { background: #9ca3af; }

/* 점수 바 */
.spk-score-wrap { display: inline-flex; align-items: center; gap: 3px; }
.spk-score-bar { display: inline-block; width: 32px; height: 4px; background: #e5e7eb; border-radius: 2px; vertical-align: middle; }
.spk-score-fill { display: block; height: 100%; border-radius: 2px; transition: width .3s; }
.spk-sf-s { background: #e6007e; }
.spk-sf-a { background: #2563eb; }
.spk-sf-b { background: #059669; }
.spk-sf-c { background: #f59e0b; }
.spk-sf-d { background: #d1d5db; }

/* Pick 버튼 (테이블 내) */
.spk-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 54px;
    justify-content: center;
    padding: 2px 6px;
    font-size: 9.5px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
}
.spk-pick-btn:hover { background: #fdf2f8; color: #e6007e; border-color: #f9d4e8; }
.spk-pick-btn.picked {
    border-color: #e6007e;
    color: #e6007e;
    background: #fdf2f8;
    font-weight: 700;
}
.spk-pick-btn.picked:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* 페이지네이션 */
.spk-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
    box-shadow: 0 -1px 4px rgba(0,0,0,.03);
    flex-shrink: 0;
}
.spk-page-info { font-size: 12px; color: #64748b; font-weight: 500; }
.spk-page-btns { display: flex; align-items: center; gap: 3px; }
.spk-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all .12s;
}
.spk-page-btn:hover:not(:disabled) { border-color: #cbd5e1; color: #374151; background: #f8fafc; }
.spk-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.spk-page-arrow { min-width: 28px; color: #94a3b8; }
.spk-page-arrow:hover:not(:disabled) { color: #374151; }
.spk-page-num.active {
    background: #e6007e;
    color: #fff;
    border-color: #e6007e;
    pointer-events: none;
}

/* 빈 상태 */
.spk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    color: #c4c8cf;
    padding: 40px;
}
.spk-empty p { font-size: 12.5px; font-weight: 500; }

/* ═══ 상세 패널 헤더 ═══ */
.spk-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f1f3;
    background: #fff;
    flex-shrink: 0;
    gap: 8px;
}
.spk-detail-head-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e6007e;
}
.spk-detail-head-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}
.spk-detail-head-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.spk-detail-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #e6007e;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s;
}
.spk-detail-pick-btn:hover { background: #d1006f; }
.spk-detail-pick-btn.picked { background: #fdf2f8; border: 1px solid #f9a8d4; color: #e6007e; }
.spk-detail-pick-btn.picked:hover { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.spk-detail-pick-btn.picked:hover svg { stroke: #ef4444; }
.spk-detail-icons { display: inline-flex; position: relative; width: 12px; height: 12px; }
.spk-di-check, .spk-di-cross { position: absolute; inset: 0; transition: opacity .12s; }
.spk-di-cross { opacity: 0; }
.spk-detail-pick-btn.picked:hover .spk-di-check { opacity: 0; }
.spk-detail-pick-btn.picked:hover .spk-di-cross { opacity: 1; }

.spk-detail-body { flex: 1; padding: 16px; overflow-y: auto; overflow-x: hidden; }
.spk-detail-body::-webkit-scrollbar { width: 10px; }
.spk-detail-body::-webkit-scrollbar-track { background: transparent; }
.spk-detail-body::-webkit-scrollbar-thumb { background: #b8c0cc; border: 2px solid transparent; background-clip: padding-box; border-radius: 5px; }
.spk-detail-body::-webkit-scrollbar-thumb:hover { background: #8b95a5; border-color: transparent; background-clip: padding-box; }

.spk-detail-title { font-size: 15px; font-weight: 800; color: #1e293b; margin-bottom: 2px; line-height: 1.45; }

.spk-detail-section {
    margin-bottom: 16px;
}
.spk-detail-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #e6007e;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.spk-detail-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.65;
    word-break: keep-all;
}

/* ═══ 점수+등급 배지 (상세) ═══ */
.spk-detail-score-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    font-size: 12px;
}
.spk-dsb-bar {
    display: inline-block;
    width: 48px;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.spk-dsb-fill { display: block; height: 100%; border-radius: 3px; }
.spk-dsb-num { font-weight: 800; font-size: 14px; color: #1e293b; font-variant-numeric: tabular-nums; }
.spk-dsb-grade { font-weight: 700; font-size: 11px; color: #64748b; }
.spk-dsb-topic {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: #f0f1f3;
    padding: 1px 8px;
    border-radius: 4px;
}

/* ═══ 키워드 (본문 근접) ═══ */
.spk-detail-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
}

/* ═══ 원문 말풍선 ═══ */
.spk-bubble-wrap { margin-bottom: 14px; }
.spk-bubble {
    position: relative;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(230,0,126,.07), 0 1px 3px rgba(0,0,0,.06), 0 0 0 1px rgba(230,0,126,.06);
}
.spk-bubble-emo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}
.spk-bubble-emoji { font-size: 18px; line-height: 1; }
.spk-bubble-emo-val {
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1px 5px;
}
.spk-bubble-emo-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
}
.spk-bubble-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    word-break: keep-all;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}
.spk-bubble-text::-webkit-scrollbar { width: 3px; }
.spk-bubble-text::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

/* ═══ 5축 스코어 테이블 ═══ */
.spk-score-head {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}
.spk-score-head-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}
.spk-score-head-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    cursor: help;
}
.spk-score-head-help svg { transition: color .12s; }
.spk-score-head-help:hover svg,
.spk-score-head-help:focus svg { color: #e6007e; }
.spk-criteria-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    width: 260px;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    color: #f1f5f9;
    background: #1e293b;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 30;
}
.spk-criteria-tip b { color: #fff; font-weight: 700; }
.spk-criteria-tip em { font-style: normal; color: #e6007e; font-weight: 600; font-size: 10px; }
.spk-score-head-help:hover .spk-criteria-tip,
.spk-score-head-help:focus .spk-criteria-tip {
    opacity: 1;
    pointer-events: auto;
}

.spk-score-table {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.spk-st-cell {
    flex: 1;
    position: relative;
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 7px;
    padding: 8px 6px 6px;
    text-align: center;
    transition: border-color .12s, background .12s;
}
.spk-st-cell:hover { border-color: #e6007e; background: #fdf2f8; }
.spk-st-name { display: block; font-size: 10px; font-weight: 600; color: #94a3b8; margin-bottom: 2px; }
.spk-st-val { display: block; font-size: 16px; font-weight: 800; color: #1e293b; }
.spk-st-bar-track { height: 3px; background: #e5e7eb; border-radius: 2px; margin-top: 5px; overflow: hidden; }
.spk-st-bar { height: 100%; border-radius: 2px; background: #e6007e; transition: width .3s; }

/* Score breakdown */
.spk-score-foot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    margin-bottom: 14px;
    font-size: 10.5px;
    color: #94a3b8;
    border-bottom: 1px solid #f0f1f3;
}
.spk-sf-label { font-weight: 700; color: #e6007e; }
.spk-sf-val { font-weight: 600; color: #64748b; }
.spk-sf-grade {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    color: #374151;
}

/* ═══ 핵심 메타 스트립 ═══ */
.spk-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
    position: relative;
    z-index: 5;
}
.spk-ms-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 6px;
    font-size: 11px;
    transition: border-color .12s, background .12s;
}
.spk-ms-item:hover { border-color: #e6007e; background: #fdf2f8; }
.spk-ms-key { font-weight: 700; color: #94a3b8; }
.spk-ms-val { font-weight: 600; color: #374151; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk-ms-sub { font-weight: 500; color: #94a3b8; font-size: 10px; }
.spk-ms-muted { color: #374151 !important; }
.spk-ms-uplus { color: #be185d; font-weight: 700; }
.spk-ms-uplus-new { color: #2563eb; font-weight: 700; }

/* ═══ 공통 hover 툴팁 ═══ */
.spk-has-tip { cursor: help; }
.spk-has-tip::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 4px);
    left: 14px;
    border: 5px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 21;
}
.spk-has-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    min-width: 120px;
    max-width: 280px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.55;
    color: #f1f5f9;
    background: #1e293b;
    border-radius: 6px;
    white-space: normal;
    word-break: keep-all;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 22;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.spk-has-tip:hover::before,
.spk-has-tip:hover::after { opacity: 1; }
.spk-has-tip[data-tip=""]::before,
.spk-has-tip[data-tip=""]::after { display: none; }

/* 상세 뷰 내 tooltip — 위쪽 잘림 방지: 아래로 표시 */
.spk-detail-body .spk-has-tip::before {
    bottom: auto; top: calc(100% - 4px);
    border-top-color: transparent;
    border-bottom-color: #1e293b;
}
.spk-detail-body .spk-has-tip::after {
    bottom: auto; top: calc(100% + 6px);
    max-width: 260px;
}
/* 우측 끝 셀 — 툴팁 오른쪽 정렬 (잘림 방지) */
.spk-detail-body .spk-st-cell:nth-last-child(-n+2).spk-has-tip::after {
    left: auto; right: 0;
}
.spk-detail-body .spk-st-cell:nth-last-child(-n+2).spk-has-tip::before {
    left: auto; right: 14px;
}

/* ═══ 접이식 참여자 정보 ═══ */
.spk-expand {
    margin-top: 6px;
    border-top: 1px solid #f0f1f3;
    padding-top: 8px;
}
.spk-expand-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    padding: 4px 0;
    transition: color .12s;
}
.spk-expand-btn:hover { color: #e6007e; }
.spk-expand-icon {
    width: 12px;
    height: 12px;
    transition: transform .2s;
    margin-left: auto;
}
.spk-expand-icon.open { transform: rotate(180deg); }
.spk-expand-body { padding-top: 8px; }
.spk-raw-list { margin: 0; }
.spk-raw-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px dashed #f0f1f3;
    font-size: 11.5px;
}
.spk-raw-row:last-child { border-bottom: none; }
.spk-raw-row dt {
    flex-shrink: 0;
    width: 70px;
    font-weight: 700;
    color: #94a3b8;
    font-size: 10.5px;
}
.spk-raw-row dd {
    margin: 0;
    font-weight: 600;
    color: #374151;
}
.spk-raw-yes { color: #059669; font-weight: 700; }
.spk-raw-no { color: #9ca3af; font-weight: 600; }
.spk-raw-channel { font-size: 10px; color: #94a3b8; font-weight: 500; }

/* 키워드 태그 */
.spk-keyword {
    display: inline-block;
    padding: 2px 8px;
    background: #fdf2f8;
    border: 1px solid #fce7f3;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #be185d;
    margin: 0 3px 3px 0;
}

@keyframes spk-badge-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ═══ 우측 (Pick 보드) — 슬라이드 패널 ═══ */
.spk-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 280px;
    max-width: 520px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 40%);
    border-left: 1px solid #f0f1f3;
}

/* 패널 닫기 버튼 */
.spk-board-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    transition: all .12s;
    flex-shrink: 0;
}
.spk-board-close:hover { border-color: #e6007e; color: #e6007e; background: #fdf2f8; }

/* ═══ 하단 Pick 바 ═══ */
.spk-pick-bar {
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.spk-pb-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    user-select: none;
}
.spk-pb-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e6007e;
}
.spk-pb-left svg { flex-shrink: 0; }
.spk-pb-count {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}
.spk-pb-count.pop { animation: spk-badge-pop .35s cubic-bezier(.34,1.56,.64,1); }
.spk-pb-quota {
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
}
.spk-pb-progress {
    width: 48px;
    height: 3px;
    background: #f0f1f3;
    border-radius: 2px;
    overflow: hidden;
}
.spk-pb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e6007e, #ff6b9d);
    border-radius: 2px;
    transition: width .25s;
}
.spk-pb-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.spk-pb-view {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all .12s;
}
.spk-pb-view:hover { border-color: #e6007e; color: #e6007e; background: #fdf2f8; }
.spk-pb-view.active { background: #e6007e; border-color: #e6007e; color: #fff; }
.spk-pb-view svg { flex-shrink: 0; }
.spk-pb-export {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all .12s;
}
.spk-pb-export:hover { border-color: #10b981; color: #059669; background: #ecfdf5; }
.spk-pb-clear {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all .12s;
}
.spk-pb-clear:hover { border-color: #fca5a5; color: #ef4444; background: #fef2f2; }

/* 토스트 */
.spk-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: #1e293b;
    color: #fff;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    opacity: 0;
    z-index: 100;
    transition: transform .2s, opacity .2s;
    z-index: 100;
    white-space: nowrap;
}
.spk-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* 업로드 상태 */
.spk-upload-status {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 7px;
    margin-top: 8px;
    line-height: 1.45;
}
.spk-upload-status.success { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.spk-upload-status.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ═══ 반응형 ═══ */
@media (max-width: 900px) {
    .spk-shell { flex-direction: column; }
    .spk-left { width: 100% !important; max-width: none; min-width: auto; border-right: none; border-bottom: 1px solid #f0f1f3; max-height: 200px; }
    .spk-resize { display: none; }
    .spk-right { width: 100% !important; max-width: none; min-width: auto; border-left: none; border-top: 1px solid #f0f1f3; max-height: 320px; }
    .spk-td-summary { max-width: none; }
    .spk-toolbar { gap: 6px 8px; }
}
