


		.letter_wrap{
			width:100%;
			margin-top:20px;
			display:flex;
			justify-content: center;
			transform: scale(1);
			transform-origin: top center;
		}
		.dummy-p {
			margin: 0;
			padding: 0;
			height: 0;
			overflow: hidden;
			opacity: 0;
			pointer-events: none;
			position: absolute;
			z-index: -1;
		}


		p.empty-br {
			margin: 0px;
			display: table;
			width: 100%;
		}
		p {margin:0px;}
		/* contenteditable div의 포커스 테두리 제거 */
		div[contenteditable="true"]:focus {
			outline: none;
			border: none;
		}

		/* 모든 contenteditable 요소의 테두리 제거 */
		[contenteditable="true"]:focus {
			outline: none;
			border: none;
		}

		/* 더 구체적으로 클래스나 ID로 지정 */
		.editor-content[contenteditable="true"]:focus {
			outline: none;
			border: none;
		}

		/* 브라우저별 호환성을 위한 추가 설정 */
		div[contenteditable="true"] {
			outline: none;
			border: none;
		}

		div[contenteditable="true"]:focus {
			outline: none !important;
			border: none !important;
			box-shadow: none !important;
		}

		/* 커서(caret) 더 잘 보이게 만들기 */
		div[contenteditable="true"] {
			caret-color: #000000; /* 커서 색상 - 검은색 */
		}

		/* 커서 색상을 더 진하게 */
		[contenteditable="true"] {
			caret-color: #ff0000; /* 빨간색 커서 */
		}

		/* 또는 파란색으로 */
		[contenteditable="true"] {
			caret-color: #0066ff; /* 파란색 커서 */
		}

		/* 커서 깜빡임 애니메이션 강화 (Webkit 기반 브라우저) */
		@keyframes blink {
			0%, 50% { opacity: 1; }
			51%, 100% { opacity: 0; }
		}

		/* 선택 영역 하이라이트 색상 변경 (선택사항) */
		div[contenteditable="true"]::selection {
			background-color: #b3d4fc;
		}

		div[contenteditable="true"]::-moz-selection {
			background-color: #b3d4fc;
		}

		div[contenteditable="true"]::-moz-selection {
			background-color: #b3d4fc;
		}
		.wrapper_i {
			pointer-events: none; /* 그리기 모드일 때 클릭 가능 */
			}
			
			#canvas-wrapper.active {
			pointer-events: auto;
			}

			#canvas-wrapper {
			position: absolute;
			top: 0;
			left: 0;
			z-index: 10;
			cursor: crosshair;
			pointer-events: none;
			}

		.button-container {
			position:absolute;
			left:-50px;top:0px;
			width: 100px;
			height: 56px;
			display: flex;
			gap: 4px;
			padding: 4px;
			box-sizing: border-box;
			background-color: #ccc;
			border-radius: 8px;
		}

		.btn {
			flex: 1;
			border: 1px solid #ddd;
			background-color: #fff;
			border-radius: 4px;
			cursor: pointer;
			font-size: 24px;
			transition: all 0.2s;
		}

		.btn:hover {
			background-color: #e9e9e9;
		}

		.btn:active {
			transform: scale(0.95);
		}
		
		
        .sticker-selector {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .sticker-option {
            width: 50px;
            height: 50px;
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: 8px;
            transition: all 0.2s;
            object-fit: contain;
        }

        .sticker-option:hover {
            border-color: #4CAF50;
            transform: scale(1.1);
        }


        .sticker {
            position: absolute;
            cursor: move;
            user-select: none;
        }

        .sticker.selected {
            outline: 2px dashed #4CAF50;
        }

        .sticker img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            pointer-events: none;
        }

        .resize-handle {
            position: absolute;
            width: 40px;
            height: 40px;
            background: #4CAF50;
            border: 2px solid white;
            border-radius: 50%;
            cursor: nw-resize;
            opacity: 0;
            transition: opacity 0.2s;
			z-index:99999;
        }

        .sticker.selected .resize-handle {
            opacity: 1;
        }

        .resize-handle.nw { top: -20px; left: -20px; cursor: nw-resize; z-index:99998;}
        .resize-handle.ne { top: -20px; right: -20px; cursor: ne-resize; z-index:99998; }
        .resize-handle.sw { bottom: -20px; left: -20px; cursor: sw-resize; z-index:99998; }
        .resize-handle.se { bottom: -20px; right: -20px;  z-index:99998; }

        .rotate-handle {
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 40px;
            background: #2196F3;
            border: 2px solid white;
            border-radius: 50%;
            cursor: crosshair;
            opacity: 0;
            transition: opacity 0.2s;
			z-index:99999;
        }

        .sticker.selected .rotate-handle {
            opacity: 1;
        }

        /* [2026-12-02] 회전·크기 조절 아이콘을 글자(↻ ⤡) 대신 SVG 그림으로 — 글꼴에 따라 모양이 바뀌거나(⤡ 가 ≡ 처럼 보임) 위치가 어긋나던 문제 */
        .rotate-handle::before,
        .resize-handle::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            transform: translate(-50%, -50%);
            background-repeat: no-repeat;
            background-position: center;
            background-size: 20px 20px;
        }
        .rotate-handle::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E"); }
        .resize-handle.nw::before, .resize-handle.se::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12'/%3E%3Cpath d='M6 12V6h6'/%3E%3Cpath d='M18 12v6h-6'/%3E%3C/svg%3E"); }   /* ↖↘ */
        .resize-handle.ne::before, .resize-handle.sw::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18'/%3E%3Cpath d='M12 6h6v6'/%3E%3Cpath d='M12 18H6v-6'/%3E%3C/svg%3E"); }   /* ↗↙ */
		.delete-btn {
            position: absolute;
            top: -20px;
            right: -20px;
            width: 40px;
            height: 40px;
            background: #f44336;
            border: 2px solid white;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: bold;
			z-index:99999;
        }
		/* [2026-12-02] × 를 글자 대신 SVG 그림으로 — 스티커·시계 안 글꼴(편지 폰트)을 따라가 모양·위치가 달라지던 문제.
		   HTML 의 '×' 글자는 그대로 두고(저장·복원 코드 호환) 글자만 안 보이게 한다. */
		.sticker .delete-btn, .delete-btn {
			font-size: 0 !important;
			line-height: 0 !important;
			color: transparent !important;
			padding: 0 !important;
			box-sizing: border-box;
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
			background-repeat: no-repeat;
			background-position: center;
			background-size: 18px 18px;
		}

        .sticker.selected .delete-btn {
            opacity: 1;
        }

/* [2026-11-25] 편지에 넣은 이모지 — 고른 모양(컬러 이모지) 그대로 보이게 (js/10-undo-emoji-zoomguard.js insertEmoji)
   보기 페이지(ltview)·인쇄 PDF 도 이 CSS 를 씀. 서버 PDF 에는 Noto Color Emoji 글꼴 설치 필요 */
.lt-emoji {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif !important;
	font-style: normal; font-weight: normal; text-decoration: inherit;
	line-height: inherit;
}

/* [2026-11-25] 편집 화면 페이지 번호 (js/06 make_page_info) — 눈에 잘 띄게. 보기/인쇄(ltview)에는 안 나옴 */
#bk_real .page_info_t:not(:empty) {
	display: inline-block; padding: 4px 16px; border-radius: 999px;
	background: rgba(27,124,251,.12); color: #1B7CFB; font-weight: 700; font-size: 22px; line-height: 1.4;
	font-family: "Pretendard", sans-serif; letter-spacing: .5px;
}
