/* 📅 달력 (도련 10-31 · js/calroom.js) : 💻 📲 만 · 그림 1672 × 941 을 화면에 맞게 줄여요 · 양옆 = 원래 창(출석 · 생리 · D-day)의 부분을 옮겨 와요 */
.cr-room { position: fixed; inset: 0; z-index: 1500; display: none; background: repeating-linear-gradient(90deg, #fff8f1 0 26px, #fbeee6 26px 52px); overflow: hidden; color: #5b3240; }   /* 🧱 크림 스트라이프 벽지 = 화면 전체 (도련 10-31 · 달력 그림은 바탕을 떼어 낸 것) */
.cr-room.show { display: block; animation: crIn .25s ease both; }
@keyframes crIn { from { opacity: 0; } }
body.cal-on .desk-top-r { display: none; }
.cr-stage { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; }
.cr-bg { position: absolute; inset: 0; width: 1672px; height: 941px; pointer-events: none; user-select: none; filter: drop-shadow(0 14px 16px rgba(90, 60, 50, .22)); }   /* 벽에 걸린 그림자 */
.cr-room button { font-family: inherit; cursor: pointer; }

/* 제목 · 달 넘기기 (달력 위 띠) */
.cr-ttl { position: absolute; left: 836px; top: 115px; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: #fff7f2; border: 2.5px solid #5b3240; white-space: nowrap; }
.cr-ttl span { min-width: 120px; text-align: center; font-weight: 900; font-size: 26px; color: #c2457a; letter-spacing: 1px; }
.cr-ttl small { font-size: 16px; color: #8a5a6a; font-weight: 700; margin-right: 6px; letter-spacing: 0; }
.cr-nav { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffe3ec; color: #c2457a; font-size: 24px; font-weight: 900; line-height: 1; padding: 0 0 3px; }
.cr-nav:hover { background: #ffd0de; }

/* 달력 칸 (그림 아래 빈 곳 · 5줄 · 6줄) */
.cr-grid { position: absolute; left: 146px; top: 446px; width: 939px; height: 430px; background: #fdf3ec; border: 2.5px solid #5b3240; border-radius: 10px; box-sizing: border-box; overflow: hidden; }
.cr-wd { position: absolute; top: 0; height: 26px; line-height: 26px; text-align: center; font-size: 14px; font-weight: 800; color: #8a5a6a; background: #ffe9ef; border-bottom: 1.6px solid #5b3240; box-sizing: border-box; }
.cr-wd.sun { color: #e2557f; } .cr-wd.sat { color: #5a86c8; }
.cr-c { position: absolute; box-sizing: border-box; border: 0; border-right: 1.6px solid #5b3240; border-bottom: 1.6px solid #5b3240; background: none; padding: 0; text-align: left; color: inherit; }
button.cr-c:hover { background: #fff0f5; }
.cr-c.cr-empty { background: rgba(240, 220, 214, .35); }
.cr-c.sel { background: #ffe9f0; box-shadow: inset 0 0 0 2.5px #f08aa8; }
.cr-n { position: absolute; left: 7px; top: 4px; font-size: 17px; font-weight: 800; color: #5b3240; }
.cr-c.sun .cr-n { color: #e2557f; } .cr-c.sat .cr-n { color: #5a86c8; }
.cr-c.fut .cr-n { opacity: .55; }
.cr-c.today { box-shadow: inset 0 0 0 3px #e2557f; }
.cr-c.today .cr-n { left: 4px; padding: 0 7px; border-radius: 999px; background: #e2557f; color: #fff !important; opacity: 1; }
.cr-stamp { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; border: 2.4px solid var(--c); display: grid; place-items: center; font-size: 19px; font-style: normal; rotate: -12deg; background: rgba(255, 255, 255, .75); }
.cr-per { position: absolute; left: 0; right: 0; bottom: 0; height: 11px; background: #f7a3b8; }
.cr-per.s { left: 6px; border-radius: 6px 0 0 6px; } .cr-per.e { right: 6px; border-radius: 0 6px 6px 0; } .cr-per.s.e { border-radius: 6px; }
.cr-per.pre { height: 5px; bottom: 3px; background: repeating-linear-gradient(90deg, #f7a3b8 0 8px, transparent 8px 13px); }
.cr-fe { position: absolute; left: 8px; bottom: 6px; width: 10px; height: 10px; border-radius: 50%; background: #9fd8c4; }   /* 가임기 예상 */
.cr-fe.ov { width: 14px; height: 14px; background: #b9a3f0; }                                                            /* 배란 예정일 */
.cr-sym { position: absolute; left: 40px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #f0a35c; }   /* 몸 상태 적은 날 */
.cr-flag { position: absolute; left: 5px; right: 5px; bottom: 14px; padding: 1px 6px; border-radius: 6px; background: #fff3c4; border: 1.6px solid #c9962b; color: #7a5a1a; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }

/* 양옆 (원래 창 부분) */
.cr-side { position: absolute; top: 18px; bottom: 18px; width: 300px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: thin; padding: 2px 6px 8px 2px; }
.cr-r { left: 1140px; width: 512px; top: 84px; }                          /* 오른쪽 메뉴 (달력은 왼쪽으로 220 · js CR_DX) */
.cr-room [hidden] { display: none !important; }
.cr-bg, .cr-ttl { margin-left: -220px; }
.cr-tabs { position: absolute; left: 1140px; top: 18px; display: flex; gap: 8px; }   /* 위 버튼 줄 = 오른쪽 메뉴 보이기 · 숨기기 (도련 10-31) */
.cr-tab { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 999px; background: #fffaf5; border: 2.5px solid #d9c2ca; color: #b59aa5; font-size: 17px; font-weight: 900; box-shadow: 3px 3px 0 #efdde3; }
.cr-tab span { font-size: 18px; filter: grayscale(1); opacity: .6; }
.cr-tab.on { background: #fff0f5; border-color: #5b3240; color: #5b3240; box-shadow: 3px 3px 0 #e9c4cf; }
.cr-tab.on span { filter: none; opacity: 1; }
.cr-none { margin-top: 40px; text-align: center; color: #b59aa5; font-size: 16px; font-weight: 800; }
.cr-box { flex: none; box-sizing: border-box; padding: 12px; border-radius: 18px; background: #fffaf5; border: 2.5px solid #5b3240; box-shadow: 4px 4px 0 #e9c4cf; display: flex; flex-direction: column; gap: 10px; }
.cr-h { font-size: 14px; color: #8a5a6a; font-weight: 900; margin: 0 0 0 4px; }
.cr-go { position: absolute; right: 22px; top: 18px; transform: scale(1.25); transform-origin: 100% 0; }   /* 🚪 이동 = 책상 오른쪽 위 버튼과 같은 모양 */

/* 옮겨 온 원래 창 부분 : 좁은 칸에 맞게만 살짝 */
.cr-room .at-go { width: 100%; padding: 13px; font-size: 16px; }
.cr-room .at-stats { gap: 6px; } .cr-room .at-stats div { padding: 8px 2px; font-size: 12px; } .cr-room .at-stats b { font-size: 19px; }
.cr-room .at-tip, .cr-room .cy-note, .cr-room .dd-note { margin: 0; font-size: 11.5px; line-height: 1.55; color: #9a7d8a; }
.cr-room .cy-now { padding: 12px; border-radius: 16px; } .cr-room .cy-now > span { font-size: 26px; } .cr-room .cy-now b { font-size: 16px; }
.cr-room .cy-day { box-shadow: none; padding: 4px 2px; border-radius: 0; background: none; }
.cr-room .cy-stats div { padding: 8px 2px; } .cr-room .cy-stats b { font-size: 17px; }
.cr-room .dd-list { max-height: 260px; overflow-y: auto; }
.cr-room .dd-card { padding: 8px 10px; }
.cr-room .dd-form { box-shadow: none; padding: 4px 2px; }
.cr-room .at-flip-wrap { z-index: 10; }

/* 🏠 거실 벽걸이 달력 전환 (도련 11-01 · js/calroom.js crApproach) : 우체통 전환(.pr-walk · css/postroom.css)을 같이 써요 · 색만 따뜻한 분홍 */
.pr-walk.cr-walk { background: #f3d6cb; }
.cr-walk .pr-walk-in::after { background: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), #fffaf4 0, #ffe9e6 16%, #f9cfd6 42%, #f3c4c4 70%, #f3d6cb 92%); }

/* 📱 폰 벽걸이 달력 (도련 11-09 · js/calroom.js crmBuild) : 세로 달력 그림 · 아래 빈 칸에 버튼 셋 + 💡 안내 */
.cr-room.crm { background: #fddbdf; }
.crm-bg { position: absolute; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crm-box { position: absolute; box-sizing: border-box; padding: 10px 10px 8px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.crm-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.crm-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px 9px; border-radius: 16px; border: 2px solid #f0a7b9; background: #fff; color: #5b3240; box-shadow: 0 3px 0 #f6c3cf; }
.crm-b:active { transform: translateY(2px); box-shadow: 0 1px 0 #f6c3cf; }
.crm-b span { font-size: 26px; line-height: 1.1; }
.crm-b b { font-size: 13px; font-weight: 900; white-space: nowrap; }
.crm-b small { font-size: 9.5px; color: #a07d8a; font-weight: 700; white-space: nowrap; }
.crm-tip { margin: 0; font-size: 10.5px; line-height: 1.5; color: #9a7d8a; text-align: center; word-break: keep-all; }
.crm-tip b { color: #d0577e; }
.crm-go { position: absolute; right: 12px; top: 12px; transform: none; }
