.owner-short { display: none; }

@media (max-width: 1024px) {
  .page { padding-inline: 24px; }
  .legend-card { align-items: flex-start; }
  .legend { max-width: 58%; gap: 12px 18px; }
  .day { aspect-ratio: 1.08; }
}

@media (max-width: 760px) {
  .page { width: 100%; padding: 20px 10px 24px; overflow-x: hidden; }
  .topbar { gap: 18px; margin: 0 8px 22px; }
  .topbar h1 { font-size: clamp(38px, 12vw, 54px); }
  .month-nav a { width: 44px; height: 44px; }
  .month-nav strong { font-size: 14px; }
  .legend-card { gap: 18px; margin-bottom: 12px; padding: 17px 16px; border-radius: 14px; }
  .legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: none; gap: 10px 8px; }
  .legend-item { min-width: 0; min-height: 42px; white-space: normal; font-size: 12px; line-height: 1.15; }
  .color-button { display: grid; flex: none; place-items: center; width: 40px; height: 40px; }
  .swatch { width: 30px; height: 30px; border-radius: 9px; }
  .calendar { border-radius: 11px; box-shadow: 0 10px 32px rgba(54,41,27,.08); }
  .weekdays div { padding-block: 9px; font-size: 8px; letter-spacing: .06em; }
  .day { min-height: 56px; aspect-ratio: .92; padding: 5px; }
  .day-number { width: 25px; height: 25px; font-size: 12px; }
  .owner-name { display: none; }
  .owner-short { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; min-width: 22px; height: 19px; padding: 0 4px; border-radius: 5px; background: rgba(255,255,255,.84); color: #201b18; font-size: 9px; font-weight: 900; line-height: 1; }
}

@media (max-width: 390px) {
  .page { padding-inline: 6px; }
  .topbar { margin-inline: 10px; }
  .legend-card { margin-inline: 4px; }
  .day { min-height: 51px; }
  .day-number { width: 23px; height: 23px; font-size: 11px; }
  .owner-short { right: 3px; bottom: 3px; min-width: 19px; height: 17px; font-size: 8px; }
}
