.calendar-day-menu { position: fixed; inset: auto; margin: 0; min-width: 165px; padding: 5px; border: 1px solid #ddd; border-radius: 8px; background: white; color: #222; box-shadow: 0 6px 24px #0002; }
.calendar-day-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 4px; background: transparent; color: inherit; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.calendar-day-menu button:hover, .calendar-day-menu button:focus-visible { background: #dbeafe; outline: none; }
html.dark-mode .calendar-day-menu { background: #292929; color: #eee; border-color: #555; }
html.dark-mode .calendar-day-menu button:hover, html.dark-mode .calendar-day-menu button:focus-visible { background: #1e3a5f; }
.cal-day.cal-day-striped { background-image: repeating-linear-gradient(135deg, #8882 0, #8882 6px, #8884 6px, #8884 8px); }
.cal-entry { display: block; width: 100%; margin-bottom: 4px; padding: 4px 6px; border: 0; border-radius: 4px; text-align: left; font: inherit; font-size: 12px; overflow-wrap: anywhere; cursor: pointer; }
.cal-entry-coloured { background: var(--entry-color); color: white; }
.cal-entry-striped { background: #e5e7eb; color: #374151; border-left: 3px solid #6b7280; }
.cal-entry:hover { filter: brightness(1.1); }
.cal-entry:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cal-selecting-range { user-select: none; cursor: crosshair; }
.cal-day.cal-range-selected { box-shadow: inset 0 0 0 3px #3b82f6; background-color: #dbeafe; }
.calendar-entry-dialog { width: min(460px, calc(100% - 32px)); box-sizing: border-box; max-height: 90dvh; overflow-y: auto; padding: 22px; border: 1px solid #ddd; border-radius: 12px; color: #222; background: #fff; }
.calendar-entry-dialog::backdrop { background: #0007; }
.calendar-entry-dates { display: flex; gap: 12px; }
.calendar-entry-dates > div { flex: 1; min-width: 0; }
.calendar-entry-choices { border: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.calendar-entry-choices[hidden] { display: none; }
.calendar-entry-choices legend { margin-bottom: 8px; font-size: 13px; }
.calendar-entry-choices label { font-size: 13px; cursor: pointer; }
.calendar-entry-swatch { border-bottom: 4px solid var(--entry-color); padding: 3px; }
#calendar-entry-error { color: #be123c; font-size: 13px; }
#calendar-entry-sharing { font-size: 12px; }
html.dark-mode .calendar-entry-dialog { background: #222; border-color: #555; color: #eee; }
html.dark-mode .cal-entry-striped { background: #374151; color: #e5e7eb; }
html.dark-mode .cal-day.cal-range-selected { background-color: #1e3a5f; }
html.dark-mode #calendar-entry-error { color: #fda4af; }
