.calendar-health{margin:14px 0;padding:14px;border:1px solid var(--border,#294036);background:var(--surface,#0d1811);color:#e2eee6;font:12px/1.7 var(--font-mono,monospace);overflow-wrap:anywhere}
.calendar-health p{margin:7px 0}
.calendar-health button,.calendar-health select{background:var(--surface2,#14271c);color:#fff;border:1px solid var(--border,#355744);padding:8px 12px;font:inherit;cursor:pointer;max-width:100%}
.calendar-health button:disabled{opacity:.55;cursor:wait}
.calendar-field-counts{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.calendar-source-error{color:#ffaaaa}.calendar-source-stale{color:#ffe393}
.calendar-health a{color:inherit;text-decoration:underline}
.calendar-grid{max-width:100%}
.calendar-health-status{white-space:normal}
@media(max-width:640px){
  .stats-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .stat-box{min-width:0!important;padding:10px!important;flex-shrink:1!important}
  .stat-label{white-space:normal!important;overflow-wrap:anywhere;line-height:1.5;letter-spacing:.5px!important}
  .stat-box:last-child{grid-column:1/-1}
  .calendar-grid{overflow-x:auto;overscroll-behavior-x:contain}
  .calendar-grid .weekdays,.calendar-grid .days-grid{min-width:700px}
  .timeline-content,.list-row>*{min-width:0;overflow-wrap:anywhere}
}
