.cal-page { min-width:0; }
.cal-heading,.cal-month-nav { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.cal-heading h2,.cal-heading h3,.cal-month-nav h3,.cal-detail h2,.cal-detail h3,.cal-form h2,.cal-results h3 {margin:0;}
.cal-heading .actions {margin:0;}
.cal-month-nav { justify-content:center; margin:0 0 1rem; }
.cal-month-nav h3 { text-align:center; min-width:min(13em,45vw); text-transform:capitalize; }
.cal-month-nav button { font-size:1.35em; min-width:2.8rem; }
.cal-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;overflow:hidden;margin-bottom:.7rem; }
.cal-weekday { font-size:.8rem; font-weight:650; text-align:center; padding:.35rem 0; }
button.cal-cell,.cal-spacer { min-width:0; min-height:4.4rem; border:0; border-radius:.25rem; background:var(--paper,#f5f7fa); color:var(--ink,#172824); }
button.cal-cell {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.2rem;text-align:left;padding:.4rem .5rem;font:inherit;}
button.cal-cell:hover,.cal-entry:hover {outline:1px solid var(--accent,#087a60);outline-offset:-1px;}
button.cal-today > span:first-child {font-weight:800;border-bottom:2px solid var(--accent,#087a60);}
.cal-event-mark,.cal-badge { background:#d8eee5; color:#164a3d; border-radius:.35rem; padding:.15rem .4rem; font-size:.78rem; font-weight:650; }
.cal-event-mark {overflow:hidden; text-overflow:ellipsis; white-space:nowrap;max-width:100%;}
.cal-badge {display:inline-flex;align-self:flex-start;width:fit-content;}
.cal-entry { width:100%;min-width:0;display:flex;align-items:center;gap:1rem;text-align:left;padding:1rem;border:1px solid var(--line,#c8d2cf);border-radius:.8rem;background:var(--surface,#fff);color:var(--ink,#172824);font:inherit; }
.cal-entry-content,.cal-date-tile,.cal-poll-mark { display:grid;gap:.2rem; }
.cal-entry-content {flex:1;min-width:0;overflow-wrap:anywhere;}
.cal-entry-content small {font-size:.85rem;font-weight:400;}
.cal-date-tile,.cal-poll-mark {place-content:center;min-width:3rem;min-height:3rem;background:#d8eee5;color:#164a3d;border-radius:.55rem;text-align:center;}
.cal-date-tile strong {font-size:1.25rem;line-height:1.05;}
.cal-poll-mark {font-size:1.3rem;}
.cal-text {white-space:pre-wrap;overflow-wrap:anywhere;}
.cal-form-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.8rem;}
.cal-form input,.cal-form select,.cal-votes select {min-width:0;max-width:100%;}
.cal-option-row {display:flex;gap:.75rem;align-items:flex-end;}
.cal-option-row label {flex:1;min-width:0;}
.cal-check {display:flex;align-items:center;gap:.6rem;min-height:2.75rem;cursor:pointer;}
.cal-check input {flex:none;width:1.1rem;height:1.1rem;min-height:auto;margin:0;accent-color:#087a60;}
.cal-votes {border:0;padding:0;margin:0;display:grid;gap:.65rem;min-width:0;}
.cal-votes legend {font-weight:650;padding:0;margin-bottom:.6rem;}
.cal-actions [aria-pressed=true] {background:#08664f;color:white;border-color:#08664f;}
.cal-overline {font-size:.8rem;font-weight:650;}
.cal-note {padding:.65rem .85rem;border-left:3px solid var(--accent,#087a60);margin:0;}
.cal-results .cal-result {border-top:1px solid var(--line,#c8d2cf);padding-top:.7rem;display:grid;gap:.3rem;overflow-wrap:anywhere;}
.cal-results .cal-result div,.cal-results .cal-result small {font-size:.9rem;}
.cal-actions {flex-wrap:wrap;}
.cal-form[aria-busy=true] button[type=submit] {opacity:.65;cursor:progress;}
.cal-page [hidden] {display:none;}
@media(max-width:560px) {
  .cal-cell .cal-event-mark {height:.42rem;width:.42rem;border-radius:50%;background:#087a60;color:transparent;padding:0;display:block;overflow:hidden;}
  button.cal-cell {min-height:2.9rem;align-items:center;justify-content:center;gap:.15rem;padding:.25rem 0;}
  .cal-cell small {display:none;}
  .cal-weekday {font-size:.7rem;}
  .cal-spacer {min-height:2.9rem;}
  .cal-heading {flex-wrap:wrap;gap:.5rem;}
  .cal-entry {padding:.8rem;gap:.7rem;}
  .cal-entry .cal-badge {align-self:center;}
}
