/* 🎬 말랑달콤 애니 스타일 (도련 10-28) : 앱 전체를 '애니메이션 세계'처럼
   - 그라데이션 · 무늬 없음 · 평면 투톤(바탕 1 + 칼같이 떨어지는 그늘 1) · 바닥 그림자는 딱 떨어지는 연보라 한 겹
   - 선 = 흰빛 섞인 파스텔 (--an-ol) · 그림 속 선 · 그라데이션은 js/anime.js 가 단색 · 파스텔로
   - 끄려면 html 에서 class 'an' 을 빼요 (js/anime.js ANIME_ON) */
html.an {
  --an-ol: #bba6d6; --an-sh: #e2b6d6; --an-wsh: rgba(176, 150, 214, .35);   /* 창 그림자 = 연보라 반투명 (도련 10-28) */   /* 그림자 = 진한 장밋빛 라일락 (도련 10-28 : 흰 그림자는 안 예뻐요) */ --an-ink: #9a84bd;
  --an-pk: #ffb7cb; --an-pk2: #f6a0ba; --an-pkl: #e48fae;
  --an-cr: #fffaf3; --an-cr2: #f1e8f8; --an-crl: #c8b3e3;
  --an-mt: #a5e2c7; --an-mt2: #8fd3b5; --an-mtl: #6fc39f;
  --an-2t: 168deg;                                   /* 투톤 그늘 방향 */
}
/* ---------- 🪟 창 ---------- */
html.an .modal .modal-content:not(.obj-win) { background: var(--an-cr) !important; border: 1.6px solid var(--an-ol) !important; box-shadow: 6px 7px 0 var(--an-wsh) !important; }
html.an .alert-card:not(.gate-card) { background: var(--an-cr) !important; border: 1.6px solid var(--an-ol) !important; box-shadow: 6px 7px 0 var(--an-wsh) !important; }
html.an .modal .dk-tape.l, html.an .dk-tape.l { background: #ffc6d6 !important; border: 1.3px solid var(--an-ol); opacity: 1 !important; }
html.an .modal .dk-tape.r, html.an .dk-tape.r { background: #bfead6 !important; border: 1.3px solid var(--an-ol); opacity: 1 !important; }
html.an .modal .dk-die { filter: none !important; }
html.an .modal .service-btn .dk-lb { border: 1.3px solid var(--an-ol) !important; background: #fff !important; box-shadow: none; color: var(--an-ink) !important; }
/* ---------- 🔘 버튼 = 동그란 알약 · 단색 (도련 10-28 통일) : 보통 · 고르지 않은 것 = 흰색 / 고른 것 · 주인공 버튼 = 연분홍 ---------- */
html.an .btn:not(.service-btn), html.an .dk-cta, html.an .sh-take, html.an .sh-zoombtn, html.an .bk-again, html.an .stk-tab {
  border-radius: 999px !important; border: 1.5px solid #f2b6c9 !important; border-style: solid !important; color: #7b5a6b !important; text-shadow: none !important; clip-path: none !important;
  background: #fff !important; box-shadow: none !important; }
html.an .btn:not(.service-btn):active, html.an .sh-take:active, html.an .dk-cta:active { translate: 0 1px; }
/* 연분홍 = 고른 것(.on · aria) + 주인공 버튼 (확인 · 만들기 · 받기 · 받아 오기 · 저장) */
html.an .btn.on, html.an .stk-tab.on, html.an button[aria-pressed="true"], html.an [aria-selected="true"].btn, html.an .btn.active, html.an .btn.sel, html.an .dk-cta, html.an #customAlertConfirmBtn, html.an .btn.primary, html.an .btn-primary, html.an #bkGet, html.an .sh-take:not(.sh-zoombtn) {
  border: 1.5px solid #e88fb0 !important; color: #c8457a !important; background: #ffe0ea !important; }   /* 연분홍 바탕에서도 선이 보이게 */
html.an .btn.on small, html.an .btn.on span { color: inherit; }
html.an .dk-cta { height: 52px !important; font-size: 19px !important; }
html.an .dk-cta::before, html.an .dk-cta::after { display: none !important; }
/* 🎀 창 제목만 리본 (연분홍 단색 · 양 끝 V 홈) */
html.an .modal .modal-title.mt-bar .mt-text { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: #c8457a !important; text-shadow: none !important;
  background: #ffd3df !important; clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%, 13px 50%) !important; outline: 0 !important; }
html.an .modal .modal-title.mt-bar .mt-text { font-size: 18px !important; padding: 6px 34px !important; overflow: visible !important; }
html.an .modal .mt-x, html.an .modal .mt-back { background: var(--an-cr) !important; border: 1.4px solid var(--an-ol) !important; box-shadow: none !important; color: #e07595 !important; }
/* ---------- 🧺 바구니 · 🏪 기본상품 샵 ---------- */
html.an .bk-bin { background: #ecc39b !important; border: 1.6px solid var(--an-ol) !important; box-shadow: inset 0 7px 0 #d9a97c, 4px 4px 0 var(--an-sh) !important; }
html.an .bk-bin::before, html.an .bk-bin::after, html.an .bk-pile, html.an .bk-pile::before, html.an .bk-pile::after { background-image: none !important; }
html.an .bk-pile { background-color: transparent !important; }
html.an .bk-say { background: var(--an-cr) !important; border: 1.4px solid var(--an-ol) !important; box-shadow: 3px 3px 0 var(--an-sh) !important; }
html.an #shelfKindModal .shk-frame { filter: drop-shadow(1.2px 0 0 var(--an-ol)) drop-shadow(-1.2px 0 0 var(--an-ol)) drop-shadow(0 1.2px 0 var(--an-ol)) drop-shadow(0 -1.2px 0 var(--an-ol)) drop-shadow(6px 7px 0 var(--an-wsh)); }
html.an #shelfKindModal > .modal-content.obj-win { filter: none !important; }
html.an #shelfKindModal .obj-win .sh-wrap { background: var(--an-cr) !important; box-shadow: inset 0 0 0 1.4px var(--an-ol) !important; }
html.an #shelfKindModal .obj-win > .modal-title.mt-bar { filter: drop-shadow(1.2px 0 0 var(--an-ol)) drop-shadow(-1.2px 0 0 var(--an-ol)) drop-shadow(0 1.2px 0 var(--an-ol)) drop-shadow(0 -1.2px 0 var(--an-ol)) drop-shadow(3px 3px 0 var(--an-sh)) !important; }
html.an #shelfKindModal .obj-win .mt-text { border: 0 !important; box-shadow: none !important; border-radius: 6px !important; padding: 7px 24px !important; outline: 0 !important; color: #c8457a !important; background: #ffd3df !important; clip-path: none !important; }
html.an #shelfKindModal .sh-arw { filter: none !important; }
html.an #shelfKindModal .sh-arw path:not(.hl) { stroke: var(--an-ol) !important; stroke-width: 2.4 !important; fill: var(--an-pk) !important; }
html.an #shelfKindModal .sh-arw path.hl { display: none; }
html.an #shelfKindModal .sh-pgno { border: 1.4px solid var(--an-ol) !important; box-shadow: none; color: var(--an-ink) !important; }
html.an .sh-look { background: #fff !important; box-shadow: 0 0 0 1.3px var(--an-ol), 3px 3px 0 var(--an-sh) !important; border-radius: 10px; }
html.an .sh-paper, html.an .sh-tool { box-shadow: none !important; }
html.an .ab-tabs { background: var(--an-cr) !important; box-shadow: 0 0 0 1.4px var(--an-crl) !important; border-radius: 999px !important; padding: 4px !important; }
html.an .ab-tabs button { border-radius: 999px !important; color: #a68dc8 !important; background: none !important; box-shadow: none !important; }
html.an .ab-tabs button.on { background: #ffe0ea !important; color: #c8457a !important; color: #c8457a !important; box-shadow: 0 0 0 1.5px var(--an-pkl) !important; }
/* ---------- 📔 다이어리 (도련 10-28 시안) : 코랄 표지가 둘레로 · 크림 낱장 겹침 · 파스텔 선 ---------- */
html.an .inner-page .dy-fold { background: linear-gradient(90deg, transparent calc(50% - .7px), var(--an-ol) calc(50% - .7px) calc(50% + .7px), transparent calc(50% + .7px)) !important; opacity: 1; }
html.an .inner-page .page-header { background: var(--page-bg) !important; border: 1.3px solid var(--an-ol) !important; box-shadow: 3px 3px 0 var(--an-sh) !important; }
html.an .inner-page .ps-st { background: var(--page-bg) !important; box-shadow: inset 0 0 0 1.4px var(--an-ol) !important; }
/* ✂️ 문구 도구(페이지 위 핀셋 · 칼 …) · 기본상품 샵 도구 그림 : 파스텔 아웃라인 */
html.an .bd-tool svg, html.an .sh-tool svg, html.an .gdc-wrap svg, html.an .pc-tool svg, html.an .pc-held svg, html.an .twz svg, html.an .sk-knife svg, html.an .rl-ruler svg, html.an .scs-cur svg { filter: none !important; }   /* 문구 = 조각마다 제 색의 진한 선 (js/anime.js darkC · 페이지 위 2px · 목록 아이콘 1.2px · 도련 10-30) · 그림자 없음 */
html.an .bd-tool:not(.need), html.an .pc-tool, html.an .twz, html.an .sk-knife, html.an .scs-cur { filter: none !important; }   /* 문구 그림자 없음 · 알려 주는 반짝(.need)은 그대로 */
/* ---------- 🪑 책상 라벨 · 📱 하단 메뉴 ---------- */
html.an .toolbar { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }   /* 하단 메뉴 = 버튼만 (흰 네모 · 그림자 없음 · 도련 10-28) */
html.an .tb-btn { border: 1.5px solid var(--an-ol) !important; box-shadow: none !important; background-image: none !important; }
html.an .tb-btn::before { display: none !important; }   /* 반짝 하이라이트 없음 */
/* ---------- 🧚 로그인 요정 버튼 : 바닥 그림자 연보라 ---------- */


/* ---------- ✏️ 필기구통 (js/draw.js pcBuild) : 평면 투톤 분홍 통 · 흰 물방울 · 파스텔 선 ---------- */
html.an .pc-back { background: #d9759a !important; box-shadow: 0 0 0 1.4px var(--an-ol); }
html.an .pc-front { background: radial-gradient(circle, #fff 0 2.2px, transparent 2.6px) 0 0 / 12px 12px, linear-gradient(100deg, #ffc2d3 64%, #f7a8be 64%) !important;
  border: 1.6px solid var(--an-ol); box-shadow: 6px 7px 0 var(--an-sh) !important; }
html.an .pc-front::before { border-color: #ffe1ea !important; border-bottom-color: var(--an-ol) !important; }
html.an .pc-front::after, html.an .pc-front i { background: #ffe1ea !important; border-top: 1.3px solid var(--an-ol); border-bottom: 1.3px solid var(--an-ol); }
html.an .pc-box { background: var(--an-cr) !important; border: 1.5px solid var(--an-ol) !important; outline: 0 !important; box-shadow: none !important; color: #c8457a !important; }
html.an .pc-box em { background: #ffe0ea !important; border: 1.5px solid #f2a6bf; color: #c8457a !important; box-shadow: none !important; border-radius: 999px !important; padding: 4px 16px !important; }
html.an .pc-hint, html.an .pc-tipnote { background: var(--an-cr) !important; border: 1.4px solid var(--an-ol) !important; box-shadow: 3px 3px 0 var(--an-sh) !important; }
html.an .pc-x { background: var(--an-cr) !important; border: 1.4px solid var(--an-ol) !important; box-shadow: none !important; color: #e07595 !important; }

/* 🔘 버튼 그림자는 모두 없음 (도련 10-28) */
html.an button:not(.desk-item):not(.gf-btn), html.an .btn, html.an [role="button"] { box-shadow: none !important; }
html.an .modal .ab-tabs button.on { box-shadow: 0 0 0 1.5px var(--an-pkl) !important; }
/* 버튼 안쪽 흰 점선 · 테두리 점선도 없음 (모든 창) */
html.an .btn::before, html.an #customAlertConfirmBtn::before, html.an .btn-primary::before { display: none !important; }
html.an .modal-content .btn, html.an .alert-card .btn { border-style: solid !important; }
/* 원래 css 에서 테두리를 0 으로 둔 버튼도 테두리가 보이게 (예 : 알림 창 확인 · 도련 10-28) */
html.an #customAlertCancelBtn { border: 1.5px solid #f2b6c9 !important; }
/* ---------- 📦 소품함 = 게임 인벤토리 (도련 10-28 시안 · js/desk.js deskBoxRender) ---------- */
#deskBoxModal > .modal-content.iv-win { width: min(94vw, 470px); max-width: none; padding: 10px 14px 14px !important; background: #d9cdf2 !important; border: 2px solid #b49fdc !important; border-radius: 24px !important; box-shadow: 6px 7px 0 rgba(176, 150, 214, .35) !important; overflow: visible; }
html.desk-on #deskBoxModal { justify-content: flex-end; padding-right: 4vw; background: none; pointer-events: none; }   /* 💻 책상 : 오른쪽에 떠서 책상을 보며 */
html.desk-on #deskBoxModal > .modal-content { pointer-events: auto; }
.iv-list { display: block; }   /* 종류가 많으면 옆으로 밀어요 */
.iv-tab { position: relative; flex: 0 0 54px; height: 50px; padding: 0; border-radius: 14px 14px 0 0; background: #ebe3fa; border: 2px solid #c8b3e3; border-bottom: 0; display: grid; place-items: center; cursor: pointer; }
.iv-tab img { max-width: 34px; max-height: 34px; opacity: .7; pointer-events: none; }
.iv-tab.on { background: #8f7bd6; border-color: #8f7bd6; } .iv-tab.on img { opacity: 1; }
.iv-tab i { position: absolute; right: 3px; top: 2px; font-style: normal; font-size: 10px; font-weight: 800; color: #8f7bd6; }
.iv-tab.on i { color: #fff; }
.iv-box { background: #fff2f6; border: 2px solid #c8b3e3; border-radius: 16px; padding: 12px; }
.iv-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-height: min(50vh, 380px); overflow-y: auto; padding: 3px; }
.iv-c { position: relative; min-width: 0; aspect-ratio: 1; border-radius: 14px; background: #ffe3ec; border: 2px solid #e9c6dc; display: grid; place-items: center; padding: 0; cursor: pointer; overflow: hidden; box-sizing: border-box; }
.iv-c img { max-width: 74%; max-height: 74%; pointer-events: none; }
.iv-c em { position: absolute; right: 4px; bottom: 2px; font-size: 13px; font-style: normal; }
.iv-c.desk { background: #fff; border-color: #8fd3b5; }
.iv-c.sel { border-color: #8f7bd6 !important; box-shadow: 0 0 0 2px #8f7bd6; }
.iv-c.no { background: #fff7fa; } .iv-c.no b { font-size: 32px; color: #f3a6c4; font-weight: 400; }
.iv-c.empty { background: #fdf4f8; border-style: dashed; border-color: #ead6e4; cursor: default; }
.iv-name { min-height: 22px; margin-top: 10px; text-align: center; color: #7b5a6b; } .iv-name b { font-size: 14px; } .iv-name small { margin-left: 6px; font-size: 12px; color: #a08a94; }
.iv-foot { display: flex; gap: 8px; margin-top: 6px; min-height: 40px; align-items: center; }
.iv-foot .btn { flex: 1; height: 40px; justify-content: center; }
.iv-foot .iv-del { flex: 0 0 48px; }
/* ---------- 🛠 책상 꾸미기 모드 (도련 10-28 : 3 연출 → 1 방 변신 + 4 작업대 · 📦 소품함) ---------- */
/* 1 방 변신 : 연보라 막 + 모눈 (소품 아래) · 소품 점선 테두리 */
html.desk-edit .desk-stage::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(150, 120, 200, .2) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(150, 120, 200, .2) 1px, transparent 1px) 0 0 / 16px 16px, rgba(200, 180, 235, .22);
  animation: dkeVeil .45s ease both; }
@keyframes dkeVeil { from { opacity: 0; } }
html.desk-edit .desk-item { outline: 2px dashed rgba(166, 141, 200, .75); outline-offset: 3px; border-radius: 6px; }
/* 🎯 고른 것 = 그림 모양 따라 핑크 선 (도련 10-30 시안 · 번짐 없는 딱 떨어지는 선 · js/desk.js dkSelPaint) */
html.desk-edit .desk-item.sel, html.desk-edit .desk-item.lift { outline: none; }
html.desk-edit .desk-item.sel:not(.zsel) > img, html.desk-edit .desk-item.lift > img { filter: drop-shadow(3px 0 0 #ff6b88) drop-shadow(-3px 0 0 #ff6b88) drop-shadow(0 3px 0 #ff6b88) drop-shadow(0 -3px 0 #ff6b88); }
/* 들어 있는 곳 · 같이 움직이는 것 = 연보라 점선 (+ '○○ 안 / 위') */
html.desk-edit .desk-item.dk-host { outline: 2.5px dashed #a58fd6; outline-offset: 5px; border-radius: 12px; }
.dk-hostlb { position: absolute; z-index: 9750; background: #f3eefc; border: 1.6px solid #a58fd6; color: #6d58a8; border-radius: 999px; font-size: 12px; font-weight: 800; padding: 0 9px; line-height: 1.6; white-space: nowrap; pointer-events: none; }
/* 나머지 = 연하게 */
html.desk-edit.dk-sel-on .desk-item.dk-dim > img, html.desk-edit.dk-sel-on .dk-front.dk-dim img, html.desk-edit.dk-sel-on .dk-vol.dk-dim { filter: saturate(.45) brightness(1.1) contrast(.85); }
/* 4 작업대 (위) : 크림 나무판 + 줄자 · 버튼은 앱 규칙 (흰 / 연분홍) */
html.desk-edit .dke-bar { top: 0 !important; left: 0 !important; right: 0; translate: none !important; width: auto; justify-content: center; border-radius: 0 0 18px 18px !important; border: 0 !important; border-bottom: 2px solid #c9a27a !important;
  background: #f6dfbf !important; box-shadow: 0 5px 0 rgba(176, 150, 214, .35) !important; padding: 10px 16px 18px !important; animation: dkeDrop .4s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes dkeDrop { from { translate: 0 -100%; } }
.dke-bar .dke-ruler { position: absolute; left: 0; right: 0; bottom: 4px; height: 8px; background: repeating-linear-gradient(90deg, #c9a27a 0 1.5px, transparent 1.5px 12px), #ffe9a8; border-top: 1px solid #e0c28a; border-bottom: 1px solid #e0c28a; pointer-events: none; }
html.desk-edit .dke-bar .dke-tt { color: #9a6a3c; }
html.desk-edit .dke-bar .dke-snap.on { border-color: #8fd3b5 !important; background: #d9f4e7 !important; color: #2f7a5c !important; }
/* 아래 보관함 줄은 쓰지 않아요 (📦 소품함이 대신) */
html.desk-edit .dke-tray { display: none !important; }
/* 3 연출 : '꾸미기 시작!' 리본 */
.dke-hello { position: fixed; left: 50%; top: 42%; z-index: 5000; translate: -50% -50%; display: flex; align-items: center; gap: 10px; pointer-events: none; animation: dkeHello 1.4s ease both; }
.dke-hello b { background: #ffd3df; color: #c8457a; font-size: 26px; font-weight: 800; padding: 14px 54px; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%); white-space: nowrap; }
.dke-hello i { font-style: normal; font-size: 30px; animation: dkeTw .5s steps(2) infinite; }
@keyframes dkeHello { 0% { opacity: 0; scale: .6; } 18% { opacity: 1; scale: 1.08; } 28% { scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; translate: -50% -70%; } }
@keyframes dkeTw { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dke-hello, html.desk-edit .dke-bar, html.desk-edit .desk-stage::after { animation: none; } }
/* 꾸미는 중 소품함 : 작업대 아래로 */
html.desk-edit #deskBoxModal { padding-top: 70px; }
/* v841 (도련) : 작업대는 아래로 (위는 방 공간) · 🔗 기능 연결 창 */
html.desk-edit .dke-bar { top: auto !important; bottom: 0 !important; border-radius: 18px 18px 0 0 !important; border-bottom: 0 !important; border-top: 2px solid #c9a27a !important; padding: 18px 16px 12px !important; box-shadow: 0 -5px 0 rgba(176, 150, 214, .35) !important; animation-name: dkeRise; }
@keyframes dkeRise { from { translate: 0 100%; } }
html.desk-edit .dke-bar .dke-ruler { bottom: auto; top: 4px; }
html.desk-edit #deskBoxModal { padding-top: 0; padding-bottom: 80px; }
.dkf-tt { margin: 0 0 10px; text-align: center; color: #7b5a6b; font-weight: 700; }
.dkf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dkf-list .btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px !important; border-radius: 16px !important; height: auto; }
.dkf-list .btn small { font-size: 11px; color: #a08a94; min-height: 14px; }
.dkf-list .btn.on small { color: #c8457a; }
/* 🔗 기능 연결 = 모든 창 (도련 10-30) : 📌 기본 기능 · 🛍️ 상품 창 묶음 · ➕ 칸 추가 */
.dkf-list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: min(62dvh, 520px); overflow-y: auto; padding: 2px; }
.dkf-list .btn { padding: 8px 6px !important; }
.dkf-list .btn b { font-size: 13.5px; }
.dkf-g { grid-column: 1 / -1; margin: 4px 2px 0; font-size: 13px; color: #c8457a; }
.dkf-note { grid-column: 1 / -1; margin: 6px 2px 0; font-size: 12px; color: #9a7a88; text-align: center; }   /* 🗄️ 서랍장 칸 안내 (도련 11-01) */
/* v842 : 소품함 탭 = 글씨 · 4줄 · 안내 글 없음 */
.iv-tab { display: flex !important; align-items: center; flex: 0 0 auto !important; padding: 0 12px !important; height: 40px !important; font-size: 13px; font-weight: 700; color: #8f7bd6; white-space: nowrap; }
.iv-tab.on { color: #fff; }
.iv-tab i { position: static; margin-left: 3px; font-size: 10px; }
.iv-in { max-height: min(58vh, 470px); }
.iv-name:empty { display: none; }
/* v843 소품함 B : 왼쪽 종류 목록(따로 스크롤 · 전체는 위에 고정) + 오른쪽 칸 (따로 스크롤) */
#deskBoxModal > .modal-content.iv-win { width: min(94vw, 520px); }
.iv-body { display: flex; gap: 8px; height: min(62vh, 520px); }
.iv-side { flex: 0 0 112px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; padding: 6px; background: #fff2f6; border: 2px solid #c8b3e3; border-radius: 16px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8b3e3 transparent;
  -webkit-mask: linear-gradient(#000 calc(100% - 18px), transparent); mask: linear-gradient(#000 calc(100% - 18px), transparent); padding-bottom: 18px; }   /* 아래가 흐려지면 '더 있어요' */
.iv-side .iv-tab { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 4px; flex: none; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: #7b5a6b; font-size: 13px; font-weight: 700; }
.iv-side .iv-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-side .iv-tab i { font-style: normal; font-size: 11px; color: #b49fdc; }
.iv-side .iv-tab:hover { background: #fff; }
.iv-side .iv-tab.on { background: #ffe0ea; color: #c8457a; } .iv-side .iv-tab.on i { color: #e88fb0; }
.iv-side .iv-tab.all { position: sticky; top: -6px; z-index: 1; background: #fff2f6; margin: -6px -6px 2px; padding: 10px 16px; border-radius: 14px 14px 0 0; border-bottom: 1.5px dashed #e9c6dc; }
.iv-side .iv-tab.all.on { background: #ffe0ea; }
.iv-body .iv-box { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.iv-body .iv-in { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; align-content: start; overscroll-behavior: contain; }
@media (max-width: 480px) {                                                  /* 📱 좁으면 목록을 위 가로 칩으로 */
  .iv-body { flex-direction: column; height: min(64vh, 560px); }
  .iv-side { flex: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; -webkit-mask: none; mask: none; padding: 5px; }
  .iv-side .iv-tab { padding: 6px 10px; } .iv-side .iv-tab.all { position: static; margin: 0; padding: 6px 10px; border: 0; border-radius: 10px; }
  .iv-body .iv-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.iv-body .iv-in { min-height: 0; grid-auto-rows: max-content; }
.iv-body .iv-in > .iv-c { height: auto; align-self: start; }
@media (max-width: 480px) { .iv-body { height: min(54vh, 470px); } }
.iv-body .iv-box { min-height: 0; } .iv-body .iv-in { overflow-y: auto; }
/* ---------- 🎨 소품 꾸미기 창 · 💡 불빛 · ⏰ 울림 (js/deskcustom.js · 도련 10-28) ---------- */
#deskCsModal > .modal-content { width: min(94vw, 440px); }
.dcs-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 12px; }
.dcs-tab { padding: 6px 14px; border-radius: 999px; border: 1.5px solid #f2b6c9; background: #fff; color: #7b5a6b; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dcs-tab.on { background: #ffe0ea; border-color: #e88fb0; color: #c8457a; }
.dcs-body { min-height: 120px; }
.dcs-p { margin: 6px 0 10px; text-align: center; color: #8d7380; font-size: 12.5px; word-break: keep-all; }
.dcs-big { display: flex; margin: 10px auto; padding: 10px 22px !important; }
.dcs-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; } .dcs-row > b { flex: 0 0 64px; color: #7b5a6b; font-size: 13px; }
.dcs-end { justify-content: center; }
.dcs-sw { display: flex; gap: 6px; flex-wrap: wrap; } .dcs-sw button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1.5px #c8b3e3; cursor: pointer; } .dcs-sw button.on { box-shadow: 0 0 0 2.5px #8f7bd6; }
.dcs-snd, .dcs-font { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1; } .dcs-snd .btn, .dcs-font .btn { justify-content: center; }
.dcs-time { font: inherit; font-size: 16px; padding: 6px 10px; border-radius: 12px; border: 1.5px solid #c8b3e3; background: #fff; color: #5e4250; }
.dcs-area { position: relative; margin: 6px auto; touch-action: none; user-select: none; }
.dcs-area > img { width: 100%; height: 100%; display: block; pointer-events: none; }
.dcs-area .dcs-fn { position: absolute; inset: 0; background: rgba(143, 123, 214, .16); border-radius: 8px; pointer-events: none; }
.dcs-box { position: absolute; border: 2px solid #5fbf9a; background: rgba(127, 214, 180, .32); border-radius: 8px; cursor: move; display: grid; place-items: center; box-sizing: border-box; }
.dcs-box span { font-size: 20px; pointer-events: none; }
.dcs-h { position: absolute; right: -8px; bottom: -8px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #5fbf9a; cursor: nwse-resize; }
.dk-lights { position: absolute; inset: 0; z-index: 9500; pointer-events: none; }   /* 💡 불빛 = 책상 위 맨 위 한 겹 (옮기는 소품 8900 · 봉투 8800 보다 위 · 안내 · 메뉴 글씨만 그 위) (앞 소품에도 비쳐요 · js/deskcustom.js dcGlow · 도련 11-03) */
.dk-lights .dk-glow { position: absolute; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .35s; mix-blend-mode: screen; }   /* 번짐(blur) = 불빛 크기에 맞춰 js 가 */
.desk-item.dk-lt > img { visibility: hidden; }   /* 💡 전구줄 : 디자인 그림은 샵 · 봉투용 · 책상엔 줄 (js/desklights.js) */
.desk-item .dl-cv { position: absolute; pointer-events: none; }
.dk-lights .dl-glow { position: absolute; pointer-events: none; mix-blend-mode: screen; }
.dk-lights .dk-glow.on { opacity: .62; }   /* 앞 소품이 비쳐 보일 만큼 */
.desk-item.ring { animation: dkRing .18s linear infinite; }
@keyframes dkRing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@media (prefers-reduced-motion: reduce) { .desk-item.ring { animation: none; } }

/* 📝 게시판 메모 (도련 10-28 · js/deskcustom.js dcMemoBody · dcApply) : 크기는 게시판 그림 px 기준 · 종류 = .m-post .m-pink .m-grid .m-mint .m-lilac .m-letter */
.dk-memos { position: absolute; inset: 0; pointer-events: none; }
.dk-memo { position: absolute; width: 92px; min-height: 84px; padding: 16px 8px 8px; box-sizing: border-box; transform: translate(-50%, -50%) rotate(var(--r, 0deg));
    background: var(--mb, #fff3b0); border: 1.4px solid var(--ml, #e6cf74); border-radius: 3px; box-shadow: 2px 3px 0 rgba(150, 110, 80, .18); }
.dk-memo p { margin: 0; font-family: 'Gaegu', 'Jua', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.15; color: #5e4250; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; text-align: center; }
.dk-memo.m-pink p { line-height: 18px; }
.dk-memo::before { content: ''; position: absolute; left: 50%; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--pin, #f07aa3); border: 1.4px solid rgba(94, 66, 80, .55); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .12); }
.dk-memo.m-post { --mb: #fff3b0; --ml: #e6cf74; border-radius: 2px 2px 14px 2px; }
.dk-memo.m-post::before, .dk-memo.m-mint::before { width: 40px; height: 13px; margin-left: -20px; top: -7px; border-radius: 2px; border: 0; box-shadow: none; background: rgba(255, 200, 220, .75); transform: rotate(-4deg); }
.dk-memo.m-mint::before { background: rgba(200, 225, 255, .8); transform: rotate(3deg); }
.dk-memo.m-pink { --mb: #ffe6ee; --ml: #f2b6c9; --pin: #8fb8e8; background-image: repeating-linear-gradient(to bottom, transparent 0 17px, #f7c3d3 17px 18px); background-position: 0 16px; }
.dk-memo.m-grid { --mb: #e8f5ff; --ml: #a9cdee; --pin: #f6c445; background-image: linear-gradient(#cfe4f7 1px, transparent 1px), linear-gradient(90deg, #cfe4f7 1px, transparent 1px); background-size: 9px 9px; }
.dk-memo.m-mint { --mb: #ddf6e8; --ml: #9fd8b8; }
.dk-memo.m-lilac { --mb: #f1e9ff; --ml: #c8b3e3; --pin: #f07aa3; background-image: linear-gradient(45deg, rgba(200, 179, 227, .3) 25%, transparent 25%, transparent 75%, rgba(200, 179, 227, .3) 75%), linear-gradient(45deg, rgba(200, 179, 227, .3) 25%, transparent 25%, transparent 75%, rgba(200, 179, 227, .3) 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.dk-memo.m-letter { --mb: #fffdf7; --ml: #e9c9a8; --pin: #9ad1b0; border-top: 9px solid #ffc6d8; padding-top: 10px; }
.dk-memo.sel { outline: 2.5px solid #e88fb0; outline-offset: 3px; }
/* 꾸미기 창 */
.dcs-board { position: relative; margin: 4px auto 10px; touch-action: none; user-select: none; overflow: hidden; border-radius: 10px; }
.dcs-bin { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.dcs-bin > img { width: 100%; height: 100%; display: block; pointer-events: none; }
.dcs-board .dk-memos { pointer-events: auto; } .dcs-board .dk-memo { cursor: grab; }
.dcs-paper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.dcs-paper button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 5px; border-radius: 12px; border: 1.5px solid #f2b6c9; background: #fff; color: #7b5a6b; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.dcs-paper button.on { background: #ffe0ea; border-color: #e88fb0; color: #c8457a; }
.dcs-paper .dk-memo { position: relative; width: 30px; min-height: 28px; height: 28px; padding: 0; transform: rotate(-3deg); box-shadow: none; }
.dcs-paper .dk-memo::before { transform: scale(.55); }
.dcs-paper .dk-memo.m-letter { border-top-width: 5px; }
.dcs-memo-t { display: block; width: 100%; box-sizing: border-box; resize: none; font-family: 'Gaegu', 'Jua', sans-serif; font-weight: 700; font-size: 17px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid #c8b3e3; background: #fff; color: #5e4250; }
@media (max-width: 480px) { .dcs-paper { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dcs-warn { margin: 4px 0 0; text-align: center; color: #c8457a; font-size: 12.5px; font-weight: 700; word-break: keep-all; }
/* 🎨 색칠 창 ✕ 닫기 (도련 10-28 · 닫기 버튼 없이 오른쪽 위 ✕ 하나 · 다른 창 ✕ 와 같은 모양) */
.dp-card { position: relative; }
.dp-x { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1.4px solid var(--an-ol, #bba6d6); background: var(--an-cr, #fffaf3); color: #e07595; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; display: grid; place-items: center; padding: 0; z-index: 2; }

/* ✕ 닫기는 동그라미 없이 ✕ 글자만 (도련 10-28) · 창 밖을 눌러도 닫혀요 · 화면에 보이는 '닫기' 버튼은 없어요
   .mt-x = 창 제목 ✕ (js/settings.js mtDecorate) · .dp-x = 🎨 색칠 창 · .x-only = 선물 카드 · 배경화면 보기 · 필통 · 인형방 */
html .modal .mt-x, html.an .modal .mt-x, .modal-title.mt-bar .mt-x, .dp-x, .x-only, #shelfCornerModal .obj-win .mt-x {
  background: none !important; border: 0 !important; box-shadow: none !important; outline: 0; color: #e07595 !important; font-size: 19px !important; font-weight: 800; line-height: 1; padding: 0 !important; width: 32px !important; height: 32px !important; min-width: 0 !important; display: grid; place-items: center; cursor: pointer; }
.x-only { position: absolute; right: 10px; top: 10px; z-index: 3; font-family: inherit; }
#moveModal .modal-title.mt-bar .mt-back { height: 32px; padding: 0 14px !important; font-size: 15px !important; font-weight: 800; }   /* 🚪 이동 창 '설정' = 오른쪽 ✕ 와 같은 높이 · 글씨 크게 (도련 11-11 : 너무 작아 안 보여요) */
.gp-card .gp-close.x-only { width: 32px; margin: 0; }
.wl-view-box, .pk-body { position: relative; }
.dr-head-btns .x-only { position: static; }

/* 📔 기본 다이어리 = 연핑크 6공 바인더 A6 (도련 10-28 · js/dyyear.js) : 🏪 기본상품 샵 카드 · 📔 다이어리 보관소 해 표시 */
.sh-tool.sh-dy { min-height: 128px; }
.sh-dyb { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; width: 78px; height: 110px; border-radius: 6px 10px 10px 6px; background: radial-gradient(circle, rgba(255,255,255,.7) 0 2px, transparent 2.4px) 0 0 / 11px 11px, var(--dyb, #ffc6d6); border: 1.5px solid var(--an-ol, #bba6d6); box-shadow: 4px 5px 0 rgba(176, 150, 214, .3); pointer-events: none; }
.sh-dyb .sh-dyr { position: absolute; left: -7px; top: 14px; bottom: 14px; width: 14px; background: radial-gradient(ellipse 6px 3.4px at 50% 50%, #fff 45%, #c9b6d6 50% 82%, transparent 86%) 0 0 / 14px 14.6px repeat-y; }
.sh-rfl { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: 74px; height: 104px; border-radius: 3px; background-color: #fffdfb; border: 1.5px solid var(--an-ol, #bba6d6); box-shadow: 3px 4px 0 rgba(176, 150, 214, .25), 6px 8px 0 -1px #fff, 6px 8px 0 .5px rgba(176, 150, 214, .35); pointer-events: none; }   /* 📄 바인더 내지 (981) */
.sh-rfl .sh-rfh { position: absolute; left: 4px; top: 10px; bottom: 10px; width: 8px; background: radial-gradient(circle 2.6px at 50% 50%, #e9dff0 70%, transparent 76%) 0 0 / 8px 15px repeat-y; }
.sh-rfl b { font-size: 22px; line-height: 1; }
.sh-rfl.lf-line { background-image: linear-gradient(transparent 9px, #eadcf0 0); background-size: 100% 10px; }
.sh-rfl.lf-grid { background-image: linear-gradient(#efe4f3 1px, transparent 0), linear-gradient(90deg, #efe4f3 1px, transparent 0); background-size: 8px 8px; }
.sh-rfl.lf-dot { background-image: radial-gradient(circle 1px, #dccbe4 99%, transparent); background-size: 8px 8px; }
.sh-rfl.lf-gingham { background-image: linear-gradient(rgba(255, 182, 193, .25) 50%, transparent 0), linear-gradient(90deg, rgba(255, 182, 193, .25) 50%, transparent 0); background-size: 12px 12px; }
.sh-rfl.lf-kraft { background-color: #e7d3b5; }
.sh-rfl small { font: 700 10px/1 'Jua', sans-serif; color: #9a86a8; letter-spacing: .5px; background: #fff; padding: 2px 5px; border-radius: 6px; }
.sh-dyb b { font: 800 19px/1 'Jua', sans-serif; color: var(--dyi, #c8457a); letter-spacing: 1px; }
.sh-dyb small { font: 700 9px/1 'Fredoka', 'Jua', sans-serif; color: var(--dyi, #e07595); opacity: .8; letter-spacing: 2px; }
.sh-zlook .sh-dyb { transform: scale(1.6); margin: 40px 0; }
.sh-dyb.sh-dyn { border-radius: 5px 9px 9px 5px; overflow: hidden; }   /* 📓 날짜형 노트 (도련 11-04) */
.sh-dyn .sh-dys { position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: color-mix(in srgb, var(--dyb, #ffc6d6), #5b3f7a 22%); border-right: 1.5px solid var(--an-ol, #bba6d6); }
.dy-yr .dy-stage { position: relative; }
.dy-yr-n { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: #fff; border: 1.2px solid var(--an-ol, #bba6d6); color: #c8457a; font: 800 12px/1.3 'Jua', sans-serif; }
/* 📔 보관소 🗑 버리기 (js/dyyear.js dyyDiscard) */
.dy-yr { position: relative; }
.dy-del { position: absolute; left: 6px; top: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; background: #fff; border: 1.2px solid var(--an-ol, #bba6d6); cursor: pointer; }
.tr-goods b::after { content: ''; }
/* 🌈 배경지 샵 견본 (js/basket.js look 'bg') */
.sh-tool.sh-bg { min-height: 128px; }
.sh-bgsw { display: block; width: 92px; height: 110px; border-radius: 10px; border: 1.5px solid var(--an-ol, #bba6d6); box-shadow: 4px 5px 0 rgba(176, 150, 214, .3); background-size: auto; pointer-events: none; }
.sh-zlook .sh-bgsw { width: 180px; height: 220px; }

/* 🧱 벽지 · 🪵 책상 (js/deskskin.js) : 방 그림 위 (소품 아래) · 견본 */
.desk-stage > .desk-skin { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ds-sw { display: block; width: 100%; height: 100%; border-radius: 8px; pointer-events: none; }
.ds-sw.basic.w { background: #fdecf2; }   /* 🧱 기본 벽지 = 방 그림 뒷벽 색 한 가지 (도련 11-11 : 견본은 평면 색 · 무늬만 · 옆벽 그늘은 넣지 않아요) */
.ds-sw.basic.t { background: #f8d1de; }   /* 🪵 기본 책상판 = 방 그림 책상 색 한 가지 */
.sh-tool.sh-ds { min-height: 128px; } .sh-tool.sh-ds .ds-sw { width: 120px; height: 72px; border: 1.5px solid var(--an-ol, #bba6d6); box-shadow: 4px 5px 0 rgba(176, 150, 214, .3); }
.sh-zlook .sh-ds .ds-sw { width: 260px; height: 150px; }
.iv-c.ds { position: relative; padding: 6px; overflow: hidden; } .iv-c.ds .ds-sw { border: 1px solid var(--an-ol, #bba6d6); }
.iv-c.ds em { position: absolute; right: 4px; top: 4px; font-style: normal; font-size: 11px; color: #c8457a; background: #fff; border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; }
.ds-del { position: absolute; left: 3px; bottom: 3px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; background: #fff; border: 1px solid var(--an-ol, #bba6d6); cursor: pointer; }
/* 📔 보관소 거르기 칩 (종류가 두 가지 이상일 때만 · js/dyyear.js) */
.dyy-chips { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.dyy-chips button { padding: 4px 12px; border-radius: 999px; border: 1.5px solid #f2b6c9; background: #fff; color: #7b5a6b; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.dyy-chips button.on { background: #ffe0ea; border-color: #e88fb0; color: #c8457a; }
html.desk-on #dyModal .mt-back { visibility: hidden; }   /* 📔 책상에서는 보관소만 (‹ 다이어리 메뉴 = 배경지는 책상에서 못 써요 · 도련 10-28) */

/* 🗂️ 책상 위에 눕힌 다이어리의 링 (도련 10-28) : 눕히면(rotateX --dk-tilt) 링이 납작해져서 · 책상 위 복사본에서만 링을 세로로 늘려 두면 눕힌 뒤에 둥글게 선 링처럼 보여요 (구멍 자리가 기준) */

/* 📖 날짜바 양 끝 왼쪽 · 오른쪽 페이지 스위치 (도련 10-29) : 켜진 버튼 공통 네모(aria-pressed) 없이 그림만 · 켜짐/꺼짐은 진하기로 */
.page-header .page-side, .page-header .page-side[aria-pressed="true"] { border: 0 !important; background: none !important; box-shadow: none !important; }

/* 🪑 스티커 정리 공간 (도련 10-29 · 💻 컴퓨터 · 📲 패드 · js/basket.js abSpace · abSpaceHtml) : 창이 아니라 화면 전체가 정리하는 책상
   · 그림 규칙 = 아웃라인 + 한 색 (그라데이션 · 흐린 그림자 없음) · 무늬는 색 띠를 딱 잘라 (repeating-linear-gradient 딱 끊긴 색)
   · 🧺 등나무 바구니 · 📒 6공 바인더 펼침 · 🤍 스프링 이형지북 + 🟩 커팅 매트 · 둘 다 손잡이 이름표(⠿)를 끌어 옮겨요 */
#basketKindModal.ab-space { --ol: #8d6f7f; align-items: stretch; justify-content: stretch; }
#basketKindModal.ab-space > .modal-content { width: 100vw !important; max-width: none !important; height: 100vh; height: 100dvh; max-height: none !important; margin: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: hidden !important; background-color: #f4e2c8 !important;
    background-image: repeating-linear-gradient(0deg, transparent 0 146px, #e6caa4 146px 148px), repeating-linear-gradient(90deg, transparent 0 380px, rgba(230,202,164,.55) 380px 382px) !important; }
#basketKindModal.ab-space > .modal-content::before, #basketKindModal.ab-space > .modal-content::after { display: none !important; }
#basketKindModal.ab-space > .modal-content > .modal-title, #basketKindModal.ab-space > .modal-content > .sub-modal-btns { display: none !important; }
#basketKindModal.ab-space .bk-wrap, #basketKindModal.ab-space .ab-body { height: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 0; }

/* 위 줄 */
.abs-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff8f0; border-bottom: 1.6px solid #d8b892; position: relative; z-index: 5; }
.abs-bar .ab-ttl { display: flex; align-items: baseline; gap: 6px; color: #c8457a; font-size: 16px; white-space: nowrap; }
.abs-bar .ab-ttl small { color: #a68dc8; font-size: 12px; font-weight: 700; }
.abs-bar .ab-kind { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px 0 6px; border: 1.6px solid #e8bfd2; border-radius: 17px; background: #fff; color: #c8457a; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }   /* 🔁 정리할 스티커 바꾸기 (도련 11-11) */
.abs-bar .ab-kind:hover { border-color: #e07ba0; background: #fff4f8; }
.abs-bar .ab-kind i, .ab-kmenu i { display: inline-flex; width: 24px; height: 24px; } .abs-bar .ab-kind i svg, .ab-kmenu i svg { width: 100%; height: 100%; }
.abs-bar .ab-kind b { color: #a68dc8; font-size: 11px; }
.ab-kmenu { position: absolute; top: calc(100% - 4px); left: 92px; z-index: 30; display: grid; grid-template-columns: repeat(2, auto); gap: 4px; padding: 8px; background: #fff; border: 1.6px solid #e8bfd2; border-radius: 14px; box-shadow: 0 6px 18px rgba(141,111,127,.22); }
.ab-kmenu button { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border: 0; border-radius: 10px; background: none; color: #7a5a6c; font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; text-align: left; }
.ab-kmenu button:hover { background: #fff0f6; } .ab-kmenu button.on { background: #ffe3ee; color: #c8457a; }
.abs-bar .ab-tabs { margin: 0; width: min(380px, 40vw); }
.abs-bar .ab-done { margin: 0; padding: 6px 16px; }
.abs-fill { flex: 1; }
.abs-x { width: 34px; height: 34px; border: 0; background: none; color: #e07ba0; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }

/* 책상 · 물건 자리 */
.abs-room { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.abs-box { position: absolute; display: flex; flex-direction: column; align-items: center; max-height: calc(100% - 12px); z-index: 1; }
.abs-box.top { z-index: 2; }
.abs-box.lift { z-index: 3; }
.abs-grip { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 5px 14px 5px 10px; border: 1.6px solid var(--ol); border-radius: 999px; background: #fffdf8;
    color: #7a5566; font-size: 13px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.abs-grip i { font-style: normal; font-size: 15px; color: #c9a27c; }
.abs-grip small { color: #a07a5c; font-size: 11.5px; font-weight: 700; }
.abs-box.lift .abs-grip { cursor: grabbing; background: #ffe6ef; }

/* 🧺 바구니 = 바구니 화면과 같은 상자 (도련 10-29 · 세로로 길게) */
.abs-basket { width: 340px; }
.abx-bin { width: 100%; max-width: none; height: var(--bh, 520px); margin: 0; }
.abs-basket .ab-strip { position: absolute; inset: 14px; z-index: 1; margin: 0; padding: 0; border-radius: 20px; background: none !important; box-shadow: none !important; display: block; overflow: hidden; }   /* 🧺 종이가 흩어져 쌓여요 · 끌어서 뒤적여요 (js abPilePlace) */
.abs-basket .ab-sc { position: absolute; left: 0; top: 0; width: 68%; padding: 0; margin: 0; border-radius: 12px; touch-action: none; transform: rotate(var(--tilt, 0deg)); cursor: grab; }
.abs-basket .ab-sc.lift { cursor: grabbing; transform: rotate(var(--tilt, 0deg)) scale(1.04); }
.abs-basket .ab-sc .bk-sh { width: 100% !important; max-width: none; padding: 10px; touch-action: none; border-radius: 14px; }
.abs-basket .ab-sc.on { outline: 3px solid #ff6b88; outline-offset: 2px; background: none; }
.abs-basket .ab-stripempty { width: 100%; padding: 40px 8px; color: #8a6450; font-size: 13px; text-align: center; text-shadow: none; }
.abs-basket .bk-tag { z-index: 2; }

/* 🟩 커팅 매트 (이형지북에 붙일 때 · 바구니 오른쪽에 붙어 같이 움직여요 · 고른 종이가 여기 크게 펼쳐져요 · 도련 10-29) */
.abx-row { display: flex; align-items: stretch; gap: 12px; width: 100%; }
.abx-row .abx-bin { flex: none; width: var(--bw, 340px); }
.abx-mat { flex: none; width: var(--mw, 300px); height: var(--bh, 520px); padding: 12px; box-sizing: border-box; border: 2px solid var(--ol); border-radius: 14px; background-color: #8fceb4;
    background-image: repeating-linear-gradient(0deg, transparent 0 23px, #a9dcc6 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #a9dcc6 23px 24px); display: flex; }
.abx-mat .ab-peelhint, .abx-mat .ab-peelzone { flex: 1; margin: 0; border: 1.6px dashed #fff; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center; height: auto; padding: 10px; }
.abx-mat .ab-peelhint small { font-weight: 400; opacity: .9; }
/* 🪡 정리 공간 이형지북 : 핀셋이 창 위로 (저절로 들려요 · js/elements.js pinForce) */
body:has(#basketKindModal.ab-space.abs-rl[style*="display: flex"]) .twz.pin-cur { z-index: 2147483000 !important; }

/* 📒 6공 바인더 (펼친 두 쪽 · 가운데 링 · A5 속지 비율 · 크기는 js abSpaceFit 가 --ph 로) · 한 쪽만 볼 때는 링이 그 쪽 옆 (홀수 쪽 = 왼쪽 쪽 → 링이 오른쪽) */
.abs-book { width: 700px; }
.abx-tag { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 8px; }
.abx-tag .ab-pick { flex: none; max-width: none; border: 1.6px solid var(--ol) !important; }
.abx-tag .ab-lbdesk { background: #fffdf6; border-color: var(--ol); transform: rotate(-1deg); }
.abx-cnt { flex: none; padding: 3px 9px; border-radius: 999px; background: #fffaf2; color: #8a5a6e; font-size: 11.5px; font-weight: 700; }
.abx-side { flex: none; width: 34px; height: 34px; padding: 0; border: 1.6px solid var(--ol); border-radius: 10px; background: #fffaf2; color: #c8457a; opacity: .45; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.abx-side.on { opacity: 1; background: #ffe6ef; }
.abx-full { margin: 0 0 6px; font-size: 12px; color: #b23b6c; }
.abx-binder { position: relative; width: 100%; padding: 14px; box-sizing: border-box; border: 2px solid var(--ol); border-radius: 18px; background: var(--c1); }
.abx-binder.two { background-image: linear-gradient(90deg, transparent calc(50% - 22px), var(--c2) calc(50% - 22px) calc(50% + 22px), transparent calc(50% + 22px)); }
.abx-binder.one.even { padding-right: 64px; background-image: linear-gradient(90deg, transparent calc(100% - 52px), var(--c2) calc(100% - 52px)); }
.abx-binder.one.odd { padding-left: 64px; background-image: linear-gradient(90deg, var(--c2) 52px, transparent 52px); }
.abx-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.abx-binder.one .abx-spread { grid-template-columns: 1fr; }
.abx-pg { position: relative; box-sizing: border-box; height: var(--ph, 520px); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3.2%; padding: 6% 5% 9%; border: 1.6px solid var(--ol); border-radius: 6px; background: #fffefb; }
.abx-pg.end { background: #fbf6ef; background-image: repeating-linear-gradient(0deg, transparent 0 22px, #f1e6d8 22px 23px); }
.abx-pg .ab-pk { position: relative; min-height: 0; padding: 12% 7% 7%; border: 1.6px solid #9cbfd8; border-radius: 4px; background: #eaf4fb; color: #7d9db6; font-size: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.abx-pg .ab-pk::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7%; background: #d4e7f5; border-bottom: 1.4px solid #9cbfd8; pointer-events: none; }   /* 포켓 입구 */
.abx-pg .ab-pk::after { content: ''; position: absolute; right: 10%; top: 16%; width: 6px; height: 30%; border-radius: 3px; background: rgba(255,255,255,.75); transform: rotate(14deg); pointer-events: none; z-index: 2; }   /* 비닐 반짝 */
.abx-pg .ab-pk.full { background: #eaf4fb; border-color: #9cbfd8; }
.abx-pg .ab-pk.ab-over { border: 2px dashed #ff6b88; background: #ffeef3; }
.abs-book .abx-pg .ab-pk .bk-sh { width: 100% !important; max-width: 100%; max-height: 100%; box-sizing: border-box; padding: 6%; border: 1.4px solid var(--ol) !important; box-shadow: none !important; background: #fff !important; border-radius: 8px; }   /* 종이가 포켓에 꽉 (실제처럼) */
.abx-no { position: absolute; bottom: 2.4%; left: 50%; translate: -50% 0; font-size: 11px; color: #b49aa8; font-weight: 700; pointer-events: none; }
.abx-rings { position: absolute; left: 50%; top: 22px; bottom: 22px; width: 76px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.abx-binder.one.even .abx-rings { left: calc(100% - 52px); }
.abx-binder.one.odd .abx-rings { left: 52px; }
.abx-rings span { flex: 1; width: 16px; border: 1.6px solid #9d88c2; border-radius: 8px; background: #f1eef8; }   /* 링 기둥 */
.abx-rings svg { flex: none; width: 76px; height: 22px; }
.abx-nav { margin-top: 8px; }

/* 📒 🤍 펼친 바인더 · 이형지북 = 창 없이 떠 있는 책 (도련 11-15 · js/basket.js abFlt) : 위 막대 = 다이어리 날짜바처럼 · 막대를 끌면 옮겨져요 · 뒤 화면은 그대로 눌려요 */
#basketKindModal.ab-flt { --ol: #8d6f7f; }
#basketKindModal.ab-flt > .modal-content { position: static !important; width: 0 !important; height: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; padding: 0 !important; margin: 0 !important;
    border: 0 !important; box-shadow: none !important; background: transparent !important; overflow: visible !important; transform: none !important; animation: none !important; pointer-events: none !important; }
#basketKindModal.ab-flt > .modal-content::before, #basketKindModal.ab-flt > .modal-content::after { display: none !important; }
#basketKindModal.ab-flt > .modal-content > .modal-title, #basketKindModal.ab-flt > .modal-content > .sub-modal-btns { display: none !important; }
#basketKindModal.ab-flt .bk-wrap, #basketKindModal.ab-flt .ab-body { margin: 0; padding: 0; }
.bk { position: fixed; left: 0; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: auto; filter: drop-shadow(0 8px 16px rgba(120, 70, 60, .18)); }
.bk.mv { filter: drop-shadow(0 14px 24px rgba(120, 70, 60, .28)); }
.bk-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2px; min-width: min(360px, 92vw); height: 42px; padding: 0 6px; box-sizing: border-box;
    border: 2px solid #f6c9d8; border-radius: 14px; background: #fff3f7; color: #d2457a; font-weight: 800; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.bk.mv .bk-bar { cursor: grabbing; }
.bk-bar::before { content: ''; position: absolute; top: -8px; left: 50%; width: 46px; height: 13px; transform: translateX(-50%) rotate(-1.5deg); background: #f7b5ca; opacity: .75; border-radius: 2px; pointer-events: none; }   /* 마테 한 조각 (날짜바처럼) */
.bk-bar .bk-side, .bk-bar .bk-side[aria-pressed="true"] { color: inherit; border: 0 !important; background: none !important; box-shadow: none !important; }
.bk-bar .bk-arr:disabled { opacity: .25; cursor: default; }
.bk-cnt { flex: 1; text-align: center; font-size: 16px; white-space: nowrap; pointer-events: none; overflow: hidden; text-overflow: ellipsis; }
.bk-cnt small { font-size: 13px; font-weight: 700; opacity: .7; }
.bk-x { flex: none; width: 34px; height: 34px; margin-left: 4px; padding: 0; border: 0; background: none; color: #c2457a; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.bk-x:active { transform: scale(.88); }
.bk-stage { position: relative; touch-action: pan-y; }
/* 책 몸 (스티커 정리 바인더 모습 그대로) */
.bk-book { position: relative; padding: 14px; box-sizing: border-box; border: 2px solid var(--ol); border-radius: 18px; background: var(--c1); }
.bk-book.two { background-image: linear-gradient(90deg, transparent calc(50% - 22px), var(--c2) calc(50% - 22px) calc(50% + 22px), transparent calc(50% + 22px)); }
.bk-book.one.even { padding-right: 64px; background-image: linear-gradient(90deg, transparent calc(100% - 52px), var(--c2) calc(100% - 52px)); }
.bk-book.one.odd { padding-left: 64px; background-image: linear-gradient(90deg, var(--c2) 52px, transparent 52px); }
.bk-book.shut { padding: 0; border: 0; background: none; }
.bk-spread { display: grid; grid-template-columns: var(--pw) var(--pw); gap: 44px; }
.bk-book.one .bk-spread { grid-template-columns: var(--pw); }
.bk-slot { position: relative; width: var(--pw); height: var(--ph); }
.bk-slot > * { width: 100% !important; height: 100% !important; box-sizing: border-box; }
.bk-spine { position: absolute; left: 50%; top: 22px; bottom: 22px; width: 76px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; z-index: 3; }
.bk-book.one.even .bk-spine { left: calc(100% - 52px); }
.bk-book.one.odd .bk-spine { left: 52px; }
.bk-spine span { flex: 1; width: 16px; border: 1.6px solid #9d88c2; border-radius: 8px; background: #f1eef8; }   /* 링 기둥 */
.bk-spine svg { flex: none; width: 76px; height: 22px; }
.bk-rl .bk-spine { gap: 0; justify-content: space-between; }
.bk-rl .bk-spine i { display: block; width: 52px; height: 11px; border: 1.6px solid #8a789e; border-radius: 6px; background: #eeeaf6; }
/* 📕 표지 (덮인 책 · 왼쪽 = 묶음) */
.bk-cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ol); border-radius: 6px 18px 18px 6px; background: var(--c1);
    background-image: linear-gradient(90deg, var(--c2) 0 34px, transparent 34px); color: #6b4a5a; text-align: center; }
.bk-cover .bk-cvlb { max-width: 70%; padding: 8px 14px; border: 1.6px solid var(--ol); border-radius: 10px; background: #fffdf6; font-weight: 800; font-size: 16px; transform: rotate(-1.5deg); word-break: keep-all; }
.bk-cover small { padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; color: #8a6a7a; }
.bk-cover.rl { background-image: repeating-linear-gradient(0deg, transparent 0 22px, #8a789e 22px 25px, transparent 25px 34px), linear-gradient(90deg, #eeeaf6 0 30px, transparent 30px); }   /* 🤍 스프링 */
/* 📖 넘어가는 그림 = 종이 말림 (다이어리와 같은 그림 · js/book.js bookCurlAt) : 지금 쪽(.bk-cur)이 가려지고 · 아래(.bk-under) = 넘긴 뒤 · 뒷면(.bk-flap)이 말려 넘어가요 */
.bk-under, .bk-cur { position: absolute; inset: 0; }
.bk-under > *, .bk-cur > * { width: 100% !important; height: 100% !important; box-sizing: border-box; }
.bk-flap { position: absolute; z-index: 6; display: none; box-sizing: border-box; pointer-events: none; border: 1.6px solid var(--ol); }
.bk-flap.dir-next { border-radius: 18px 0 0 18px; filter: drop-shadow(-6px 0 8px rgba(0,0,0,.24)); background: var(--curl-shade-next), #fffefb; }
.bk-flap.dir-prev { border-radius: 0 18px 18px 0; filter: drop-shadow(6px 0 8px rgba(0,0,0,.24)); background: var(--curl-shade-prev), #fffefb; }
.bk-flap.cover { background: var(--curl-shade-next), linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)), var(--c1); }
.bk-ush { position: absolute; z-index: 5; display: none; pointer-events: none; }
.bk-ush.dir-next { background: linear-gradient(to right, rgba(0,0,0,.3), rgba(0,0,0,0)); }
.bk-ush.dir-prev { background: linear-gradient(to left, rgba(0,0,0,.3), rgba(0,0,0,0)); }
/* 쪽 안 (포켓 · 이형지) */
.bk .abx-pg .ab-pk .bk-sh { width: 100% !important; max-width: 100%; max-height: 100%; box-sizing: border-box; padding: 6%; border: 1.4px solid var(--ol) !important; box-shadow: none !important; background: #fff !important; border-radius: 8px; cursor: pointer; }
.bk .ab-rel.abf-rl { position: relative; margin: 0; border: 1.6px solid var(--ol); border-radius: 4px; outline: 0; overflow: hidden;
    background-color: #fdfcff; background-image: repeating-linear-gradient(125deg, transparent 0 46px, #f2eef9 46px 70px, transparent 70px 96px, #f7f4fb 96px 104px) !important; }
.bk .ab-rel.abf-rl .ab-it { width: calc(var(--ph) * .104); height: calc(var(--ph) * .104); }
.bk .ab-rel.abf-rl .ab-it[style*="--iw"] { width: calc(var(--iw) / var(--stk-mm) * var(--mmk) * 1px); height: calc(var(--ih) / var(--stk-mm) * var(--mmk) * 1px); }   /* 📏 🤍 붙인 스티커 = 실제 크기 (그림 px ÷ STK_MM × 화면 1mm · js/book.js --mmk · 도련 11-16) */
.bk .ab-rel.abf-rl .ab-relhint { color: #b4a6c4; top: 50%; bottom: auto; transform: translate(-50%, -50%); }

/* 🤍 스프링 이형지북 (왼쪽 스프링 · 반짝이는 이형지 · 뒤로 겹친 종이) */
.abx-rlbook { position: relative; width: 100%; padding: 14px 14px 14px 34px; box-sizing: border-box; border: 2px solid var(--ol); border-radius: 8px 18px 18px 8px; background: #cbb8ec; }
.abx-stack { position: absolute; left: 34px; right: 8px; top: 20px; bottom: 8px; border: 1.6px solid var(--ol); border-radius: 4px; background: #f6f3fa; }
.abx-stack::after { content: ''; position: absolute; left: -1.6px; right: 3px; top: -8px; bottom: 3px; border: 1.6px solid var(--ol); border-radius: 4px; background: #fbf9fd; }
.abs-book .ab-rel.abx-wax { position: relative; height: var(--ph, 520px); border: 1.6px solid var(--ol); border-radius: 4px; outline: 0; margin-right: 8px; margin-bottom: 8px;
    background-color: #fdfcff; background-image: repeating-linear-gradient(125deg, transparent 0 46px, #f2eef9 46px 70px, transparent 70px 96px, #f7f4fb 96px 104px) !important; }
.abs-book .ab-rel.abx-wax.ab-over, .abs-book .ab-rel.abx-wax.ready { outline: 2px dashed #ff6b88; outline-offset: -6px; }
.abs-book .ab-rel.abx-wax .ab-it { width: 54px; height: 54px; }
.abs-book .ab-rel.abx-wax .ab-relhint { color: #b4a6c4; }
.abx-coil { position: absolute; left: 4px; top: 18px; bottom: 18px; width: 46px; display: flex; flex-direction: column; justify-content: space-between; z-index: 2; pointer-events: none; }
.abx-coil i { display: block; width: 46px; height: 11px; border: 1.6px solid #8a789e; border-radius: 6px; background: #eeeaf6; position: relative; }
.abx-coil i::after { content: ''; position: absolute; right: 6px; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: #8a789e; }
.abx-none { width: 100%; padding: 30px 14px; border: 2px dashed var(--ol); border-radius: 18px; background: rgba(255,250,242,.9); }
/* 🧺 톡 = 그 종이를 맨 위로 (겹친 바구니에서 보기 · 도련 10-29) · 끄는 종이는 떼는 판 위로 */
.abs-basket .ab-sc.up .bk-sh { outline: 3px solid #ffb3c9; outline-offset: 2px; }
/* 📱 폰 정리 (도련 11-11 · js/basket.js abPh) : 위 = 바인더 · 이형지북 한 쪽 (화면 가득) · 아래 = 서랍 시트가 올라와요 (✂️ 스티커 만들기처럼)
   종이를 손가락으로 위로 끌어 포켓에 꽂아요 (톡 → 포켓 톡도) · 서랍 줄은 옆으로 넘겨 봐요 · 🤍 = 종이 톡 → 시트가 매트로 → 🪡 떼어 위로 */
#basketKindModal.ab-ph > .modal-content { background-image: none !important; background-color: #fbefe2 !important; }
.ab-ph .abs-bar { flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px 8px; padding-top: max(8px, env(safe-area-inset-top)); }
.ab-ph .abs-bar .ab-back { order: 0; padding: 6px 12px; }
.ab-ph .abs-bar .ab-kind { order: 1; }
.ab-ph .abs-bar .abs-fill { order: 2; }
.ab-ph .abs-bar .ab-done { display: none; }                                   /* ‹ 서랍 과 같아요 */
.ab-ph .abs-bar .abs-x { order: 3; }
.ab-ph .abs-bar .ab-tabs { order: 4; width: 100%; }
.ab-ph .abs-bar .ab-tabs button { font-size: 13px; padding: 7px 4px; }
.ab-ph .ab-kmenu { left: 70px; }
.ab-ph .abs-room { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.ab-ph .abs-box { position: relative; left: auto !important; top: auto !important; max-height: none; }
.ab-ph .abs-book { order: 0; flex: 1; min-height: 0; justify-content: center; padding: 8px 0 4px; }
.ab-ph .abs-book .abs-grip, .ab-ph .abx-side { display: none; }
.ab-ph .abx-tag { gap: 6px; margin-bottom: 6px; } .ab-ph .abx-tag .ab-lbdesk { max-width: 34%; overflow: hidden; }
.ab-ph .abx-binder { padding: 10px; } .ab-ph .abx-binder.one.even { padding-right: 58px; } .ab-ph .abx-binder.one.odd { padding-left: 58px; }
.ab-ph .abx-binder.one.even .abx-rings { left: calc(100% - 46px); } .ab-ph .abx-binder.one.odd .abx-rings { left: 46px; }
.ab-ph .abx-rings { width: 60px; } .ab-ph .abx-rings svg { width: 60px; height: 18px; }
.ab-ph .abx-pg .ab-pk span { font-size: 11px; }
.ab-ph .abx-nav { margin-top: 4px; }
/* 아래 서랍 시트 */
.ab-ph .abs-basket { order: 1; flex: none; width: 100% !important; box-sizing: border-box; padding: 6px 0 max(10px, env(safe-area-inset-bottom)); background: #fffaf4; border-top: 1.6px solid #e8cbb0; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 18px rgba(141, 111, 127, .16); z-index: 3; }
.ab-ph .abs-basket.rise { animation: abpRise .32s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes abpRise { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .ab-ph .abs-basket.rise { animation: none; } }
.abp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; padding: 0 14px 6px; text-align: center; }
.abp-bar { flex-basis: 100%; display: block; width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 2px; background: #e3cbd6; flex-grow: 0; }
.abp-head b { color: #8a5a6e; font-size: 14px; } .abp-head b small { color: #b08a9c; font-size: 12px; }
.abp-head span { color: #a0849a; font-size: 12px; }
.ab-ph .abx-row { flex-direction: column; gap: 8px; }
.ab-ph .abx-bin, .ab-ph .abx-row .abx-bin { width: 100% !important; height: auto !important; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ab-ph .abx-bin::before, .ab-ph .abx-bin::after, .ab-ph .abs-basket .bk-tag { display: none; }
.ab-ph .abs-basket .ab-strip { position: static; inset: auto; display: flex; gap: 10px; height: auto; padding: 4px 14px 8px; margin: 0; scroll-padding-inline: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; touch-action: pan-x; overscroll-behavior: contain; border-radius: 0; }
.ab-ph .abs-basket .ab-sc { position: relative; left: auto !important; top: auto !important; flex: none; width: 104px; transform: none; z-index: auto !important; scroll-snap-align: start; touch-action: pan-x; }
.ab-ph .abs-basket .ab-sc .bk-sh { padding: 6px; touch-action: pan-x; }
.ab-ph .abs-basket .ab-sc.lift, .ab-ph .abs-basket .ab-sc.ab-lifted { opacity: .35; }
.ab-ph .abs-basket .ab-sc.up .bk-sh { outline: 0; }
.ab-ph .abs-basket .ab-stripempty { padding: 24px 8px; }
.ab-ph .abs-basket.picked .abx-bin { display: none; }                         /* 🤍 펼친 동안은 매트만 */
.ab-ph .abx-mat { width: auto !important; height: auto !important; margin: 0 12px; padding: 8px; }
.ab-ph .abs-basket:not(.picked) .abx-mat { display: none; }
.ab-ph .abx-mat .ab-peelzone { min-height: min(30vh, 250px); }
body:has(#basketKindModal.ab-ph[style*="display: flex"]) .toolbar { display: none !important; }   /* 하단 메뉴가 매트 위로 올라오지 않게 */
.ab-ph .abs-basket .bk-bin, .ab-ph .abs-basket .abx-bin { background: none !important; background-image: none !important; border: 0 !important; box-shadow: none !important; }   /* 🧺 바구니 무늬 없이 (시트 하나) */
.ab-ph .abx-tag { width: calc(100vw - 20px); max-width: 380px; justify-content: center; flex-wrap: nowrap; }   /* 책이 좁아도 이름표 줄은 화면 폭으로 */
.ab-ph .abx-tag > * { white-space: nowrap; } .ab-ph .abx-tag .ab-lbdesk { flex: 0 1 auto; min-width: 0; text-overflow: ellipsis; }

body:has(#basketKindModal.ab-space) .ab-ghost { z-index: 2147482000; }
/* 🤍 이형지북 처음 안내 : 바구니 → 🟩 매트 화살표 (매트에 종이를 펼치면 사라져요 · 도련 10-29) */
.abx-row { position: relative; }
.abx-guide { position: absolute; z-index: 6; left: calc(var(--bw, 340px) - 150px); top: 16%; width: 230px; pointer-events: none; animation: abxNudge 1.3s ease-in-out infinite alternate; }
.abx-guide b { display: block; width: max-content; max-width: 210px; padding: 8px 14px; border: 2px solid var(--ol); border-radius: 14px; background: #ffd3e2; color: #8a2f58; font-size: 14px; line-height: 1.35; text-align: center; }
.abx-guide svg { display: block; width: 150px; height: 80px; margin: 2px 0 0 40px; }
@keyframes abxNudge { from { transform: translate(0, 0); } to { transform: translate(10px, 4px); } }
@media (prefers-reduced-motion: reduce) { .abx-guide { animation: none; } }
.abx-mat .ab-peelhint { flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.abx-mat .ab-peelhint small { font-size: 12px; }
/* 🤍 이형지북 스티커 = 다이어리에 붙였을 때와 같은 크기 (w · h × 배율 --rk · js abRelK · 도련 10-29) */
.abs-book .ab-rel.abx-wax .ab-it[style*="--iw"] { width: calc(var(--iw) * var(--rk, .5) * 1px); height: calc(var(--ih) * var(--rk, .5) * 1px); }
.abs-basket .ab-stripempty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0; }

/* 🗺️ 씰 시트 배치 그대로 (도련 10-29 · js/basket.js abLayHtml) : 흰 종이 위 원래 자리 · 크기 */
.bk-lay { position: relative; display: block; width: 100%; aspect-ratio: var(--r, .7); background: #fff; border-radius: 6px; overflow: hidden; }
.bk-lay > img { position: absolute; object-fit: contain; pointer-events: none; }
.bk-sh:has(> .bk-lay) { padding: 6px; }
.sh-paper.sh-lay { display: block; padding: 6px; }

/* 🛍️ 받기가 다 끝나면 쇼핑백 (도련 10-29 · js/basket.js bagShow) : 흰 창 없이 봉투만 화면 가운데 톡 → 로그인 다이어리처럼 둥실둥실 (gateBob) · 2.2초 뒤 스르르 · 누르면 닫혀요 · 어떤 창 위에도 */
.sh-bag { position: fixed; left: 50%; top: 42%; z-index: 2147483100; display: none; flex-direction: column; align-items: center; gap: 10px; translate: -50% -50%; cursor: pointer; user-select: none; -webkit-user-select: none; }
.sh-bag.on { display: flex; animation: shBagIn .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.sh-bag.bye { animation: shBagOut .3s ease both; }
.sh-bag-in { display: block; animation: gateBob 2.4s ease-in-out .45s infinite; }
.sh-bag svg { width: min(330px, 70vw); height: auto; aspect-ratio: 260 / 290; display: block; }   /* 3배 (도련 10-29) */
.sh-bag-msg { padding: 5px 14px; border-radius: 6px; background: #a02a45; color: #fdeee8; font-size: 15px; font-weight: 800; white-space: nowrap; }
@keyframes shBagIn { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes shBagOut { to { opacity: 0; scale: .8; } }
@media (prefers-reduced-motion: reduce) { .sh-bag.on, .sh-bag-in { animation: none; } }
/* 🏪 받은 뒤 버튼 '보관함 확인' = 연녹색 (도련 10-29) */
html .sh-take.got, html.an .sh-take.got, html.an .sh-take.got:not(.sh-zoombtn) { background: #dff4e7 !important; border: 1.5px solid #7cc7a0 !important; color: #2f8a5a !important; }

/* 📔 책상 위 다이어리 자리 · 모습 (도련 10-29 · js/desk.js dky) : --ax · --ay = 바닥 가운데 (책상 그림 px) · 📚 꽂기 = 책등 · 📔 세우기 = 앞모습 · 🛏 눕히기 = 예전 그대로 */

/* 🏷️ 다이어리 라벨 (도련 10-29 · js/desk.js dkyLabelPaint) : 사용자가 붙이고 꾸며요 · 📚 책등 / 📔 앞면 자리 따로 */
.dky-lb.ph { opacity: .55; }
html.desk-edit .dky-lb { pointer-events: none; }   /* 🏷 다이어리 이름표는 눌리지 않아요 (도련 10-30 · 고치기 = 메뉴 🏷 이름표) */
.dky-lbp { position: fixed; left: 50%; top: 14px; translate: -50% 0; z-index: 2147482500; width: min(94vw, 460px); box-sizing: border-box; padding: 10px 12px; border: 2px solid #8d6f7f; border-radius: 18px; background: #fffaf2; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #6a4f5a; }
.dky-lbp[hidden] { display: none; }
.dky-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dky-row > b { color: #c8457a; font-size: 15px; } .dky-row > small { color: #9a7d8a; flex: 1; }
.dky-row > span { width: 34px; flex: none; font-weight: 700; }
.dky-x { margin-left: auto; border: 0; background: none; color: #e07ba0; font-size: 20px; cursor: pointer; }
.dky-t { flex: 1; min-width: 140px; padding: 6px 10px; border: 1.5px solid #e8b9c6; border-radius: 10px; font: inherit; font-size: 14px; }
.dky-row select { padding: 5px; border: 1.5px solid #e8b9c6; border-radius: 10px; font: inherit; max-width: 150px; }
.dky-row input[type=range] { flex: 1; }
.dky-tg { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; cursor: pointer; }
.dky-sw { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #a080a5; background: var(--c); cursor: pointer; padding: 0; }
.dky-sw.on { box-shadow: 0 0 0 2.5px #fffaf2, 0 0 0 4.5px #ff6b88; }
.dky-row > span { width: auto; min-width: 30px; }

/* 🧺 앞벽 (도련 10-29 · js/desk.js dkLayers) : 소품 그림을 앞벽 마스크로 잘라 한 겹 더 · 다이어리가 꽂히면 그 사이 */
.dk-front { position: absolute; pointer-events: none; }
.dk-fm { position: absolute; inset: 0; -webkit-mask: var(--fm) 0 0 / 100% 100% no-repeat; mask: var(--fm) 0 0 / 100% 100% no-repeat; }
.dk-fm > img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }

.desk-guide { z-index: 9790; } .desk-tip { z-index: 9800; }   /* 소품 z 가 넓어져서 (바닥 × 8) 그보다 위 */   /* 🛠 모습 고르는 동안은 맨 앞 · 끄는 동안은 입구에 닿자마자 쏙 (도련 10-29) */

/* 📚 📔 세운 다이어리 두께 (도련 10-29 · js/desk.js dkyThickPaint · 도련 포토샵 시안) : 표지가 위로 이어지고 그 안에 종이 단면 */

/* 🚪 기본상품 샵 → 내 방 문 → 책상 (도련 10-30 · js/shopscene.js shopSceneClose) */
.shop-home { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; }
.shop-home img { position: absolute; user-select: none; -webkit-user-drag: none; }
.shop-home::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, #ffd3e2 0, #ffdbe7 30%, #fbd0de 60%, rgba(251, 208, 222, .6) 85%); }
.shop-scene.home .shop-home { opacity: 1; transition: opacity .45s ease; }
.shop-scene.home-go .shop-home { transition: transform 1.2s cubic-bezier(.4, 0, .8, .5), opacity .5s ease .9s; transform: scale(2.4); }
.shop-scene.home-go .shop-home::after { transition: opacity .8s ease .3s; opacity: 1; }
.shop-scene.home-go .shop-sign.home { transition: opacity .3s ease; opacity: 0; }
.shop-scene.home .shop-x { opacity: 0; pointer-events: none; }
.shop-sign.home b { color: #c8457a; }
.shop-x { width: auto !important; height: auto !important; padding: 9px 16px; border-radius: 999px !important; font-size: 15px !important; white-space: nowrap; }   /* ✕ → 🚪 이동 (가게 안) */

/* 🛍️ 가게에서 사 온 봉투 (도련 10-30 · js/desk.js deskBagDrop) : 책상 위에 똑바로 놓여 있어요 · 톡 = 집어 들고 사라져요 */
.dk-bag { position: absolute; width: 240px; height: 268px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 8800; transform-origin: 50% 100%; filter: drop-shadow(0 8px 6px rgba(150, 70, 100, .28)); pointer-events: auto; }
.dk-bag svg { width: 100%; height: 100%; display: block; }
.dk-bag.bye { animation: dkBagBye .45s ease forwards; }
html.desk-show .dk-bag { visibility: hidden; }
@keyframes dkBagBye { 30% { translate: 0 -24px; scale: 1.05; } 100% { translate: 0 -90px; scale: .7; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dk-bag.bye { animation-duration: .01s; } }
/* 🛍️ 봉투 속 → 책상 소품에 넣기 (도련 10-30 · js/desk.js deskBagOpen · dkbGrab · dkHomeTap) */
.dk-bag-n { position: absolute; right: 18px; top: 66px; min-width: 40px; height: 40px; padding: 0 8px; box-sizing: border-box; border-radius: 999px; background: #fff6e8; border: 3px solid #5f1a2c; color: #9a2236; font: 800 22px/34px 'Jua', sans-serif; }
.dkb-pn { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 2147482400; width: min(94vw, 620px); box-sizing: border-box; padding: 10px 12px 12px; border: 2px solid #8d6f7f; border-radius: 18px; background: #fffaf2; color: #6a4f5a; font-size: 13px; }
.dkb-pn[hidden] { display: none; }
.dkb-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dkb-top b { color: #9a2236; font-size: 15px; white-space: nowrap; } .dkb-top small { flex: 1; padding: 5px 10px; border: 2px solid #8d6f7f; border-radius: 10px; background: #fff; color: #5a3d4a; font-size: 13.5px; font-weight: 700; line-height: 1.45; word-break: keep-all; }   /* 사용법 = 창 테두리 색으로 강조 (도련 11-05) */
.dkb-x { border: 0; background: none; color: #c8457a; font-size: 18px; cursor: pointer; }
.dkb-cards { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.dkb-card { flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border: 1.6px solid #e8b9c6; border-radius: 12px; background: #fff; cursor: grab; touch-action: none; user-select: none; }
.dkb-card > img, .dkb-card > i { display: block; width: 52px; height: 46px; object-fit: contain; font-size: 30px; font-style: normal; line-height: 46px; text-align: center; }
.dkb-card > i svg { width: 100%; height: 100%; }
.dkb-card b { font-size: 12px; color: #6a4f5a; text-align: center; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.dkb-card small { font-size: 10.5px; color: #b0708a; }
.dkb-card.dkb-out { opacity: .35; }
.dkb-ghost { position: fixed; z-index: 2147482600; translate: -50% -50%; pointer-events: none; rotate: -4deg; border-color: #ff6b88; }
.desk-item.dkh-hi { outline: 3px dashed #ff6b88 !important; outline-offset: 4px; }
.desk-item.dkh-in { animation: dkhIn .55s ease; }
@keyframes dkhIn { 30% { scale: 1.08 .94; } 60% { scale: .97 1.04; } }
/* 🏷 이름표 = 소품 · 📔 다이어리 모두 이 모양 하나 (도련 10-30 · js/desk.js dknBuild · 바꾸면 한 번에 다) · --nb = 기본 글씨 크기 */
.dkn-tag { position: absolute; z-index: 4; translate: -50% -50%; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .25em; padding: .18em .5em; border: 1.5px solid #a080a5; border-radius: .35em; white-space: nowrap; pointer-events: none; font-size: calc(var(--nb, 18px) * var(--fs, 1)); line-height: 1.1; font-weight: 700; }
.dkn-tag .dkn-t { font-weight: 700; }
.dkn-tag .dkn-ic { font-style: normal; display: inline-flex; gap: .1em; height: 1.25em; align-items: center; }
.dkn-tag .dkn-ic svg { height: 1.25em; width: auto; }
.dkn-tag.clear { border-color: transparent; }
.dkn-tag.ol .dkn-t { -webkit-text-stroke: .16em var(--oc, #fff); paint-order: stroke fill; }
.dkn-tag.v { flex-direction: column; padding: .45em .18em; }
.dkn-tag.v .dkn-t { display: block; text-align: center; line-height: 1.05; white-space: normal; }
.dkn-tag.v .dkn-sp { display: block; height: .35em; }
.dkn-tag.v .dkn-t br:last-child { display: none; }
.dkn-tag.v .dkn-ic { flex-direction: column; height: auto; }
.dkn-tag.dky-lb.side { --nb: 8px; border-width: 1px; } .dkn-tag.dky-lb.front { --nb: 22px; }   /* 📔 다이어리 책등 · 앞면 */
.dkn-tag.ph { opacity: .55; }
.dkn-seg, .dkn-ic-b { border: 1.4px solid #e8b9c6; border-radius: 999px; background: #fff; color: #8a2f58; font: inherit; font-size: 12.5px; padding: 4px 10px; cursor: pointer; }
.dkn-ic-b { padding: 2px 6px; font-size: 16px; } .dkn-ic-b:first-of-type { font-size: 12.5px; padding: 4px 10px; }
.dkn-seg.on, .dkn-ic-b.on { background: #ffd3e2; border-color: #ff6b88; }
#dknPanel .dky-row { flex-wrap: wrap; }
#dknPanel, #dkvLbPanel { max-height: calc(100dvh - 28px); overflow-y: auto; }   /* 작은 화면에서도 창 안에 */
/* 🎨 내 마음대로 색 : 준비된 색 뒤 동그라미 (안 골랐을 때 = 🎨 · 고르면 그 색) */
.dkn-cc { position: relative; display: inline-grid; place-items: center; overflow: hidden; box-sizing: border-box; }
.dkn-cc input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.dkn-cc:not(.on):not(.my)::after { content: '🎨'; font-size: 13px; line-height: 1; pointer-events: none; }
/* 😀 모든 이모지 = 이름표 창 위에 따로 뜨는 창 (스티커 쪽 이모지 그대로 · 창 밖 누르면 닫혀요) */
.dkn-emo-b { font-size: 12.5px; }
.dkn-emo-bk { position: fixed; inset: 0; z-index: 2147482600; display: grid; place-items: center; background: transparent; }
.dkn-emo-bk[hidden] { display: none; }
.dkn-emo-win { width: min(92vw, 420px); max-height: min(78dvh, 520px); box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 2px solid #8d6f7f; border-radius: 18px; background: #fffaf2; color: #6a4f5a; font-size: 13px; box-shadow: 4px 4px 0 #e6dcf8; }
.dkn-emo-q { padding: 6px 10px; border: 1.5px solid #e8b9c6; border-radius: 10px; font: inherit; font-size: 13px; min-width: 0; }
.dkn-emo-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.dkn-emo-tab { border: 1.4px solid #e8b9c6; border-radius: 999px; background: #fff; color: #8a2f58; font: inherit; font-size: 12px; padding: 3px 8px; cursor: pointer; }
.dkn-emo-tab.on { background: #ffd3e2; border-color: #ff6b88; }
.dkn-emo-grid { flex: 1; min-height: 120px; display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); align-content: start; overflow-y: auto; overscroll-behavior: contain; border: 1.5px solid #f0d6de; border-radius: 12px; background: #fff; padding: 4px; }
.dkn-emo-grid button { border: 1.4px solid transparent; border-radius: 9px; background: none; font-size: 24px; line-height: 1; padding: 6px 0; cursor: pointer; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.dkn-emo-grid button:hover { background: #fff0f5; }
.dkn-emo-grid button.on { background: #ffd3e2; border-color: #ff6b88; }
.dkn-emo-none { grid-column: 1 / -1; color: #9a7d8a; padding: 10px 4px; }
.dkn-done { margin: 2px auto 0; border: 1.6px solid #e88fb0; border-radius: 999px; background: #ffd3e2; color: #8a2f58; font: inherit; font-size: 14px; font-weight: 700; padding: 7px 22px; cursor: pointer; }
/* 😀 고른 이모지 빼기 ✕ (이름표 아이콘 줄) */
.dkn-my { position: relative; display: inline-flex; }
.dkn-my-x { position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; padding: 0; border: 1.4px solid #e88fb0; border-radius: 50%; background: #fff; color: #c8457a; font-size: 10px; line-height: 1; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.dkz-p { margin: 0; text-align: center; line-height: 1.5; }
.dkz-pic { position: relative; margin: 2px auto; touch-action: none; user-select: none; cursor: crosshair; background: #fff; border: 1.5px solid #f0d6de; border-radius: 10px; }
.dkz-pic > img { width: 100%; height: 100%; display: block; pointer-events: none; }
.dkz-show { position: absolute; z-index: 5; pointer-events: none; }
.dkz-show i { position: absolute; border: 2px dashed #e88fb0; border-radius: 6px; box-sizing: border-box; background: rgba(255, 211, 226, .25); }
.dkz-show i.on { border: 3px solid #ff6b88; background: transparent; }   /* 👆 지금 고친 칸 */
/* 💬 메뉴 창 맨 위 = 무엇을 골랐는지 (🪑 소품 · 👆 칸 · 📔 다이어리) + 꼬리 */
.dkt-hd { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 800; color: #8a2f58; white-space: nowrap; }
.dkt-hd small { font-size: 12px; font-weight: 700; color: #9a7d8a; }
.dkt-chip { font-size: 12px; font-weight: 800; color: #fff; background: #ff6b88; border-radius: 999px; padding: 1px 9px; line-height: 1.6; }
.dkt-chip.lv { background: #a58fd6; }
.desk-tip.on::after { content: ''; position: absolute; left: calc(50% + var(--ax, 0px)); width: 14px; height: 14px; background: #fffaf2; border: 2px solid #8d6f7f; translate: -50% 0; rotate: 45deg; }
.desk-tip.on::after { bottom: -9px; border-top: 0; border-left: 0; }
.desk-tip.on.below::after { bottom: auto; top: -9px; border: 2px solid #8d6f7f; border-right: 0; border-bottom: 0; }
/* 👆 고른 칸 = 칸 밖은 하얗게 가려요 */
.dkz-show.veil { overflow: hidden; border-radius: 4px; }
.dkz-show.veil i.on { box-shadow: 0 0 0 9999px rgba(255, 255, 255, .55); }
/* 🛠 책상 꾸미기 메뉴 = 창 하나 (도련 10-30 : 제목 · 버튼이 따로 떠 있지 않게 한 장에 붙여요) */
.desk-tip.on { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 2px solid #8d6f7f; border-radius: 18px; background: #fffaf2; box-shadow: 3px 3px 0 #e6dcf8; }
.desk-tip .desk-snap { box-shadow: none; height: 34px; border-width: 1.6px; }

/* ═══ 📔 파스텔 바인더 = 도련 시안4 그대로 (10-30 · /home 시안 : 다이어리_시안4.png) ═══
   표지 = 다이어리 색 단색 + 작은 땡땡이 · 바깥 선(표지 둘레) 3.5px · 안쪽 선은 모두 같은 한 줄 2px(--dyv-ol · 이 다이어리만 애니 연한 선 규칙의 예외 · 여러 겹 선 없음) · 딱 떨어지는 그늘(선 없이)
   가운데 책등 = 한 톤 진한 단색 · 링 6개 = 굵은 파스텔 핑크 + 진한 선 + 그늘 한 톤 · 종이 = 둥근 모서리 + 선 한 줄 · 속지 = --page-bg (아주 연한 다이어리 색) · 줄 없음
   닫은 겉표지 = 같은 표지 + 책등 + 해 이름판(.cv-year · js/dyyear.js dyyPaint) · 흰 박음질 · 탭 · 고무줄 · 리본 · 참 · 레이스 · 깅엄 없음 */
html.an .inner-page, html.an .cover-page, html.an .dk-fold-f {
  --dyv: color-mix(in srgb, var(--dy-c, var(--border-color)), var(--primary-accent) 12%);
  --dyv-ol: color-mix(in srgb, var(--primary-accent) 68%, #3a2a55);
  --dyv-sh: color-mix(in srgb, var(--dyv), #5b3f7a 22%);
  --dyv-sp: color-mix(in srgb, var(--dyv), #5b3f7a 11%);
  --dyv-dot: color-mix(in srgb, var(--dyv), #fff 52%);
  --dyv-dots: radial-gradient(circle, var(--dyv-dot) 1.05cqw, transparent 1.12cqw) 3cqw 3cqw / 12.5cqw 12.5cqw, radial-gradient(circle, var(--dyv-dot) 1.05cqw, transparent 1.12cqw) 9.25cqw 9.25cqw / 12.5cqw 12.5cqw;
}
/* 표지 (펼친 모습 둘레) */
html.an .inner-page .dy-cov { inset: -8cqw -8.2cqw -8.6cqw -8.2cqw !important; border-radius: 7.5cqw !important; background: var(--dyv-dots), var(--dyv) !important; box-shadow: 0 0 0 3.5px var(--dyv-ol), 8px 9px 0 0 var(--dyv-sh) !important; }
/* 종이 = 둥근 모서리 + 선 한 줄 (양옆 · 아래) · 속지 무늬를 고르지 않았으면 줄 없는 빈 종이 */
html.an .inner-page .canvas-area { --pg2: color-mix(in srgb, var(--page-bg), var(--dyv) 26%); --pg3: color-mix(in srgb, var(--page-bg), var(--dyv) 44%);
  border-radius: 4cqw !important;
  box-shadow: 0 0 0 2px var(--dyv-ol) !important; }   /* 선 한 줄 (겹친 종이 선 없음 · 도련 10-30) */
html.an .inner-page .canvas-area { background: var(--page-bg) !important; }
html.an .inner-page .canvas-area, html.an .lf-slide { --pat-line: var(--page-bg); }   /* 📄 줄노트 = 줄 없는 빈 종이 (예전 그대로 · 이 모습에선) */
/* 가운데 책등 */
html.an .dy-gap { top: -1.2cqw !important; bottom: -1.2cqw !important; width: var(--gap) !important; margin-left: calc(var(--gh) * -1) !important; background: var(--dyv-sp) !important; box-shadow: inset 2px 0 0 var(--dyv-ol), inset -2px 0 0 var(--dyv-ol) !important; }
html.an .inner-page.dy-bo .dy-gap { width: .35cqw !important; margin-left: -.175cqw !important; }
html.an .dy-gap::before { background: transparent !important; box-shadow: none !important; }
/* 링 6개 (선 · 핑크 · 그늘 세 겹 = 같은 모양 마스크 · 선 색은 다이어리를 따라가요) */
html.an .dy-rings i { background: var(--dyv-ol, #7f68bf) !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cellipse cx='30' cy='44' rx='10' ry='7.5' fill='%23000'/%3E%3Cellipse cx='170' cy='44' rx='10' ry='7.5' fill='%23000'/%3E%3Cpath d='M30 42 C30 2 170 2 170 42' fill='none' stroke='%23000' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cellipse cx='30' cy='44' rx='10' ry='7.5' fill='%23000'/%3E%3Cellipse cx='170' cy='44' rx='10' ry='7.5' fill='%23000'/%3E%3Cpath d='M30 42 C30 2 170 2 170 42' fill='none' stroke='%23000' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; filter: none !important; }
html.an .dy-rings i::before, html.an .dy-rings i::after { content: ''; position: absolute; inset: 0; }
html.an .dy-rings i::before { background: #ffb7cf; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath d='M30 42 C30 2 170 2 170 42' fill='none' stroke='%23000' stroke-width='13' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath d='M30 42 C30 2 170 2 170 42' fill='none' stroke='%23000' stroke-width='13' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
html.an .dy-rings i::after { background: #f58fb3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath d='M45 27 C63 11 137 11 155 27' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath d='M45 27 C63 11 137 11 155 27' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* 닫은 겉표지 (책상 위 다이어리도) */
html.an .cover-page, html.an .cover-page.cv-book { background: var(--dyv-dots), var(--dyv) !important; border: 0 !important; border-radius: 3cqw 6.5cqw 6.5cqw 3cqw !important; }
html.an #diaryBook .cover-page { box-shadow: 0 0 0 3.5px var(--dyv-ol), 8px 9px 0 0 var(--dyv-sh) !important; }
html.an .cover-page::before { width: 10cqw !important; border-radius: 3cqw 0 0 3cqw; background: var(--dyv-sh) !important; box-shadow: 2px 0 0 var(--dyv-ol); }
.cv-year { display: none; }
html.an .cover-page .cv-year:not(:empty) { display: block; position: absolute; left: 29cqw; top: 15cqw; width: 52cqw; padding: 3.2cqw 0; box-sizing: border-box; text-align: center; background: #fffdfb; border: 2px solid var(--dyv-ol); border-radius: 4cqw; color: var(--dyv-ol); font-size: 10cqw; font-weight: 900; letter-spacing: 1.2cqw; line-height: 1; z-index: 1; }
html.an .cover-page .cover-notice { margin-top: 26cqw; }
html.an .cover-page.cv-book .cv-year { display: none !important; }   /* 📓 다른 종류 다이어리는 해 이름판 없음 */
/* 📢 겉표지 공지 카드 · 밀어서 열기 = 왼쪽 책등을 뺀 표지의 가운데 (도련 10-30) */
html.an .cover-page .cover-notice:not(.img) { width: 72cqw; }   /* 스샷 자리 (책등과 오른쪽 끝 사이 가운데) */
html.an .cover-page .cover-notice, html.an .cover-page .drag-hint { translate: 5cqw 0; }
/* 🏪 책상 오른쪽 위 = 기본상품 샵 바로 가기 (도련 10-30 · js/desk.js deskBuild · 책상만 볼 때 · 다이어리를 펼치거나 🛠 꾸미는 동안은 숨겨요) */
.desk-top-r { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 995; display: flex; gap: 8px; }   /* 🪑 오른쪽 위 : 🛠 책상 꾸미기 · 🚪 이동 (도련 10-31) */
.desk-shop-go { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border: 2px solid #e88fb0; border-radius: 999px; background: #fff; color: #c2457a; font: inherit; font-size: 15px; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: 3px 3px 0 #e6dcf8; }
.desk-shop-go:hover { background: #fff0f5; }
.desk-shop-go:active { translate: 1px 1px; box-shadow: 2px 2px 0 #e6dcf8; }
html:not(.desk-on) .desk-top-r, html.desk-edit .desk-top-r, body:has(.shop-scene.on) .desk-top-r { display: none; }
/* ✕ 책상으로 (도련 11-15 · js/desk.js dkModeXBuild) : 📔 다이어리모드 · 📒 스티커정리모드 · 🧩 바인더조립모드 = 오른쪽 위 메뉴 · 이동 대신 ✕ 하나 · ⛔ 🔑 잠금 스위치 영구 삭제 */
.dk-mode-x { position: fixed; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 1002; display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #c2457a; font: inherit; font-size: 26px; font-weight: 900; line-height: 1; cursor: pointer; }   /* ✕ 글자만 (도련 11-15 · 흰 동그라미 없이) */
.dk-mode-x:hover { color: #e0628f; }
.dk-mode-x:active { translate: 1px 1px; }
/* 🏪 샵 사용해보기 · 적용해보기 닫기 = 같은 ✕ 글자만 (도련 11-15 · js/gdtry.js .gdt-x · js/deskskin.js .ds-try-x · js/desk.js .dk-try-x · 자리는 각 줄) */
.try-x { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #c2457a; font: inherit; font-size: 26px; font-weight: 900; line-height: 1; cursor: pointer; }
.try-x:hover { color: #e0628f; }
.try-x:active { translate: 1px 1px; }
html.desk-on.dk-bgon:not(.dk-landing):not(.desk-edit) .dk-mode-x,
html.desk-on body:has(#basketKindModal.abs-dkmode[style*="display: flex"]) .dk-mode-x,
html.desk-on body.bnd-on:has(.bnd-dkmode.show) .dk-mode-x { display: block; }
html.desk-on.dk-bgon .desk-top-r, body:has(#basketKindModal.abs-dkmode[style*="display: flex"]) .desk-top-r { display: none !important; }   /* 오른쪽 위 메뉴 · 이동 = 안 보여요 (✕ 로 책상에 돌아가서) */
/* 📔 책상 = 다이어리 보관소 (도련 10-30 · js/desk.js dkVolsPaint) : 펼쳐 두지 않은 권 = 가벼운 표지 그림 (파스텔 바인더 · 그 권 색 · 해 이름판) */
.dk-vol { position: absolute; cursor: pointer; touch-action: none; user-select: none; }
html.desk-edit .dk-vol { cursor: grab; } .dk-vol.lift { cursor: grabbing; }
.dk-vol { --dyv: color-mix(in srgb, var(--dy-c), var(--primary-accent) 12%); --dyv-ol: color-mix(in srgb, var(--primary-accent) 68%, #3a2a55); --dyv-sh: color-mix(in srgb, var(--dyv), #5b3f7a 22%); --dyv-dot: color-mix(in srgb, var(--dyv), #fff 52%); }
.dk-vol .dv-cv { position: absolute; inset: 0; box-sizing: border-box; border: 2px solid var(--dyv-ol); background: radial-gradient(circle, var(--dyv-dot) 1.6px, transparent 1.9px) 4px 4px / 12px 12px, var(--dyv); }
.dk-vol .dv-cv b { position: absolute; font-style: normal; font-weight: 900; color: var(--dyv-ol); background: #fffdfb; border: 1.5px solid var(--dyv-ol); line-height: 1; white-space: nowrap; }
/* 📚 꽂기 = 책등 (해를 세로로) */
.dk-vol.p-side .dv-cv { border-radius: 6px 6px 4px 4px; background: var(--dyv-sh); box-shadow: inset 0 9px 0 -6px var(--dyv), inset 0 -9px 0 -6px var(--dyv); }
.dk-vol.p-side .dv-cv b { left: 50%; top: 20px; translate: -50% 0; writing-mode: vertical-rl; font-size: 10px; padding: 4px 1px; border-radius: 4px; letter-spacing: 1px; }
/* 📔 세우기 = 앞모습 (위로 종이 두께 · 왼쪽 책등) */
.dk-vol.p-front .dv-cv { top: 8px; border-radius: 3px 10px 10px 3px; box-shadow: inset 14px 0 0 var(--dyv-sh), inset 16px 0 0 var(--dyv-ol); }
.dk-vol.p-front::before { content: ''; position: absolute; left: 6px; right: 4px; top: 0; height: 12px; box-sizing: border-box; border: 2px solid var(--dyv-ol); border-bottom: 0; border-radius: 6px 8px 0 0; background: repeating-linear-gradient(var(--page-bg, #fff8fb) 0 2px, color-mix(in srgb, var(--dyv) 45%, #fff) 2px 3px); }
.dk-vol.p-front .dv-cv b { left: 26px; right: 8px; top: 18px; font-size: 13px; padding: 4px 0; text-align: center; border-radius: 6px; }
/* 🛏 눕히기 = 위에서 본 표지 + 아래 종이 두께 */
.dk-vol.p-lay .dv-cv { top: auto; bottom: calc(13px * var(--lk, 1)); height: calc(287px * var(--sy, 1) * var(--lk, 1));   /* 📏 눕힌 표지 길이 = 규격 세로 비율 × 줄인 비율 (js/desk.js dkvSz · 책상 = 20%) */ transform: perspective(calc(900px * var(--lk, 1))) rotateX(var(--dk-tilt, 55deg)); transform-origin: 50% 100%; border-radius: 6px 10px 10px 6px; box-shadow: inset calc(18px * var(--lk, 1)) 0 0 var(--dyv-sh), inset calc(20px * var(--lk, 1)) 0 0 var(--dyv-ol); }   /* 🛏 눕히기 = 펼쳐 둔 권처럼 표지를 비스듬히 (도련 10-30) */
.dk-vol.p-lay .dv-pg { position: absolute; left: 0; right: 0; bottom: 0; height: calc(15px * var(--lk, 1)); box-sizing: border-box; border: 2px solid var(--dyv-ol); border-top: 0; border-radius: 0 0 10px 10px; background: linear-gradient(90deg, var(--dyv-sh) 0 calc(16px * var(--lk, 1)), transparent calc(16px * var(--lk, 1))), repeating-linear-gradient(var(--page-bg, #fff8fb) 0 2px, color-mix(in srgb, var(--dyv) 45%, #fff) 2px 3px); }
.dk-vol.p-lay .dv-cv b { left: 50%; top: 9%; translate: -50% 0; font-size: calc(26px * var(--lk, 1)); padding: calc(4px * var(--lk, 1)) calc(18px * var(--lk, 1)); border-radius: 8px; }
.dk-vol.note.p-front .dv-cv { border-radius: 4px 9px 9px 4px; box-shadow: inset 7px 0 0 var(--dyv-sh), inset 9px 0 0 var(--dyv-ol); }   /* 📓 날짜형 노트 = 얇은 책등 (도련 11-04) */
.dk-vol.note.p-lay .dv-cv { box-shadow: inset calc(9px * var(--lk, 1)) 0 0 var(--dyv-sh), inset calc(11px * var(--lk, 1)) 0 0 var(--dyv-ol); }
.dk-vol.note .dv-cv { background: var(--dyv); }   /* 📓 노트 표지 = 단색 (땡땡이 없음 · 도련 11-04) */
.dk-vol.note.p-side .dv-cv { border-radius: 4px; }
.dk-vol.has-lb .dv-cv > b { display: none; }   /* 🏷 이름표를 붙이면 해 이름판 대신 */
.dk-vol .dkn-tag.dky-lb.side { --nb: 8px; } .dk-vol .dkn-tag.dky-lb.front { --nb: 13px; } .dk-vol.p-lay .dkn-tag.dky-lb.front { --nb: calc(30px * var(--lk, 1)); }
.dkv-menu .dky-lbb { background: #fff1c4; }
html.desk-edit .dk-vol.pose-on .dv-cv, html.desk-edit .dk-vol.lift .dv-cv { outline: 3px solid #ff6b88; outline-offset: 2px; }
/* 🛠 다이어리 권 모습 창 = 펼쳐 둔 권의 📔 모습 창과 같은 카드 */
.dkv-menu { position: fixed; z-index: 9700; translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; padding: 8px 10px; border: 2px solid #8d6f7f; border-radius: 18px; background: #fffaf2; box-shadow: 3px 3px 0 #e6dcf8; }
.dkv-menu[hidden] { display: none; }
.dkv-menu .dkt-hd { flex: 0 0 100%; }
.dkv-menu button { border: 1.4px solid #e88fb0; border-radius: 999px; background: #fff; color: #8a2f58; font: inherit; font-size: 15px; font-weight: 700; padding: 6px 12px; cursor: pointer; }
.dkv-menu button.on { background: #ffd3e2; }
/* 📒 🤍 책상 위 스티커첩 (도련 10-30) : 바인더 = 그 책 색 · 이형지북 = 반투명 흰 종이 느낌 · 땡땡이 없이 */
.dk-vol.alb .dv-cv { background: var(--dyv); }
.dk-vol.alb.p-side .dv-cv { background: var(--dyv-sh); }
.dk-vol.alb.rl .dv-cv { background: repeating-linear-gradient(#fbf8ff 0 5px, #efe8fa 5px 6px); }
.dk-vol.alb .dv-cv b { font-size: 11px; letter-spacing: 0; }
.dk-vol.alb.p-side .dv-cv b { font-size: 11px; padding: 3px 1px; }
/* 🛍️ 봉투 : 평소 = 끌어 옮기기 · 톡 = 열기 / 🛠 꾸미는 동안은 안 눌려요 */
.dk-bag { touch-action: none; }
.dk-bag.lift { cursor: grabbing; filter: drop-shadow(4px 6px 0 rgba(150, 110, 170, .25)); }
html.desk-edit .dk-bag { pointer-events: none; opacity: .55; }
/* 📔 책상 위 다이어리 = 모든 권 같은 틀 (.dk-vol · 도련 10-30) : #deskDiary 는 떠오르기 · 내려앉기 · 레이어 기준점으로만 (안 보이고 안 눌려요) · 펼쳐 보는 동안 그 권 그림은 숨어요 */
#deskDiary { position: absolute; width: 0; height: 0; visibility: hidden !important; pointer-events: none !important; }
html.desk-show .dk-vol.cur { visibility: hidden; }

.gdc-none { padding: 22px 8px; text-align: center; color: #9a7d8a; font-size: 13px; line-height: 1.7; } .gdc-none .btn { margin-top: 8px; }   /* ✏️ 문구함이 비었을 때 (도련 10-31 · 처음엔 문구 없음) */
.desk-hint { position: absolute; translate: -50% 0; scale: var(--dk-inv, 1); transform-origin: 50% 0; z-index: 9600; padding: 10px 20px; border: 2px solid #8d6f7f; border-radius: 999px; background: #fffaf2; color: #7a5a6a; font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 3px 3px 0 #e6dcf8; pointer-events: none; animation: deskHintIn .5s ease both, deskHintBob 1.6s ease-in-out .5s infinite alternate; }   /* 🛍️ 사 온 봉투 안내 = 봉투 바로 아래 (도련 10-31 · js/desk.js dkBagHint) */
.desk-hint.up { translate: -50% -100%; transform-origin: 50% 100%; }
.desk-hint b { color: #c2457a; } .desk-hint[hidden] { display: none; }
html.desk-show .desk-hint, html.desk-edit .desk-hint { display: none; }
@keyframes deskHintIn { from { opacity: 0; } }
@keyframes deskHintBob { to { margin-top: -4px; } }
@media (prefers-reduced-motion: reduce) { .desk-hint { animation: none; } }
/* 🔽 오른쪽 위 메뉴 셋 (도련 11-01 · js/desk.js DTM) : ▾ + 지금 메뉴 · ▾ = 나머지 둘이 아래로 */
.dtm { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.dtm-list { position: absolute; left: 0; top: calc(100% + 6px); display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.dtm-list[hidden] { display: none; }
/* 🎀 책상 오른쪽 위 = 정리 책상 '씰스티커 ▾' 버튼과 같은 모양 (도련 11-11 : ▾ 동그라미 + 메뉴 두 개로 나뉜 게 별로 → 버튼 하나 · 아이콘 없이) · 누르면 흰 카드 목록 · 고르면 실행 */
.desk-top-r .desk-shop-go { height: 34px; gap: 5px; padding: 0 14px; border: 1.6px solid #e8bfd2; border-radius: 17px; background: #fff; color: #c8457a; font-size: 14px; font-weight: 700; box-shadow: 0 2px 6px rgba(141, 111, 127, .12); }
.desk-top-r .desk-shop-go:hover, .dtm.open .dtm-main { border-color: #e07ba0; background: #fff4f8; }
.desk-top-r .desk-shop-go:active { translate: 0 1px; box-shadow: none; }
.dtm-main b { color: #a68dc8; font-size: 11px; transition: transform .2s; } .dtm.open .dtm-main b { transform: rotate(180deg); }
.desk-top-r .dtm-list { gap: 2px; min-width: 100%; box-sizing: border-box; padding: 6px; background: #fff; border: 1.6px solid #e8bfd2; border-radius: 14px; box-shadow: 0 6px 18px rgba(141, 111, 127, .22); }
.desk-top-r .dtm-list button { display: block; padding: 7px 14px; border: 0; border-radius: 10px; background: none; color: #7a5a6c; font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; white-space: nowrap; cursor: pointer; }
.desk-top-r .dtm-list button:hover { background: #fff0f6; } .desk-top-r .dtm-list button.on { background: #ffe3ee; color: #c8457a; }

/* 🗄️ 서랍 고르기 (도련 11-01 · js/desk.js dkzChoose) : 알림 창 안에 서랍장 그림 + 칸 버튼 */
.dkz-pick { position: relative; width: min(300px, 70vw); margin: 12px auto 2px; }
.dkz-pick img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.dkz-slot { position: absolute; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 0 0 0 16px; border: 3px dashed rgba(217, 79, 122, .55); border-radius: 10px; background: rgba(255, 255, 255, .45); color: #8a2f58; cursor: pointer; transition: background .15s, transform .15s; }
.dkz-slot b { font-size: 14px; } .dkz-slot small { font-size: 11px; color: #a0607e; }
.dkz-slot:hover, .dkz-slot:focus-visible { background: rgba(255, 233, 160, .85); border: 3px solid #ff7eb6; transform: scale(1.03); outline: none; }
.dkz-slot.on { background: rgba(255, 214, 230, .8); border-style: solid; }
.dkz-slot:disabled { cursor: default; background: rgba(120, 100, 110, .28); border-style: dotted; opacity: .7; transform: none; }
.dkz-slot:disabled b, .dkz-slot:disabled small { color: #6b5560; }

/* 🚪 이동 창 넓게 (도련 11-02) : 💻 PC · 📲 아이패드 = 가로 3칸 (4칸은 옆으로 너무 길어서 3칸으로 · 도련 11-02) · 📱 폰은 예전 한 줄 그대로 */
@media (min-width: 600px) and (min-height: 600px) {
    #moveModal > .modal-content { box-sizing: border-box; width: min(92vw, 800px); max-width: none; max-height: 92vh; max-height: 92dvh; }
    #moveModal > .modal-content > .svc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    #moveModal .svc-cat:not(.svc-extra) { grid-column: auto; padding: 10px 12px; grid-template-columns: 40px minmax(0, 1fr) 10px; column-gap: 10px; }
    #moveModal .svc-cat:not(.svc-extra) .svc-cat-icon { width: 38px; height: 38px; font-size: 24px; }
    #moveModal .svc-cat:not(.svc-extra) small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ✏️ 문구 셀 애니 (도련 11-02) : 그림자 없이 (그림은 상품공방 그림 그대로 · js/gdpic.js) */
html.an .dkw-t, html.an .dkw-desk .dkw-t { filter: none !important; }
html.an .pk-ti { filter: saturate(.6) brightness(.97) !important; }
html.an .pk-t.on .pk-ti, html.an .pk-room.binning .pk-ti { filter: none !important; }
html.an .pc-mini { filter: none; }
html.an .pc-mini-cup { background: radial-gradient(circle, #fff 0 1.6px, transparent 2px) 0 0 / 7px 7px, #ffc2d3 !important; border: 1.6px solid #c25a80; box-shadow: none !important; }
html.an .pc-held, html.an .pc-held.carry, html.an .pc-held.laid { filter: none !important; }   /* 손에 든 필기구도 흐린 그림자 없이 */

/* ✏️ 봉투 속 문구 = 그 상품 그림 (도련 11-03 · js/desk.js dkGdIc) · 길쭉한 필기구는 비스듬히 눕혀요 */
.dkb-card > i.dkb-gd { display: flex; align-items: center; justify-content: center; overflow: visible; }
.dkb-card > i.dkb-gd img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.dkb-card > i.dkb-gd.tall img { max-width: none; max-height: none; height: 62px; width: auto; transform: rotate(-40deg); }
/* 🛍️ 봉투 속 카드 = 샵 진열 그림을 작게 (도련 11-03 · js/desk.js dkLkIc) : 샵 카드 크기(112 × 140)로 그려서 줄여요 */
.dkb-card > i.dkb-lk { position: relative; overflow: visible; }
.dkb-lkin { position: absolute; left: 50%; top: 50%; width: 112px; height: 140px; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%) scale(.36); pointer-events: none; font-size: 14px; line-height: 1.4; }
/* ═══ 📓 날짜형 노트 = 진짜 얇은 노트처럼 (도련 11-04 · 실물 사진 : 펼치면 표지는 거의 안 보이고 종이가 꽉 차요) ═══
   표지 = 종이 둘레로 아주 조금만 (땡땡이 없음) · 그 안쪽 양옆 = 겹친 종이 단면 줄 · 종이 모서리는 거의 각지게 · 가운데 = 접힌 곳 그늘 + 선 한 줄 (실 없음)
   닫은 겉표지(#diaryBook[data-dy="thin"]) = 같은 색 단색 + 아주 얇은 책등 (js/skins.js dyDeco 가 data-dy 를 붙여요) */
html.an .inner-page[data-dy="thin"] .dy-cov { inset: -1.5cqw -2.6cqw -2cqw -2.6cqw !important; border-radius: 2.4cqw !important; background: var(--dyv) !important; box-shadow: 0 0 0 2.5px var(--dyv-ol), 5px 6px 0 0 var(--dyv-sh) !important; }
html.an .inner-page[data-dy="thin"] .dy-cov::before { content: ''; position: absolute; inset: .7cqw .6cqw 1.1cqw; border-radius: 1.8cqw; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--dyv-ol) 55%, transparent);
  background: repeating-linear-gradient(90deg, var(--page-bg, #fff) 0 .42cqw, color-mix(in srgb, var(--dyv-ol) 32%, var(--page-bg, #fff)) .42cqw .56cqw) left / 2.2cqw 100% no-repeat, repeating-linear-gradient(270deg, var(--page-bg, #fff) 0 .42cqw, color-mix(in srgb, var(--dyv-ol) 32%, var(--page-bg, #fff)) .42cqw .56cqw) right / 2.2cqw 100% no-repeat, var(--page-bg, #fff); }   /* 겹친 종이 단면 (양옆) */
html.an .inner-page[data-dy="thin"] .canvas-area { border-radius: 1.2cqw !important; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--dyv-ol) 70%, transparent) !important; }
html.an .inner-page[data-dy="thin"] .dy-fold { width: 14cqw; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--dyv-ol) 7%, transparent) 30%, color-mix(in srgb, var(--dyv-ol) 18%, transparent) calc(50% - .5px), color-mix(in srgb, var(--dyv-ol) 55%, transparent) calc(50% - .5px) calc(50% + .5px), color-mix(in srgb, var(--dyv-ol) 18%, transparent) calc(50% + .5px), color-mix(in srgb, var(--dyv-ol) 7%, transparent) 70%, transparent) !important; }   /* 접힌 곳 그늘 (실 없음) */
html.an #diaryBook[data-dy="thin"] .cover-page, html.an #diaryBook[data-dy="thin"] .cover-page.cv-book { background: var(--dyv) !important; border-radius: 1.6cqw 3.6cqw 3.6cqw 1.6cqw !important; }
html.an #diaryBook[data-dy="thin"] .cover-page { box-shadow: 0 0 0 3px var(--dyv-ol), 6px 7px 0 0 var(--dyv-sh) !important; }
html.an #diaryBook[data-dy="thin"] .cover-page::before { width: 3.2cqw !important; border-radius: 1.6cqw 0 0 1.6cqw; }
/* 📦 소품함 준비 중 (도련 11-08) : 소품함이 뜰 오른쪽 자리에 작은 알약 · 눌러지지 않아요 (책상은 그대로 만져요) · 다 읽으면 소품함 창 */
.dkb-wait { position: fixed; right: calc(4vw + min(47vw, 260px)); top: calc(50% - 40px); translate: 50% -50%; z-index: 900; pointer-events: none; display: flex; align-items: center; gap: 4px; padding: 9px 16px; background: rgba(239, 232, 252, .94); border: 2px solid #c8b3e3; border-radius: 999px; box-shadow: 0 3px 0 rgba(150, 120, 200, .18); color: #7a64b8; font-size: 13px; font-weight: 800; white-space: nowrap; animation: dkbwIn .35s ease both; transition: opacity .25s, scale .25s; }
.dkb-wait b { margin-right: 2px; }
.dkb-wait i { width: 5px; height: 5px; border-radius: 50%; background: #a98bf0; animation: dkbwDot 1.1s ease-in-out infinite; }
.dkb-wait i:nth-of-type(2) { animation-delay: .18s; } .dkb-wait i:nth-of-type(3) { animation-delay: .36s; }
.dkb-wait.bye { opacity: 0; scale: .92; }
@keyframes dkbwIn { from { opacity: 0; scale: .9; } }
@keyframes dkbwDot { 0%, 100% { opacity: .25; translate: 0 0; } 40% { opacity: 1; translate: 0 -3px; } }
html:not(.desk-on) .dkb-wait { right: 50%; top: auto; bottom: 110px; translate: 50% 0; }
@media (prefers-reduced-motion: reduce) { .dkb-wait, .dkb-wait i { animation: none; } }

/* 📱 폰 : 펼친 다이어리 뒤 표지판(.dy-cov)이 화면 밖으로 크게 나가서 겉표지를 넘기는 순간 다이어리가 커져 보였어요 (도련 11-10)
   → 폰은 표지판 여백을 얇게 (종이 둘레 10px) · 닫힌 겉표지도 같은 크기로 (css/style.css 📱 겉표지) → 넘겨도 크기가 그대로 */
html.an.is-phone .inner-page .dy-cov, html.an.is-phone .inner-page[data-dy] .dy-cov { inset: -10px !important; border-radius: 16px !important; }
/* 🧱 🪵 샵 벽지 · 책상판 견본 = 카드 그림 칸을 꽉 채워요 (도련 11-11 · 무늬가 잘 보이게) */
.sh-grid .sh-look > .sh-tool.sh-ds { width: 100%; height: 100%; min-height: 0; padding: 0; }
.sh-grid .sh-look > .sh-tool.sh-ds .ds-sw { width: 100%; height: 100%; border: 0; border-radius: 10px; box-shadow: none; }
/* 🏪 적용해보기 (도련 11-11 · js/deskskin.js dsTry) : 화면 가득 빈 방 · 소품 없이 그 벽지 · 책상판만 */
.ds-try { position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; background: #fdecf2; }
.ds-try[hidden] { display: none; }
.ds-try-st { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.ds-try-st > .desk-skin { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ds-try-x { position: absolute; top: max(10px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 2; }
/* 🏪 적용해보기 = 진짜 책상을 빈 방으로 빌려 써요 (도련 11-12 · js/desk.js deskTrial) : 샵 · 내 책상 것은 잠깐 숨고 · 위에 쓰는 법 · 오른쪽 위 닫기 */
html.dk-trial #shopScene, html.dk-trial #shelfKindModal, html.dk-trial #shelfCornerModal { visibility: hidden !important; }
html.dk-trial #deskEditBar, html.dk-trial #deskEditTray, html.dk-trial .desk-top-r, html.dk-trial .dk-vol, html.dk-trial .dk-bag, html.dk-trial #dskLayer, html.dk-trial .dkw-fl, html.dk-trial #dkwBackPn, html.dk-trial #deskStage > .desk-skin, html.dk-trial .dke-hello, html.dk-trial .dkb-wait, html.dk-trial .dk-bagpn { display: none !important; }
.dk-try { position: fixed; inset: 0; z-index: 2147482000; pointer-events: none; }
.dk-try-tip { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: calc(100vw - 140px); padding: 8px 20px; border: 2px solid #f4a9c4; border-radius: 999px; font-size: 15px; font-weight: 700; color: #b1407a; white-space: nowrap; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 0 rgba(232, 143, 176, .25); text-align: center; pointer-events: auto; }
.dk-try-tip b { color: #c2457a; font-size: 15px; } .dk-try-tip span { font-size: 14px; color: #5a3d4a; } .dk-try-tip small { font-size: 11.5px; color: #9a7a88; }
.dk-try-x { position: absolute; top: max(10px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); pointer-events: auto; }
html.dk-trial .desk-stage::after, html.dk-trial #deskTip, html.dk-trial .dk-hostlb { display: none !important; }   /* 꾸미기 모눈 · 고른 소품 단추 없이 = 진짜 방처럼 */
/* 🏪 적용해보기 기능 창 (도련 11-12) : 오른쪽에 떠서 소품을 보며 바로 써 봐요 (창 밖 = 책상 그대로) · 기계가 뜨면 적용해보기 띠는 잠깐 숨어요 (기계 ✕ 로 닫아요) */
html.dk-trial #deskCsModal { justify-content: flex-end; padding-right: 3vw; background: none; pointer-events: none; }
html.dk-trial #deskCsModal > .modal-content { pointer-events: auto; width: min(92vw, 360px); }
body.lbm-on .dk-try, body.dcm-on .dk-try, body.spr-on .dk-try { display: none; }
.dkt-try { position: fixed; left: 50%; bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 52px); translate: -50% 0; z-index: 2147482001; display: flex; gap: 8px; max-width: calc(100vw - 32px); overflow-x: auto; padding: 8px 12px; background: #fffdf8; border: 2px solid #f4a9c4; border-radius: 18px; box-shadow: 0 6px 18px rgba(160, 90, 110, .2); touch-action: none; }
.dkt-try button { flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #fff center / cover no-repeat; box-shadow: inset 0 0 0 9px rgba(255, 255, 255, .55), 0 0 0 2px #f6c9da; cursor: grab; }
.dkt-try button.in { opacity: .18; pointer-events: none; }
.dkt-tryg { position: fixed; z-index: 2147482002; width: 46px; height: 46px; border-radius: 50%; background: center / cover no-repeat; box-shadow: inset 0 0 0 9px rgba(255, 255, 255, .55); pointer-events: none; translate: -50% -50%; }
html.dk-trial #deskCsModal.dct-l { justify-content: flex-start; padding-right: 0; padding-left: 3vw; }
/* 📷 집게 사진이 전구줄에 닿으면 (도련 11-12 · js/desklights.js dlPegHint) : 줄 위 그 자리 반짝 동그라미 + '놓으면 집혀요' · 집게 사진이 빛나요 */
#deskStage > .dl-pegmk { position: absolute; z-index: 99990; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #ff7aa8; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 4px rgba(255, 122, 168, .25), 0 0 14px rgba(255, 122, 168, .6); pointer-events: none; animation: dlPegMk .8s ease-in-out infinite alternate; }
#deskStage > .dl-pegmk b { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; white-space: nowrap; padding: 4px 12px; border-radius: 99px; background: #fff; border: 2px solid #f4a9c4; color: #c2457a; font-size: 15px; font-weight: 800; box-shadow: 0 3px 10px rgba(160, 90, 110, .2); }
@keyframes dlPegMk { from { scale: .85; } to { scale: 1.15; } }
#deskStage .desk-item.dl-near { filter: drop-shadow(0 0 6px #ff7aa8) drop-shadow(0 0 2px #fff); }

/* 📒 스티커정리모드 (도련 11-14 · js/basket.js abs-dkmode) : 다이어리모드처럼 책상 위 = 바탕은 🪵 책상판 무늬 / 🌈 배경지 (html --dku-* · js/deskskin.js dkUnderVars) · 오른쪽 위 ✕ (도련 11-15 · 메뉴 · 이동 안 보여요) · 예전 오른쪽 위 메뉴 그대로 · 날짜바 자리에 정리 막대 */
#basketKindModal.abs-dkmode > .modal-content { background-color: var(--dku-c, #f8d1de) !important; background-image: var(--dku-i, none) !important; background-size: var(--dku-s, auto) !important; background-position: var(--dku-p, 0 0) !important; background-repeat: var(--dku-r, repeat) !important; }
#basketKindModal.abs-dkmode .abs-bar { align-self: center; width: fit-content; margin: 58px auto 4px; padding: 6px 10px; gap: 10px; background: #fff; border: 2px solid #e9c7dd; border-radius: 16px; box-shadow: 0 4px 10px rgba(120, 70, 60, .15); }
#basketKindModal.abs-dkmode .abs-bar .abs-fill, #basketKindModal.abs-dkmode .abs-bar .abs-x { display: none; }
#basketKindModal.abs-dkmode .abs-bar .ab-done { background: #ff8fb1 !important; border-color: #ff8fb1 !important; color: #fff !important; font-weight: 800; }
/* 💾 임시저장 (도련 11-15 · 다이어리와 같은 [💾 임시저장] [✔ 완료] · js/tempsave.js) */
.abs-bar .ab-tmp { background: #fff !important; border: 1.6px solid #ff8fb1 !important; color: #d2457a !important; font-weight: 800; }
.abs-bar .ab-tmpat { flex: none; font-size: 11px; color: #a07a8a; white-space: nowrap; }
.abs-bar .ab-tmpat:empty { display: none; }
.ab-ph .abs-bar .ab-tmp { order: 2; padding: 6px 10px; } .ab-ph .abs-bar .ab-tmpat { display: none; }
#basketKindModal.abs-dkmode .abs-grip { background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .08); }
#basketKindModal.ab-space .dk-tape { display: none !important; }   /* 창 모서리 테이프는 정리 공간에선 안 보여요 */
