.month{border-collapse:separate;border-spacing:3px;table-layout:fixed;width:100%}.month th{font-size:var(--fs-sm);color:var(--muted);padding:4px 0;font-weight:600}.month th.is-sunday{color:var(--red)}.month__cell{vertical-align:top;height:1px;padding:0}.month__cell a{box-sizing:border-box;background:var(--card);border:1px solid var(--line);height:100%;min-height:72px;color:var(--ink);border-radius:10px;flex-direction:column;padding:6px;text-decoration:none;display:flex;position:relative;overflow:hidden}.month__cell a:hover{border-color:var(--ink)}.month__solar{font-family:var(--serif);font-size:var(--fs-md);font-weight:700;line-height:1.1}.month__lunar{font-size:var(--fs-sm);color:var(--muted);align-self:flex-end;margin-top:auto}.month__holiday{font-size:var(--fs-sm);color:var(--red);white-space:nowrap;text-overflow:ellipsis;line-height:1.2;overflow:hidden}.month__flag{border-left:14px solid #0000;border-top:14px solid var(--red);width:0;height:0;position:absolute;top:0;right:0}.month__mark{background:var(--gold);border-radius:50%;width:8px;height:8px;position:absolute;bottom:6px;left:6px}.month__cell.is-outside a{background:0 0;border-style:dashed}.month__cell.is-outside .month__solar,.month__cell.is-outside .month__lunar{color:var(--muted);font-weight:400}.month__cell.is-sunday .month__solar,.month__cell.is-public-holiday .month__solar{color:var(--red)}.month__cell.is-lunar-start .month__lunar,.month__cell.is-full-moon .month__lunar{color:var(--red);font-weight:600}.month__cell.has-holiday a{background:var(--red-soft)}.month__cell.is-today a{background:var(--today);border:2px solid var(--gold)}.month__cell.is-selected a{border:3px solid var(--ink);padding:4px}@media (width<=520px){.month__holiday{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.month__cell a{min-height:54px;padding:4px}.month__cell.is-selected a{padding:2px}}.month--compact{border-spacing:1px}.month--compact th{font-size:var(--fs-sm)}.month--compact .month__cell a{background:0 0;border:none;align-items:center;min-height:0;padding:2px}.month--compact .month__solar{font-family:var(--sans);font-size:var(--fs-sm);font-weight:400}.month--compact .month__mark,.month--compact .month__flag{display:none}.month--compact .has-holiday .month__solar{color:var(--red);text-underline-offset:3px;font-weight:600;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.month--compact .month__cell.has-holiday a{background:0 0}.legend{font-size:var(--fs-sm);color:var(--muted);flex-wrap:wrap;gap:8px 16px;margin:0;padding:0;list-style:none;display:flex}.legend li{align-items:center;gap:6px;display:flex}.legend__swatch{border:1px solid var(--line);background:var(--card);border-radius:5px;width:18px;height:18px;position:relative;overflow:hidden}.legend__swatch--today{background:var(--today);border:2px solid var(--gold)}.legend__swatch--holiday{background:var(--red-soft)}.legend__swatch--holiday:after{content:"";border-left:8px solid #0000;border-top:8px solid var(--red);position:absolute;top:0;right:0}.legend__lunar{color:var(--red)}.legend__dot{background:var(--gold);border-radius:50%;width:8px;height:8px}.month .month__cell.is-outside .month__solar,.month .month__cell.is-outside .month__lunar,.month .month__cell.is-outside .month__holiday{color:var(--muted);font-weight:400}.month .month__cell.is-outside a{background:0 0}.month .month__cell.is-outside .month__flag{display:none}.month--compact .month__cell.is-outside a{visibility:hidden}
