.mc-calendar { color-scheme: light; color: var(--mh-ink); background: var(--mh-card); }
.mc-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
.mc-grid > span { text-align: center; font-size: .75rem; }
.mc-day { border: 1px solid var(--mh-line); border-top: 5px solid var(--mh-rust); min-width: 0; }

.mc-day { border-top-color: var(--mh-line); }
.mc-day summary { min-height: 64px; min-width: 0; box-sizing: border-box; padding: 3px; cursor: pointer; list-style: none; }
.mc-day summary:focus-visible { outline: 3px solid var(--mh-rust); outline-offset: 2px; }
.mc-day summary small { display: block; font-size: .65rem; }
.mc-day .mh-phase,.mc-day .mh-gi { width: 17px; height: 17px; vertical-align: middle; }
.mc-day[open] { grid-column: auto; }
.mc-sheet { padding: 12px; overflow-wrap: anywhere; border-top: 1px solid var(--mh-line); }
.mc-sheet svg { width: 100%; min-height: 24px; }
.mc-base { fill: var(--mh-cell); }
.mc-window { fill: var(--mh-rust); }
.mc-cut { fill: var(--mh-ink); fill-opacity: .25; stroke: var(--mh-ink); stroke-dasharray: 3 3; }
.mc-sheet [data-mc-now] { stroke: var(--mh-ink); stroke-width: 3; }
.mc-ready .mc-day[open] { grid-column: auto; }
.mc-ready > .mc-sheet { border: 1px solid var(--mh-line); margin-top: 8px; }

.mc-calendar { min-width: 0; max-width: 100%; }
.mc-day summary { min-height: 44px; overflow-wrap: anywhere; }
.mc-day .mh-cm { margin: 4px auto; }
/* Native disclosure keeps its grid position. At reflow widths use full-width,
   date-labelled rows, retaining generous tap areas without seven-track overflow. */
@media (max-width: 600px) {
  .mc-grid { display: block; }
  .mc-grid > span { display: none; }
  .mc-day { margin-bottom: 4px; }
  .mc-day summary { min-height: 44px; padding: 8px; }
  .mc-day summary time::after { content: " · " attr(datetime); }
  .mc-day summary small { display: inline; margin-inline: 4px; }
  .mc-day .mh-cm { display: inline-block; }
}
