  :root{
    --v2-pink-50:#fdf2f8;
    --v2-pink-100:#fce7f3;
    --v2-pink-200:#fbcfe8;
    --v2-pink-300:#f9a8d4;
    --v2-pink-400:#f472b6;
    --v2-pink-500:#ec4899;
    --v2-pink-600:#db2777;
    --v2-fab:#d92672;
    --v2-fab-hover:#c2185b;
    --v2-stone-50:#fafaf9;
    --v2-stone-100:#f5f5f4;
    --v2-stone-200:#e7e5e4;
    --v2-stone-300:#d6d3d1;
    --v2-stone-400:#a8a29e;
    --v2-stone-600:#57534e;
    --v2-stone-700:#44403c;
    --v2-stone-800:#292524;
    --v2-stone-900:#1c1917;
  }


  /* ===================== 공통 버튼/드롭다운 뼈대 ===================== */
  .v2-toolbar-slot{
        position: fixed;
        bottom: 5.5rem;
        left: 2%;
        right: 2%;
        max-width: 640px;
		margin:0 auto;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        z-index: 100;
        gap: 4px; 	
  }

  .v2-toolbar{
    width:100%;
    background:rgba(255,255,255,.95);
    -webkit-backdrop-filter:blur(6px);
    backdrop-filter:blur(6px);
    border:1px solid var(--v2-pink-200);
    border-radius:20px;
    box-shadow:0 8px 24px -8px rgba(244,114,182,.25);
    padding:4px;
  }
  .v2-toolbar[hidden]{ display:none; }

  .v2-toolbar__row{
    display:flex;
    align-items:center;
    width:100%;
    padding:4px;
  }

  .v2-toolbar__group{
    display:flex;
    align-items:center;
    gap:2px;
    flex-shrink:0;
  }
  .v2-toolbar__group--actions{ flex:1; justify-content:space-evenly; min-width:0; }
  .v2-toolbar__group--extra{ display:none; align-items:center; flex-shrink:0; margin-left:4px; }

  .v2-toolbar__divider{
    width:1px; height:20px; background:var(--v2-stone-200); opacity:.8;
    margin:0 4px; flex-shrink:0;
  }

  .v2-menu-anchor{ position:relative; flex-shrink:0; } 
  .v2-menu-anchor .hide{font-weight:500 !important; padding:0;  text-align:left !important; margin-left:-8px}
  
  

  .v2-toolbar__btn{
    display:flex; align-items:center; justify-content:center;
    border:none; background:none; cursor:pointer; font-family:inherit;
    color:var(--v2-stone-700);
    transition:background-color .15s ease,color .15s ease,transform .1s ease,border-color .15s ease;
  }
  .v2-toolbar__btn:active{ transform:scale(.95); }

  .v2-toolbar__btn--select{
    gap:4px; padding:6px 8px; border:1px solid #ebebeb; border-radius:12px;
  }
  .v2-toolbar__btn--select:hover{ background:var(--v2-stone-50); }
/* 선택된 상태 (핑크 효과) */
  .v2-toolbar__btn--select.active{
    border-color:var(--v2-pink-300); background:rgba(253,242,248,.7); color:var(--v2-pink-600); font-weight:800;  }


  .v2-toolbar__btn-label{
    font-size:12px; font-weight:700; max-width:62px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }

  .v2-icon-chev{ color:var(--v2-stone-400); opacity:.6; flex-shrink:0; }

  .v2-toolbar__btn--icon{ width:28px; height:28px; border-radius:12px; color:var(--v2-stone-600); }
  .v2-toolbar__btn--icon:hover{ background:var(--v2-stone-100); }
  .v2-toolbar__btn--icon.active{ background:var(--v2-pink-50); border:1px solid var(--v2-pink-300); color:var(--v2-pink-600); }

  .v2-toolbar__btn--color{ width:28px; height:28px; flex-direction:column; border-radius:12px; }
  .v2-toolbar__btn--color:hover{ background:var(--v2-stone-50); }
  .v2-toolbar__btn--color.active{ background:var(--v2-pink-50); border:1px solid var(--v2-pink-300); }

  .v2-color-a{ font-size:13px; font-weight:900; line-height:1; color:#000; user-select:none; }
  .v2-color-bar{ width:14px; height:3px; margin-top:2px; border-radius:2px; border:1px solid rgba(0,0,0,.1); }

  .v2-toolbar__btn--primary{
    width:30px; height:30px; border-radius:12px; background:var(--v2-pink-500); color:#fff; box-shadow:0 1px 2px rgba(0,0,0,.08);
    position:relative;
  }
  .v2-toolbar__btn--primary:hover{ background:var(--v2-pink-600); }

  .v2-toolbar__btn--pill{
    height:30px; padding:0 12px; gap:6px; border-radius:12px; font-weight:700; font-size:13px;
    background:var(--v2-pink-50); color:var(--v2-pink-600); border:1px solid var(--v2-pink-200); box-shadow:0 1px 2px rgba(0,0,0,.05);
  }
  .v2-toolbar__btn--pill:hover{ background:var(--v2-pink-100); }
  .v2-toolbar__btn--pill.active{ background:var(--v2-stone-900); color:var(--v2-pink-400); border-color:var(--v2-stone-800); }

  /* ===================== 드롭다운(모달) 패널 ===================== */
  .v2-panel{
    position:absolute;
    bottom:calc(100% + 20px);
    left:0;
    min-width:140px;
    background:#fff;
    border:1px solid var(--v2-pink-200);
    border-radius:16px;
    box-shadow:0 16px 40px -10px rgba(0,0,0,.22);
    padding:8px ;
    opacity:0; transform:translateY(8px) scale(.97); pointer-events:none;
    transition:opacity .15s ease, transform .15s ease;
    z-index:40;
  }

  .v2-panel.open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
  .v2-panel--wide{ width:min(260px, calc(100vw - 32px)); }
  .v2-panel--align{ padding:6px; display:flex; gap:4px;  left:-70px; right:0; justify-content: space-around; }

  .v2-panel__header{
    display:flex; align-items:center; justify-content:space-between;
    padding:4px 6px 8px; margin-bottom:2px; border-bottom:1px solid var(--v2-stone-100);
    font-size:11px; font-weight:800; color:var(--v2-stone-400);
  }
  .v2-panel__header-title{ display:flex; align-items:center; gap:6px; color:var(--v2-stone-700); font-size:12px; }
  .v2-panel__close{
    display:flex; align-items:center; justify-content:center; width:22px; height:22px;
    border:none; background:none; color:var(--v2-stone-300); cursor:pointer; border-radius:8px;
  }
  .v2-panel__close:hover{ background:var(--v2-stone-100); color:var(--v2-stone-500); }

/* 폰트바꾸기 */
  .v2-panel__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; max-height:240px; overflow-y:auto }
  .v2-panel__item{
    display:flex; align-items:center; justify-content:space-between; width:100%;
    padding:6px 10px; border:none; background:none; border-radius:10px;
    font-size:14px; font-weight:700; color:var(--v2-stone-600); cursor:pointer; text-align:left;
  }
  .v2-panel__item:hover{ background:var(--v2-stone-50); }
  .v2-panel__item.selected{ background:var(--v2-pink-50); color:var(--v2-pink-600); }
  .v2-panel__check{ color:var(--v2-pink-500); opacity:0; flex-shrink:0; }
  .v2-panel__item.selected .v2-panel__check{ opacity:1; }

  .v2-panel__bold-toggle{
    width:100%; margin-top:8px; padding-top:8px; border-top:1px solid var(--v2-stone-100);
  }
  .v2-panel__bold-btn{
    width:100%; padding:7px 10px; border-radius:12px; border:none; cursor:pointer;
    font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; gap:6px;
    background:var(--v2-stone-100); color:var(--v2-stone-600);
  }
  .v2-panel__bold-btn.active{ background:var(--v2-stone-900); color:var(--v2-pink-400); }

  .v2-swatch-grid{
       display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px 4px;
    max-height: 190px;
    overflow-y: auto;
    padding: 8px;
    justify-content: center;
    justify-items: center;
    align-items: center;
  }
  .v2-swatch{
    width:26px; height:26px; border-radius:50%; border:2px solid #fff; cursor:pointer; padding:0;
    box-shadow:0 0 0 1px var(--v2-stone-200);
    display:flex; align-items:center; justify-content:center;
  }
  .v2-swatch.selected{ box-shadow:0 0 0 2px var(--v2-pink-500); }
  .v2-swatch__dot{ width:22px; height:22px; border-radius:50%; }
  

  

  .v2-panel__reset{
    width:100%; margin-top:8px; padding-top:8px; border-top:1px solid var(--v2-stone-100);
    display:flex; align-items:center; justify-content:center; gap:6px;
    padding-bottom:2px;
  }
  .v2-panel__reset-btn{
    width:100%; padding:6px 8px; border-radius:12px; border:1px solid var(--v2-stone-200); background:#fff; cursor:pointer;
    font-size:11px; font-weight:700; color:var(--v2-stone-600); display:flex; align-items:center; justify-content:center; gap:6px;
  }
  .v2-panel__reset-btn:hover{ background:var(--v2-stone-50); }

  .v2-align-btn{
    width:36px; height:36px; border-radius:12px; border:none; cursor:pointer; color:var(--v2-stone-600); background:none;
    display:flex; align-items:center; justify-content:center;
  }
  .v2-align-btn:hover{ background:var(--v2-stone-100); }
  .v2-align-btn.selected{ background:var(--v2-stone-900); color:#fff; }

  /* ===================== 부분강조 진입 버튼 (모바일 FAB) ===================== */
  .v2-fab-wrap{
    display:flex; flex-direction:column; align-items:center; gap:4px;
    position:absolute; right:6px; bottom:calc(100% + 14px);
  }
  .v2-fab{
    width:44px; height:44px; border-radius:16px; border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    background:var(--v2-fab); color:#fff;
    box-shadow:0 4px 14px rgba(217,38,114,.4);
    transition:background-color .15s ease, transform .1s ease;
  }
  
/* 부분강조 아이콘 - 반짝이효과 (검정 활성 상태에서만) */
.v2-fab.active > svg.v2-fab__icon {
  animation: v2Pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes v2Pulse {
  50% { opacity: .5; }
}

/* 모션 줄이기 설정한 사용자 배려 (선택) */
@media (prefers-reduced-motion: reduce) {
  .v2-fab.active > svg.v2-fab__icon { animation: none; }
}


  .v2-fab:hover{ background:var(--v2-fab-hover); }
  .v2-fab:active{ transform:scale(.95); }
	.v2-fab.active{
	  background:var(--v2-stone-900); color:var(--v2-pink-400);
	  border:1px solid #292524;
	  box-shadow:    0 0 0 2px rgba(244,114,182,.4),      /* ring-2 ring-pink-400/40 */ 
		0 4px 6px -1px rgba(28,25,23,.4);    /* 기존 그림자 */
	}
  .v2-fab__label{
    font-size:10px; font-weight:800; color:var(--v2-stone-600);
    background:rgba(255,255,255,.95); padding:2px 6px; border-radius:999px;
    box-shadow:0 1px 2px rgba(0,0,0,.05); border:1px solid rgba(251,207,232,.6);
    user-select:none;
  }

  /* ===================== 부분강조 툴바 (SelectionBubbleToolbar) ===================== */
  .v2-bubble{
    width:100%; background:rgba(28,25,23,.95); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
    color:#fff; border:1px solid rgba(87,83,78,.8); border-radius:18px; padding:4px;
    box-shadow:0 14px 34px rgba(0,0,0,.35);
  }
  .v2-bubble[hidden]{ display:none; }

  .v2-bubble__row{ display:flex; align-items:center; width:100%; padding:4px; justify-content:space-between; }

  .v2-bubble__label{
    padding:0 6px; font-size:13px; font-weight:900; letter-spacing:-.2px; color:var(--v2-pink-400);
    white-space:nowrap; user-select:none; flex-shrink:0;
  }

  .v2-bubble__divider{ width:1px; height:20px; background:#57534e; margin:0 4px; flex-shrink:0; }

  .v2-bubble__group{ flex:1; display:flex; align-items:center; justify-content:space-evenly; min-width:0; gap:0 4px }

  .v2-bubble__btn{
    height:30px; padding:0 4px; border-radius:8px;  cursor:pointer; background:none;
    display:flex; align-items:center; gap:4px; color:#e7e5e4; transition:background-color .15s ease,color .15s ease;
  }
  .v2-bubble__btn:hover{ background:#373737; color:#fff; }
  .v2-bubble__btn.active{ background:#373737; border-color:#57534e; }

  .v2-bubble__btn-stack{ display:flex; flex-direction:column; align-items:center; justify-content:center; }
  .v2-bubble__a{ font-size:13px; font-weight:900; line-height:1; user-select:none; }
  .v2-bubble__a-bar{ width:14px; height:3px; margin-top:2px; border-radius:2px; }

  .v2-bubble__hl-chip{
    width:16px; height:14px; border-radius:3px; display:flex; align-items:center; justify-content:center;
  }
  .v2-bubble__hl-chip__bg{border-radius:4px; padding:4px 2px;}
  .v2-bubble__hl-chip span{ font-size:10px; font-weight:900; color:var(--v2-stone-900); line-height:1; }
  .v2-bubble__hl-bar{ width:14px; height:3px; margin-top:1px; border-radius:2px; }

  .v2-bubble__fmt{
    width:26px; height:26px; border-radius:12px; border:none; cursor:pointer; background:none; color:#d6d3d1;
    display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:900; transition:background-color .15s ease,color .15s ease,transform .1s ease;
  }
  .v2-bubble__fmt:hover{ background:#292524; color:#fff; }
  .v2-bubble__fmt.active{ background:var(--v2-pink-500); color:#fff; transform:scale(1.05); }
  .v2-bubble__fmt--u{ text-decoration:underline; }
  .v2-bubble__fmt--i{ font-style:italic; }
  .v2-bubble__fmt--s{ text-decoration:line-through; }

  .v2-bubble__close-wrap{ display:flex; align-items:center; flex-shrink:0; padding-left:4px; }
  .v2-bubble__close-full{
    display:none; align-items:center; gap:6px; padding:0 12px; height:34px; border-radius:12px;
    background:#292524; border:1px solid rgba(87,83,78,.7); color:#e7e5e4; font-size:12px; font-weight:800; cursor:pointer;
  }
  .v2-bubble__close-full:hover{ background:#3a3532; color:#fff; }
  .v2-bubble__close-mini{
    width:30px; height:30px; border-radius:12px; border:none; background:none; color:var(--v2-pink-400); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
  }
  .v2-bubble__close-mini:hover{ background:#292524; }

  /* 부분강조 패널(글자색/배경색)은 공통 패널 스타일 재사용 + 어두운 배경 보정 */
  .v2-panel--dark{ background:#fff; color:var(--v2-stone-800); }

  .v2-toast{
    position:fixed; left:50%; bottom:24px; transform:translate(-50%,12px);
    background:var(--v2-stone-900); color:#fff; font-size:12px; font-weight:700;
    padding:9px 16px; border-radius:999px; box-shadow:0 8px 24px rgba(0,0,0,.25);
    opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; z-index:100;
  }
  .v2-toast.is-visible{ opacity:1; transform:translate(-50%,0); }

  /* ===================== 840px 이상 ===================== */
  


  @media (min-width:840px){
     .v2-toolbar{ padding:6px; }
    .v2-toolbar__row{ padding:4px 6px; }
    .v2-toolbar__group{ gap:6px; }
    .v2-toolbar__btn-label{ font-size:14px; max-width:80px; }

    .v2-toolbar__btn--icon,
    .v2-toolbar__btn--color,
    .v2-toolbar__btn--primary{ width:36px; height:36px; border-radius:14px; }

    .v2-toolbar__group--extra{ display:flex; }
    .v2-fab-wrap{ display:none; }

    .v2-bubble__fmt{ width:36px; height:36px; }
    .v2-bubble__close-full{ display:flex; }
    .v2-bubble__close-mini{ display:none; }	
  }



