.stats { grid-template-columns: repeat(4, 1fr) !important; }
@media(max-width:640px){ .stats { grid-template-columns: repeat(2, 1fr) !important; } }

.event-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.day-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  transition: opacity .2s;
}
.event-card.deletado {
  opacity: .5;
  border: 1px solid #e57373;
}

.event-date-compact { text-align: center; line-height: 1.2; }
.day-num-sm {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
.day-sub {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.event-body { min-width: 0; }
.event-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-title.riscado { color: #e57373; }

.event-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.event-info-row span {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  background: var(--bg);
  white-space: nowrap;
}

.event-status { text-align: right; white-space: nowrap; }
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag-ativo   { background: #e6f4ed; color: #1D9E75; }
.tag-deletado{ background: #f5f4f0; color: #a09d94; }
.deletado-em {
  font-size: 10px;
  color: var(--muted2);
  margin-top: 4px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}

.agend-status-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.agend-next-update { font-family: var(--mono); font-size: 11px; color: var(--muted2); display: flex; align-items: center; gap: 5px; }
.agend-next-update .countdown { font-weight: 500; color: var(--muted); }
.agend-prog-wrap { height: 2px; background: var(--border); border-radius: 1px; margin-bottom: 16px; overflow: hidden; }
.agend-prog-bar  { height: 100%; background: var(--green); border-radius: 1px; transition: width 1s linear; }

@media(max-width:640px){
  .agend-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .agend-status-bar > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .agend-status-bar > div:first-child select {
    width: 100%;
  }
  .agend-next-update {
    width: 100%;
  }
}

@media(max-width:600px){
  .event-card { grid-template-columns: 60px 1fr; }
  .event-status { display: none; }
}
