/* Today keeps its date marker; the outline identifies the open day panel. */
[data-cal-root] .cal-day[aria-pressed="true"] {
  background-color: #f5f3ff;
  box-shadow: inset 0 0 0 2px #7c3aed;
}
[data-cal-root] .cal-mobile-day-title { font-size: var(--fs-title); }
[data-cal-root] .cal-mobile-day-close { min-width: 44px; min-height: 44px; font-size: var(--fs-base); }
[data-cal-root] .cal-mobile-day-list button,
[data-cal-root] .cal-mobile-day-list [role="button"] { min-height: 44px; }
[data-cal-root] .cal-day-event-title { font-size: var(--fs-base); }
[data-cal-root] .cal-day-event-period,
[data-cal-root] .cal-day-event-worker { font-size: var(--fs-meta); }

.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.cal-week-day { min-width: 0; min-height: 200px; padding: 12px 8px; background: #fff; }
.cal-week-heading { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; }
.cal-week-weekday { font-size: var(--fs-meta); font-weight: 700; }
.cal-week-date { padding: 4px 8px; color: #1e293b; font-size: var(--fs-title); font-weight: 800; border-radius: 16px; white-space: nowrap; }
.cal-week-date[aria-current="date"] { color: #fff; background: var(--accent); }
.cal-week-today { font-size: var(--fs-meta); font-weight: 700; color: var(--color-blue); }
.cal-week-holiday { color: var(--color-red); font-size: var(--fs-meta); text-align: center; overflow-wrap: anywhere; }
.cal-week-events { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cal-week-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--cal-event-color, #3b82f6);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: left;
  overflow-wrap: anywhere;
}
button.cal-week-event { cursor: pointer; }
button.cal-week-event:hover { background: #eff6ff; }
button.cal-week-event:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cal-week-event-title { font-size: var(--fs-base); font-weight: 700; }
.cal-week-event-project, .cal-week-event-worker { color: #64748b; font-size: var(--fs-meta); }
.cal-week-event-hr { border-style: dashed; background: #fff; }
.cal-week-empty { padding: 12px 4px; color: #64748b; font-size: var(--fs-meta); }

@media (max-width: 768px) {
  .cal-week-grid { grid-template-columns: minmax(0, 1fr); }
  .cal-week-day { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 12px; }
  .cal-week-heading { margin-bottom: 0; }
}
