/* ==========================================================================
   JORIE DAILY — calendar.css · Phase 30 · Calendar, simplified
   Loaded last, on calendar.html only. Built from the existing tokens
   (burgundy · pink · beige · white, Fraunces + DM Sans). Every rule is scoped
   to the Calendar page so no other page changes.

   Layout
     1. Compact header  — month title, ‹ Today ›, and this month's pages
     2. Month grid      — with the symbol key folded underneath
     3. Selected day    — beside the grid on wide screens, below it on phones:
                          the day card, then one box with Plans / Learning tabs
     4. Year-round      — Birthdays and (Marjorie only) Cycle & wellness
   ========================================================================== */

/* ---------- 1. Header ---------------------------------------------------- */
.cal-page .cal-head {
  display: grid;
  gap: 12px;
  padding-block: clamp(6px, 1.6vw, 20px) clamp(16px, 2.2vw, 26px);
}
.cal-page .cal-head .page-hero__eyebrow { margin: 0; }
.cal-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
/* The site-wide primary-title scale is defined from this heading
   (--fs-page-title / --lh-page-title in profile.css, Phase 31.2). */
.cal-page .cal-head .page-hero__title {
  font-size: var(--fs-page-title, clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem));
  line-height: var(--lh-page-title, 0.95);
}
.cal-page .cal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  grid-column: auto;
  justify-self: auto;
}
.cal-page .cal-controls #cal-today { min-width: 84px; }

/* Phase 31.2: the Wishlist / Our dates shortcut pills were removed — both
   pages (and Plan a Trip) are now in the header's Calendar menu. */

/* ---------- 2. Layout ---------------------------------------------------- */
.cal-layout { display: grid; gap: var(--gap); align-items: start; }
.cal-side { display: grid; gap: var(--gap); min-width: 0; }
@media (min-width: 1080px) {
  .cal-layout { grid-template-columns: minmax(0, 1.62fr) minmax(340px, 1fr); }
}

/* ---------- 3. Month grid ------------------------------------------------ */
.cal-page .cal-card { padding: clamp(10px, 1.8vw, 22px); }
.cal-page .cal-weekdays { margin-bottom: 8px; }
.cal-page .cal-grid { gap: clamp(3px, 0.6vw, 7px); }

@media (min-width: 900px) {
  .cal-page .cal-day { aspect-ratio: 1.5 / 1; padding: 9px 11px; border-radius: 14px; }
  .cal-page .cal-day__num { font-size: 1.12rem; }
}
@media (min-width: 1080px) {
  .cal-page .cal-day { aspect-ratio: 1.12 / 1; padding: 8px 9px; }
  .cal-page .cal-day__foot { flex-wrap: wrap; gap: 4px 5px; row-gap: 5px; }
  /* Markers on one line, the words on the next — no more "2 vid…" */
  .cal-page .cal-day__label { flex: 1 0 100%; font-size: 0.66rem; text-align: left; }
  .cal-page .cal-day__count { display: none; }
  .cal-page .cal-day.has-cycle .cal-day__foot { padding-right: 0; }
  .cal-page .cal-day.has-cycle .cal-day__label { padding-right: 14px; }
}
.cal-page .cal-day .od-inline__marker { color: var(--ink-2); font-size: 0.85rem; top: 3px; right: 6px; }
:root[data-theme="dark"] .cal-page .cal-day .od-inline__marker { color: var(--pink); }
.cal-page .cal-day.is-today .od-inline__marker,
.cal-page .cal-day[aria-pressed="true"] .od-inline__marker { color: currentColor; }

/* The symbol key, folded */
.cal-key { margin-top: 12px; }
.cal-key__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  list-style: none;
  cursor: pointer;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.cal-key__toggle::-webkit-details-marker { display: none; }
.cal-key__toggle .icon { width: 15px; height: 15px; }
.cal-key__toggle:hover { color: var(--ink); }
.cal-key__toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cal-key[open] .cal-key__toggle { color: var(--ink); }
.cal-page .cal-key .cal-legend { margin: 8px 0 0; gap: 6px; font-size: var(--fs-xs); }
.cal-key__heart { font-weight: 700; color: var(--ink-2); line-height: 1; }

/* ---------- 4. Selected day --------------------------------------------- */
/* The day card: same content, calmer size */
.cal-page .details {
  margin-top: 0;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
}
.cal-page .details__date { align-items: center; gap: 12px; }
.cal-page .details__day { font-size: clamp(3rem, 2.3rem + 2.4vw, 4.2rem); line-height: 0.85; }
.cal-page .details__weekday { font-size: var(--fs-md); }
.cal-page .details__month { margin-top: 3px; }
.cal-page .details__top { margin-bottom: 10px; }
.cal-page .details__title { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem); line-height: 1.02; }
.cal-page .details__text { margin-top: 8px; font-size: var(--fs-sm); }
.cal-page .details__list { margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.cal-page .details__list > div { padding: 10px 0; }
.cal-page .details__actions { margin-top: 16px; }
.cal-page .details::after { width: 240px; right: -110px; bottom: -150px; }
@media (min-width: 900px) and (max-width: 1079.98px) {
  .cal-page .details { grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.6fr); }
}
@media (min-width: 1080px) {
  .cal-page .details { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* One box, two tabs */
.cal-daybox { padding: 0; overflow: hidden; }
.cal-daybox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.cal-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunk);
  min-width: 0;
}
.cal-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font: 600 var(--fs-sm)/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.cal-tab:hover { color: var(--ink); }
.cal-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 rgb(var(--burgundy-rgb) / 0.04), 0 4px 12px -6px rgb(var(--burgundy-rgb) / 0.35);
}
:root[data-theme="dark"] .cal-tab[aria-selected="true"] { background: color-mix(in srgb, var(--burgundy) 70%, var(--pink)); box-shadow: none; }
.cal-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cal-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-2xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cal-tab__count:empty { display: none; }
.cal-tab__count.is-zero { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-page .cal-add { flex: none; gap: 6px; }
.cal-page .cal-add .icon { width: 16px; height: 16px; }

.cal-page .cal-tabpanel { margin: 0; }
.cal-tabpanel__body { padding: clamp(14px, 2vw, 20px); }
.cal-tabpanel.is-open .cal-tabpanel__body { animation: calTabIn 220ms var(--ease-out) both; }
@keyframes calTabIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Lists inside the box: same items, tighter */
.cal-page .plans-empty { margin: 0; }
.cal-page #cal-extras-list:not(:empty) { margin-bottom: 10px; }
.cal-page .plans--calendar .plan,
.cal-page .acts--calendar .act { padding: 12px 14px; }
.cal-page .plan__actions { gap: 5px; margin-top: 6px; }
.cal-page .plan__actions .plan-btn,
.cal-page .extra-item__actions .plan-btn { min-height: 32px; padding-inline: 10px; font-size: var(--fs-xs); }
@media (min-width: 1080px) {
  /* The side column is narrow: stack status and buttons under the text. */
  .cal-side .plan { grid-template-columns: auto minmax(0, 1fr); }
  .cal-side .plan__side { grid-column: 2; justify-self: start; margin-top: 4px; }
  .cal-side .plan__actions { grid-column: 1 / -1; }
  .cal-side .extra-item { grid-template-columns: auto minmax(0, 1fr); }
  .cal-side .extra-item__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .cal-side .act { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
  /* Multi-workout days: the Watch button goes under the title in the narrow column */
  .cal-side .workout-item { padding: 14px 16px; }
  .cal-side .workout-item__top { grid-template-columns: auto minmax(0, 1fr); }
  .cal-side .workout-item__action { grid-column: 1 / -1; }
  .cal-side .workout-item__extra { padding-left: 0; }
}
.cal-page .plans-panel__controls { justify-content: flex-start; margin-top: 4px; }
.cal-textbtn {
  min-height: 36px;   /* Phase 31.2: a comfortable target (was ~26px tall) */
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: 600 var(--fs-xs)/1.3 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cal-textbtn:hover, .cal-textbtn[aria-pressed="true"] { color: var(--ink); }
.cal-textbtn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.cal-fine { margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-3); }

/* Our Dates inside Plans — theme-aware (replaces the fixed light colours) */
.cal-page .od-inline { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-page .od-inline:empty { display: none; }
.cal-page .od-inline h3 { font: 600 var(--fs-sm)/1.3 var(--font-body); margin: 0 0 6px; color: var(--ink-2); letter-spacing: 0.02em; }
.cal-page .od-inline__item { background: var(--surface-sunk); border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin: 6px 0 0; }
.cal-page .od-inline__heart { color: var(--ink-2); font-size: 1.1rem; line-height: 1.2; }
.cal-page .od-inline__meta { color: var(--ink-2); }
.cal-page .od-inline__item a { color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.cal-page .od-inline__tag { background: var(--accent); color: var(--on-accent); }

/* ---------- 5. Year-round cards ----------------------------------------- */
.cal-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
  align-items: start;
}
.cal-more:not(:has(> :not([hidden]))) { display: none; }
.cal-page .cal-more__card { margin: 0; padding: clamp(14px, 2vw, 22px); }
.cal-more .card__title { font-size: var(--fs-lg); }
.cal-more .cal-acc__text .card__eyebrow { margin-bottom: 4px; }
.cal-more .cal-acc__chev { width: 30px; height: 30px; }
.cal-more .cal-acc__body { margin-top: var(--space-4); }
.cal-more .cy-card__summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 519px) {
  .cal-more .cal-acc__toggle { display: flex; }
  .cal-more .cal-acc__count { display: none; }
}

/* Birthdays (native <details>) */
.jd-birthday-fold__summary { list-style: none; }
.jd-birthday-fold__summary::-webkit-details-marker { display: none; }
.jd-birthday-fold[open] .cal-acc__chev { transform: rotate(90deg); background: var(--ink); color: var(--bg); }
.jd-birthday-fold__body { margin-top: var(--space-4); animation: calTabIn 220ms var(--ease-out) both; }
#jd-birthday-status:empty { display: none; }
#jd-birthday-status { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 8px; }
.bday-list { list-style: none; margin: 0; padding: 0; }
.bday {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.bday:last-child { border-bottom: 0; }
.bday__date {
  flex: none;
  width: 58px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.bday__name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.bday__tag { margin-left: 6px; font-size: var(--fs-2xs); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.bday--hidden .bday__name, .bday--hidden .bday__date { opacity: 0.55; }
.bday--empty { color: var(--ink-3); font-size: var(--fs-sm); }
.bday__tools { display: inline-flex; gap: 5px; flex: none; }
.bday__tools .plan-btn { min-height: 30px; padding-inline: 10px; font-size: var(--fs-xs); }
.bday-add { margin-top: 10px; }
.bday-add .icon { width: 14px; height: 14px; }

/* ---------- 6. Back-to-month (stacked layouts only) --------------------- */
@media (min-width: 1080px) { .cal-back-wrap { display: none; } }

/* ---------- 7. Phones ---------------------------------------------------- */
@media (max-width: 599.98px) {
  .cal-head__row { gap: 10px; }
  .cal-page .cal-controls { width: 100%; justify-content: center; }
  .cal-page .cal-day .od-inline__marker { top: 2px; right: 3px; font-size: 0.62rem; }
  .cal-daybox__bar { padding: 8px; }
  .cal-tab { padding: 0 10px 0 12px; }
  .cal-page .cal-add span { display: none; }
  .cal-page .cal-add { width: 40px; padding: 0; justify-content: center; }
  .cal-page .details__date { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cal-tabpanel.is-open .cal-tabpanel__body,
  .jd-birthday-fold__body { animation: none; }
  .cal-tab { transition: none; }
}

/* ---------- 8. Phase 30.5 — calendar symbols as tiny meaningful icons ----------
   Same marker elements and classes as before (script.js unchanged); only their look
   changes. Shape = what it is (dumbbell = gym, play = YouTube, moon = rest, clock =
   appointment, pencil = learning & creative, star = special event, plus = extra
   activity, ? = to be decided, stacked squares = several workouts, figure = studio).
   Workout status: outline = scheduled · filled disc = completed · slashed = skipped.
   The period "M" (cycle.css) and the Our Dates ♡ already speak for themselves. */
:root {
  --jd-ico-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='4.5'/%3E%3Cpath d='M10 9.2v5.6l4.8-2.8Z' fill='%23000'/%3E%3C/svg%3E");
  --jd-ico-studio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.6' r='2.1' fill='%23000'/%3E%3Cpath d='M4.5 9.6c2.5 1 5 1.4 7.5 1.4s5-.4 7.5-1.4M12 11v4.4m0 0-3.4 5.6M12 15.4l3.4 5.6'/%3E%3C/svg%3E");
  --jd-ico-gym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 6.5v11M17.5 6.5v11M3.2 9.3v5.4M20.8 9.3v5.4M6.5 12h11'/%3E%3C/svg%3E");
  --jd-ico-rest: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 14.6A7.8 7.8 0 1 1 9.4 4.5a6.2 6.2 0 0 0 10.1 10.1Z'/%3E%3C/svg%3E");
  --jd-ico-multi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8.5' width='11.5' height='11.5' rx='3'/%3E%3Cpath d='M8.5 5h7.5a3 3 0 0 1 3 3v7.5'/%3E%3C/svg%3E");
  --jd-ico-tbd: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.6 9.6a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5v.4'/%3E%3Ccircle cx='12' cy='17' r='1.1' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  --jd-ico-event: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3.2 2.6 5.4 5.9.8-4.3 4.1 1 5.9L12 16.6l-5.2 2.8 1-5.9-4.3-4.1 5.9-.8Z'/%3E%3C/svg%3E");
  --jd-ico-act: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5 5.6 15 15.6 5a2.1 2.1 0 0 1 3 3L8.6 18Z'/%3E%3Cpath d='m13.6 7 3 3'/%3E%3C/svg%3E");
  --jd-ico-appt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 7.4V12l3.2 2'/%3E%3C/svg%3E");
  --jd-ico-extra: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
}
.cal-page :is(.cal-grid, .cal-legend) .mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--jd-ico-size, 13px);
  height: var(--jd-ico-size, 13px);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  clip-path: none;
  opacity: 1;
  -webkit-mask: none;
  mask: none;
}
.cal-page :is(.cal-grid, .cal-legend) .mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--jd-ico-color, currentColor);
  -webkit-mask: var(--jd-ico) center / contain no-repeat;
  mask: var(--jd-ico) center / contain no-repeat;
}
.cal-page .mark--video { --jd-ico: var(--jd-ico-video); }
.cal-page .mark--studio { --jd-ico: var(--jd-ico-studio); }
.cal-page .mark--gym { --jd-ico: var(--jd-ico-gym); }
.cal-page .mark--rest { --jd-ico: var(--jd-ico-rest); }
.cal-page .mark--multi { --jd-ico: var(--jd-ico-multi); }
.cal-page .mark--tbd { --jd-ico: var(--jd-ico-tbd); }
.cal-page .mark--event { --jd-ico: var(--jd-ico-event); }
.cal-page .mark--act { --jd-ico: var(--jd-ico-act); }
.cal-page .mark--appt { --jd-ico: var(--jd-ico-appt); }
.cal-page .mark--extra { --jd-ico: var(--jd-ico-extra); }
/* Extra activity keeps its gold accent (deeper gold on light backgrounds for contrast) */
.cal-page .mark--extra { --jd-ico-color: var(--gold-deep); }
:root[data-theme="dark"] .cal-page .mark--extra,
.cal-page .cal-day.is-today .mark--extra { --jd-ico-color: var(--gold); }
.cal-page .cal-day[aria-pressed="true"]:not(.is-today) .mark--extra { --jd-ico-color: var(--gold-deep); }
.cal-page :is(.cal-grid, .cal-legend) .mark--rest::before { opacity: 0.7; }

/* Completed workout: a filled disc with the icon cut out (filled has always meant "done") */
.cal-page .cal-day[data-status="completed"] .mark:is(.mark--video, .mark--studio, .mark--gym, .mark--multi, .mark--tbd),
.cal-page .cal-legend .mark.mark--filled {
  width: calc(var(--jd-ico-size, 13px) + 4px);
  height: calc(var(--jd-ico-size, 13px) + 4px);
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: var(--jd-ico) center / 64% no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: var(--jd-ico) center / 64% no-repeat exclude, linear-gradient(#000 0 0);
}
.cal-page .cal-day[data-status="completed"] .mark:is(.mark--video, .mark--studio, .mark--gym, .mark--multi, .mark--tbd)::before,
.cal-page .cal-legend .mark.mark--filled::before { content: none; }

/* Skipped workout: faded icon with a fine slash */
.cal-page .cal-day[data-status="skipped"] .mark:is(.mark--video, .mark--studio, .mark--gym, .mark--multi, .mark--tbd)::before,
.cal-page .cal-legend .mark.mark--dashed::before { opacity: 0.5; }
.cal-page .cal-day[data-status="skipped"] .mark:is(.mark--video, .mark--studio, .mark--gym, .mark--multi, .mark--tbd)::after,
.cal-page .cal-legend .mark.mark--dashed::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  bottom: -1px;
  width: 1.7px;
  margin-left: -0.85px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

/* Days outside the month stay soft, as before */
.cal-page .cal-day.is-outside .mark { opacity: 0.35; }

/* Sizes: compact on phones, a little larger where cells are roomy */
.cal-page .cal-day__foot { min-height: 13px; }
@media (max-width: 599.98px) {
  /* ~44 px cells: icons stay legible yet a busy day (workout + count + event +
     learning) still fits — on one line, or two short lines at most. */
  .cal-page .cal-grid { --jd-ico-size: 9px; }
  .cal-page .cal-day { padding: 3px; gap: 3px; }
  .cal-page .cal-day__foot { flex-wrap: wrap; justify-content: center; align-content: center; gap: 1px 2px; min-height: 9px; }
  .cal-page .cal-day__count { font-size: 0.56rem; }
  .cal-page .cal-day[data-status="completed"] .mark:is(.mark--video, .mark--studio, .mark--gym, .mark--multi, .mark--tbd) { width: 12px; height: 12px; }
}
@media (min-width: 600px) and (max-width: 899.98px) { .cal-page .cal-grid { --jd-ico-size: 12px; } }
@media (min-width: 1080px) { .cal-page .cal-day__foot { gap: 4px 6px; } }
.cal-page .cal-legend { --jd-ico-size: 14px; }
.cal-page .cal-legend li { gap: 8px; }
