/* Pet Calendar — self-contained (calendar grid, event pills, modal). */
:root { --pet-doctor: #6a9bf4; --pet-vax: #16c995; --pet-bath: #37bfd4; }
.d-none { display: none !important; }

.pet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 0 6px; flex-wrap: wrap; }
.pet-head .sub { color: var(--muted); font-size: 12px; }

.pet-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.pet-monthnav { display: flex; align-items: center; gap: 8px; }
.pet-month-label { font-weight: 600; font-size: 15px; min-width: 130px; text-align: center; }
.pet-navbtn { border: 1px solid var(--border); background: #fff; border-radius: 8px; width: 30px; height: 30px; font-size: 16px; cursor: pointer; line-height: 1; }
.pet-navbtn:hover { border-color: var(--primary); color: var(--primary); }
.pet-todaybtn { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.pet-addbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.pet-addbtn { border: none; color: #fff; border-radius: 20px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pet-addbtn:hover { opacity: .9; }

.cal-daylabels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 4px; }
.cal-daylabels span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; min-height: 88px; box-shadow: 0 2px 6px -2px rgba(55,56,78,0.06); }
.cal-cell.other-month { opacity: .38; }
.cal-cell.is-today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(118,109,244,.16) inset; }
.cal-daynum { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.cal-cell.is-today .cal-daynum { color: var(--primary); font-weight: 700; }
.cal-pill { display: block; width: 100%; text-align: left; border: none; border-radius: 6px; padding: 2px 5px; margin-bottom: 3px; font-size: 10.5px; line-height: 1.35; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; font-family: inherit; }

@media (max-width: 640px) {
  .cal-cell { min-height: 56px; padding: 3px; }
  .cal-pill { font-size: 9px; padding: 1px 4px; }
  .pet-month-label { min-width: 108px; font-size: 13px; }
}

/* Event list */
.pet-ev-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px; margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 2px 8px -3px rgba(55,56,78,0.08); }
.pet-ev-main { display: flex; align-items: center; gap: 10px; }
.pet-ev-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.pet-ev-name { font-weight: 600; font-size: 13.5px; }
.pet-ev-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pet-edit-btn { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 5px 12px; font-size: 11.5px; cursor: pointer; }
.pet-edit-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Modal */
.pet-overlay { position: fixed; inset: 0; background: rgba(11,15,25,.55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pet-box { background: #fff; border-radius: 1rem; box-shadow: 0 1rem 3rem rgba(0,0,0,.25); max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px; position: relative; }
.pet-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 22px; line-height: 1; color: #9397ad; cursor: pointer; }
.pet-field { margin-bottom: 12px; }
.pet-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.pet-field input, .pet-field select { width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13.5px; background: #fff; color: var(--text, #2b2f3e); }
.pet-field input:focus, .pet-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(118,109,244,.12); }
.pet-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pet-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pet-btn-primary { border: none; background: var(--primary); color: #fff; border-radius: 10px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pet-btn-primary:hover { opacity: .9; }
.pet-btn-danger { border: 1px solid #f8c7d2; background: #fde8ec; color: #b3261e; border-radius: 10px; padding: 9px 14px; font-size: 12.5px; cursor: pointer; }
