/* ── 일정(#/cal — views/cal.js · cal-form.js · cal-connect.js · cal-mini.js, 공유 캘린더 2026-11-24 시안 '포털 일정 · 공유 캘린더') ─────────────
   셸은 포털 그대로(잉크 네이비 중립). 캘린더 색은 캘린더를 알아보는 데만 — 울타리(CSP)가 style 속성을 막아서 색은 이름표 클래스 .cc-0 ~ .cc-7(cal-rules.js#colorClass)로.
   앱 색(--cal)은 앱 전환 · 빠른 메뉴의 그림 칸에만. 휴대폰(720px 아래)은 누르는 곳 44px 이상, 글자 12px 아래로 쓰지 않는다. */
:root { --cal: #1F5FBF; --cal-d: #184C99; --cal-t: #E8F0FB; }
.appicon.cal { background: var(--cal); }
.tile.cal { background: var(--cal-t); color: var(--cal-d); }
.quick-app i.cal { background: var(--cal); }

/* 캘린더 색 — c 진한 점 · ct 칸 바탕 · cd 칸 글자 */
.cc-0 { --c: #1C90FB; --ct: #EAF4FE; --cd: #0B4F9C; }
.cc-1 { --c: #5B6CF0; --ct: #EEF0FF; --cd: #3730A3; }
.cc-2 { --c: #E8740C; --ct: #FFF1E3; --cd: #8A3F00; }
.cc-3 { --c: #0C8B8A; --ct: #E3F6F5; --cd: #075E5D; }
.cc-4 { --c: #D6407A; --ct: #FCE8F0; --cd: #9D174D; }
.cc-5 { --c: #15803D; --ct: #E7F6EF; --cd: #14532D; }
.cc-6 { --c: #8C5BD6; --ct: #F3EDFC; --cd: #5B21B6; }
.cc-7 { --c: #C99A06; --ct: #FFF6DA; --cd: #7A5200; }
.cc-x { --c: #8A95A3; --ct: #EEF1F5; --cd: #334155; }
.cal-dot { width: 11px; height: 11px; flex: none; border-radius: 4px; background: var(--c, #8A95A3); }
.cal-dot.mine { background: var(--ok); }
.cal-dot.ov-meet { background: #64748B; }
.cal-dot.ov-edu { background: #C99A06; }
.cal-dot.ov-vac { background: #fff; border: 1px dashed #8A95A3; }

.cal-page { max-width: 1600px; gap: 14px; padding: 22px 24px 40px; }
.cal-wrap { display: flex; gap: 20px; align-items: flex-start; }
.cal-side { flex: 0 0 280px; display: flex; flex-direction: column; gap: 16px; }
.cal-new { width: 100%; height: 48px; font-size: 15px; }
.cal-box { display: flex; flex-direction: column; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cal-box h3 { margin: 0 0 6px; font-size: var(--fs-sub); color: var(--ink3); font-weight: 700; }
.cal-others > summary { cursor: pointer; font-size: var(--fs-sub); color: var(--ink3); font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.cal-row { position: relative; display: flex; align-items: center; gap: 2px; }
.cal-check { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 14.5px; cursor: pointer; }
.cal-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.cal-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-tag { flex: none; font-size: var(--fs-min); color: var(--ink3); }
.cal-more { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: none; border-radius: 8px; background: transparent; color: var(--ink3); }
.cal-more:hover { background: var(--soft); color: var(--ink); }
.cal-pop { position: absolute; right: 0; top: 36px; z-index: 20; min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.cal-pop button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: none; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; }
.cal-pop button:hover, .cal-pop button:focus-visible { background: var(--soft); }
.cal-dashed { width: 100%; margin-top: 8px; border-style: dashed; color: var(--ink2); }
.cal-menu-wrap { position: relative; display: inline-flex; }
.cal-menu-wrap .cal-pop { top: 46px; }
.cal-wkno { font-size: var(--fs-sub); font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cal-bar .btn { height: 40px; }
.cal-arrow { width: 40px; padding: 0; }
.cal-title { margin: 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.cal-bar .grow { flex: 1; }
.cal-scope { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.cal-scope .input { width: auto; min-width: 180px; height: 40px; font-weight: 700; }
.cal-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.cal-seg button { min-height: 38px; padding: 0 14px; border: none; border-left: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink2); }
.cal-seg button:first-child { border-left: none; }
.cal-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cal-seg button:disabled { opacity: .6; }
.cal-stars { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #EEF0FF; font-size: var(--fs-sub); color: var(--ink2); }
.cal-stars b { color: #3730A3; }
.cal-focus { align-items: center; }
.cal-scroll { overflow-x: auto; }
.cal-empty { padding: 40px 0; text-align: center; color: var(--ink3); }
.cal-note { margin: 0 0 10px; font-size: var(--fs-sub); color: var(--ink2); }

/* 일정 칸(달 · 주 · 사람별 · 하루 목록) */
.cal-ev { display: block; width: 100%; padding: 3px 7px; border: none; border-radius: 6px; background: var(--ct, #EEF1F5); color: var(--cd, #334155); font-size: 12.5px; line-height: 1.35; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.cal-ev:hover { filter: brightness(.96); }
.cal-ev.star { font-weight: 700; }
.cal-ev.mine { box-shadow: inset 3px 0 0 var(--c, #8A95A3); }
.cal-ev.ov-meet { background: #EEF1F5; color: #334155; }
.cal-ev.ov-edu { background: #FFF6DA; color: #7A5200; }
.cal-ev.ov-vac { background: #fff; color: var(--ink2); border: 1px dashed var(--line2); }
.cal-ev.ov-hidden { background: #F3F5F8; color: var(--ink3); font-style: normal; }

/* 달 */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-dow { padding: 8px 10px; font-size: var(--fs-sub); font-weight: 700; color: var(--ink3); border-bottom: 1px solid var(--line); background: var(--soft); }
.cal-dow.sun { color: var(--dgr); }
.cal-cell { min-height: 118px; padding: 6px 6px 8px; border-right: 1px solid #EEF1F5; border-bottom: 1px solid #EEF1F5; display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: default; }
.cal-cell:nth-child(7n + 7) { border-right: none; }
.cal-cell.mute { background: #FAFBFC; }
.cal-cell.mute .cal-num { color: #8A95A3; }
.cal-num { align-self: flex-start; min-width: 16px; padding: 2px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #33404F; text-align: center; }
.cal-num.today { background: var(--ink); color: #fff; padding: 2px 8px; }
.cal-num.sun { color: var(--dgr); }
.cal-hol { font-size: var(--fs-min); color: var(--dgr); }
.cal-more-n { align-self: flex-start; padding: 0 7px; border: none; background: none; font-size: var(--fs-min); color: var(--ink2); }
.cal-more-n:hover { text-decoration: underline; }
.cal-daylist { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cal-daylist .cal-ev { padding: 8px 10px; font-size: 14px; }

/* 주 · 일 — 시간 격자(views/cal-grid.js, 2026-11-25 Thunderbird 벤치마킹 1차). 한 시간 --hpx(cal-rules.js#GRID.hourPx 와 같게), 왼쪽 시각 칸 --tg-axis.
   근무 시간(09 ~ 18시) 밖 · 주말 · 휴무일은 --tg-off 로 옅게. 머리 · 종일 줄은 굴리는 칸과 같은 자리(scrollbar-gutter)를 비워 칸 줄이 맞는다 */
.cal-tg { --hpx: 48px; --n: 7; --tg-axis: 56px; --tg-off: #F5F7FA; --tg-line: #E3E8EE; --tg-half: #F0F3F6;
  display: flex; flex-direction: column; min-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.cal-tg.one { --n: 1; min-width: 0; }
.tg-head, .tg-allday, .tg-body { display: grid; grid-template-columns: var(--tg-axis) repeat(var(--n), minmax(0, 1fr)); }
.tg-head { overflow-y: hidden; scrollbar-gutter: stable; background: var(--soft); border-bottom: 1px solid var(--line); }
.tg-dh { display: flex; min-width: 0; border-left: 1px solid var(--line); }
.tg-dbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 10px; border: none; background: transparent; color: var(--ink3); font-size: var(--fs-sub); font-weight: 700; text-align: left; }
button.tg-dbtn:hover { background: var(--hover); }
.tg-dbtn b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 999px; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tg-dh.sun .tg-dbtn, .tg-dh.sun b { color: var(--dgr); }
.tg-dh.sat .tg-dbtn, .tg-dh.sat b { color: #1F5FBF; }
.tg-dh.today b { background: var(--ink); color: #fff; font-size: 15px; }
.tg-adwrap { max-height: 136px; overflow-y: auto; scrollbar-gutter: stable; border-bottom: 1px solid var(--line); }
.tg-allday { min-height: 30px; padding: 2px 0; }
.tg-adl { grid-column: 1; grid-row: 1 / -1; padding: 5px 8px 0 0; font-size: var(--fs-min); color: var(--ink3); text-align: right; }
.tg-adc { grid-row: 1 / -1; margin: -2px 0; border-left: 1px solid var(--line); }
.tg-adc.off { background: var(--tg-off); }
.tg-adc.can-new:hover { background: var(--hover); }
.tg-chip { z-index: 1; align-self: center; width: auto; min-width: 0; margin: 0 4px; padding: 2px 7px; font-weight: 600; }
.tg-chip.cut-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tg-chip.cut-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-ev.ov-hol { background: var(--dgr-t); color: var(--dgr); }
.tg-scroll { position: relative; height: clamp(420px, calc(100vh - 340px), 860px); overflow-y: auto; scrollbar-gutter: stable; }
.tg-axis { position: relative; height: calc(var(--hpx) * 24); }
.tg-hl { position: absolute; right: 8px; transform: translateY(-50%); font-size: var(--fs-min); color: var(--ink3); font-variant-numeric: tabular-nums; }
.tg-col { position: relative; min-width: 0; height: calc(var(--hpx) * 24); border-left: 1px solid var(--line);
  background-image:
    linear-gradient(to bottom, transparent calc(var(--hpx) / 2 - 1px), var(--tg-half) calc(var(--hpx) / 2 - 1px), var(--tg-half) calc(var(--hpx) / 2), transparent calc(var(--hpx) / 2), transparent calc(var(--hpx) - 1px), var(--tg-line) calc(var(--hpx) - 1px)),
    linear-gradient(to bottom, var(--tg-off) calc(var(--hpx) * 9), transparent calc(var(--hpx) * 9), transparent calc(var(--hpx) * 18), var(--tg-off) calc(var(--hpx) * 18));
  background-size: 100% var(--hpx), 100% 100%; }
.tg-col.off { background-color: var(--tg-off); }
.tg-ev { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1px; min-width: 0; padding: 2px 6px 2px 7px;
  border: none; border-left: 3px solid var(--c, #8A95A3); border-radius: 6px; background: var(--ct, #EEF1F5); color: var(--cd, #334155); box-shadow: 0 0 0 1px var(--surface);
  font-size: 12.5px; line-height: 1.3; text-align: left; overflow: hidden; }
.tg-ev:hover { z-index: 2; filter: brightness(.97); }
.tg-ev:focus-visible { z-index: 5; outline: 2px solid var(--ink); outline-offset: 1px; }
.tg-tt { font-weight: 700; overflow: hidden; overflow-wrap: anywhere; }
.tg-ev.star .tg-tt { color: var(--cd, #334155); }
.tg-tm { font-size: var(--fs-min); white-space: nowrap; opacity: .85; font-variant-numeric: tabular-nums; }
.tg-ev.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.tg-ev.short .tg-tm { order: -1; flex: none; }
.tg-ev.short .tg-tt { min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.tg-ev.ov-meet { --c: #64748B; --ct: #EEF1F5; --cd: #334155; }
.tg-ev.ov-edu { --c: #C99A06; --ct: #FFF6DA; --cd: #7A5200; }
.tg-ev.can-drag { cursor: grab; }
.tg-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.cal-tg.dragging, .cal-tg.dragging * { cursor: grabbing; }
.tg-ev.dragging { z-index: 6; opacity: .95; box-shadow: 0 8px 22px rgba(23, 33, 46, .25); }
.tg-ghost { position: absolute; z-index: 4; display: flex; flex-direction: column; padding: 3px 7px; border: 2px dashed var(--ink2); border-radius: 6px; background: rgba(23, 33, 46, .06);
  color: var(--ink); font-size: 12.5px; line-height: 1.3; pointer-events: none; overflow: hidden; }
.tg-gtm { font-size: var(--fs-min); font-variant-numeric: tabular-nums; }
.tg-now { position: absolute; left: -1px; right: 0; z-index: 3; height: 0; border-top: 2px solid var(--dgr); pointer-events: none; }
.tg-now::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--dgr); }
.tg-nowtag { position: absolute; right: 3px; z-index: 3; transform: translateY(-50%); padding: 0 5px; border-radius: 5px; background: var(--dgr); color: #fff; font-size: var(--fs-min); font-weight: 700; line-height: 18px; font-variant-numeric: tabular-nums; }
.cal-dropq p { margin: 0 0 8px; }
.cal-dropq ul { margin: 0; padding-left: 20px; color: var(--ink2); font-size: var(--fs-sub); }

/* 미리보기 말풍선(views/cal-pop.js — PC) — 입력 칸 없는 말풍선이라 바깥을 누르면 닫힌다 */
.cal-pv { position: fixed; z-index: 30; width: 330px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px 16px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); font-size: 13.5px; }
.cal-pv:focus { outline: none; }
.cal-pv:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pv-head { display: flex; align-items: flex-start; gap: 10px; }
.pv-head .cal-dot { margin-top: 6px; }
.pv-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.pv-x { flex: none; width: 32px; height: 32px; margin: -4px -4px 0 0; display: grid; place-items: center; border: none; border-radius: 8px; background: transparent; color: var(--ink3); }
.pv-x:hover { background: var(--soft); color: var(--ink); }
.pv-facts { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 10px; margin: 0; }
.pv-facts dt { padding-top: 1px; font-size: var(--fs-min); color: var(--ink3); }
.pv-facts dd { margin: 0; min-width: 0; color: #33404F; overflow-wrap: anywhere; }
.pv-place { display: flex; flex-direction: column; }
.pv-place small { font-size: var(--fs-min); color: var(--ink3); }
.pv-memo { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.pv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.pv-acts .btn { height: 34px; }
.pv-acts .pv-del { color: var(--dgr); }
.pv-wait { font-size: var(--fs-sub); color: var(--ink3); }
.pv-hint { margin: 0; font-size: var(--fs-min); color: var(--ink3); }

/* 작은 월 달력(왼쪽 칸 — 보는 주 · 날은 옅은 띠, 일정 있는 날은 점) */
.cal-mm { gap: 4px; padding: 10px 10px 8px; }
.mm-head { display: flex; align-items: center; gap: 2px; padding-left: 6px; }
.mm-head b { flex: 1; font-size: 14.5px; }
.mm-nav { width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: 8px; background: transparent; color: var(--ink2); }
.mm-nav:hover { background: var(--soft); color: var(--ink); }
.mm-grid { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; text-align: center; }
.mm-grid th { padding: 2px 0; font-size: var(--fs-min); font-weight: 700; color: var(--ink3); }
.mm-grid th.sun { color: var(--dgr); }
.mm-grid th.sat { color: #1F5FBF; }
.mm-grid td { padding: 0; }
.mm-grid td.in { background: #E8ECF1; }
.mm-grid td.l { border-radius: 9px 0 0 9px; }
.mm-grid td.r { border-radius: 0 9px 9px 0; }
.mm-grid td.l.r { border-radius: 9px; }
.mm-d { position: relative; width: 100%; height: 32px; display: grid; place-items: center; padding: 0; border: none; border-radius: 9px; background: transparent; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mm-d span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mm-d:hover span { background: var(--hover); }
.mm-d.sun { color: var(--dgr); }
.mm-d.sat { color: #1F5FBF; }
.mm-d.mute { color: #A3ADB9; }
.mm-d.today span { background: var(--ink); color: #fff; font-weight: 700; }
.mm-d i { position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink3); }

/* 목록 */
.cal-list { display: flex; flex-direction: column; gap: 4px; }
.cal-day { display: flex; flex-direction: column; gap: 6px; }
.cal-day-h { display: flex; align-items: center; gap: 8px; margin: 10px 2px 2px; font-size: 13px; font-weight: 700; color: var(--ink3); }
.cal-li-row { display: flex; align-items: stretch; gap: 12px; width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; }
button.cal-li-row:hover { border-color: var(--line2); background: var(--soft); }
.cal-li-row.star { background: #F6F7FF; border-color: #D5D9FB; }
.cal-bar-c { width: 4px; flex: none; border-radius: 4px; background: var(--c, #CBD4DE); }
.cal-bar-c.ov-meet { background: #64748B; }
.cal-bar-c.ov-edu { background: #C99A06; }
.cal-bar-c.ov-vac { background: #CBD4DE; }
.cal-tm { flex: none; width: 46px; font-size: 13.5px; font-weight: 700; color: #33404F; }
.cal-li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-tt { font-size: 15px; font-weight: 700; }
.cal-meta { font-size: 12.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }
.cal-minechip { align-self: center; }
.cal-none { margin: 0 2px; font-size: var(--fs-sub); color: var(--ink3); }

/* 사람별 */
.cal-ptable { display: grid; grid-template-columns: 200px repeat(7, minmax(0, 1fr)); min-width: 1100px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-ph { padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: var(--fs-sub); font-weight: 700; color: var(--ink3); }
.cal-ph.today { background: #E8ECF1; color: var(--ink); }
.cal-ph.sun { color: var(--dgr); }
.cal-pp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #EEF1F5; border-right: 1px solid #EEF1F5; }
.cal-pp b { display: block; font-size: 14px; }
.cal-pp small { display: block; font-size: var(--fs-min); color: var(--ink3); }
.cal-av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 12.5px; font-weight: 700; background: #EEF1F5; color: #33404F; }
.cal-av.c0 { background: #E8EEF8; color: #23406B; } .cal-av.c1 { background: #E7F4EE; color: #1E5A3E; } .cal-av.c2 { background: #F7ECE4; color: #7A4220; }
.cal-av.c3 { background: #EEEAF7; color: #4A3880; } .cal-av.c4 { background: #F6E8EE; color: #7C2C4C; } .cal-av.c5 { background: #E6F2F4; color: #1F5560; }
.cal-av.me { background: var(--ink); color: #fff; }
.cal-pc { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 56px; padding: 6px; border-bottom: 1px solid #EEF1F5; border-right: 1px solid #EEF1F5; }
.cal-pc:nth-child(8n) { border-right: none; }
.cal-pc.today { background: #FBFCFE; }
.cal-pc.can-new { cursor: pointer; }
.cal-pc.can-new:hover { background: var(--soft); }
.cal-dash { color: #CBD4DE; font-size: 13px; pointer-events: none; }
.cal-pc .cal-ev { white-space: normal; }

/* 휴대폰 */
.cal-phone { position: relative; display: flex; flex-direction: column; gap: 8px; padding-bottom: 96px; }
.cal-mhead { display: flex; align-items: center; gap: 4px; }
.cal-mhead b { font-size: 18px; }
.cal-mhead .grow { flex: 1; min-width: 0; }
.cal-mbtn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: none; border-radius: 10px; background: transparent; color: #33404F; }
.cal-mbtn:hover { background: var(--soft); }
.cal-wk { display: flex; align-items: center; gap: 2px; padding: 6px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cal-wk .cal-mbtn { width: 32px; }
.cal-wd { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border: none; border-radius: 12px; background: transparent; font-size: 12px; color: var(--ink3); }
.cal-wd b { font-size: 16px; color: var(--ink); }
.cal-wd i { width: 5px; height: 5px; border-radius: 50%; background: var(--npms); }
.cal-wd.today b { color: var(--npms-d); }
.cal-wd.on { background: var(--ink); color: #fff; }
.cal-wd.on b { color: #fff; }
.cal-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0; }
.cal-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 700; color: #33404F; }
.cal-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cal-li-row.phone { padding: 12px 14px; }
.cal-fab { position: fixed; right: 18px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 5; width: 60px; height: 60px; display: grid; place-items: center; border: none; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(23, 33, 46, .3); }
.cal-fab .ic { width: 26px; height: 26px; }
.cal-mnav { display: flex; align-items: center; justify-content: space-between; }
.cal-dots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cal-dots .cal-dow { padding: 4px 0; border: none; background: none; text-align: center; font-size: 12px; }
.cal-dday { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; border: none; border-radius: 10px; background: transparent; }
.cal-dday b { font-size: 15px; }
.cal-dday i { width: 5px; height: 5px; border-radius: 50%; background: var(--npms); }
.cal-dday.mute b { color: #A3ADB9; }
.cal-dday.today b { color: var(--npms-d); }
.cal-dday.on { background: var(--ink); }
.cal-dday.on b { color: #fff; }

/* 창 — 일정 등록 · 상세 · 캘린더 */
dialog.dlg.cal-dlg { width: 680px; }
.ce { display: flex; flex-direction: column; gap: 14px; }
.ce-calwrap { position: relative; display: flex; align-items: center; }
.ce-calwrap .cal-seldot { position: absolute; left: 13px; width: 12px; height: 12px; pointer-events: none; }
.ce-calwrap .input { padding-left: 34px; }
.ce-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ce-when.allday { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ce-peoplehead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ce-peoplehead .grow { flex: 1; }
.ce-sub { font-weight: 400; color: var(--ink3); }
.ce-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.ce-pill:hover { background: var(--soft); }
.ce-pill.dashed { border-style: dashed; }
.ce-pill[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ce-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-who { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 12px; border-radius: 999px; background: #EEF1F5; font-size: 13.5px; font-weight: 700; color: #33404F; }
.ce-who small { font-weight: 400; color: var(--ink3); font-size: var(--fs-min); }
.ce-who.other { background: #FFF6DA; }
.ce-who.all { padding-right: 12px; background: var(--soft); border: 1px dashed var(--line2); }
.ce-who.ex { background: #FDECEB; color: #8E241E; }
.ce-x { width: 26px; height: 26px; display: grid; place-items: center; border: none; border-radius: 50%; background: transparent; color: var(--ink3); }
.ce-x:hover { background: rgba(23, 33, 46, .08); color: var(--ink); }
.ce-two { display: flex; flex-wrap: wrap; gap: 20px; }
.ce-two > .field { flex: 1 1 240px; }
.cal-scope-list, .cf-perm { display: grid; gap: 8px; }
.cf-perm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cal-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; }
.cal-opt.on, .cal-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cal-opt input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.cal-opt b { display: block; font-size: 14.5px; }
.cal-opt span span { font-size: 13px; color: var(--ink2); }
.cf-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.cf-row .grow { flex: 1 1 280px; }
.cf-title { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.cf-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-swatch { width: 32px; height: 32px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line2); }
.cf-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }
.cf-info { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--ink2); }
.cf-units { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.cf-unit + .cf-unit { border-top: 1px solid var(--line); }
.cf-teams { display: flex; flex-direction: column; padding-left: 26px; }
.cf-teams .check { min-height: 40px; }

/* 상세 */
.cd { display: flex; flex-direction: column; gap: 12px; }
.cd-head { display: flex; align-items: center; gap: 8px; }
.cd-cal { flex: 1; font-size: var(--fs-sub); color: var(--ink2); }
.cd-when { font-size: 14.5px; color: #33404F; }
.cd-place { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); }
.cd-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; }
.cd-facts dt { color: var(--ink3); }
.cd-facts dd { margin: 0; }
.cd-sec { padding-top: 10px; border-top: 1px solid #EEF1F5; }
.cd-sec h3 { margin: 0 0 8px; font-size: var(--fs-sub); color: var(--ink3); font-weight: 700; }
.cd-memo { white-space: pre-wrap; font-size: 14px; color: var(--ink); }
.cd-people { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cd-people li { display: flex; align-items: center; gap: 8px; }
.cd-people small { font-size: var(--fs-min); color: var(--ink3); }

/* 휴대폰 연결 · 채팅방 링크 · 바탕화면 */
.cc { display: flex; flex-wrap: wrap; gap: 28px; }
.cc-qr { flex: 0 0 240px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cc-qr > span { font-size: 13px; color: var(--ink2); }
.cc-qrbox { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cc-qrbox svg { display: block; width: 200px; height: 200px; }
.cc-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cc-side .label, .cl-dlg .label, .cl-prev .label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: #33404F; }
.cc-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.cal-link { flex: 1 1 180px; min-width: 0; font-family: var(--mono); font-size: 13px; }
.cc-steps { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: var(--soft); font-size: 13.5px; color: var(--ink2); }
.cal-say { margin: 0; font-size: 13px; font-weight: 700; }
.cal-say:empty { display: none; }
.cal-say.ok { color: var(--ok); }
.cal-say.dgr { color: var(--dgr); }
.cal-cpage { max-width: 520px; gap: 16px; padding: 20px 16px 32px; }
.cc-top h1 { font-size: 22px; }
.cc-top p { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.cc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; background: #E7ECF1; border-radius: 12px; }
.cc-tabs button { min-height: 44px; border: none; border-radius: 9px; background: transparent; font-size: 14.5px; font-weight: 700; color: var(--ink2); }
.cc-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 33, 46, .15); }
.cc-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--ok-t); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.cc-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cc-big { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 700; }
.cc-big:hover { color: #fff; background: #0E1620; }
.cc-sub { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 14px; background: #fff; color: var(--ink); border: 1px solid var(--line2); font-size: 15.5px; font-weight: 700; }
.cc-sheet { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; color: #33404F; }
.cc-sheet > b:first-child { display: block; margin-bottom: 4px; }
.cc-warn { display: block; margin-top: 6px; color: var(--wrn-ink); }
.cc-or { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink3); }
.cc-or::before, .cc-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cc-notes { gap: 6px; font-size: 13.5px; color: var(--ink2); }
.cc-notes b { color: var(--ink); font-size: 14.5px; }
.cc-back { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
.cl-dlg { display: flex; flex-direction: column; gap: 16px; }
.cl-two { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cl-prev { flex: 0 0 260px; }
.cl-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cl-logo { height: 96px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .06em; }
.cl-cap { padding: 10px 12px; display: flex; flex-direction: column; }
.cl-cap b { font-size: 14px; }
.cl-cap span { font-size: 12.5px; color: var(--ink3); }
.cl-how { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.cd-desk { display: flex; flex-direction: column; gap: 14px; }
.cd-step { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.cd-step h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.cd-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; }
.cd-notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink2); }
.cd-url { font-size: 13px; }
/* 양방향 연결(CalDAV — views/cal-connect.js#syncPanel): 연결 정보 · 앱 비밀번호 · 프로그램별 안내 */
.cs { display: flex; flex-direction: column; gap: 16px; }
.cs .label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: #33404F; }
.cs-lead { margin: 0; font-size: 14px; color: var(--ink2); }
.cs-two { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cs-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-list li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.cs-list .muted { color: var(--ink3); font-size: 12.5px; }
.cs-label { flex: 1 1 180px; min-width: 0; }
.cs-fresh { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--ok-t); border: 1px solid #B7E2C8; }
.cs-fresh .label { color: var(--ok); }
.cs-pw { font-size: 16px; font-weight: 700; letter-spacing: .04em; background: #fff; }
.cs .cs-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-guide { display: flex; flex-direction: column; gap: 12px; }
.cs-daou { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 12px; font-size: 13.5px; }
.cs-code { font-family: var(--mono); font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: #E7ECF1; color: var(--ink); word-break: break-all; }
.cs-notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 720px) {
  .cs .cs-tabs { grid-template-columns: 1fr; }
  .cs-list li { flex-wrap: wrap; }
}

/* 작은 일정 창(#/cal/mini — 폭 320 ~ 420px) */
.cal-mini { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--ground); }
.cm-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cm-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-brand b { font-size: 15px; letter-spacing: .01em; }
.cm-today { font-size: 12.5px; color: var(--ink3); }
.cm-add { height: 40px; padding: 0 12px; font-size: 13.5px; }
.cm-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: #33404F; }
.cm-icon:hover { background: var(--soft); }
.cm-list { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.cm-day { display: flex; flex-direction: column; gap: 6px; }
.cm-dayh { margin: 12px 4px 2px; font-size: 13px; font-weight: 700; color: var(--ink3); }
.cm-dayh.today { color: var(--ink); }
.cm-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; color: var(--ink); }
.cm-row:hover { border-color: var(--line2); background: var(--soft); }
.cm-row.star { background: #F6F7FF; border-color: #D5D9FB; }
.cm-tm { flex: none; width: 40px; font-size: 13px; font-weight: 700; color: #33404F; }
.cm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-meta { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-mine { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--ok-t); color: var(--ok); font-size: 12px; font-weight: 700; }
.cm-none, .cm-empty { margin: 4px; font-size: 13px; color: var(--ink3); }
.cm-empty { padding: 30px 0; text-align: center; }
.cm-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--ink3); }
.cm-times { display: flex; align-items: center; gap: 6px; }
.cm-times .input { flex: 1; }
dialog.dlg.cm-dlg { width: 400px; }

/* 포털 홈 '금일' 카드의 일정 줄(views/today.js) */
.td-links { display: inline-flex; align-items: center; gap: 2px; }
.td-tag.cal { background: var(--cal-t); color: var(--cal-d); }
.td-tag.cal:hover { color: var(--cal-d); }

@media (max-width: 1100px) {
  .cal-side { flex-basis: 240px; }
}
@media (max-width: 720px) {
  .cal-page { padding: 12px 12px 32px; }
  .cal-wrap { flex-direction: column; }
  .cal-side { position: static; flex: none; width: 100%; }
  .cal-title { font-size: 20px; }
  .cal-seg button { min-height: 44px; }
  .cc-qr { display: none; }
  .ce-when { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ce-pill, .ce-who { min-height: 44px; }
  .ce-x { width: 36px; height: 36px; }
  .cf-perm { grid-template-columns: 1fr; }
  .cf-swatch { width: 40px; height: 40px; }
  .cal-check { min-height: 44px; }
  .cl-prev { flex-basis: 100%; }
}
/* 작은 일정 창 · 위젯 — 폭이 좁아도(320px) 창은 화면 가득 */
@media (max-width: 460px) {
  dialog.dlg.cm-dlg[open], dialog.dlg.cal-dlg.sheet[open] { width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: none; margin: 0; border: none; border-radius: 0; }
  dialog.dlg.cm-dlg .dlg-body { flex: 1; padding: 18px 14px 8px; }
  dialog.dlg.cm-dlg .dlg-foot { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; }
  dialog.dlg.cm-dlg .dlg-foot .btn { height: 44px; }
}
/* 창 안의 설명 줄(.field 밖) · 링크 줄 */
.cal-dlg .hint { display: block; font-size: 12.5px; color: var(--ink3); }
.cc-linkrow .input { width: auto; }
.cc-linkrow .hint { flex: 1 1 200px; }

/* 장소 검색(일정 등록 창 — cal-form.js#placeField) · 길찾기(navi.js — 상세 · 작은 일정 창 · 휴대폰 목록, 2026-11-24 2차) */
.ce-placebox { display: flex; flex-direction: column; gap: 6px; }
.ce-places { margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(23, 33, 46, .12); }
.ce-popt { display: flex; flex-direction: column; gap: 1px; min-height: 44px; justify-content: center; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.ce-popt b { font-size: 14px; }
.ce-popt span { font-size: 12.5px; color: var(--ink3); }
.ce-popt:hover, .ce-popt[aria-selected="true"] { background: var(--soft); box-shadow: inset 3px 0 0 var(--ink); }
.ce-pnote { padding: 10px; font-size: 13px; color: var(--ink3); }
.ce-chosen { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 10px; background: var(--ok-t); color: #0F5C2C; font-size: 13px; }
.ce-chosen:empty { display: none; }
.ce-chosen .grow { flex: 1; min-width: 0; }
.go-place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.go-pin { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--dgr); }
.go-text { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.go-text b { font-size: 14.5px; }
.go-text span { font-size: 13px; color: var(--ink2); }
.go-text small { font-size: 12px; color: var(--ink3); }
.go-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.go-acts .btn { height: 40px; }
.go-place.small .go-acts { width: 100%; }
.go-place.small .go-acts .btn { flex: 1; height: 44px; }
.go-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow); }
.go-toast button { min-height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 9px; background: transparent; color: #fff; font-weight: 700; }
dialog.dlg.go-dlg { width: 380px; }
.cal-li-wrap { display: flex; align-items: stretch; gap: 6px; }
.cal-li-wrap > .cal-li-row { flex: 1; min-width: 0; }
.cal-li-go { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; }
.cal-li-go .ic { color: var(--dgr); }
.cal-li-go:hover { background: var(--soft); }
@media (max-width: 720px) {
  .go-acts .btn { height: 44px; }
}

/* 작은 일정 창의 월 달력(바탕화면 위젯 기본 — cal-mini.js, 2026-11-24 '반투명 판 위의 월 달력') */
.cal-mini { position: relative; }
.cm-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.cal-mini.month { flex: none; height: calc(100vh - 4px); height: calc(100dvh - 4px); overflow: hidden; }
.cal-mini.month .cm-body { overflow: hidden; }
.cm-drag { flex: 1; min-width: 6px; align-self: stretch; }
.cal-mini.in-widget .cm-head { -webkit-app-region: drag; app-region: drag; }
.cal-mini.in-widget .cm-head button, .cal-mini.in-widget .cm-head input, .cal-mini.in-widget .cm-head select { -webkit-app-region: no-drag; app-region: no-drag; }
.cal-mini.month .cm-head { gap: 2px; padding: 8px 8px 6px; }
.cal-mini.month .cm-icon { width: 34px; height: 34px; border: none; background: transparent; }
.cal-mini.month .cm-icon:hover:not(:disabled) { background: rgba(23, 33, 46, .07); }
.cm-ym { font-size: 16px; white-space: nowrap; padding: 0 2px; }
.cm-today-btn { height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cm-today-btn:hover { background: rgba(23, 33, 46, .06); }
.cm-month { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); gap: 2px; padding: 0 6px 6px; }
.cm-wd { padding: 2px 0 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink3); }
.cm-wd.sun { color: var(--dgr); }
.cm-wd.sat { color: #1F5FBF; }
.cm-cell { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0; padding: 3px 2px 2px; border-radius: 8px; cursor: pointer; overflow: hidden; }
.cm-cell:hover { background: rgba(23, 33, 46, .05); }
.cm-cell.sel { background: rgba(23, 33, 46, .1); }
.cm-cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cm-cell.mute { opacity: .45; }
.cm-dhead { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.cm-dnum { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; color: var(--ink); }
.cm-cell.today .cm-dnum { box-shadow: inset 0 0 0 2px var(--ink); }
.cm-cell.sun .cm-dnum, .cm-cell.hol .cm-dnum { color: var(--dgr); }
.cm-cell.sat .cm-dnum { color: #1F5FBF; }
.cm-cell.today.sun .cm-dnum, .cm-cell.today.hol .cm-dnum { box-shadow: inset 0 0 0 2px var(--dgr); }
.cm-cell.today.sat .cm-dnum { box-shadow: inset 0 0 0 2px #1F5FBF; }
.cm-lunar { font-size: 12px; color: var(--ink3); white-space: nowrap; }
.cm-hol { margin-top: 1px; padding: 0 3px; border-radius: 4px; background: var(--dgr); color: #fff; font-size: 12px; line-height: 15px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-bars { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; margin-top: 2px; overflow: hidden; }
.cm-bar { flex: none; display: block; padding: 0 3px; border-left: 3px solid var(--c, #8A95A3); border-radius: 4px; background: var(--ct, #EEF1F5); color: var(--cd, #334155);
  font-size: 12px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-bar.star { font-weight: 700; }
.cm-more { flex: none; padding: 0 3px; font-size: 12px; line-height: 15px; font-weight: 700; color: var(--ink2); }
.cm-sheet { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 4; max-height: 60%; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.cm-shead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-shead b { font-size: 15px; }
.cm-shead .grow { flex: 1; }
.cm-holtag { padding: 1px 8px; border-radius: 999px; background: var(--dgr); color: #fff; font-size: 12px; font-weight: 700; }
.cm-slist { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.cm-srow-wrap { display: flex; gap: 6px; }
.cm-srow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; }
.cm-srow:hover { background: var(--soft); }
.cm-go { flex: none; width: 54px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; }
.cm-go .ic { color: var(--dgr); }
.cm-sadd { height: 40px; }

/* 유리 모양 — 위젯이 보낸 바탕화면 그림 조각이 페이지 배경(html — 화면이 CSSOM 으로 넣는다), 그 위에 반투명 흰 판(--glass) + 흐리게 */
html.cal-glass { background-size: 100% 100%; background-repeat: no-repeat; background-attachment: fixed; }
html.cal-glass body { background: transparent; }
html.cal-glass .stripe { display: none; }
html.cal-glass .cal-mini.month { height: 100vh; height: 100dvh; }
.cal-mini.glass { background: rgba(255, 255, 255, var(--glass, .62)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 16px; overflow: hidden; }
.cal-mini.glass .cm-head, .cal-mini.glass .cm-foot { background: transparent; border-color: rgba(23, 33, 46, .12); }
.cal-mini.glass .cm-dnum, .cal-mini.glass .cm-lunar, .cal-mini.glass .cm-wd, .cal-mini.glass .cm-ym, .cal-mini.glass .cm-more, .cal-mini.glass .cm-dayh, .cal-mini.glass .cm-today-btn {
  text-shadow: 0 0 3px rgba(255, 255, 255, .95), 0 0 1px rgba(255, 255, 255, .95); }
.cal-mini.glass .cm-lunar { color: #3C4756; }
.cal-mini.glass .cm-sheet { background: rgba(255, 255, 255, .96); }
/* 좁은 위젯(300 ~ 360px) — 머리 줄이 한 줄에 들어가게 */
@media (max-width: 360px) {
  .cal-mini.month .cm-head { padding: 6px 4px 4px; gap: 0; }
  .cal-mini.month .cm-icon { width: 28px; height: 32px; }
  .cm-ym { font-size: 15px; padding: 0; }
  .cm-today-btn { padding: 0 7px; height: 28px; }
  .cm-drag { min-width: 2px; }
  .cm-month { padding: 0 3px 4px; gap: 1px; }
}
/* 투명하게(0.42)일 때도 요일 · 흐린 날짜가 읽히게 */
.cal-mini.glass .cm-wd { color: #2A3644; }
.cal-mini.glass .cm-wd.sun { color: #B3261E; }
.cal-mini.glass .cm-wd.sat { color: #174C9E; }
.cal-mini.glass .cm-cell.mute { opacity: .62; }
