/* (20261116_1458_헤더_본문_수직정렬_일치_여백초슬림화완료) */
/* ========================================================
   🎬 추억 시네마 앨범 메인 엔트리 & 3단 스튜디오 워크스페이스
   - 헤더와 본문의 좌우 시작선 완벽 일치 (수직 기준선 일치)
   - 불필요한 외곽 여백 및 패딩 0~4px 극대화
   ======================================================== */

/* 헤더 내측 컨테이너도 본문과 동일하게 화면 100% 확장 (좌우 어긋남 방지) */
.lit-nav-inner {
    max-width: 100% !important;
    padding: 0 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 🌟 포토북 화면 전용 컨테이너 확장 (화면 100% 꽉 채움, 패딩/여백 합쳐 4px 슬림) */
.container-lit {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 4px !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.pb-studio-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* 🌟 메인 3단 스튜디오 그리드 (사이드바와 중앙 갭 딱 4px 초밀착) */
.pb-workspace-grid {
    display: flex;
    gap: 4px !important;
    align-items: flex-start;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.pb-left-sidebar-workspace {
    box-sizing: border-box;
    width: var(--pb-left-sidebar-width, clamp(300px, 24vw, 480px));
    min-width: 200px;
    max-width: 50%;
    min-height: 100%;
    flex: 0 0 var(--pb-left-sidebar-width, clamp(300px, 24vw, 480px));
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 38px;
    max-height: none;
    overflow: visible;
    padding: 0 !important;
    margin: 0 !important;
}

.pb-left-sidebar-resizer {
    align-self: stretch;
    flex: 0 0 8px;
    min-height: 120px;
    margin: 0 -4px;
    position: relative;
    z-index: 2;
    cursor: col-resize;
    touch-action: none;
    outline: none;
}

.pb-left-sidebar-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    width: 2px;
    border-radius: 2px;
    background: rgba(16, 185, 129, 0.35);
    transition: background 0.15s, width 0.15s, left 0.15s;
}

.pb-left-sidebar-resizer:hover::after,
.pb-left-sidebar-resizer:focus-visible::after,
.pb-left-sidebar-resizer.pb-resizing::after {
    left: 4px;
    width: 4px;
    background: #10B981;
}

body.pb-sidebar-resizing {
    cursor: col-resize;
    user-select: none;
}

body.pb-editor-view-mode-active {
    overflow: hidden !important;
}

.pb-main-workspace {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    max-width: none;
}

.pb-sidebar-workspace {
    box-sizing: border-box;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding-right: 2px;
}

.pb-workspace-grid:not(.no-editor).hide-right-sidebar .pb-sidebar-workspace,
.pb-workspace-grid:not(.no-editor) .pb-sidebar-workspace.is-hidden {
    display: none !important;
}

/* 📱 반응형 */
@media (max-width: 960px) {
    .pb-workspace-grid {
        flex-direction: column;
    }
    .pb-left-sidebar-workspace {
        box-sizing: border-box;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        position: static;
        padding-right: 0;
    }
    .pb-left-sidebar-resizer {
        display: none;
    }
}

/* ========================================================
   ☀️ 주간(라이트) 모드 글자 가독성 100% 보장 마스터 오버라이드
   ======================================================== */
[data-theme="light"] body {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

/* 컷 텍스트 입력창 글자: 옅은 회색/흰색 인라인 무조건 짙은 검정으로 전환 */
[data-theme="light"] .pb-cut-editor,
[data-theme="light"] .pb-cut-textarea,
[data-theme="light"] .pb-cut-editor-voice,
[data-theme="light"] .pb-cut-editor-subtitle,
[data-theme="light"] .pb-col-text,
[data-theme="light"] .pb-col-text div {
    color: #0F172A !important;
    background-color: #FFFFFF !important;
    font-weight: 600 !important;
}

[data-theme="light"] .pb-cut-editor::placeholder,
[data-theme="light"] .pb-cut-textarea::placeholder {
    color: #94A3B8 !important;
}

/* 컷 카드 배경 및 보더 */
[data-theme="light"] .pb-cut-row,
[data-theme="light"] #pbCutsContainer .pb-cut-row {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* 헤더 및 안내 글자 */
[data-theme="light"] .pb-grid-header,
[data-theme="light"] .pb-grid-header div,
[data-theme="light"] .pb-grid-header span {
    color: #1E293B !important;
    font-weight: 800 !important;
}

/* 지속시간 및 툴바 라벨 글자 */
[data-theme="light"] .pb-duration-box,
[data-theme="light"] .pb-duration-box span {
    color: #1E293B !important;
    background: #F8FAFC !important;
}

/* 사이드바 글자 */
[data-theme="light"] .pb-left-sidebar-workspace,
[data-theme="light"] .pb-sidebar-workspace,
[data-theme="light"] .pb-guide-steps li div,
[data-theme="light"] .pb-guide-steps li strong,
[data-theme="light"] .pb-left-header-title {
    color: #1E293B !important;
}

/* 성우 버튼 글자 */
[data-theme="light"] .pb-voice-field-btn span {
    color: #1E293B !important;
}
