:root{
  --accent:#1f8a8b;
  --accent-dark:#264653;
  --border:#e6eef2;
  font-family: Inter, system-ui, sans-serif;
}

.pmcal-calendar{
  max-width:1000px;
  margin:auto;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.1);
}

.pmcal-header{
  background:linear-gradient(90deg,var(--accent-dark),#3b9aa0);
  color:#fff;
  padding:18px;
  display:flex;
  justify-content:space-between;
}

.pmcal-controls{
  display:flex;
  gap:8px;
}

.pmcal-controls button{
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.pmcal-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  text-align:center;
  font-weight:600;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}

.pmcal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  grid-auto-rows:130px;
}

.pmcal-day{
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:8px;
}

.pmcal-day:nth-child(7n){ border-right:none; }

.pmcal-date-num{
  font-size:13px;
  font-weight:600;
}

.pmcal-event{
  margin-top:6px;
  width:100%;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  font-size:13px;
  padding:6px 8px;
  border-radius:6px;
  cursor:pointer;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.pmcal-modal-bg{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:999;
}

.pmcal-modal{
  background:#fff;
  max-width:420px;
  width:100%;
  border-radius:12px;
  padding:20px;
  position:relative;
}

.pmcal-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  background:#eee;
  border:none;
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:18px;
  cursor:pointer;
}

.pmcal-modal a{
  display:block;
  background:var(--accent);
  color:#fff;
  text-align:center;
  padding:12px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
}
