/* Phone calendar options (cal-options.js). Shown only at phone width; a computer keeps the grid. */
.calm { display: none; }
.g-yt { --gc: var(--yt); --gd: #ff4d4d; } .g-lx { --gc: var(--lx); --gd: #3d7bff; } .g-rd { --gc: var(--rd); --gd: #ff9f1c; }
@media (max-width: 760px) {
  body[class*="cal-"] .weeks { display: none; }
  body[class*="cal-"] .calm { display: block; }
  .calm button { font: inherit; color: inherit; background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; cursor: pointer; }

  /* A. Dots */
  .cd-head, .cd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .cd-head span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 4px; }
  .calm .cd { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 4px 0 6px; background: var(--card); }
  .cd b { font-size: 13px; font-weight: 800; }
  .cd .dots { display: flex; gap: 3px; }
  .cd .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; }
  .cd .dots i.on { background: var(--gd); border-color: var(--gd); }
  .calm .cd.future { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); background: transparent; }
  .cd.future b { color: var(--muted); font-weight: 600; } .cd.future .dots { opacity: 0; }
  .calm .cd.today { border-color: var(--pop); box-shadow: 0 0 0 2px var(--pop); }
  .cd-key { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .cd-key span { display: inline-flex; align-items: center; gap: 5px; }
  .cd-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--gd); }

  /* B. One week at a time */
  .cw-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
  .cw-title { font-weight: 800; font-size: 15px; text-align: center; }
  .calm .cw-nav button { width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 50%; background: var(--card); box-shadow: 2px 2px 0 var(--line); font-size: 16px; }
  .cw-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cw-track::-webkit-scrollbar { display: none; }
  .cw { flex: 0 0 100%; scroll-snap-align: start; padding: 0 6px 4px 0; overflow: hidden; }
  .cw-grid { display: grid; grid-template-columns: 44px repeat(7, 1fr); gap: 6px; align-items: center; }
  .calm .cw-day { font-family: var(--mono); font-size: 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 2px 0; border-radius: 8px; }
  .cw-day b { font-family: var(--display); font-size: 14px; color: var(--text); }
  .calm .cw-day.today { background: var(--pop); color: var(--on-pop); } .cw-day.today b { color: var(--on-pop); }
  .cw-g { font-family: var(--mono); font-size: 11px; font-weight: 500; }
  .cw-c { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); display: grid; place-content: center; font-size: 13px; font-weight: 800; cursor: pointer; }
  .cw-c.on { background: var(--gc); box-shadow: 2px 2px 0 var(--line); }
  .cw-c.miss { border-color: var(--pop); background: repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in srgb, var(--pop) 35%, transparent) 3px 5px); }
  .cw-c.future { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); cursor: default; }
  .cw-pips { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
  .cw-pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
  .cw-pips i.on { background: var(--line); }

  /* C. Day list */
  .calm .cl-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px; border-bottom: 1.5px dashed color-mix(in srgb, var(--muted) 40%, transparent); text-align: left; }
  .cl-when { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.25; }
  .cl-when b { display: block; font-family: var(--display); font-size: 15px; color: var(--text); }
  .cl-goals { display: flex; gap: 4px; flex-shrink: 0; }
  .cl-g { font-family: var(--mono); font-size: 11px; border: 1.5px solid var(--line); border-radius: 7px; padding: 1px 6px; color: var(--muted); }
  .cl-g.on { background: var(--gc); color: var(--text); font-weight: 500; }
  .calm .cl-row.today { background: color-mix(in srgb, var(--li) 70%, transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; border-bottom-color: transparent; }
  .calm .cl-row.next { opacity: .55; cursor: default; }
  .cl-more { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 10px; }
}
