/* Native “None” appearance: white / label / systemBlue / systemGray3. */
.native-stage { background: var(--soft); }
.hero { background: linear-gradient(180deg, var(--card), var(--paper)); }
.hero::before { display: none; }
.scroll-showcase { width: min(880px, 100%); margin: 40px auto 0; padding: 32px; border-radius: 24px; background: var(--soft); }
.dl-cards .card { background: var(--soft); padding-bottom: 24px; }
@media (max-width: 640px) { .scroll-showcase { padding: 16px; } }
#demo {
  color-scheme: light;
  --cal-primary: #007aff;
  --cal-paper: #ffffff;
  --cal-ink: #000000;
  --cal-line: #d1d1d6;
  --cal-weekend: #b8ebc5;
  --cal-selected: #c7c7cc;
  --cal-list: #f2f2f7;
  --cal-card: #fff;
  --cal-muted: #8e8e93;
  --demo-overhang: 190px;
  padding-right: var(--demo-overhang);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Segoe UI", sans-serif;
}
#demo > .toon { width: calc(100% + var(--demo-overhang)); margin: 0 0 -14px; }
.cal-desktop-preview { min-width: 0; }
.cal-device-link { display: none; }
#demo .win { background: var(--cal-paper); color: var(--cal-ink); border-radius: 12px; }
#demo .win-bar { height: 36px; background: #f2f2f7; border-color: var(--cal-line); }
#demo .win-bar strong { font-size: 12px; color: var(--cal-ink); }
#demo .hint { font-size: 11px; color: #8e8e93; }
.cal-month-head { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 10px 14px; background: var(--cal-paper); }
.cal-desktop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; min-height: 64px; padding: 10px 12px; border-bottom: 1px solid var(--cal-line); background: #fff; }
.cal-desktop-head > .cal-month-head { flex: 1 1 310px; min-width: 0; min-height: 44px; padding: 0; }
.cal-desktop-head .cal-month-title { padding: 4px; font-size: 24px; font-weight: 500; white-space: nowrap; }
.cal-desktop-head .cal-icon { width: 36px; height: 40px; padding: 8px; font-size: 20px; }
.cal-desktop-head .cal-icon svg { width: 20px; height: 20px; }
.cal-view-segment { display: grid; grid-template-columns: repeat(4, minmax(40px, auto)); gap: 2px; padding: 3px; border-radius: 10px; background: #f4f4f4; }
.cal-view-segment span { display: grid; place-items: center; min-height: 32px; padding: 4px 6px; border-radius: 7px; background: transparent; color: #575757; font-size: 13px; font-weight: 400; }
.cal-view-segment .is-selected { color: #007aff; background: #fff; font-weight: 600; }
.cal-year-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 546px; padding: 18px 12px; background: #fff; }
.cal-year-month { min-width: 0; padding: 0; border: 0; background: none; color: #222; font: inherit; cursor: pointer; }
.cal-year-month strong { display: block; margin-bottom: 5px; text-align: left; color: #007aff; font-size: 12px; font-weight: 500; }
.cal-year-weekdays, .cal-year-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.cal-year-month i { display: block; height: 14px; font-size: 8px; font-style: normal; line-height: 14px; }
.cal-year-weekdays { color: #8e8e93; }
.cal-year-month .is-today { border-radius: 50%; background: #ff3b30; color: #fff; }
.cal-month-title { color: var(--cal-ink); font: inherit; font-weight: 650; font-size: 23px; padding: 4px 12px; }
.cal-month-head, .cal-view-segment { user-select: none; pointer-events: none; }
.cal-year { font-size: .72em; font-weight: 500; }
.cal-month-head .cal-icon { color: var(--cal-ink); }
.cal-lunar { margin: 3px 0 0 auto; padding-left: 2px; color: var(--cal-muted); font-size: 8px; font-weight: 400; }
.cal-no-weekend .cal-cell { background: var(--cal-paper); }
.cal-no-weekend .cal-cell.is-selected { background: var(--cal-selected); }
.cal-native-toolbar { display: flex; align-items: center; justify-content: space-around; height: 38px; border-block: .5px solid var(--cal-line); background: var(--cal-paper); pointer-events: none; }
.cal-native-toolbar .cal-icon { position: relative; width: 12.5%; height: 30px; padding: 5px; color: var(--cal-ink); font-size: 20px; font-weight: 400; border-radius: 0; cursor: default; background: transparent; }
.cal-native-toolbar .cal-icon + .cal-icon::before { content: ''; position: absolute; left: 0; height: 20px; width: .5px; background: var(--cal-line); }
.cal-native-toolbar .cal-mode-selected { color: var(--cal-primary); }
.cal-native-toolbar .cal-mode-selected::after { content: ''; position: absolute; inset: 2px calc(50% - 16px); border-radius: 14px; background: #007aff14; pointer-events: none; }
.cal-card time small { display: block; font-size: 10px; color: var(--cal-muted); }
.cal-timeline { height: 546px; color: var(--cal-ink); }
.cal-timeline-label { height: 32px; padding: 6px 10px; font-size: 12px; font-weight: 600; border-bottom: .5px solid var(--cal-line); }
.cal-timeline-scroll { position: relative; display: flex; height: calc(100% - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cal-hours { position: relative; flex: 0 0 36px; min-height: 1184px; padding-top: 32px; }
.cal-hours span { position: absolute; left: 3px; margin-top: 32px; color: var(--cal-muted); font-size: 9px; }
.cal-timeline-days { display: grid; flex: 1; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); min-height: 1184px; }
.cal-timeline-day { position: relative; min-width: 0; border-left: .5px solid var(--cal-line); background: repeating-linear-gradient(to bottom, transparent 0 47px, var(--cal-line) 47px 48px) 0 32px / 100% 48px; }
.cal-timeline-date { position: sticky; top: 0; z-index: 2; width: 100%; height: 32px; padding: 2px; border: 0; color: var(--cal-ink); background: var(--cal-paper); font: inherit; font-size: 11px; cursor: pointer; }
.cal-timeline-date small { font-size: 8px; }
.cal-timed-event { position: absolute; left: 1px; right: 1px; padding: 3px; border: 0; color: #fff; background: var(--event); font: inherit; font-size: 10px; line-height: 1.3; text-align: left; overflow: hidden; cursor: grab; touch-action: pan-y; }
#phoneCalendar .cal-timeline { height: 235px; }
#phoneCalendar .cal-timeline-label { font-size: 9px; }
#phoneCalendar .cal-timed-event { font-size: 8px; }
#phoneCalendar .cal-native-toolbar { height: 31px; }
#phoneCalendar .cal-native-toolbar .cal-icon { width: 12.5%; height: 27px; padding: 4px; font-size: 17px; }
#phoneCalendar .cal-native-toolbar .cal-icon svg { width: 17px; height: 17px; }
#phoneCalendar .cal-lunar { font-size: 5px; margin-top: 2px; }
#phoneCalendar .cal-card time small { font-size: 8px; }
#phoneCalendar .native-month-toolbar { --native-toolbar-height: 33px; --native-toolbar-icon-size: 17px; }
.cal-settings .cal-setting-row { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--strong); }
.cal-settings input[type="checkbox"] { appearance: none; position: relative; width: 38px; height: 23px; border: 0; border-radius: 14px; padding: 0; background: #d1d1d6; cursor: pointer; }
.cal-settings input[type="checkbox"]::after { content: ''; position: absolute; width: 19px; height: 19px; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0003; transition: transform .15s; }
.cal-settings input[type="checkbox"]:checked { background: #34c759; }
.cal-settings input[type="checkbox"]:checked::after { transform: translateX(15px); }
.cal-search-results { display: grid; gap: 5px; max-height: 250px; overflow-y: auto; }
.cal-search-results button { text-align: left; font-size: 12px; }
.cal-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 8px; border: 0; background: transparent; border-radius: 7px; color: var(--cal-primary); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.cal-icon svg, .cal-mode svg { display: block; width: 22px; height: 22px; }
.cal-icon:hover { background: #007aff0c; }
.cal-icon[data-action$="year"] { width: 30px; font-size: 20px; }
.cal-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.cal-main { position: relative; min-width: 0; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { background: var(--cal-paper); color: var(--cal-ink); font-size: 11px; line-height: 24px; text-align: center; }
.cal-dow span:nth-child(7) { color: #ff3b30; }
.cal-cell { position: relative; min-width: 0; height: 87px; padding-top: 24px; border-top: .5px solid var(--cal-line); border-right: .5px solid var(--cal-line); background: var(--cal-paper); overflow: hidden; }
.cal-cell > .native-weather { position: absolute; top: 1px; right: 3px; z-index: 1; font-size: 19px; }
.cal-cell:has(> .native-weather) .cal-date { padding-right: 25px; }
.cal-cell:nth-child(7n+6), .cal-cell:nth-child(7n) { background: var(--cal-weekend); }
.cal-cell.is-selected { background: var(--cal-selected); box-shadow: inset 0 0 0 1px var(--cal-primary); }
.cal-cell.is-outside .cal-date { color: #aeaeb2; }
.cal-cell.is-today { box-shadow: inset 0 0 0 2px #fc4343; }
.cal-date { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 3px 5px; color: var(--cal-ink); background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cal-date:hover { background: #007aff08; }
.cal-date:focus-visible { outline-offset: -3px; border-radius: 0; }
.cal-cell.is-today .cal-date { font-weight: 750; }
.cal-event { position: relative; z-index: 1; display: block; width: 100%; height: 16px; border: 0; border-radius: 0; padding: 0 3px; margin: 1px 0 0; background: var(--event); color: #fff; font: inherit; font-size: 10px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-align: left; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cal-event:hover { filter: brightness(1.06); }
.cal-event, .cal-card { -webkit-touch-callout: none; }
.cal-event.is-done { text-decoration: line-through; opacity: .55; }
/* The factory emits the same month-event strip, enlarged by its SVG group. */
#demo .factory-event { position: static; z-index: auto; height: 16px; margin: 0; font-size: 10px; line-height: 16px; white-space: nowrap; overflow-wrap: normal; text-overflow: clip; overflow: visible; cursor: default; pointer-events: none; }
#demo .factory-event[hidden] { display: none; }
.cal-more { position: absolute; bottom: 1px; right: 1px; z-index: 2; border: 0; background: #53745bdd; color: #fff; font-size: 10px; cursor: pointer; }
.cal-side { border-left: 1px solid var(--cal-line); min-width: 0; background: var(--cal-list); }
.cal-mini .cal-month-head { min-height: 36px; padding: 0; background: var(--cal-paper); }
.cal-mini .cal-month-title { font-size: 12px; padding: 0 4px; }
.cal-mini .cal-icon { height: 30px; width: 30px; padding: 6px; }
.cal-mini .cal-dow { line-height: 20px; font-size: 10px; background: var(--cal-paper); }
.cal-mini .cal-cell { height: 24px; padding: 0; border: 0; }
.cal-mini .cal-date { padding: 2px 0; justify-content: center; font-size: 11px; }
.cal-dot { position: absolute; width: 3px; height: 3px; bottom: 2px; left: calc(50% - 1px); border-radius: 50%; background: var(--cal-primary); pointer-events: none; }
.cal-side-agenda { height: 346px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cal-agenda { padding: 0 10px 20px; }
.cal-agenda h4 { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 2px 8px; font-size: 12px; font-weight: 650; color: var(--cal-ink); line-height: 1.5; }
.cal-agenda h4 .native-weather { font-size: 16px; }
.cal-agenda h4 .native-weather > span { font-size: 10px; }
.cal-agenda-row { display: flex; align-items: center; gap: 7px; min-height: 60px; padding: 10px 8px; margin-bottom: 7px; border-radius: 12px; background: var(--cal-card); color: var(--cal-ink); }
.cal-check { display: grid; place-items: center; flex: none; width: 18px; height: 18px; padding: 0; border: 1.5px solid #959995; border-radius: 50%; background: transparent; color: var(--cal-primary); cursor: pointer; font: inherit; line-height: 1; font-size: 12px; }
.cal-card { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; padding: 0; border: 0; color: inherit; background: none; text-align: left; font: inherit; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cal-card time { font-size: 11px; flex: none; align-self: stretch; display: grid; align-items: center; padding-right: 7px; border-right: 3px solid var(--event); font-variant-numeric: tabular-nums; }
.cal-card span { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.4; }
.cal-agenda-row.is-done .cal-card { opacity: .5; text-decoration: line-through; }
.cal-empty { padding: 8px 2px; color: var(--cal-muted); font-size: 12px; }
#demo .phone { bottom: -30px; right: -8px; width: 246px; height: 500px; background: var(--cal-paper); color: var(--cal-ink); border-width: 6px; border-radius: 36px; padding: 0 0 12px; }
#demo .phone::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 80px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: #161616; }
#phoneStatus .native-phone-status { height: 32px; font-size: 10px; }
#demo .sync { position: absolute; bottom: 49px; left: 50%; z-index: 5; transform: translateX(-50%); width: max-content; max-width: calc(100% - 20px); height: auto; padding: 6px 10px; border-radius: 20px; background: #f2f2f7ed; box-shadow: 0 2px 8px #0001; font-size: 9px; color: #737378; opacity: 0; pointer-events: none; transition: opacity .25s; }
#demo .sync.is-visible { opacity: 1; }
#demo .sync b { width: 6px; height: 6px; }
#phoneCalendar .cal-month-head { min-height: 22px; padding: 0 10px; gap: 0; }
#phoneCalendar .cal-month-title { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; line-height: 20px; font-weight: 600; padding: 0 4px; }
#phoneCalendar .cal-year { font-size: 10px; font-weight: 500; transform: translateY(1px); }
#phoneCalendar .cal-icon { width: 26px; height: 22px; padding: 5px; }
#phoneCalendar .cal-month-head .cal-icon svg { width: 12px; height: 12px; stroke-width: 2; }
#phoneCalendar .cal-dow { font-size: 9px; line-height: 16px; }
#phoneCalendar .cal-cell { height: 36px; padding-top: 14px; }
#phoneCalendar .cal-cell > .native-weather { top: 0; right: 1px; font-size: 12px; }
#phoneCalendar .cal-cell:has(> .native-weather) .cal-date { padding-right: 14px; }
#phoneCalendar .cal-date { font-size: 10px; padding: 0 2px; }
#phoneCalendar .cal-event { height: 9px; font-size: 6px; line-height: 9px; padding: 0 1px; margin-top: 1px; }
#phoneCalendar .cal-more { font-size: 7px; }
.cal-phone-agenda { height: 149px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--cal-line); background: var(--cal-list); scrollbar-width: none; }
.cal-phone-agenda .cal-agenda { padding: 0 7px 10px; }
.cal-phone-agenda .cal-agenda h4 { font-size: 10px; padding: 7px 0 4px; }
.cal-phone-agenda .cal-agenda h4 .native-weather { flex-direction: row-reverse; font-size: 14px; gap: 2px; }
.cal-phone-agenda .cal-agenda h4 .native-weather > span { font-size: 8px; }
.cal-phone-agenda .cal-agenda-row { min-height: 38px; padding: 7px; margin-bottom: 4px; gap: 5px; border-radius: 8px; }
.cal-phone-agenda .cal-check { width: 14px; height: 14px; }
.cal-phone-agenda .cal-card { gap: 5px; }
.cal-phone-agenda .cal-card time { font-size: 9px; padding-right: 5px; border-width: 2px; }
.cal-phone-agenda .cal-card span { font-size: 10px; }
.cal-over { box-shadow: inset 0 0 0 2px #3986c5 !important; background: #3986c526 !important; }
.cal-lifted { opacity: .25 !important; }
.cal-dragging, .cal-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.cal-drag-ghost { position: fixed; z-index: 100; min-height: 24px; padding: 3px 6px; border-radius: 5px; color: #fff; background: var(--event); box-shadow: 0 6px 18px #0004; font: 12px/1.5 -apple-system, BlinkMacSystemFont, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.cal-auto-cursor { position: absolute; z-index: 101; width: 23px; height: 29px; pointer-events: none; filter: drop-shadow(0 2px 2px #0003); }
.cal-auto-cursor svg { width: 100%; height: 100%; }
.cal-auto-touch { width: 24px; height: 24px; margin: -10px; border: 2px solid #fff; border-radius: 50%; background: #0003; box-shadow: 0 0 0 5px #007aff22; }
.cal-auto-source { opacity: .25; }
.cal-agenda-row:has(> .cal-auto-source) { outline: 1.5px solid #007aff66; background: #edf5ff; }
.cal-auto-ghost { min-height: 0; padding: 0 3px; border-radius: 0; font-size: 10px; line-height: 16px; }
.cal-list-drag-ghost { display: flex; align-items: center; background: #fff; color: #000; line-height: 1.25; }
.cal-list-drag-time { flex: none; overflow: hidden; font-size: .84em; border-right: 2px solid var(--event); font-variant-numeric: tabular-nums; }
.cal-list-drag-time small { display: block; color: #8e8e93; font-size: .8em; }
.cal-list-drag-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-arrived { animation: cal-arrive .8s ease-out; }
@keyframes cal-arrive { from { filter: brightness(1.5); } to { filter: brightness(1); } }
.cal-popover { position: fixed; margin: 0; width: min(300px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; border: 1px solid #a8b8a83b; border-radius: 14px; background: var(--card); color: var(--strong); box-shadow: 0 8px 32px #0003; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.cal-popover::backdrop { background: #00190620; }
.cal-popover h3 { margin: 0 0 12px; font-size: 16px; }
.cal-popover label { display: grid; gap: 5px; margin: 10px 0; color: var(--muted); font-size: 12px; }
.cal-popover input { box-sizing: border-box; width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--strong); padding: 5px 8px; font: inherit; font-size: 14px; }
.cal-form-actions { display: flex; gap: 7px; justify-content: flex-end; margin-top: 16px; }
.cal-popover button { border: 0; padding: 8px 12px; border-radius: 6px; color: var(--strong); background: var(--soft); font: inherit; cursor: pointer; }
.cal-popover .cal-save { background: #007aff; color: #fff; }
.cal-popover .cal-delete { margin-right: auto; color: #d74040; }
.cal-drop-menu { display: grid; gap: 5px; }
.cal-drop-menu p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.cal-drop-menu button { text-align: left; color: #007aff; }
@media (max-width: 1000px) {
  .cal-workspace { grid-template-columns: minmax(0, 1fr) 210px; }
  #demo { --demo-overhang: 170px; }
  #demo .phone { right: -2px; width: 220px; }
}
@media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) {
  #demo { --demo-overhang: 0px; }
  #demo > .toon { --factory-card-scale: 1.8; --factory-column-step: 144px; margin-bottom: -14px; }
  #demo .toon .factory-output:nth-child(1) { --column: -1; }
  #demo .toon .factory-output:nth-child(2) { --column: 0; }
  #demo .toon .factory-output:nth-child(3) { --column: 1; }
  #demo .toon .factory-tray { x: -220px; width: 440px; }
  #demo .toon .factory-tray-line { transform: scaleX(.83); }
  #demo .cal-desktop-preview { height: var(--desktop-preview-height, 270px); position: relative; z-index: 1; }
  #demo .cal-desktop-preview .win { width: 720px; max-width: none; transform: scale(var(--desktop-preview-scale, .5)); transform-origin: top left; }
  #demo .cal-desktop-preview .win-bar { height: 30px; }
  #demo .cal-desktop-preview .win-bar i { display: block; }
  #demo .cal-desktop-preview .cal-desktop-head { flex-wrap: nowrap; min-height: 54px; padding: 5px 10px; }
  #demo .cal-desktop-preview .cal-desktop-head > .cal-month-head { flex-basis: 300px; }
  #demo .cal-desktop-preview .cal-month-title { font-size: 23px; }
  #demo .cal-desktop-preview .cal-view-segment { grid-template-columns: repeat(4, 38px); }
  #demo .cal-desktop-preview .cal-workspace { grid-template-columns: minmax(0, 1fr) 180px; }
  #demo .cal-desktop-preview .cal-cell { height: 70px; padding-top: 21px; }
  #demo .cal-desktop-preview .cal-date { font-size: 14px; }
  #demo .cal-desktop-preview .cal-event { height: 16px; font-size: 10px; line-height: 16px; }
  #demo .cal-desktop-preview .cal-side { display: block; }
  #demo .cal-desktop-preview .cal-mini .cal-month-title { font-size: 12px; }
  #demo .cal-desktop-preview .cal-mini .cal-cell { height: 22px; padding: 0; }
  #demo .cal-desktop-preview .cal-mini .cal-date { font-size: 11px; }
  #demo .cal-desktop-preview .cal-side-agenda { height: 256px; }
  #demo .cal-phone-preview { z-index: 2; width: min(64%, 260px); margin: clamp(-100px, -12vw, -38px) 4px 0 auto; }
  #demo .phone { position: absolute; top: 0; left: 50%; margin: 0; bottom: auto; right: auto; width: var(--native-preview-width); height: 500px; box-shadow: 0 12px 28px #17263826, 0 2px 6px #17263818; }
  #demo .cal-device-link { position: relative; display: block; height: 0; z-index: 1; width: calc(100% - min(64%, 260px) - 20px); }
  .cal-device-link::before { content: ''; position: absolute; top: 18px; left: 50%; width: 50%; height: 88px; border-left: 1.5px dashed #a1c6e8; border-bottom: 1.5px dashed #a1c6e8; border-bottom-left-radius: 20px; }
  .cal-device-link span { position: absolute; display: grid; place-items: center; top: 46px; left: calc(50% - 17px); width: 34px; height: 34px; border: 1px solid #d5e6f4; border-radius: 50%; color: #007aff; background: #f5faff; box-shadow: 0 3px 10px #007aff0d; }
  .cal-device-link svg { width: 20px; height: 20px; }
  #demo .toon .factory-output-extra { display: none; }
}
@media (max-width: 420px) {
  .cal-cell { height: 62px; padding-top: 21px; }
  .cal-date { font-size: 12px; }
  .cal-event { font-size: 8px; height: 12px; line-height: 12px; }
  .cal-month-head { gap: 0; padding: 7px 2px; }
  .cal-month-title { font-size: 19px; padding-inline: 4px; }
  #demo .hint { max-width: 50%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { .cal-arrived { animation: none; } }
