/* Calendar: the year view, the split view, and the drag feedback (the drop highlight, the label that follows the
 * pointer, and the block while it is held). Loaded after calendar.css. */
/* year: twelve mini months, a dot on a day with something on it */
.yr { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding-top: 12px; }
.yr-m { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; background: var(--panel); min-width: 0; }
.yr-h { margin: 0 0 4px; font-size: 14px; }
.yr-name { background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; padding: 2px 4px; border-radius: 6px; cursor: pointer; }
.yr-name:hover { background: var(--chip); }
.yr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.yr-dow { font-size: 11px; color: var(--mute); padding: 2px 0; }
.yr-d { position: relative; background: none; border: 0; color: var(--ink); font: inherit; font-size: 12px; padding: 4px 0 6px; border-radius: 6px; cursor: pointer; }
.yr-d:hover { background: var(--chip); }
.yr-d.is-today { color: var(--accent); font-weight: 700; }
.yr-d.has-dot::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c-blue); }
/* split: two panes side by side; on a phone the split view is the agenda, so it never shows here */
.sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; padding-top: 10px; }
.sp-pane { min-width: 0; }
.sp .tg-dh.is-pick { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.sp .mo-cell { min-height: 84px; }
/* drag feedback */
.mo-cell.is-drop { background: var(--today); outline: 2px solid var(--accent); outline-offset: -2px; }
.tg-block.dragging { z-index: 4; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); opacity: 0.9; transition: none; }
.dr-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; font-size: 12px; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
@media (max-width: 640px) {
  .yr { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .sp { grid-template-columns: minmax(0, 1fr); }
}
/* The panel on the right (js/ui/panel.js, shared/frame/frame.css): the chosen day, the display choices, the calendar file,
   and New event at its foot. The page scrolls; the panel stays in sight. */
.cal-body { align-items: flex-start; }
.cal-body > .main { flex: 1 1 auto; min-width: 0; }
.cal-body:not(.sf-phone) > .cal-side { position: sticky; top: 0; max-height: calc(100vh - var(--cal-top, 96px)); min-height: calc(100vh - var(--cal-top, 96px)); }   /* its foot in view, the editor too */
.cal-body > .sf-grip { align-self: stretch; }
.cal-edit { padding: 12px 16px 20px; }   /* the event editor in the panel (js/ui/panel.js) */
.cal-side label.sf-field { color: var(--ink); font-size: 13px; }
.cal-side label.sf-field:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
.cal-side .tb-lbl { display: inline; }
.cal-side select { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; width: 100%; }
.cal-side .sf-acts .btn, .cal-side .sf-foot-acts .btn { min-height: 36px; }
.cal-side .sf-h, .cal-side .sf-note, .cal-side .sf-item-meta { color: var(--mute); }   /* the small headings in the muted ink (contrast) */
