@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');  /* 구버전OS 이모지 깨짐현상 방지 */

body{ 
font-family: 'Pretendard'; 
font-weight: 400;  
font-size:1rem; 
color:#282828;    
line-height:1.3;

}

/* 태블릿 폰트사이즈 
@media (max-width: 1024px) {
  html {
    font-size: 90%;
  }
}*/

/* 모바일 폰트사이즈 */
@media (max-width: 840px) {
  html {
    font-size: 90%;
  }
}




 


/****************************** 헤더 *****************************/
header{
position:relative;
width:100%;
height:58px; 
background: linear-gradient(90deg, #04BFCD 17.79%, #7631E6 100%); 
display: flex;
flex-direction:row;
align-items:center;
justify-content:space-between;
z-index:1000;

}

@media (max-width: 840px) {
  header {
    display: none;
	height:0;
  }
}

header a{color:#fff !important}

.logo{display:flex; align-items:center; font-weight:600;  font-size:24px;  width:106px}

.btnzone{ 
min-width:300px;
background: rgba(255, 255, 255, 0.15);
border-radius: 100px;
padding:0.2rem 0.5rem;
}

.btnzone a{padding:0 5px; vertical-align:middle; }

 /* 자동저장 */
.autosave{font-size: 0.875rem !important; font-weight:bold; color:#fff; min-width:80px; cursor:pointer} 

/* [2026-12-02] 자동저장 ON/OFF 스위치 — 라디오 '온에어'처럼 켜져 있으면 빨간 점이 깜박임 (index.html #autoSaveToggle, js/06 toggle_auto_save) */
.as-toggle{
  display:inline-flex; align-items:center; gap:7px;
  height:30px; padding:0 5px 0 11px; margin:0 6px 0 36px;   /* [2026-12-02] 로고에서 조금 더 오른쪽 */
  border:1px solid rgba(255,255,255,.32); border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff; font-size:13px; font-weight:700; letter-spacing:-.2px; white-space:nowrap;
  cursor:pointer; transition:background .15s, border-color .15s, opacity .15s;
}
.as-toggle:hover{ background:rgba(255,255,255,.16); }
.as-dot{
  position:relative; width:7px; height:7px; border-radius:50%; flex-shrink:0;
  background:#FF6B6B;
}
.as-toggle.is-on .as-dot::after{            /* 퍼지는 빛 (온에어) */
  content:''; position:absolute; inset:-4px; border-radius:50%;
  background:rgba(255,107,107,.35);
  animation:asPulse 2.4s ease-out infinite;
}
@keyframes asPulse{ 0%{ transform:scale(.5); opacity:.8; } 100%{ transform:scale(1.4); opacity:0; } }
.as-state{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:32px; height:20px; padding:0 6px; border-radius:999px;
  font-size:10.5px; font-weight:700; letter-spacing:.3px;
  background:rgba(255,255,255,.2); color:#fff;
}
.as-toggle.is-off{ background:transparent; border-color:rgba(255,255,255,.25); }
.as-toggle.is-off .as-label{ opacity:.7; }
.as-toggle.is-off .as-dot{ background:transparent; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.6); }
.as-toggle.is-off .as-state{ background:rgba(0,0,0,.12); color:rgba(255,255,255,.75); }
.as-status{
  display:inline-flex; align-items:center; gap:4px;
  min-width:0; margin-right:10px;
  color:rgba(255,255,255,.92); font-size:12.5px; font-weight:600; white-space:nowrap;
}
.as-status.is-warn{ color:#FFF3C4; }


@media (max-width: 1280px) {
  .h-txt {
	display:none 
  }
}

.step-box{ 
position:relative;
padding: 0px 16px 0px 0px;
height: 38px;
width:200px;
background: #FFFFFF;
border-radius: 7px;
border:0;
vertical-align:middle
}

.step-box span{vertical-align:middle} 

.profile{
 width: 40px;           /* 원 크기에 맞게 */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  box-sizing: border-box;
  margin:0 16px 0 0;
  color:#fff;
  background: rgba(255,255,255,.2); /* 투명도 0.1~0.3 사이로 조절 */
}

.profile svg {
  display: block;        /* baseline 여백 제거 */
}

@media (max-width: 1024px) {
  .profile{
	
  }
}

.profile img{ 
width: 100%;
height: 100%; 
object-fit:cover; 
object-position: center;
}

.profile-plus{
width:38px; height:38px;
aspect-ratio: 1 / 1;  /* 원형 보장 */
flex-shrink: 0;
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 100px;
overflow:hidden;
text-align:center;
}

@media (max-width: 1024px) {
	.profile-plus {
	display:none ;
  }
}








    





/*******************************   사이드 패널  ******************************/

	/* 왼쪽 패널 전체 감싸기*/
    .app-container {
      display: flex;
      flex-direction: column;
      height: 100vh;
      position: relative;
    }

    /* Main Content Area */
    .main-content {
      display: flex;
      flex: 1;
      overflow: hidden;
      position: relative;
    }

    /* 사이드바 */
    .sidebar {
      width: 5rem;
      background: var(--surface);
      border-right: 1px solid var(--myborder);
      padding: 16px 8px;
      display: flex;
      flex-direction: column;
      gap: 28px;
      z-index: 103;
    }
	
@media (max-width: 840px) {
  .sidebar {
    display:none;
  }
}

	/* 기본: PC에서 숨김 */
	.sidebar-mobile {
	  display: block;
	}

	/* 태블릿 이상에서 숨김 */
	@media (min-width: 768px) {
	  .sidebar-mobile {
		display: none;
	  }
	}

	/* 사이드바 - 모바일ver*/
		@media (max-width: 840px) {
	  .sidebar-mobile {
		display:flex;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 4.8rem;
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		border-right: none;
		border-top: 1px solid #D5D8DE;
		border-bottom: 1px solid #D5D8DE;
		background: #fff;
		z-index: 1030 !important;
		gap: 0;	
		padding:0 8px;
	  }
	} 

    .nav-button {
		position:relative;
		display:flex;
		flex-direction: column;
		align-items: center;
		padding:5px 10px;
		width: 58px;
		height: 58px;
		background: #FFFFFF;
		border-radius: 15px;
		cursor:pointer; 
		flex-wrap:nowrap; 
		border:none;
		color:#282828;
    }

	@media (max-width: 840px) {
	 .nav-button {
		position:relative;
		width: 58px;
 		padding:4px;		
		display: flex;
        flex-direction: column;
        justify-content: center;
		}
	}

    .nav-button:hover {
      box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    }

    .nav-button.active {
		box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
    }
	
	 .nav-button img {
		max-width:24px;   margin-bottom:4px;
	 }
	 
	  .nav-button p {
		font-weight:500; flex-wrap:nowrap; 
	}




    /******************************* 왼쪽 패널 *********************************/
.left-panel {
  position: fixed;
  top: 57px;
  left: 80px;
  bottom: 0;
  width: 362px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 102;
  display: flex;
  flex-direction: column;
}

.left-panel.open {
  transform: translateX(0);
}

/* 데스크탑: content-area가 패널만큼 밀림 */
.left-panel.open ~ .content-area {
  margin-left: 362px;
}

/* [수정 2026-11-24] 841~1200px 에서도 패널만큼 밀어낸다.
   예전엔 이 구간이 오버레이 방식이라 편지지 왼쪽과 상단 서식 툴바가 패널 뒤로 가려졌다(1101px 에서 확인).
   남은 폭에 맞춘 배율은 js/04-zoom-controls.js refitZoom 이 자동으로 맞춘다(사용자가 줌을 직접 바꾸지 않은 경우). */

	
@media (max-width: 840px) {
  .left-panel  {
   display:none;
  }
  /* [수정 2026-11-24] 패널이 숨겨지는 폭(모바일)에서는 밀지 않는다.
     위 841~1200px 밀림 변경(W-16) 때 원래 있던 "1200px 이하 margin-left:0" 이 같이 빠져서,
     index.html 은 시작할 때 cate_go('write') 로 패널이 open 상태라 모바일에서 편지지가 362px 오른쪽으로 치우치고
     화면맞춤이 줄어든 폭으로 계산돼 편지 래퍼가 작게/잘려 보였다. (index1113.html 은 시작 시 패널을 안 열어서 정상) */
  .left-panel.open ~ .content-area {
    margin-left: 0;
  }
}

    .panel-handle-area {
      position: absolute;
      right: -24px;
      top: 20px;
      width: 24px;
      height: 48px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      border-radius: 0 8px 8px 0;
      border: 1px solid var(--border);
      border-left: none;
      transition: top 0.3s ease, background 0.2s ease;
      box-shadow: var(--shadow);
    }

    .panel-handle-area:hover {
      background: var(--bg-secondary);
    }

    .panel-handle {
      width: 6px;
      height: 6px;
      border-right: 2px solid var(--text-tertiary);
      border-bottom: 2px solid var(--text-tertiary);
      transform: rotate(-45deg);
      transition: all 0.3s ease;
    }

    .left-panel.open .panel-handle {
      transform: rotate(135deg);
    }

    .panel-handle-area:hover .panel-handle {
      border-color: var(--primary);
    }

    .panel-title {
      font-size: 15px;
      font-weight:700;
      padding: 0 20px;
	  font-size:22px;
	  margin:30px 0 4px 0;
     }

    .panel-content {
      padding: 0;
      overflow-y: auto;
      overflow-x: hidden;
      flex: 1;
    }

    .submenu-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 8px;
	  margin-bottom:3rem;
    }

    .submenu-item {
      background: transparent;
      border: none;
      border-radius: 8px;
      padding: 12px 16px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-secondary);
    }

    .submenu-item:hover {
      background: var(--bg-secondary);
      color: var(--text);
    }

    .submenu-item:active {
      transform: scale(0.98);
    }

    .submenu-icon {
      font-size: 18px;
      width: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .submenu-text {
      font-size: 14px;
      font-weight: 500;
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
    
    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 6px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--text-tertiary);
    }


.my-tab{display:flex;  border-bottom:1px solid #BDBDBD; margin-top:20px; }
.my-tab li{ position:relative; width:100%; list-style:none;text-align:center; cursor:pointer; padding-bottom:0.3rem; font-weight:400;  font-size:16px}
.my-tab li.on{font-weight:600; border-bottom:3px solid #007BFF;}
.dot{display:inline-block; width:7px; height:7px; background-color:red; border-radius:10px; vertical-align:middle; margin:0 0 0 8px; position:absolute; top:0;  }




/*************************** 패널 > 쓰기 ******************************/


/* 폰트 리스트*/
.font-list{
width:100%; 
height:350px; 
overflow-y:auto; 
}

.font-list li{
border:none; 
padding:0.2rem 0
}

/* 폰트 리스트 스크롤바 */
.scroll-area::-webkit-scrollbar {					/* 세로 스크롤바 폭 */
    width: 4px;          
}

.scroll-area::-webkit-scrollbar-track	{			/* 트랙 (배경) */
    background: transparent;
}

.scroll-area::-webkit-scrollbar-thumb {		/* thumb */
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {	/* hover */
    background: rgba(0, 0, 0, 0.45);
}
.scroll-area {overflow-y: auto;}


/* 사용중 아이콘 */
.use{
width:44px;
height:17px;
color: white;
font-size: 12px;
word-wrap: break-word;
background:url(../img/use.png) no-repeat 0 0;
background-size: 100% 100%;
text-align:center; 
padding:1px 5px 1px 5px;
margin-left:3px;
}

/* 최근 뱃지*/
.recent{ 
color: #5E98E4;
font-size: 12px;
font-weight: 500;
word-wrap: break-word;
border-radius:3px;
border:1px solid #7C98DA; 
padding:0 3px;
margin-left:3px
}


/* 텍스트 컬러칩 */
.color-list {
display: inline-flex;
flex-wrap: wrap;
gap:5px;
align-content: flex-start;
width:100%;
}

.color-chip {
width: 38px;
height: 38px;
border-radius: 9999px;
border: 1px solid #D5D8DE;
background: transparent;
cursor:pointer;
aspect-ratio: 1 / 1;   /* 항상 정사각 */
}
 

/* grayscale */
.c-black { background: #000; }
.c-gray-545 { background: #545454; }
.c-gray-737 { background: #737373; }
.c-gray-a6 { background: #A6A6A6; }
.c-gray-b4 { background: #B4B4B4; }
.c-gray-d9 { background: #D9D9D9; }
.c-white { background: #fff; }

/* red / pink */
.c-red-1 { background: #FF3131; }
.c-red-2 { background: #FF5757; }
.c-pink { background: #FF66C4; }

/* purple */
.c-purple-1 { background: #E2A9F1; }
.c-purple-2 { background: #CB6CE6; }
.c-purple-3 { background: #8C52FF; }
.c-purple-4 { background: #5E17EB; }

/* blue */
.c-blue-1 { background: #0097B2; }
.c-blue-2 { background: #0CC0DF; }
.c-blue-3 { background: #5CE1E6; }
.c-blue-4 { background: #38B6FF; }
.c-blue-5 { background: #5170FF; }
.c-blue-6 { background: #004AAD; }
.c-blue-7 { background: #1800AD; }

/* green */
.c-green-1 { background: #00BF63; }
.c-green-2 { background: #7ED957; }
.c-green-3 { background: #C1FF72; }

/* yellow / orange */
.c-yellow { background: #FFDE59; }
.c-orange-1 { background: #FF914D; }
.c-orange-2 { background: #FF751F; }

/* selected */
.is-selected {    
    border: 3px solid #000;
}



/* 편지쓰기 - 리스트 */
.card-ver01{
position:relative;
width:9.875rem; 
padding:0;
flex-wrap: wrap;
box-shadow: 7px 4px 10px rgba(0, 0, 0, 0.13); 
overflow: hidden; 
border-top-left-radius: 12px; 
border-top-right-radius: 0; 
border-bottom-right-radius: 12px; 
border-bottom-left-radius: 12px; 
outline: 1px #BDBDBD solid;  
}

.card-ver01.on{outline:3px solid var(--myblue) !important; }

.card-ver01-img{
position:relative; 
border-bottom: 1px #D9D9D9 solid; 
height:188px; 
width:100%; 
overflow:hidden; 
cursor:pointer;
}

.card-ver01-img img{width:100%;}
.target{display:none; position:absolute; top:0; height:100%; width:100%;}
.target img{width:45%; position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%);}
.card-ver01:has(.card-ver01-img:hover) .target{display:block; background:linear-gradient(180deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.50) 100%) !important;}


/* list 수평형 */
.mylist-row{
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
border:none; 
}

.mylist-row li{display:flex;}

 /* 공통 뱃지 */
.my-bdg{					/*우측 모서리정렬*/
position:absolute; 
top:-1px; right:-1px; 
border:1px solid #BDBDBD;
background-color:#fff; 
padding:1px 5px;
z-index:100;
text-align:center;
}

.my-bdg-left{				/*좌측 모서리정렬*/
position:absolute; 
top:0; left:0; 
z-index:100;
}

.r-btn-s{
border-radius:50%; 
border:1px solid #767676;
position:absolute; bottom:5px; right:5px; 
background-color:#fff; 
width:1.5rem; 
height:1.5rem;
cursor:pointer;
align-items:center;
text-align:center;
}

.r-btn-won{		 		/* 컨텐츠 > 금액 */					
border-radius:100px; 
border:1px solid var(--myblue);
background-color:#fff; 
color:var(--myblue);
font-weight:600;
padding:1px 7px;
}
 

/*  이미지 썸네일 - 공통 */
.filebox{
border-radius: 7px; 
 border: 1px dashed var(--mygrey);
}

.thumnail{
display:flex;
flex-direction: row;
flex-wrap: wrap;
gap:12px;
align-items: center;
}

.img-thumb img{width:100%; position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%);}

.img-thumb{
position:relative;
border:1px solid var(--myborder); 
background:url('../img/bg-img.png') no-repeat center; 
background-color:var(--mygrey2);
border-radius:7px;
text-align:center;
overflow:hidden;
cursor:pointer
}


.close{
position:absolute; top:3px; right:3px;
border:1px solid var(--mygrey);  
aspect-ratio: 1 / 1;   /* 항상 정사각 */
min-width:22px; min-height:22px;
border-radius: 50%; 
padding:2px;
background-color:#fff; 
z-index:100;
cursor:pointer;
}

.close svg{width:100%; position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%);}

/* 밝은버전 */
.close-light{
position:absolute; top:-7px; right:-7px;
border:1px solid var(--myborder);  
aspect-ratio: 1 / 1;   /* 항상 정사각형 */
width:22px; height:22px;
border-radius: 50%; 
padding:2px;
background-color:#fff; 
z-index:100;
}
.close-light svg{width:100%; position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%); opacity: 0.50;}


/*큰버전*/
.close-L{
position:absolute; top:3px; right:3px;
border:1px solid var(--mygrey);  
aspect-ratio: 1 / 1;   /* 항상 정사각형 */
width:100px; height:100px;
border-radius: 50%; 
padding:2px;
background-color:#fff; 
z-index:100;
}

.close-L svg{width:100%; position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%);}




/***************************** 컨텐츠존 ****************************/

    /* Content Grid */

.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}


    .grid-container {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 12px;
      max-width: 870px;
      margin: 0 auto;
    }

    .grid-card {
      aspect-ratio: 1;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 500;
      text-align: center;
      padding: 20px;
      color: var(--text);
    }

    .grid-card:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .grid-card:active {
      transform: translateY(0);
    }

    .grid-card-text {
      display: block;
    }
	
	.grid-card {
      animation: fadeIn 0.4s ease backwards;
    }

    .grid-card:nth-child(1) { animation-delay: 0.05s; }
    .grid-card:nth-child(2) { animation-delay: 0.1s; }
    .grid-card:nth-child(3) { animation-delay: 0.15s; }
    .grid-card:nth-child(4) { animation-delay: 0.2s; }
    .grid-card:nth-child(5) { animation-delay: 0.25s; }
    .grid-card:nth-child(6) { animation-delay: 0.3s; }






/* 수평 넘침시 스와이프*/
.over-x {
	overflow-x: auto;	
	white-space: nowrap;
	-webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
	scrollbar-width: none; /* Firefox 스크롤바 숨김 */
	-ms-overflow-style: none; /* IE/Edge 스크롤바 숨김 */
}

/* 수직 넘침시 스와이프*/
.over-y {
	overflow-y: auto;	
	-webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
	scrollbar-height: none; /* Firefox 스크롤바 숨김 */
	-ms-overflow-style: none; /* IE/Edge 스크롤바 숨김 */
}



.my-select {
	font-size:14px; 
	font-weight:600; 
	margin-right:4px; 
	padding-left:8px; 
	padding-right:7px; 
  border-radius:0.6rem;
  background-position: right .5rem center; /* 화살표를 오른쪽으로 당김 */
  background-size: 0.725rem;     /* 화살표 크기 줄이기 */
	}

.my-input2{
font-size:14px; font-weight:600;
background: #FFFFFF;
border: 1px solid #D5D8DE;
border-radius:0.6rem;
vertical-align:middle;
display: flex;
align-items: center;      /* 세로 중앙 */
justify-content: space-between; /* 가로 분산 */
padding:6px 6px;
}

.my-input2 a{margin:0; padding:0; line-height:0;}

/* 버튼 베이스 */
.my-btn{
background: #FFFFFF;
border: 1px solid #D5D8DE;
border-radius: 0.7rem;
display: flex;
align-items: center;   
justify-content: center;
padding:0.725rem 1rem;
gap:0px;
}





/* 버튼 베이스 Small */
.my-btn-sm{
background: #FFFFFF;
border: 1px solid #D5D8DE;
border-radius: 0.7rem;
display: flex;
align-items: center;   
justify-content: center;
padding:0.5rem 0.875rem;
gap:8px;
}




 /* 탑 버튼 - 모바일용*/
.top-btn {
	position:fixed;
	top:0;
	width:100%; 	
	z-index:110;
	padding:0.725rem;
	gap:4px;
	}

 

@media (min-width: 768px) {        /* 탑버튼 모바일 - 태블릿(768px) 이상에서 숨김 */
	.top-btn {
		display: none !important;
	}
}

/***** 레터박스 ******/
.letterbox{
position:relative;
width: 870px;
max-width: 100%;
min-height:100%;
margin:25px auto 0  auto;
background: #FFFFFF;
border: 1px solid #D5D8DE;
box-shadow: 0px 0px 27px rgba(0, 0, 0, 0.12);
border-radius: 15px; 
}

@media (max-width: 1024px) {
  .letterbox {
    width: 90%;
    margin: 60px auto 0 auto;   
   }
}

@media (max-width: 840px) {
  .letterbox {
    width: 100%;
    margin:0 auto;
	border-radius:0;
	border:none;
  }
}

/* 편지제목 */
.letter-title {
	font-size:2.5rem;
	font-weight:600;
	text-align:center;
	width:80%;
	overflow-x:hidden; 
	text-overflow: ellipsis ;
 	margin:28%  auto 0 auto;
 	}	

@media (max-width: 840px) {
  .letter-title {
   max-width: 20ch;   /* 🔥 ch = 0의 너비 기준 */
 
  }
}

/* 편지내용 */
.letter-text {
	font-size:1.375rem;
	line-height:2.5;	
	margin-top:2%;
	padding:4%;
	}		

.letter01{background:url('../img/img-letter.png') repeat-y; background-size:100% auto; margin-bottom:50rem}



/* 편지 미리보기 */
.letter-preview{ 
position:fixed;  bottom:0;
width:870px;
max-width:100%;
height:100vh; 
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0.72) 59%, rgba(255, 255, 255, 0.90) 100%) !important; 
z-index:30; 
}

@media (max-width: 1024px) {
.letter-preview {
    width: 100%;
    margin: 0;
  }
}

 

/*****************푸터******************/

footer{
z-index:35;
width:100%;
position:fixed; 
bottom:0; right:0;
border-top:1px solid #D5D8DE;
background-color:#F0F1F5;
}

@media (max-width: 840px) {
  footer {
   display:none;
  }
}


/* 문서 리스트 */

.filelist{
display:flex;
flex-direction:column;
gap:10px;			  
}					  

.filelist-box{
position:relative;
display:flex;
flex-direction:row;
justify-content:space-between;
align-items:center;
background: #F8F8F8; 
border-radius: 7px; 
border: 1px #EEEEEE solid;
padding:1.2rem;
cursor:pointer

}

.tbox-s{ 
border-radius:3px; 
border:1px solid var(--myborder); 
padding:3px 6px; 
font-size:12px; 
font-weight:600; 
background-color:#fff;
white-space: nowrap;
}

 @media (max-width: 640px) {  /*모바일에서 */
  .tbox-s{ 
    font-size:9px; 
    padding:2px 4px;
  }
 }


.tbox-red{background-color:var(--tboxred); color:var(--myred); border:none}
.tbox-blue{background-color:var(--tboxblue); color:var(--myblue); border:none}




/* 스텝 진행바 */
.stepbar{
position:absolute;
top:68px;
right:-50px;
}

@media (max-width: 840px) {
.stepbar {
   display:none;
  }
}

.stepbar ul{position:fixed}

.stepbar ul li{
display:flex;
flex-direction:row;
align-items:center; 
padding:2px 0
}

.stepbar ul li span{line-height:1.3em}
.stepbar .bar{border-left:2px solid var(--mygrey3); height:2rem;}
.stepbar .bar2{border-left:2px solid var(--mypupl); height:2rem;}

.step{
aspect-ratio: 1 / 1;   /* 항상 정사각 */
width:3.125rem; height:3.125rem;
border-radius: 50%;
background-color:var(--mygrey3);
text-align:center;
font-size:26px; font-weight:600;
color:#fff;
line-height:1.9em;
margin-right:0.725rem;
}

.step.on{
background-color:var(--mypupl) !important;
border:1px solid #fff !important;
}


/*** 토크박스 ****/
.talkbox{
background: #FDFBEA; 
border-radius: 7px; 
border: 1px #F9F0B2 solid;
text-align:center;
}

/*수평형 탭 (원본)*/
.tab-x{
display:flex;
flex-direction:row;  
justify-content:space-between;
 overflow-x: auto;
 white-space: nowrap;
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  width:100%;
  
}

.tab-x::-webkit-scrollbar {
  display: none; 
}




.tab-x li {
  flex-shrink: 0; /* 아이템이 줄어들지 않도록 */
  cursor:pointer;
}

.tab-x li a{display:inline-block; text-wrap:nowrap; text-align:center; color:var(--mygrey); padding:5px 10px}
.tab-x .on a{border-radius:50px; background-color:var(--mypupl); color:#fff !important;}



/******* 컨텐츠 목록 *******/
.card-ver02{
position:relative;
width:100%;
height: auto; 
max-height:200px;
min-height:100px;
padding:0;
flex-wrap: wrap;
overflow: hidden; 
border-radius: 12px;  
border-color:var(--mygrey)
}

.card-ver02-img{
position:relative; 
border-bottom: 1px #D9D9D9 solid;  
width:100%; 
overflow:hidden; 
cursor:pointer;

}

.card-tbox{
position:absolute; left:0; bottom:1rem;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.65); 
border-top-right-radius: 50px; 
border-bottom-right-radius: 50px; 
outline: 1px rgba(0, 0, 0, 0.20) solid; 
outline-offset: -1px; 
background-color:var(--myyel);
padding:3px 8px 3px 6px;
}

.card-ver02-img img{width:100%;}
.card-ver02 .target{display:none; position:absolute; top:0; height:100%; width:100%;}	/* 미리보기시 */
.card-ver02 .target img{width:auto; position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%); margin-left:5px}
.card-ver02:has(.card-ver02-img:hover) .target{display:block; background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%) !important}



.my-chkbox {
position:absolute; top:4px; right:6px;
z-index:100;
}

@media (max-width: 768px) {
  .my-chkbox {
    position:absolute; top:1%; right:4%;
    z-index: 200;
  }
}



.my-chkbox input{width:24px !important; height:24px !important; border-radius:5px !important; border-color:var(--mygrey)}
.my-chkbox input:checked{background-color: #9c5eff;  border-color:#fff;}

@media (max-width: 768px) {
  .my-chkbox input[type="checkbox"] {
    transform: scale(0.7);
    transform-origin: right top; /* 기준점 조정 */
    
  }
}

/**** 컨텐츠 미리보기 팝업 ***/

.popup{width:auto; position:fixed;  top: 50%;  left: 50%;  transform: translate(-50%, -50%); z-index:150} /* 정중앙 정렬 */
.popup-img{
position:relative; 
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.70); 
border: 2px solid var(--myblack);
}
.popup-img img{max-width:480px; min-width:280px}

@media (max-width: 1440px) {  /* 해상도 작을때 컨텐츠팝업 작게*/
  .popup-img img {
	width:380px;  
  }
}

.page{position:absolute; bottom:10px; right:10px; z-index:60; background: rgba(255, 255, 255, 0.80); border-radius: 7px; padding:2px 6px;}


.gift{
display:flex;
flex-direction:row;
background-color:#EC585F;
border-radius: 100px;
overflow:hidden;
cursor:pointer;
}

.gift-pay{background-color: rgba(0, 0, 0, 0.1);}

.gift-btn{
position:relative;
aspect-ratio: 1 / 1;   /* 항상 정사각형 */
width:52px; height:52px;
border-radius: 50%; 
background-color:#EC585F;
cursor:pointer;
}


.btn-arrow {
display: inline-flex;
border-radius: 100px;
aspect-ratio: 1 / 1;   /* 항상 정사각형 */
outline: 1px solid #D9D9D9;
outline-offset: -1px;
background: rgba(255, 255, 255, 0.8);
justify-content: center;
align-items: center;
z-index:151;
}



/***내가 선택한 컨텐츠***/
.selected-card{border:1px dashed var(--myred); border-radius:12px 12px 0 0; border-bottom:none}

.total{
display:flex;
flex-direction:row;
justify-content:space-between;
border-radius:12px;
background-color:#FFE655;
border:1px solid;
border-color:rgba(168, 67, 0, 0.2);
}



/***************************** 스티커 *********************************/

.sticker-box{
display:flex;
align-items:center;

}

/* .sticker_list {
aspect-ratio: 1 / 1;  
align-items:center;
} */


.sticker_list{
  display:flex;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  align-items:center;
}

.sticker_list img{
  width: 100%;
  display: block;
  cursor: pointer;
 }

.sticker_list::after{
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 255, 174, 0.5);
  opacity: 0;
  transition: opacity .1s ease;  
  
}

.sticker_list:hover::after{
  opacity: 1;
  border-radius: 100px;

}



.stk-select{ 
  position: relative;
outline:3px solid #00F2D6;
border-radius:100px;
aspect-ratio: 1 / 1;   /* 항상 정사각 */
display: flex;
align-items: center;
outline-offset:-4px
}


/* 인디케이커 - 커스텀 */
.carousel-indicators {
top:0      /* 위치 조정 */
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  opacity: 1;
  margin: 0 4px;
}

.carousel-indicators .active {
  background-color: #00FFAE;
}

/* 스티커 총금액 */
.sticker-total{
position: sticky;
bottom: 0;
flex-shrink: 0;
display:flex;
justify-content:space-between;
width:100%;
background-color:#FFBC2C;
color:#fff;
font-weight:600;
padding:1.5rem 1.2rem;
z-index: 10;   /* aside 내부에서 항상 최상단 */
margin-left: -22px;
margin-right: -22px;
width: calc(100% + 44px);
font-size:22px;
}



/*******************************이모지*******************************/

.emoji-box {
	font-family: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif;
  display:grid; 
  grid-template-columns: repeat(8, 1fr); 
  gap:14px 0; 
}

.emoji-box>div {
border-radius:7px;
 cursor: pointer;
 aspect-ratio: 1 / 1;   /* 항상 정사각 */
 line-height: normal;
 text-align: center;
}

.emoji-box>div:hover{
  outline:2px solid #00F2D6;
}

.recent_use_emoji_title {color:#0079ff; margin-top:8px}
.recent_use_emoji{}


 




/*******  더보기 모달창 - 모바일ver ******/


.my-modal-h {
	 height: calc(100% - 5.5rem) !important;				/* 모달 height 값 :  하단 픽스메뉴 높이값만큼 제외한 100% */
}



.bg-pink-lt{
background: #FDF2F8;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 20px;
} 

.bg-blue-lt{
background: #EFF6FF;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 20px;
} 

.bg-yel-lt{
background: #FEFCE8;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 20px;
} 

.bg-pup-lt{
background: #FAF5FF;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 20px;
} 



/************************************** 그리기 *********************************/
 /* ── Tool List (그룹 컨테이너) ── */
    .tool-list {
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 0 0 6px;
      border-bottom: 1px solid var(--border-light);
    }

    .tool-group {
       padding:0.1rem 0;
    }

    /*.tool-group + .tool-group {
      border-top: 1px solid var(--border-light);
    }*/

    .tool-group-label {
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-bottom: 12px;
      opacity: 0.7;
    }

    .tool-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap:0;
      align-items: start;
    }

    .tool-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 4px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      color: var(--text-secondary);
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
      font-size: 0.725rem;
      font-weight: 500;
      border: none;
      background: transparent;
      width: 100%;
      text-align: center;
    }

    /*
    .tool-item:hover {
      background: rgba(32, 178, 170, 0.05);
      transform: translateY(-2px);
    }*/

    .tool-icon-wrap {
      width: 52px;
      height: 52px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    }

    .tool-item svg {
      width: 26px;
      height: 26px;
      flex-shrink: 0;
    }

    .tool-item:hover .tool-icon-wrap { 
      transform: translateY(-4px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    }
    .tool-item:active .tool-icon-wrap { 
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /*.tool-item.active {
      background: transparent;
      color: var(--primary);
    }*/

    .tool-item.active .tool-icon-wrap {
      box-shadow: 0 4px 16px rgba(41, 201, 193, 0.5), 0 0 0 2px rgba(41, 222, 213, 0.5);
      transform: scale(1.05);
    }

    /* 도구별 컬러 - Material Design 3 스타일 */
    .tool-pen    .tool-icon-wrap { background: linear-gradient(135deg, #E3F2FD 0%, #82c7ff 100%); }
    .tool-pen    svg              { stroke:#1976D2; }
    .tool-hl     .tool-icon-wrap  { background: linear-gradient(135deg,#fff79d 0%, #fff370 100%); } 
    .tool-hl     svg              { stroke:#F9A825; }
    .tool-pencil .tool-icon-wrap  { background: linear-gradient(135deg, #FCE4EC 0%, #ff8fb4 100%) }
    .tool-pencil svg              { stroke:#e32b75; }
    .tool-spray  .tool-icon-wrap  { background: linear-gradient(135deg, #E8F5E9 0%, #88ee8b 100%) }
    .tool-spray  svg              { stroke:#388E3C; }
    .tool-eraser  .tool-icon-wrap  { background: linear-gradient(135deg, #F3E5F5 0%, #d7aede 100%); }
    .tool-eraser  svg              { stroke:#7B1FA2; }
    .tool-eraser2 .tool-icon-wrap  { background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%); }
    .tool-eraser2 svg              { stroke:#512DA8; }
    .tool-eraser3 .tool-icon-wrap  { background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%); }
    .tool-eraser3 svg              { stroke:#C2185B; }
    .tool-line     .tool-icon-wrap  { background: linear-gradient(135deg, #FFF3E0 0%, #ffc671 100%); }
    .tool-line     svg              { stroke:#F57C00; }
    .tool-triangle .tool-icon-wrap  { background: linear-gradient(135deg, #E8EAF6 0%, #b4bcf1 100%); }
    .tool-triangle svg              { stroke:#303F9F; }
    .tool-square   .tool-icon-wrap  { background: linear-gradient(135deg, #E0F7FA 0%, #96e0ea 100%); }
    .tool-square   svg              { stroke:#0097A7; }
    .tool-circle   .tool-icon-wrap  { background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%); }
    .tool-circle   svg              { stroke:#C2185B; }
    .tool-fill   .tool-icon-wrap  { background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%); }
    .tool-fill   svg              { stroke:#FF6F00; }

    /* ── Undo/Redo 스택 셀 ── */
    .tool-stack-cell {
      display: flex;
      flex-direction: column;
      gap: 4px;
      justify-content: center;
      align-self: stretch;
    }

    .stack-btn {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-evenly;
      gap: 3px;
      border-radius: 8px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      padding: 4px 2px;
      width: 100%;
      white-space: nowrap;
    }

    .stack-btn svg {
      width: 20px;
      height: 20px;
      stroke: var(--text-secondary);
      transition: stroke 0.15s;
    }

    .stack-btn:hover {
      background: #f1f5f9;
      color: var(--text);
      border-color: var(--border);
    }

    .stack-btn:hover {
      background: rgba(32, 178, 170, 0.05);
    }

    .stack-btn:hover svg { stroke: var(--text); }

    .stack-btn:active { transform: scale(0.95); }

    .stack-btn.disabled {
      opacity: 0.35;
      pointer-events: none;
    }

    .stack-btn.undo-btn .stack-icon-wrap { background: transparent; }
    .stack-btn.undo-btn                  { color:#29B6F6; }
    .stack-btn.undo-btn svg              { stroke:#29B6F6; }
    .stack-btn.redo-btn .stack-icon-wrap { background: transparent; }
    .stack-btn.redo-btn                  { color:#66BB6A; }
    .stack-btn.redo-btn svg              { stroke:#66BB6A; }

    .stack-icon-wrap {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    /* ── Sliders ── */
    .sliders-section {
      padding: 0.725rem 0;
      display: flex;
      flex-direction: column;
      gap: 18px;
      border-bottom: 1px solid var(--border-light);
    }

    .slider-row { display: flex; flex-direction: column; gap: 8px; }

    .slider-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .slider-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .slider-label .label-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .slider-label svg { width: 13px; height: 13px; }

    .slider-value {
      font-size: 12px;
      font-weight: 600;
      color: var(--primary);
      background: var(--mygrey2);
      padding: 3px 10px;
      border-radius: 12px;
      min-width: 42px;
      text-align: center;
    }

    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 5px;
      border-radius: 3px;
      background: var(--border);
      outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      background: #fff;
      border: 2.5px solid var(--primary);
      cursor: pointer;
      box-shadow: 0 1px 5px rgba(32, 178, 170, 0.25);
      transition: transform 0.1s;
    }

    input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }

    /* ── Color Palette ── */
    .palette-section {
      padding: 0.725rem 0;
    }

    .palette-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .palette-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .palette-mode {
      font-size: 11px;
      font-weight: 500;
      color: var(--text-tertiary);
    }

    .color-grid {
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      gap: 8px;
    }

    .color-dot {
      aspect-ratio: 1;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2px solid transparent;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .color-dot:hover { 
      transform: scale(1.15);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    .color-dot.selected {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary), 0 2px 8px rgba(32, 178, 170, 0.3);
      transform: scale(1.1);
    }
    .color-dot.empty {
      border: 2px solid var(--border);
      background: #fff;
      cursor: default;
      box-shadow: none;
    }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }






/**************************** 편지지 ****************************/

.rd-box{
  background: #fff;
  border: 1px solid var(--myborder);
  border-radius:10px;
}

/* 편지지 미리보기 */
.prev-box{     
  display: flex;
  flex-wrap: wrap;
  background: #FFFEF8;
  border: 1px solid #D3A76A;
  border-radius: 10px;
}


/* 편지지 보기 리스트 - 가로 스크롤 영역 */
.product-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}


/* 편지지 보기 리스트 - 세로 스크롤 영역 */
.product-scroll-y {
  display: flex;
  gap: 16px 8px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}



/* 스크롤바 숨김 */
.product-scroll::-webkit-scrollbar {
  display: none;
}

.product-scroll {
  scrollbar-width: none;
}

/* 카드 */
.product-card {
  flex: 0 0 auto;       /* 줄바꿈 방지 */
  width: 90px;         /* 카드 고정 너비 */
  scroll-snap-align: start;
  cursor: pointer;
}


/* 카드 - 세로 스크롤 영역 */
.product-card-y {
  flex: 0 0 auto;       /* 줄바꿈 방지 */
  width: 100px;         /* 카드 고정 너비 */
  scroll-snap-align: start;
  cursor: pointer;
}





/* 썸네일 비율 1:2 */
.thumb {
  background: #f8d1c4;
  border-radius: 12px;
  border:1px solid var(--myborder);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;  
}

.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb.on{border:3px solid #00F2D6}

/* 제목 2줄 말줄임 */
.product-card .title,
.product-card-y .title {
  font-size: 0.8rem;
  margin: 8px 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: normal;
}

/* 가격 */
.price span {
  font-size: 0.8rem;
  color: #999;
  margin-left: 4px;
}


/* 하단 고정 박스 스티키ver*/
.sticky-bottom{
  position:sticky;
  bottom:0;
 }







/* -----------------------------------모바일 탑바 --------------------------------------- */

.my-editor-header-sticky{
    position: fixed;
    top: 0;
    z-index: 999;
    width:100%;
}

.my-header-scrolled{
  overflow:hidden !important;
  box-shadow:0 6px 20px rgba(0,0,0,0.08); /* 선택 */
}

 /* ── 헤더 래퍼 ── */
    .my-editor-header-wrap {
      position: relative;
      flex-shrink: 0;
      transition: all 0.3s ease-in-out;
      /* overflow: hidden; */
      z-index: 50;
      opacity: 1;
    }


    @media (min-width: 840px) {	    /*  PC 에서 숨김  */
    .my-editor-header-wrap, .my-editor-header-sticky {
    display: none;
  }
}
/* [2026-12-03] 모바일: 상단바(56px)가 편지 윗부분을 덮지 않게 그만큼 자리를 비워 둠 */
@media (max-width: 839.98px) {
  #content-area::before { content: ""; display: block; height: 56px; }
}

    /* ── 헤더 ── */
    .my-editor-header {
      height: 56px;
      background: rgba(255,255,255,0.94);   /* [2026-12-03] 0.8 → 0.94: 뒤 글씨가 비쳐 어수선해 보이던 것 */
      backdrop-filter: blur(12px);
      border-bottom: 1px solid #f5f5f4;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
    }

    /* 뒤로가기 버튼 */
    .my-editor-back-btn {
      width: 40px; height: 40px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 9999px;
      background: none; border: none; cursor: pointer;
      color: #57534e;
      transition: background 0.15s;
      flex-shrink: 0;
    }
    .my-editor-back-btn:hover { background: #f5f5f4; }

    /* 중앙 줌 버튼 */
    .my-editor-center {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 16px;
    }

    .my-zoom-btn {
      height: 36px;
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(245,245,244,0.8);
      padding: 0 16px;
      border-radius: 9999px;
      border: none;
      cursor: pointer;
      transition: background 0.3s;
    }
    .my-zoom-btn:hover { background: rgba(231,229,228,0.8); }
    .my-zoom-btn.active { background: rgba(247,247,,0.8); outline:2px solid #fce7f3; outline-offset: -2px; /* 안쪽으로 */}

    .my-zoom-icon { color: #6b7280; transition: color 0.15s; }
    .my-zoom-btn:hover .my-zoom-icon { color: #292524; }
    .my-zoom-btn.active .my-zoom-icon { color: #ed5da4; }

    .my-zoom-label {
      font-size: 13px;
      font-weight: 700;
      color: #57534e;
    }

    /* 우측 버튼 그룹 */
    .my-editor-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .my-save-btn {
      height: 36px;
      padding: 0 16px;
      display: flex; align-items: center; justify-content: center;
      background: #f5f5f4;
      border: none; border-radius: 9999px;
      font-size: 13px; font-weight: 700; color: #57534e;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
      font-family: 'Noto Sans KR', sans-serif;
    }
    .my-save-btn:hover  { background: #e7e5e4; }
    .my-save-btn:active { transform: scale(0.95); }

    .my-next-btn {
      height: 36px;
      padding: 0 16px;
      display: flex; align-items: center; justify-content: center; gap: 4px;
      background: #ec4899;
      border: none; border-radius: 9999px;
      font-size: 13px; font-weight: 900; color: #fff;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(236,72,153,0.25);
      transition: background 0.15s, transform 0.1s;
      font-family: 'Noto Sans KR', sans-serif;
    }
    .my-next-btn:hover  { background: #db2777; }
    .my-next-btn:active { transform: scale(0.95); }





/* ── 줌 슬라이더 패널 ── */
    .my-zoom-panel {
      position: absolute;
      top: 56px;
      left: 0; right: 0;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid #f5f5f4;
      padding: 0 24px;
      z-index: 40;
      /* overflow: hidden; */
      height: 0;
      opacity: 0;
      transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .my-zoom-panel.open {
      height: 52px;
      opacity: 1;
      box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }

    .my-zoom-panel-inner {
      height: 100%;
      display: flex;
      align-items: center;
      gap: 16px;
      max-width:500px;
      margin: 0 auto;
    }

    .my-zoom-min-label,
    .my-zoom-max-label {
      font-size: 10px;
      font-weight: 900;
      color: #d4d0cb;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      flex-shrink: 0;
    }

    /* 슬라이더 */
    .my-zoom-range {
      flex: 1;
      height: 4px;
      background: #e7e5e4 !important;
      border-radius: 9999px;
      appearance: none !important;
      cursor: pointer;
      accent-color: #ec4899 !important;
      outline: none !important;
    }

    .my-zoom-range::-webkit-slider-thumb {
      appearance: none;
      width: 18px; height: 18px;
      border-radius: 9999px;
      background: #ec4899 !important;
      box-shadow: 0 2px 6px rgba(236,72,153,0.4) !important;
      cursor: pointer;
      transition: transform 0.15s;
      border:none !important;
    }

    .my-zoom-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

    .my-zoom-divider {
      width: 1px; height: 16px;
      background: #e7e5e4;
      margin: 0 4px;
      flex-shrink: 0;
    }

    .my-zoom-close-btn {
      padding: 0;
      background: none; border: none; cursor: pointer;
      color: #6b7280; border-radius: 9999px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: background 0.15s;
    }
    .my-zoom-close-btn:hover { background: #f5f5f4; }