/* 돈폴겟 캘린더 스타일
   - 종이 달력 느낌: 크림색 종이 + 가는 괘선 + 네이비 잉크, 오늘은 손으로 동그라미 친 모양
   - 일요일/공휴일은 차분한 벽돌색, 토요일은 파랑 */
:root {
  --ink: #1f2a3c; --ink2: #566174; --ink3: #8f939a;
  --paper: #f5f3e6; --surface: #fdfaf5; --surface2: #f8f5ea;
  --line: #d9d6c4; --line2: #e8e5d6;
  --hi: #9bb0d3; --sun: #c4504f; --sat: #2f5aa6;
  --accent: #17376a; --accent-ink: #ffffff; --ok: #2a8a6e; --danger: #c4504f;
  --r: 16px;
  --gutter: 46px; --hh: 52px;
  --shadow: 0 10px 34px rgba(20, 30, 60, .18);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #ecebe4; --ink2: #b8bdc8; --ink3: #7f8aa0;
  --paper: #0e1626; --surface: #141f33; --surface2: #19263d;
  --line: #2b3a54; --line2: #212e47;
  --accent: #a9c1f2; --accent-ink: #10213f; --hi: #6f8fc9; --sun: #ff7b90; --sat: #7fb0ff; --danger: #ff7b90;
  --shadow: 0 10px 34px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ecebe4; --ink2: #b8bdc8; --ink3: #7f8aa0;
    --paper: #0e1626; --surface: #141f33; --surface2: #19263d;
    --line: #2b3a54; --line2: #212e47;
    --accent: #a9c1f2; --accent-ink: #10213f; --hi: #6f8fc9; --sun: #ff7b90; --sat: #7fb0ff; --danger: #ff7b90;
    --shadow: 0 10px 34px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--paper); color: var(--ink); font: 15px/1.45 var(--font); letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none; -webkit-text-size-adjust: 100%;
}
#app { height: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, .ev-block:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }
a { color: var(--sat); }
[hidden] { display: none !important; }
.ico { display: inline-grid; place-items: center; flex: none; }
.mini { opacity: .7; vertical-align: -1px; }
.muted { color: var(--ink2); } .hint { font-size: 12.5px; color: var(--ink3); margin: 4px 0; }
.pad { padding: 12px 16px; } .stack { display: flex; flex-direction: column; gap: 10px; } .stack-s { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lbl { font-size: 12px; color: var(--ink3); font-weight: 600; }
.empty { color: var(--ink3); text-align: center; padding: 18px 8px; margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.sp { flex: 1; }
.boot { height: 100%; display: grid; place-items: center; }
.boot::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- 버튼/입력 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: background .12s, transform .06s; }
.btn:active { transform: scale(.98); }
.btn.primary, .btn.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.danger-ghost { color: var(--danger); background: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: none; flex: none; }
.icon-btn:hover { background: var(--line2); }
.link-btn { background: none; border: 0; color: var(--sat); padding: 6px 0; font-size: 13.5px; text-align: left; }
.input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: inherit; font: inherit; }
.input.small { width: auto; min-height: 34px; padding: 4px 8px; }
.input.mini-in { width: 76px; flex: none; }
textarea.input { resize: vertical; min-height: 72px; line-height: 1.45; }
select.input { appearance: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface2); font-size: 13px; text-decoration: none; color: inherit; }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pill.add { border-style: dashed; color: var(--ink2); }
.pill button { background: none; border: 0; padding: 0; display: grid; place-items: center; }
.seg { display: inline-flex; background: var(--line2); padding: 3px; border-radius: 14px; gap: 2px; }
.seg-btn { border: 0; background: none; padding: 6px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.seg-btn.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
input.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; flex: none; transition: background .15s; cursor: pointer; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
input.switch:checked { background: var(--accent); }
input.switch:checked::after { transform: translateX(18px); background: var(--accent-ink); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; }
input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.radio { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.cdot { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; position: relative; display: grid; place-items: center; }
.cdot i { font-style: normal; font-size: 9px; color: #fff; font-weight: 700; }
.cdot.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.chips-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; }

/* ---------- 레이아웃 ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); height: 100dvh; }
.main { display: flex; flex-direction: column; min-height: 0; position: relative; min-width: 0; }
.side { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-104%); transition: transform .22s ease; background: var(--surface); z-index: 40; overflow-y: auto; padding-top: env(safe-area-inset-top); }
.drawer-open .side { transform: none; box-shadow: var(--shadow); }
.drawer-scrim { display: none; position: fixed; inset: 0; background: rgba(10, 15, 30, .45); z-index: 39; }
.drawer-open .drawer-scrim { display: block; }
.side-inner { padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand b { flex: 1; font-weight: 800; letter-spacing: -0.03em; }
.logo { display: inline-block; flex: none; }
.side-sec { display: flex; flex-direction: column; gap: 4px; }
.side-h { display: flex; align-items: center; justify-content: space-between; }
.side-h b { font-size: 13px; color: var(--ink3); }
.cal-item { display: flex; align-items: center; gap: 8px; }
.cal-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--c); background: var(--c); color: #fff; display: grid; place-items: center; padding: 0; flex: none; }
.cal-check.off { background: transparent; }
.cal-name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 8px 0; display: flex; flex-direction: column; }
.cal-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-name small { color: var(--ink3); font-size: 11.5px; }
.tools { margin-top: 2px; }
.tool { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 10px 6px; border-radius: 10px; text-align: left; font-weight: 600; color: var(--ink2); }
.tool:hover { background: var(--line2); }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line2); font-size: 13px; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-weight: 600; }
.sync { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 12px; }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.sync.busy i { background: var(--hi); animation: pulse 1s infinite; }
.sync.off i { background: var(--ink3); }
@keyframes pulse { 50% { opacity: .35; } }
@media (min-width: 900px) {
  .shell { grid-template-columns: 296px minmax(0, 1fr); }
  .side { position: static; transform: none; width: auto; border-right: 1px solid var(--line); box-shadow: none; }
  .menu-btn, .drawer-x, .drawer-scrim { display: none !important; }
}

/* ---------- 머리글 ---------- */
.top { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: calc(env(safe-area-inset-top) + 6px) 8px 6px; background: var(--paper); }
.top .nav { display: flex; }
.title { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; border-radius: 10px; }
.title:hover { background: var(--line2); }
.top .title { min-width: 0; flex: 0 1 auto; white-space: nowrap; font-size: 18px; }
.top .title span { overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 1 1 0; min-width: 0; }
.top .icon-btn { width: 36px; height: 36px; }
@media (min-width: 700px) { .top .icon-btn { width: 40px; height: 40px; } }
@media (min-width: 700px) { .top .title { font-size: 20px; } }
.top .views { order: 9; width: 100%; margin: 4px 4px 2px; display: flex; }
.top .views .seg-btn { flex: 1; }
.today-btn { margin: 0 4px; }
@media (min-width: 700px) {
  .top { padding: 12px 16px 8px; gap: 6px; flex-wrap: nowrap; }
  .top .views { order: 0; width: auto; margin: 0 0 0 8px; }
  .top .views .seg-btn { flex: none; }
  .title { font-size: 22px; }
}
.offline-bar { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--ink); color: var(--paper); font-size: 12.5px; }
.stage { flex: 1; min-height: 0; position: relative; overflow: hidden; background: var(--surface); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stage { margin: 0 12px 12px 0; border: 1px solid var(--line); border-radius: 16px; } }
.fab { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(20, 30, 60, .35); z-index: 20; transition: transform .12s; }
.fab:active { transform: scale(.94); }

/* ---------- 날짜 숫자 ---------- */
.dn { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 3px; border-radius: 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dn.off { color: var(--sun); } .dn.sat { color: var(--sat); }
.dn.today { background: var(--hi); color: #17376a; font-weight: 800; }
.off { color: var(--sun); } .sat { color: var(--sat); }

/* ---------- 월 보기 ---------- */
.month { display: flex; flex-direction: column; height: 100%; }
.month-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dow-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 12px; font-weight: 600; color: var(--ink3); padding: 8px 0 4px; }
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.cell { min-width: 0; min-height: 0; overflow: hidden; padding: 2px 2px 0; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); cursor: pointer; position: relative; }
.cell:nth-child(7n) { border-right: 0; }
.cell.dim .dn, .cell.dim .chips { opacity: .45; }
.cell.sel { background: color-mix(in srgb, var(--hi) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--ink2); }
.cell-head { display: flex; align-items: center; gap: 3px; min-height: 24px; flex-wrap: wrap; }
.cell .lunar, .cell .hol { font-size: 9px; color: var(--ink3); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cell .hol { color: var(--sun); font-weight: 600; }
.chips { display: flex; flex-direction: column; gap: 2px; margin-top: 1px; }
.chip { height: 15px; line-height: 15px; font-size: 10.5px; padding: 0 3px; border-radius: 4px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; gap: 3px; flex: none; }
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.chip.allday { color: #fff; font-weight: 600; text-shadow: 0 0 1px rgba(0, 0, 0, .25); }
.chip.masked { opacity: .7; }
.chip.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -3px; padding-left: 6px; }
.chip.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -3px; }
.more { font-size: 10px; color: var(--ink3); padding-left: 3px; line-height: 13px; }
.daypanel { flex: 0 0 auto; max-height: 40%; overflow: auto; border-top: 1px solid var(--line); background: var(--surface); padding-bottom: 84px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 4px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dp-head div { display: flex; flex-direction: column; }
.dp-head b { font-size: 15px; } .dp-head b.is-today::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--hi); margin-right: 6px; }
.dp-head small { color: var(--ink3); font-size: 12px; }
.dp-list { padding: 0 8px; }
@media (min-width: 1180px) {
  .month { flex-direction: row; }
  .daypanel { width: 340px; max-height: none; border-top: 0; border-left: 1px solid var(--line); padding-bottom: 16px; }
  .chip { height: 17px; line-height: 17px; font-size: 11.5px; }
  .cell .lunar, .cell .hol { font-size: 10px; }
}
.row-ev { display: flex; gap: 10px; width: 100%; text-align: left; padding: 8px 6px; border-radius: 10px; background: none; border: 0; align-items: stretch; }
.row-ev:hover { background: var(--line2); }
.row-ev .bar { width: 4px; border-radius: 2px; flex: none; }
.row-ev .tcol { width: 52px; flex: none; font-size: 12.5px; color: var(--ink2); display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.row-ev .tcol .dim { color: var(--ink3); font-size: 11.5px; }
.row-ev .tcol b { font-size: 12px; margin-bottom: 2px; color: var(--ink); width: 120px; }
.row-ev .tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-ev .tx b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ev .tx small { color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ev.masked .tx b { color: var(--ink2); font-weight: 500; }
.row-hol { display: flex; gap: 10px; padding: 8px 6px; color: var(--sun); font-weight: 600; font-size: 13px; }
.row-hol .bar { width: 4px; border-radius: 2px; }
.row-hol span:last-child { align-self: center; }

/* ---------- 주/일 보기 ---------- */
.tg { display: flex; flex-direction: column; height: 100%; }
.tg-head { display: grid; border-bottom: 1px solid var(--line); flex: none; }
.tg-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 6px; background: none; border: 0; min-width: 0; }
.tg-day small { font-size: 11.5px; font-weight: 600; color: var(--ink3); }
.tg-day small.off { color: var(--sun); } .tg-day small.sat { color: var(--sat); }
.tg-day em { font-style: normal; font-size: 9.5px; color: var(--ink3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 11px; }
.tg-day em.off { color: var(--sun); }
.tg-allday { display: grid; border-bottom: 1px solid var(--line); flex: none; max-height: 108px; overflow: auto; }
.tg-allday.slim { min-height: 8px; } .tg-allday.slim .lbl { display: none; }
.tg-allday .lbl { font-size: 10px; color: var(--ink3); display: grid; place-items: center; }
.ad-col { padding: 2px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line2); min-width: 0; min-height: 8px; }
.tg-scroll { flex: 1; min-height: 0; overflow-y: auto; position: relative; -webkit-overflow-scrolling: touch; }
.tg-body { display: grid; position: relative; }
.tg-hours { position: relative; }
.tg-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 10px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.tg-col { position: relative; border-left: 1px solid var(--line2); background-image: linear-gradient(to bottom, transparent calc(var(--hh) - 1px), var(--line2) calc(var(--hh) - 1px)); background-size: 100% var(--hh); }
.tg-col.is-today { background-color: color-mix(in srgb, var(--hi) 7%, transparent); }
.ev-block { position: absolute; border-left: 3px solid; border-radius: 6px; padding: 2px 5px; overflow: hidden; font-size: 11.5px; line-height: 1.25; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-sizing: border-box; color: var(--ink); }
.ev-block b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.ev-block small { display: block; font-size: 10.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-block.masked b { font-weight: 500; color: var(--ink2); }
.ev-block.past { opacity: .72; }
.ev-block.dragging { z-index: 6; box-shadow: var(--shadow); opacity: .92; cursor: grabbing; }
.ev-block.ghost { background: color-mix(in srgb, var(--ink) 14%, transparent); border: 1.5px dashed var(--ink2); pointer-events: none; }
.ev-block .rh { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; }
.ev-block .rh::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--c); opacity: .55; }
body.dragging { cursor: grabbing; user-select: none; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--sun); z-index: 4; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

/* ---------- 목록 보기 ---------- */
.agenda { height: 100%; overflow: auto; padding: 6px 10px 96px; }
.ag-day { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.ag-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 2px; font-size: 11.5px; color: var(--ink3); text-align: center; }
.ag-date .dn { font-size: 16px; min-width: 32px; height: 32px; border-radius: 16px; }
.ag-date em { font-style: normal; color: var(--sun); font-size: 11px; font-weight: 600; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; color: var(--ink3); }
.more-btn { margin-top: 12px; }

/* ---------- 미니 달력 ---------- */
.mini { padding: 2px 0; }
.mm-head { display: flex; align-items: center; justify-content: space-between; }
.mm-head b { font-size: 14px; }
.mm-head .icon-btn { width: 32px; height: 32px; }
.mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mm-dow { font-size: 11px; color: var(--ink3); padding: 4px 0; font-weight: 600; }
.mm-day { position: relative; height: 34px; border: 0; background: none; border-radius: 50%; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; padding: 0; font-variant-numeric: tabular-nums; }
.mm-day.dim { opacity: .38; }
.mm-day.off { color: var(--sun); } .mm-day.sat { color: var(--sat); }
.mm-day.today { background: var(--hi); color: #17376a; font-weight: 800; }
.mm-day.sel { box-shadow: inset 0 0 0 1.5px var(--ink2); }
.mm-day i { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; }
.mm-day:hover { background: var(--line2); } .mm-day.today:hover { background: var(--hi); }

/* ---------- 시트 ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .16s; }
.overlay.open { opacity: 1; } .overlay.closing { opacity: 0; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(10, 15, 30, .5); }
.sheet { position: relative; width: 100%; max-height: 93dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; transform: translateY(28px); transition: transform .2s ease; box-shadow: var(--shadow); }
.overlay.open .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 4px; padding: 10px 8px 6px; flex: none; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 16.5px; text-align: center; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head .sp { width: 40px; flex: none; }
.sheet-body { overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.sheet-foot { flex: none; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); }
.foot-row { display: flex; gap: 10px; } .foot-row .grow { flex: 1; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .sheet { width: min(540px, 94vw); max-height: 88vh; border-radius: 20px; }
  .sheet-lg { width: min(640px, 94vw); } .sheet-sm { width: min(420px, 94vw); }
}
.choices { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 16px; }

/* ---------- 토스트 ---------- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 11px 16px; border-radius: 12px; background: #1f2a3c; color: #fff; font-size: 14px; box-shadow: var(--shadow); animation: tin .2s ease; }
:root[data-theme="dark"] .toast { background: #ecebe4; color: #1f2a3c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #ecebe4; color: #1f2a3c; } }
.toast.err { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
.toast-act { background: none; border: 0; color: var(--hi); font-weight: 800; padding: 0; white-space: nowrap; }
:root[data-theme="dark"] .toast-act { color: #17376a; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 상세 보기 ---------- */
.detail { padding: 4px 18px 18px; }
.d-title { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0 12px; }
.d-title .swatch { width: 6px; align-self: stretch; border-radius: 3px; flex: none; }
.d-title h3 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; word-break: break-word; }
.drow { display: flex; gap: 14px; padding: 9px 0; align-items: flex-start; }
.drow > .ico { color: var(--ink3); margin-top: 2px; }
.dtx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.dtx small.muted { font-size: 12.5px; }
.links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.notes { white-space: pre-wrap; }
.attlist { display: flex; flex-direction: column; gap: 6px; }
.att { display: flex; justify-content: space-between; gap: 10px; }
.att em { font-style: normal; font-size: 12.5px; color: var(--ink3); }
.att.ok em { color: var(--ok); font-weight: 700; } .att.no em { color: var(--danger); } .att.maybe em { color: var(--ink2); }
.rsvp { display: flex; align-items: center; gap: 8px; padding: 6px 0 4px 32px; } .rsvp span { font-size: 13px; color: var(--ink2); margin-right: auto; }
.d-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; } .d-actions .btn { flex: 1; min-width: 96px; }

/* ---------- 편집기 ---------- */
.editor .form { padding: 2px 16px 12px; }
.title-in { font-size: 20px; font-weight: 750; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; padding: 12px 2px; margin: 4px 0 2px; }
.title-in:focus-visible { outline: 0; border-bottom-color: var(--ink); }
.frow { display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.frow > .ico { margin-top: 12px; color: var(--ink3); }
.fin { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 42px; }
.fin > .input { flex: 1; min-width: 0; }
.fin > .dot { margin-left: 2px; }
.when { padding: 4px 0 4px 32px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line2); }
.when-row { display: flex; gap: 8px; align-items: center; }
.when-row .lbl { width: 34px; flex: none; }
.when-row .input { flex: 1; min-width: 0; }
.tz-btn { border: 0; background: none; padding: 10px 0; text-align: left; font-size: 14.5px; color: var(--ink); flex: 1; }
.tz-btn em { font-style: normal; color: var(--ink3); font-size: 12.5px; }
.travel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.tpl-strip { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 4px 0 8px; } .tpl-strip .pill { flex: none; }
.sub-actions { display: flex; justify-content: flex-end; padding-top: 6px; }
.qa-preview { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; font-size: 13px; }
.qa-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.custom-rem { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; }
.tz-list { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }
.row-btn { text-align: left; border: 0; background: none; padding: 12px 8px; border-bottom: 1px solid var(--line2); }
.row-btn.on { font-weight: 800; color: var(--sat); }
.rep-row { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; }
.wk { display: flex; gap: 6px; padding: 8px 0; }
.wk-btn { flex: 1; height: 38px; border-radius: 50%; max-width: 44px; border: 1px solid var(--line); background: var(--surface2); font-weight: 700; font-size: 13px; }
.wk-btn.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.repeat { padding: 10px 16px 6px; display: flex; flex-direction: column; gap: 8px; }
.sect { padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line2); }

/* ---------- 캘린더/설정 ---------- */
.sec { padding: 14px 16px; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 10px; }
.sec h4 { margin: 0; font-size: 12.5px; color: var(--ink3); font-weight: 700; }
.members { display: flex; flex-direction: column; }
.member, .inv, .tpl { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 800; flex: none; }
.mi { flex: 1; min-width: 0; display: flex; flex-direction: column; } .mi small { color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }
.mact { display: flex; align-items: center; gap: 2px; }
.badge { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--line2); color: var(--ink2); font-weight: 600; }
.inv-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy-row { display: flex; gap: 8px; align-items: center; } .copy-row .input { flex: 1; min-width: 0; }
.feed { display: flex; flex-direction: column; gap: 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.set-row > span:first-child { font-weight: 600; }
.tpls { display: flex; flex-direction: column; }
.grp { margin: 14px 0 4px; font-size: 12.5px; color: var(--ink3); font-weight: 700; }
.results .grp:first-child { margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slots { padding-top: 0; }
.slot { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin: 4px 0; text-align: left; }
.slot small { flex: 1; color: var(--ink2); } .slot:hover { background: var(--line2); }

/* ---------- 로그인 ---------- */
.auth { max-width: 380px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 40px) 22px 40px; display: flex; flex-direction: column; gap: 16px; min-height: 100%; justify-content: center; }
.auth-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.auth-brand h1 { margin: 10px 0 0; font-size: 30px; font-weight: 850; letter-spacing: -0.04em; }
.auth-brand p { margin: 0; color: var(--ink2); }
.auth-tabs { width: 100%; display: flex; } .auth-tabs .seg-btn { flex: 1; padding: 9px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.form-err { margin: 0; color: var(--danger); font-size: 13.5px; }
.invite-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); }
.invite-card .dot { width: 14px; height: 14px; }
.invite-card div { display: flex; flex-direction: column; } .invite-card small { color: var(--ink3); }
.invite-card p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--ink2); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .side, .top, .fab, .daypanel { display: none !important; } .stage { border: 0; } }


/* ---------- 종이 달력 느낌 (덮어쓰기) ---------- */
.dn { font-weight: 400; font-size: 14px; }
.dn.today, .mm-day.today { background: transparent; color: var(--ink); font-weight: 700; box-shadow: none;
  border: 1.8px solid var(--accent); border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%; transform: rotate(-4deg); }
.mm-day.today:hover { background: transparent; }
.dow-row { font-weight: 500; letter-spacing: .02em; font-size: 11.5px; }
.cell.sel { background: color-mix(in srgb, var(--hi) 7%, transparent); box-shadow: none; }
.cell.sel::after { content: ""; position: absolute; inset: 2px; border-radius: 8px; border: 1px dashed var(--ink3); pointer-events: none; }
.title { font-weight: 300; letter-spacing: -0.02em; }
.top .title { font-size: 22px; } 
@media (min-width: 700px) { .top .title, .title { font-size: 28px; } }
.stage { border-radius: 26px 26px 0 0; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
@media (min-width: 900px) { .stage { border-radius: 28px; box-shadow: 0 6px 24px rgba(40, 44, 30, .07); } }
.btn, .seg { border-radius: 14px; } .seg-btn { border-radius: 11px; }
.chip { border-radius: 6px; }
.fab { box-shadow: 0 8px 20px rgba(23, 55, 106, .28); }
.empty { font-weight: 300; }
.empty::before { content: ""; display: block; width: 96px; height: 96px; margin: 0 auto 6px; background: url("/icons/empty.png") center/contain no-repeat; }
:root[data-theme="dark"] .empty::before { filter: brightness(2.4) saturate(.7); }
.auth-brand h1 { font-weight: 500; letter-spacing: -0.03em; }

body:has(.auth) { background: var(--surface); }
.input, input.input, select.input, textarea.input { background: var(--surface2); }
.auth-theme { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.auth-theme .seg-btn { padding: 5px 11px; font-size: 12.5px; }

/* 오늘 표시: 굵고 동그란 원 */
.dn.today, .mm-day.today { border: 2.5px solid var(--accent); border-radius: 50%; transform: none; }
.mm-day { width: 34px; justify-self: center; }
.dn.today { box-sizing: border-box; width: 26px; min-width: 26px; height: 26px; padding: 0; }
.mm-day.sel:not(.today) { box-shadow: inset 0 0 0 1.5px var(--ink2); }

.who-btn { border: 0; background: none; padding: 6px 8px; margin-left: -8px; border-radius: 10px; color: var(--ink); }
.who-btn:hover { background: var(--line2); }
.acct-menu { position: fixed; z-index: 90; min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.acct-who { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
.acct-who small { color: var(--ink3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--ink); text-align: left; }
.acct-item:hover { background: var(--line2); }
.acct-sep { height: 1px; background: var(--line2); margin: 4px 0; }
.acct-item.danger { color: var(--danger); }

/* ---------- 사이드바 검색 / 빠른 추가 ---------- */
.sb-search { position: relative; display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 0 12px; height: 40px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink3); }
.sb-search:focus-within { border-color: var(--accent); color: var(--ink); background: var(--surface); }
.sb-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font: inherit; color: var(--ink); }
.sb-input::-webkit-search-cancel-button { cursor: pointer; }
.sb-search:hover::after { content: attr(data-tip); position: absolute; left: 12px; top: calc(100% + 6px); z-index: 70; padding: 4px 9px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.sb-search:focus-within::after, .sb-search:has(.sb-input:not(:placeholder-shown))::after { display: none; }
.sb-pop { position: fixed; z-index: 80; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto; padding: 6px 8px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.qa-box { padding-top: 6px; }
.qa-field { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); }
.qa-field:focus-within { border-color: var(--accent); background: var(--surface); }
.qa-input { flex: 1; min-width: 0; height: 32px; border: 0; background: none; outline: 0; font: inherit; font-size: 14px; color: var(--ink); }
.qa-go { width: 32px; height: 32px; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.qa-live { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px 0; }
.qa-live b { font-size: 13.5px; } .qa-live small { color: var(--ink2); font-size: 12px; }

.sb-input:focus-visible, .qa-input:focus-visible { outline: 0; }
.results .row-ev .tcol { width: 92px; }
.results .row-ev .tcol b { width: auto; white-space: nowrap; }

/* ---------- D-day ---------- */
.dday-list { display: flex; flex-direction: column; gap: 4px; }
.dday-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 4px; border-radius: 12px; text-align: left; }
.dday-item:hover { background: var(--line2); }
.dday-badge { flex: none; min-width: 58px; text-align: center; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.dday-item.today .dday-badge { background: var(--sun); color: #fff; }
.dday-item.past .dday-badge { background: var(--line); color: var(--ink2); }
.dday-tx { display: flex; flex-direction: column; min-width: 0; }
.dday-tx b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dday-tx small { color: var(--ink3); font-size: 11.5px; }
.dday-pill { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 800; vertical-align: middle; }

.auth-opts { display: flex; align-items: center; gap: 18px; padding: 2px 4px; }
.auth-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); cursor: pointer; user-select: none; }
.auth-chk input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid var(--ink3); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.auth-chk input:checked { background: var(--accent); border-color: var(--accent); }
.auth-chk input:checked::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-chk input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 하루 패널: 일정이 없을 때 안내 그림을 패널 한가운데에 */
.daypanel { display: flex; flex-direction: column; padding-bottom: 16px; }
.daypanel .dp-list { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 140px; }
.daypanel .dp-list > .empty { margin: auto; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.daypanel .dp-list > .empty::before { margin: 0 auto 10px; }

/* 시간 표시: 시작 ~ 끝을 같은 크기·색으로, ~ 는 가운데 */
.row-ev .tcol { width: 56px; font-size: 12.5px; }
.row-ev .tcol .tt { display: flex; flex-direction: column; align-items: center; width: 56px; line-height: 1.25; color: var(--ink2); font-size: 12.5px; }
.row-ev .tcol .tt > span { font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.row-ev .tcol .tt-sep { color: var(--ink3); line-height: 1; }
.results .row-ev .tcol { width: 92px; }
.results .row-ev .tcol .tt { width: 56px; align-self: flex-start; }
.row-ev .tcol .tt > .tt-sep { font-size: 13px; line-height: 1.1; }

/* 검색칸: 마우스를 올리거나 클릭하면 칸 안에 '일정 검색' 문구가 나타남 */
.sb-search:hover::after, .sb-search:focus-within::after { display: none !important; content: none; }
.sb-input::placeholder { color: transparent; transition: color .15s; }
.sb-search:hover .sb-input::placeholder, .sb-input:focus::placeholder { color: var(--ink3); }
/* 빠른 일정 추가칸: 마우스를 올리거나 클릭하면 예시 문구가 나타남 */
.qa-input::placeholder { color: transparent; transition: color .15s; }
.qa-field:hover .qa-input::placeholder, .qa-input:focus::placeholder { color: var(--ink3); }

.inv-link { font-size: 13px; color: var(--ink2); text-overflow: ellipsis; }
.calsheet .sec .link-btn { align-self: flex-start; }

/* auth: signup / find / reset */
.row-inline { display: flex; gap: 8px; align-items: stretch; }
.row-inline > input { flex: 1; min-width: 0; }
.row-inline > .btn { flex: none; white-space: nowrap; padding: 0 14px; }
.form-ok { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ok, #2f8f6b); }
.pw-hint { min-height: 16px; font-size: 12.5px; font-weight: 600; margin-top: -4px; padding-left: 4px; }
.pw-hint.ok { color: var(--ok, #2f8f6b); }
.pw-hint.no { color: var(--danger); }
.auth-links { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 2px; }
.auth-links .sep { color: var(--ink3); }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--ink2); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.found-ids { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.auth-title { margin: 0 0 4px; font-size: 20px; font-weight: 700; text-align: center; }

/* ---------- PC 다듬기 ---------- */
.kbd-list { display: flex; flex-direction: column; gap: 4px; }
.kbd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 2px; border-bottom: 1px solid var(--line2); font-size: 14px; }
.kbd-row:last-child { border-bottom: 0; }
.kbd-keys { display: inline-flex; gap: 4px; flex: none; }
kbd { font: inherit; font-size: 12.5px; font-weight: 600; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); color: var(--ink); }
.auth-hero { display: none; }
.chip:hover, .ev-block:hover { filter: brightness(.96); }
@media (min-width: 900px) {
  body:has(.auth) #app, body:has(.auth) #root { min-height: 100vh; }
  .auth-hero { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 22px; padding: 48px 56px; background: var(--accent); color: var(--accent-ink); }
  .auth-hero img { width: 200px; height: 200px; border-radius: 44px; box-shadow: 0 10px 36px rgba(0,0,0,.28); }
  .auth-hero h2 { margin: 0; font-size: 40px; line-height: 1.25; font-weight: 700; letter-spacing: -0.04em; white-space: pre-line; }
  .auth-hero ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; font-size: 16px; opacity: .85; }
  .auth-hero li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: currentColor; vertical-align: middle; }
  .auth-brand img { display: none; } .auth-brand p { display: none; }
  .auth { max-width: 420px; }
}
@media (min-width: 1500px) {
  .dow-row { font-size: 13.5px; }
  .cell .dn { font-size: 15px; }
  .chip { height: 21px; line-height: 21px; font-size: 13px; }
  .cell .lunar, .cell .hol { font-size: 11px; }
  .daypanel { width: 380px; }
  .row-ev b, .row-ev .t { font-size: 15.5px; }
}
@media (min-width: 900px) {
  #app:has(> .auth-hero) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
  #app:has(> .auth-hero) > .auth { width: 100%; }
}

/* 소셜 로그인 */
.social { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.social-or { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 13px; }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: filter .12s, transform .06s; }
.social-btn:active { transform: scale(.985); }
.social-btn:hover { filter: brightness(.96); }
.social-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.social-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.social-btn.kakao { background: #fee500; color: #191919; }
.social-btn.naver { background: #03c75a; color: #fff; }
.social-btn.google { background: #fff; color: #3c4043; border-color: var(--line); }
.social-btn.apple { background: #000; color: #fff; }

/* 캘린더별 따로 보기 */
.cal-item { border-radius: 12px; padding: 0 4px; transition: background .12s, opacity .12s; }
.cal-name:hover span { text-decoration: underline; text-underline-offset: 3px; }
